query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Install quote custom data
Установить данные кастомной котировки
public function installQuoteData() { $quoteInstaller = $this->quoteSetupFactory->create( [ 'resourceName' => 'quote_setup', 'setup' => $this->setup ] ); $quoteInstaller ->addAttribute( 'quote', CustomFieldsInterface::CHECKOUT_PURPOSE, ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fastQuote_install() {\n require_once('fastQuote.settings.php');\n fastQuoteInstaller::install();\n\n rebuild_settings();\n}", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data='') {\r\n parent::install();\r\n }", "function install($data='') {\r\n parent::install();\r\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n\n\n }", "public function installWordpressData() {\n }", "public function install($data = array()) {\n\t\t$this->pkg = parent::install();\n\n\t// Installing\n\t\t $this->installOrUpgrade($data);\n\t}", "function install() {}", "function dbInstall($data='') {\n/*\nmixcloud_favorites - \n*/\n $data = <<<EOD\n mixcloud_favorites: ID int(10) unsigned NOT NULL auto_increment\n mixcloud_favorites: TITLE varchar(100) NOT NULL DEFAULT ''\n mixcloud_favorites: STREAM varchar(255) NOT NULL DEFAULT ''\n mixcloud_favorites: ITEM_ID varchar(255) NOT NULL DEFAULT '' \nEOD;\n parent::dbInstall($data);\n }", "function dbInstall($data) {\n/*\napp_vkbot - \n*/\n $data = <<<EOD\n app_vkbot: ID int(10) unsigned NOT NULL auto_increment\n app_vkbot: TITLE varchar(100) NOT NULL DEFAULT ''\n app_vkbot: COLOR varchar(255) NOT NULL DEFAULT ''\n app_vkbot: VAL varchar(255) NOT NULL DEFAULT ''\n app_vkbot: CODE varchar(255) NOT NULL DEFAULT ''\nEOD;\n parent::dbInstall($data);\n }", "function install(){}", "public function install() {\r\n\t\tadd_option(ShoppWholesale::OPTION_NAME, $this->defaults);\r\n\t}", "function qoorate_install() {\n\tadd_option('qoorate_api_key', '');\n\tadd_option('qoorate_api_secret', '');\n\tadd_option('qoorate_api_shortname', '');\n}", "function install()\n {\n }", "function install($data='') {\n subscribeToEvent($this->name, 'SAY');\n parent::install();\n }", "public function install(){\r\n\t\t\r\n\t}", "public function install()\n {\n $this->installClasses();\n $this->command();\n $this->markInstalled();\n //or call parent::install(); \n }", "public function install() {\n\n\n }", "public function install();", "public function install();", "public function install() {\r\n \r\n }", "public static function install(){\n\t}", "public function install()\n {\n }", "public function install()\n {\n }", "protected function install(){ return true;}", "public function install() {\n $this->load->model('extension/module/export_yml');\n $this->model_extension_module_export_yml->installPromCategoryTable();\n $this->model_extension_module_export_yml->installPromProductTable();\n }", "public function beforeInstall()\n\t{}", "function top10_install() {\r\n/* Creates new database field */\r\n//add_option('omekafeedpull_omekaroot', '/omeka', '', 'yes');\r\n}", "function install($data='') {\r\n @umask(0);\r\n if (!Is_Dir(ROOT.\"./cms/products/\")) {\r\n mkdir(ROOT.\"./cms/products/\", 0777);\r\n }\r\n parent::install();\r\n }", "public static function install()\n\t{\n\t\tmanpower_create_page_with_slug(MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_catalog_slug', MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_worker_slug', MANPOWER_DEFAULT_WORKER_SLUG);\t\t\n\t}", "public function install()\n {\n Configuration::updateValue('APISFACT_PRESTASHOP_TOKEN', '');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEF', 'F001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROF', '0');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEB', 'B001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROB', '0');\n\n include(dirname(__FILE__).'/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('displayAdminOrderLeft') &&\n $this->registerHook('displayAdminOrderMain');\n }", "function install() {\n\t\tsafe_query('DELETE FROM '.safe_pfx('txp_prefs').' WHERE name LIKE \"wlk_phsb_%\"');\n\t\tsafe_insert('txp_prefs',\"prefs_id = '1',name = 'wlk_phsb_notifications_instant',val = '1',type = '1',event = 'wlk_phsb',html = 'yesnoradio',position = '10',user_name = ''\");\n\t\tsafe_insert('txp_prefs',\"prefs_id = '1',name = 'wlk_phsb_endpoints',val = '\".implode(\"\\n\", $this->vars['endpoints']).\"',type = '1',event = 'wlk_phsb',html = 'wlk_phsb_textarea',position = '60',user_name = ''\");\n\t}", "public static function run_install()\n {\n global $wpdb;\n\n // Create Base Table in mysql\n //$charset_collate = $wpdb->get_charset_collate();\n //require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n }", "public function postInstallCmd(){\n\n \\Disco\\manage\\Manager::install();\n\n }", "public function installSalesData()\n {\n $salesInstaller = $this->salesSetupFactory->create(\n [\n 'resourceName' => 'sales_setup',\n 'setup' => $this->setup\n ]\n );\n $salesInstaller\n ->addAttribute(\n 'order',\n CustomFieldsInterface::CHECKOUT_PURPOSE,\n ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => false]\n );\n }", "public function preInstall()\n {\n }", "function install() {\n /*\n * do some stuff at install db table creation/modification, email template creation etc.\n * \n * \n */\n return parent::install();\n }", "function install()\n {\n \t// Creating tables\n\t\t\tinclude('db/tables.php');\n }", "public function install() {\n\t\t\t$date = Symphony::Configuration()->get('date_format', 'region');\n\t\t\t$time = Symphony::Configuration()->get('time_format', 'region');\n\t\t\t$separator = Symphony::Configuration()->get('datetime_separator', 'region');\n\n\t\t\t// Store current date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', $date, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->set('time_format', $time, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->set('datetime_separator', $separator, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->write();\n\t\t}", "public function initialInstall()\n\t\t{\n\t\t\t$installer = $this->getInstaller();\n\t\t\t$installer->newTable($installer->getResourceTable('core/extension'))\n\t\t\t->addColumn('code', $installer::TYPE_TEXT, 50, array(\n\t\t\t\t'nullable' => FALSE,\n\t\t\t\t'default' => '',\n\t\t\t\t'primary' => TRUE,\n\t\t\t\t),'Extension identifier')\n\t\t\t->addColumn('version', $installer::TYPE_TEXT, 50, array(\n\t\t\t\t'nullable' => FALSE,\n\t\t\t\t'default' => '',\n\t\t\t\t),'The currently installed version of this extension')\n\t\t\t->setComment('List of ZeroG installed extensions and their version number');\n\t\t\t$installer->run();\n\t\t}", "public function install()\r\n {\r\n if (!get_option('ohs_newsletter_installed')) {\r\n global $wpdb;\r\n $charset_collate = $wpdb->get_charset_collate();\r\n $fullTableName = $wpdb->prefix . self::$tableName;\r\n\r\n $sql = \"CREATE TABLE $fullTableName (\r\n id mediumint(9) UNSIGNED NOT NULL AUTO_INCREMENT,\r\n first_name varchar(100) NOT NULL,\r\n last_name varchar(100) NOT NULL,\r\n email varchar(100) NOT NULL,\r\n validation_code varchar(200) NOT NULL,\r\n PRIMARY KEY id (id)\r\n ) $charset_collate;\";\r\n\r\n dbDelta($sql);\r\n add_option('ohs_newsletter_installed', 1);\r\n\r\n add_option('ohs_newsletter_sendgrid_api', \"\");\r\n add_option('ohs_newsletter_sendgrid_list', \"\");\r\n add_option('ohs_newsletter_redirect', \"\");\r\n }\r\n }", "private function _install() {\r\n// `id` int(11) NOT NULL,\r\n// `language_id` int(11) NOT NULL,\r\n// `human_name` mediumtext NOT NULL,\r\n// `machine_name` varchar(255) NOT NULL,\r\n// `is_active` enum('0','1') NOT NULL,\r\n// PRIMARY KEY(`id`)\r\n// ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n// CREATE TABLE IF NOT EXISTS `security_attributes_values` (\r\n// `id` int(11) NOT NULL,\r\n// `user_id` int(11) NOT NULL,\r\n// `attribute_id` int(11) NOT NULL,\r\n// `value` mediumtext NOT NULL,\r\n// PRIMARY KEY(`id`)\r\n// ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n }", "public function install() {\n\t\t\t$date = Symphony::Configuration()->get('date_format', 'region');\n\t\t\t$time = Symphony::Configuration()->get('time_format', 'region');\n\t\t\t$separator = Symphony::Configuration()->get('datetime_separator', 'region');\n\n\t\t\t// Store current date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', $date, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->set('time_format', $time, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->set('datetime_separator', $separator, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->write();\n\t\t}", "abstract public function installSQL();", "protected function afterInstall()\n {\n }", "function install() {\n\t\t$config ['username'] = '';\n\t\t$config ['password'] = '';\n\t\t;\n\t\t$config ['signature'] = '';\n\t\t$config ['currency'] = 'EUR'; // default\n\t\t\n\n\t\t$config ['SANDBOX'] = true;\n\t\t\n\t\t$config ['enabled'] = \"0\";\n\t\t\n\t\t//not normally user configurable\n\t\t$config ['return_url'] = \"\";\n\t\t$config ['cancel_url'] = \"\";\n\t\t\n\t\t$this->CI->Settings_model->save_settings ( 'bnp_parisbas', $config );\n\t}", "function wlms_plugin_install()\n{\n wlms_create_table();\n wlms_settings_data();\n}", "public function install() {\n\t\t$api_key = String::generate_key();\n\t\t$get_existing_key = get_option( $this->api_key_option_name );\n\t\tif ( false == $get_existing_key ) {\n\t\t\tupdate_option( $this->api_key_option_name, $api_key );\n\t\t}\n\t}", "public function install()\n\t{\n\t\tif (Shop::isFeatureActive()) {\n\t\t\tShop::setContext(Shop::CONTEXT_ALL);\n\t\t}\n\n\t\t//initialize empty settings\n\t\tConfiguration::updateValue('CLERK_PUBLIC_KEY', '');\n\t\tConfiguration::updateValue('CLERK_PRIVATE_KEY', '');\n\n\t\tConfiguration::updateValue('CLERK_SEARCH_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_SEARCH_TEMPLATE', '');\n\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_INCLUDE_CATEGORIES', 0);\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_TEMPLATE', '');\n\n\t\tConfiguration::updateValue('CLERK_POWERSTEP_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_POWERSTEP_TEMPLATES', '');\n\n\t\treturn parent::install() &&\n $this->registerHook('top') &&\n\t\t\t$this->registerHook('footer') &&\n\t\t\t$this->registerHook('displayOrderConfirmation');\n\t}", "function dbInstall($data='')\n {\n $data = <<<'EOD'\n apiai_actions: ID int(10) unsigned NOT NULL auto_increment\n apiai_actions: TITLE varchar(255) NOT NULL DEFAULT ''\n apiai_actions: LATEST_PARAMS varchar(255) NOT NULL DEFAULT '' \n apiai_actions: LATEST_USAGE datetime\n apiai_actions: CODE text\n\n apiai_entities: ID int(10) unsigned NOT NULL auto_increment\n apiai_entities: NAME varchar(255) NOT NULL DEFAULT ''\n apiai_entities: LAST_EXPORT datetime\n apiai_entities: CODE text\nEOD;\n parent::dbInstall($data);\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$terminals = SQLSelect('select NAME, TITLE from terminals');\n$total = count($terminals);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $entries[] = array('value' => $terminals[$i]['NAME'], 'synonyms' => array($terminals[$i]['TITLE']));\n}\n\n$entity = array(\n 'name' => 'terminal',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'terminal'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'terminal', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$users = SQLSelect('select USERNAME, NAME from users');\n$total = count($users);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $entries[] = array('value' => $users[$i]['USERNAME'], 'synonyms' => array($users[$i]['NAME']));\n}\n\n$entity = array(\n 'name' => 'user',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'user'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'user', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$rooms = getObjectsByClass('Rooms');\n$total = count($rooms);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $name = $rooms[$i]['TITLE'];\n $entry = array('value' => $name);\n $title = gg($rooms[$i]['TITLE'].'.Title');\n if($title)\n $entry['synonyms'] = array($title);\n $entries[] = $entry;\n}\n\n$entity = array(\n 'name' => 'room',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'room'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'room', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\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 install() {\n\n\t\trequire_once( $this->get_plugin_path() . '/includes/admin/class-wc-cog-admin.php' );\n\n\t\t// install default settings\n\t\tforeach ( WC_COG_Admin::get_global_settings() as $setting ) {\n\n\t\t\tif ( isset( $setting['default'] ) ) {\n\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\t}", "public function install(){\n\n\t\t$model = Advertikon::getCurrentModel();\n\n\t\ttry {\n\t\t\t$this->_checkCompatibility();\n\t\t}\n\t\tcatch( Exception\\Transport $e ) {\n\t\t\t$this->errorPage( $e->getData() , 424 , 'Failed Dependency' );\n\t\t}\n\n\t\t$this->_install();\n\n\t\t$config = Advertikon::getXmlConfig();\n\t\t$settingsModel = Advertikon::getExtendedModel( 'setting_setting' );\n\t\t$settings = $model->stripPrefix( $settingsModel->getSetting() );\n\t\t$model->merge( $settings , $config->getValues( '/' ) );\n\t\t$settingsModel->editSetting( $settings );\n\n\t\t//mark the extension as installed\n\t\tAdvertikon::getExtendedModel( 'setting_setting' )->setSettingValue( 'installed' , 1 );\n\t}", "protected function install() {\n\n\t\t// include settings so we can install defaults\n\t\t$settings = $this->load_class( '/includes/admin/class-wc-avatax-settings.php', 'WC_AvaTax_Settings' );\n\n\t\t// install default settings for each section\n\t\tforeach ( $settings->get_settings() as $setting ) {\n\n\t\t\tif ( isset( $setting['default'] ) ) {\n\n\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\n\t\t$this->maybe_migrate();\n\t}", "public static function install() \r\n\t{\r\n\t\tself::uninstall();\r\n\r\n\t\tglobal $wpdb;\r\n\t\t$wpdb->query( $wpdb->prepare( \"UPDATE $wpdb->mp_mailmeta SET meta_key = %s WHERE meta_key = %s;\", self::meta_key, 'batch_spool_send' ) );\r\n\r\n\t\tMP_Log::set_option( self::log_name );\r\n\r\n\t\tdo_action( 'MailPress_schedule_batch_spool_send' );\r\n\t}", "function kkm_install() {\r\n\tglobal $wpdb, $install_sql;\r\n\t\r\n\t//Remove database tables if present\r\n\tkkm_uninstall(true);\r\n\t\r\n\t$wpdb->flush();\r\n\t$wpdb->query('begin'); //Start transaction\r\n\t\r\n\t/*\r\n\t * Run install script command by command\r\n\t */\r\n\t$error_occured = false;\r\n\t$sql_commands = preg_split('/(?<!\\\\\\\\);/', $install_sql);\r\n\tforeach ($sql_commands as $command) {\r\n\t\t$command = trim($command);\r\n\t\tif (!empty($command)) {\r\n\t\t\t$wpdb->flush();\r\n\t\t\t$wpdb->query($command);\r\n\t\t\tif (!empty($wpdb->last_error)) {\r\n\t\t\t\techo($command.\"\\n\\n\");\r\n\t\t\t\techo($wpdb->last_error);\r\n\t\t\t\t$error_occured = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t//Add format tags supported by the modules\r\n\tkkm_install_format_tags();\r\n\t\r\n\tif ($error_occured) {\r\n\t\t$wpdb->query('rollback'); //Roll back changes\r\n\t\tdie(__('Cannot create database tables.','kkm'));\r\n\t} else {\r\n\t\t$wpdb->query('commit'); //Commit\r\n\t}\r\n\t\r\n\t/*\r\n\t * Create dir struct for user data\r\n\t */\r\n\t$dirs = array(\r\n\t\t'kkm_dir' =>\t\tWP_CONTENT_DIR.'/kkm',\r\n\t\t'temp_dir' =>\t\tWP_CONTENT_DIR.'/kkm/temp',\r\n\t\t'doc_dir' =>\t\tWP_CONTENT_DIR.'/kkm/docs'\r\n\t);\r\n\t$stat = @stat(WP_CONTENT_DIR);\r\n\t$mode = $stat['mode'];// & 0000666;\r\n\tforeach ($dirs as $dir) {\r\n\t\tif (!is_dir($dir)) {\r\n\t\t\tmkdir($dir);\r\n\t\t}\r\n\t\t@chmod($dir, $mode);\r\n\t}\r\n\t\r\n\t/*\r\n\t * Write .htaccess files\r\n\t */\r\n\t$htaccess_content = \"deny from all\";\r\n\tfile_put_contents($dirs['kkm_dir'].'/.htaccess', $htaccess_content);\r\n}", "public function install()\n {\n return parent::install()\n && $this->registerHook('payment')\n && $this->registerHook('paymentReturn')\n && $this->defaultConfiguration()\n && $this->createDatabaseTables();\n }", "public function afterInstall()\n\t{}", "function crowdx_install(){\r\n if (!is_plugin_active('phpx/phpx.php')){\r\n die('CrowdX requires the <a href=\"http://www.phpx.org/\" target=\"_new\">PHPX Framework</a>. Please install PHPX and then reinstall CrowdX.');\r\n }\r\n \r\n if (!get_option('crowdx_options')){\r\n //$sql = 'CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . '_cx_user` ( `wp_user_id` int(10) NOT NULL, `cx_user_active` tinyint(1) NOT NULL DEFAULT \\'0\\', UNIQUE KEY `wp_user_id` (wp_user_id`), KEY `cx_user_active` (`cx_user_active`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;';\r\n //$this->wpdb->query($sql);\r\n \r\n $options = array();\r\n $options['enable'] = false;\r\n $options['all_users'] = false;\r\n $options['server'] = 'http://yourserver';\r\n \r\n \r\n update_option('crowdx_options', $options);\r\n }\r\n }", "function dbInstall() {\r\n\r\n $data = <<<EOD\r\n scheduled_job: scheduled_job_id int(10) unsigned NOT NULL auto_increment\r\n scheduled_job: name varchar(255) NOT NULL DEFAULT ''\r\n scheduled_job: crontab varchar(200) DEFAULT NULL, \r\n scheduled_job: last_run_date datetime DEFAULT NULL, \r\n scheduled_job: next_run_date datetime DEFAULT NULL, \r\n scheduled_job: status int(11) NOT NULL DEFAULT '0', \r\n scheduled_job: is_active tinyint(1) NOT NULL DEFAULT '0', \r\n scheduled_job: is_periodical tinyint(1) NOT NULL DEFAULT '0',\r\n\r\n scheduled_job_action: scheduled_job_action_id int(10) unsigned NOT NULL AUTO_INCREMENT, \r\n scheduled_job_action: type_id` int(11) NOT NULL, \r\n scheduled_job_action: scheduled_job_id int(11) NOT NULL, \r\n scheduled_job_action: params` varchar(200) NOT NULL\r\n \r\nEOD;\r\n parent::dbInstall($data);\r\n }", "function ss_options_install() {\n\n global $wpdb;\n\n $table_name = $wpdb->prefix . \"company\";\n $charset_collate = $wpdb->get_charset_collate();\n $sql = \"CREATE TABLE $table_name (\n `id` varchar(3) CHARACTER SET utf8 NOT NULL,\n `company_name` varchar(50) CHARACTER SET utf8 NOT NULL,\n\t\t `year_of_incorporation` varchar(50) CHARACTER SET utf8 NOT NULL,\n \t `industry` varchar(150) CHARACTER SET utf8 NOT NULL,\n\t\t\t`country` varchar(150) CHARACTER SET utf8 NOT NULL,\n\t\t\t`subsidiaries` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`website` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`CEO` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`board_members` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t `key_investors` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t \t`asset_price` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`mission_statements` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`awards` varchar(300) CHARACTER SET utf8 NOT NULL,\n\t\t\t`about` varchar(300) CHARACTER SET utf8 NOT NULL,\n\n PRIMARY KEY (`id`)\n ) $charset_collate; \";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta($sql);\n}", "protected function quote()\n {\n }", "function dbInstall($data) {\r\n/*\r\nwatchfolders - Watchfolders\r\n*/\r\n $data = <<<EOD\r\n watchfolders: ID int(10) unsigned NOT NULL auto_increment\r\n watchfolders: TITLE varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: FOLDER varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: CHECK_MASK varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: CHECK_LATEST datetime\r\n watchfolders: CHECK_NEXT datetime\r\n watchfolders: CHECK_INTERVAL int(255) NOT NULL DEFAULT '0'\r\n watchfolders: SCRIPT_ID int(10) NOT NULL DEFAULT '0'\r\n watchfolders: CHECK_SUB int(3) NOT NULL DEFAULT '0'\r\n watchfolders: SCRIPT_TYPE int(255) NOT NULL DEFAULT '0'\r\n watchfolders: CHECK_RESULTS longtext\r\n\r\nEOD;\r\n parent::dbInstall($data);\r\n }", "function fn_divido_install()\n{\n fn_divido_uninstall();\n\n db_query(\"INSERT INTO ?:payment_processors ?e\", array (\n 'processor' => 'Divido',\n 'processor_script' => 'divido.php',\n 'processor_template' => 'addons/divido/views/orders/components/payments/divido.tpl',\n 'admin_template' => 'divido.tpl',\n 'callback' => 'Y',\n 'type' => 'P'\n ));\n}", "function convertizer_install() {\nadd_option(\"convertizer_data\", 'Default', '', 'yes');\n}", "function hookInstall() {\n// $db = get_db()cou;\n//die(\"got to the installer method...\");\n $this->_saveVocabularies();\n }", "public static function wpa_install() {\n \tglobal $wpdb;\n \t$charset_collate = $wpdb->get_charset_collate();\n \t\t$table = $wpdb->prefix.'manage_list'; \n\t\t$sql = \"CREATE TABLE $table(\n\t\t\t\tlist_id int(10),\n\t\t\t\tFirstName varchar(55),\n\t\t\t\tLastName varchar(55),\n\t\t\t\tuser_gender varchar(10),\n\t\t\t\tuser_no int(10),\n\t\t\t\tuser_city varchar(55),\n\t\t\t user_dob varchar(55),\n\t\t\t\tuser_email varchar(55),\n\t\t\t\tuser_mobile_no varchar(55),\n\t\t\t\tuser_img varchar(55),\n\t\t\t\tuser_lang varchar(55)\n\t \t\t)$charset_collate;\";\n\t\trequire_once(ABSPATH.'wp-admin/includes/upgrade.php');\n\t\t$wpdb->query($sql);\n }", "function insta_f_install(){\n}", "public function install(){\n\n return true;\n\n }", "public function onAfterInstall()\n {\n $ingredients = array(\n array('name' => 'Gin'),\n array('name' => 'Tonic'),\n array('name' => 'Lime'),\n array('name' => 'Soda'),\n array('name' => 'Vodka'),\n );\n\n foreach ($ingredients as $ingredient) {\n craft()->db->createCommand()->insert('cocktailrecipes_ingredients', $ingredient);\n }\n }", "public function install()\n\t{\n\t\tConfiguration::updateValue('ORDERLIST_LIVE_MODE', false);\n\n\t\tinclude(dirname(__FILE__).'/sql/install.php');\n\n\t\treturn parent::install() &&\n\t\t\t$this->registerHook('header') &&\n\t\t\t$this->registerHook('backOfficeHeader') &&\n\t\t\t$this->registerHook('displayCustomerAccount') &&\n\t\t\t$this->registerHook('displayProductAdditionalInfo');\n\t}", "protected function install() \r\n {\r\n new tablamarcas();\r\n return '';\r\n }", "private function install() {\n global $DB, $USER;\n $DB->query(\"CREATE TABLE IF NOT EXISTS `\".$this->DBTable.\"` (\n `section` varchar(255) character set utf8 NOT NULL,\n `property` varchar(255) character set utf8 NOT NULL default '',\n `value` text character set utf8 NOT NULL,\n `type` enum('text','CSV','not_editable','select','set','check','password') character set utf8 NOT NULL default 'text',\n `description` text character set utf8 NOT NULL,\n `set` blob NOT NULL,\n KEY `section` (`section`),\n KEY `property` (`property`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci;\");\n }", "public function install() {\n\n if (!parent::install()\n || !$this->registerHook('payment')\n || !$this->config->install()\n ) {\n return false;\n }\n return true;\n }", "function install()\n {\n $query = parent::getList( 'user_name = \\'admin@test.com\\'' );\n \n if( $query->num_rows() == 0 )\n {\n $data = array(\n 'user_name' => 'admin@test.com',\n 'password' => sha1('rkauqkf.'),\n 'role' => 'admin',\n 'is_active' => '1',\n 'd_o_c'=>date(\"Y/m/d\"),\n );\n \n parent::add($data);\n }\n }", "abstract public function Quote($data);", "public function install()\n {\n include dirname(__FILE__) . '/sql/install.php';\n Configuration::updateValue('WI_SPENT_ENABLED', '0');\n Configuration::updateValue('WI_SPENT_AMOUNT', '');\n Configuration::updateValue('WI_SPENT_COUPON', '');\n Configuration::updateValue('WI_SPENT_DAYS', '30');\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('actionValidateOrder') &&\n $this->registerHook('postUpdateOrderStatus') &&\n $this->registerHook('actionOrderStatusPostUpdate') &&\n $this->registerHook('displayOrderConfirmation');\n }", "public function install()\n {\n return parent::install()\n && $this->registerHook('actionObjectOrderAddBefore')\n && Configuration::updateValue('ORDERREF_LENGTH', self::ORDERREF_LENGTH_DEFAULT)\n && Configuration::updateValue('ORDERREF_MODE', self::ORDERREF_MODE_RANDOM)\n ;\n }", "public function install() {\n\t\t\t// depends on \"oembed_field\"\n\t\t\tif (!static::checkDependency('oembed_field')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!static::checkDependencyVersion('oembed_field', '1.8.9')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// depends on \"languages\"\n\t\t\tif (!static::checkDependency('languages')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// depends on \"frontend_localisation\"\n\t\t\tif (!static::checkDependency('frontend_localisation')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tself::requireoEmbed();\n\t\t\t$create = FieldMultilingual_oembed::createFieldTable();\n\t\t\treturn $create;\n\t\t\t\n\t\t}", "function cmdInstall()\n\t{\n\t\t$cmd = $this->cmd;\n\t\tswitch ($this->cmd)\n\t\t{\n\t\t\tcase NULL:\n\t\t\tcase \"preliminaries\":\n\t\t\t\t$this->setup->checkPreliminaries();\n\t\t\t\t$this->displayPreliminaries();\n\t\t\t\tbreak;\n\n\t\t\tcase \"install\":\n\t\t\t\t$this->displayMasterSetup();\n\t\t\t\tbreak;\n\n\t\t\tcase \"determineToolsPathInstall\":\n\t\t\t\t$this->determineToolsPathInstall();\n\t\t\t\tbreak;\n\n\t\t\tcase \"saveBasicSettings\":\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->displayError($this->lng->txt(\"unknown_command\"));\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function install()\n {\n Configuration::updateValue('MF_TITLE', 'Our Favourite Brands');\n Configuration::updateValue('MF_DESCRIPTION', 'Browse our favourite brands');\n Configuration::updateValue('MF_MAN_NUMBER', 0);\n Configuration::updateValue('MF_PER_ROW_DESKTOP', 4);\n Configuration::updateValue('MF_PER_ROW_TABLET', 3);\n Configuration::updateValue('MF_PER_ROW_MOBILE', 1);\n Configuration::updateValue('MF_MAN_ORDER', 'name_asc');\n Configuration::updateValue('MF_SHOW_MAN_NAME', 0);\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('displayHome');\n }", "public function install()\n {\n $this->db->query('\n CREATE TABLE IF NOT EXISTS `todo` (\n `id` int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT,\n `text` text NOT NULL,\n `checked` BOOLEAN NOT NULL\n ) ENGINE=MyISAM DEFAULT CHARSET=utf8;\n\n CREATE TABLE IF NOT EXISTS `user` (\n `id` int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT,\n `name` varchar(65) NOT NULL,\n `pass` varchar(65) NOT NULL,\n `hash` varchar(65) NOT NULL\n ) ENGINE=MyISAM DEFAULT CHARSET=utf8;\n ');\n echo json_encode(['ok' => 'true']);\n }", "public function install() {\n include(dirname(__FILE__) . '/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('actionProductUpdate') &&\n $this->registerHook('displayAdminProductsExtra');\n }", "public function install()\r\n\t{\r\n\t\tif (!parent::install() || !$this->registerHook('payment') || !$this->registerHook('adminOrder') || !$this->registerHook('paymentReturn') || !$this->registerHook('orderConfirmation'))\r\n\t\t\treturn false;\r\n\r\n\r\n\t\t$this->registerHook('displayPayment');\r\n\t\t$this->registerHook('header');\r\n $this->registerHook('actionOrderStatusUpdate');\r\n\t\tif (!Configuration::get('BILLMATE_PAYMENT_ACCEPTED'))\r\n\t\t\tConfiguration::updateValue('BILLMATE_PAYMENT_ACCEPTED', $this->addState('Billmate : Payment accepted', '#DDEEFF'));\r\n\t\tif (!Configuration::get('BILLMATE_PAYMENT_PENDING'))\r\n\t\t\tConfiguration::updateValue('BILLMATE_PAYMENT_PENDING', $this->addState('Billmate : payment in pending verification', '#DDEEFF'));\r\n\r\n $include = array();\r\n $hooklists = Hook::getHookModuleExecList('displayBackOfficeHeader');\r\n foreach($hooklists as $hooklist)\r\n {\r\n if(!in_array($hooklist['module'],array('billmatebank','billmateinvoice','billmatepartpayment'))){\r\n $include[] = true;\r\n }\r\n }\r\n if(in_array(true,$include))\r\n $this->registerHook('displayBackOfficeHeader');\r\n\t\t/*auto install currencies*/\r\n\t\t$currencies = array(\r\n\t\t\t'Euro' => array('iso_code' => 'EUR', 'iso_code_num' => 978, 'symbole' => '€', 'format' => 2),\r\n\t\t\t'Danish Krone' => array('iso_code' => 'DKK', 'iso_code_num' => 208, 'symbole' => 'DAN kr.', 'format' => 2),\r\n\t\t\t'krone' => array('iso_code' => 'NOK', 'iso_code_num' => 578, 'symbole' => 'NOK kr', 'format' => 2),\r\n\t\t\t'Krona' => array('iso_code' => 'SEK', 'iso_code_num' => 752, 'symbole' => 'SEK kr', 'format' => 2)\r\n\t\t);\r\n\r\n\r\n\t\tforeach ($currencies as $key => $val)\r\n\t\t{\r\n\t\t\tif (_PS_VERSION_ >= 1.5)\r\n\t\t\t\t$exists = Currency::exists($val['iso_code_num'], $val['iso_code_num']);\r\n\t\t\telse\r\n\t\t\t\t$exists = Currency::exists($val['iso_code_num']);\r\n\t\t\tif (!$exists)\r\n\t\t\t{\r\n\t\t\t\t$currency = new Currency();\r\n\t\t\t\t$currency->name = $key;\r\n\t\t\t\t$currency->iso_code = $val['iso_code'];\r\n\t\t\t\t$currency->iso_code_num = $val['iso_code_num'];\r\n\t\t\t\t$currency->sign = $val['symbole'];\r\n\t\t\t\t$currency->conversion_rate = 1;\r\n\t\t\t\t$currency->format = $val['format'];\r\n\t\t\t\t$currency->decimals = 1;\r\n\t\t\t\t$currency->active = true;\r\n\t\t\t\t$currency->add();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tCurrency::refreshCurrencies();\r\n\t\t\r\n\t\t$version = str_replace('.', '', _PS_VERSION_);\r\n\t\t$version = Tools::substr($version, 0, 2);\r\n\t\t\r\n\t\t\r\n\t\t/* The hook \"displayMobileHeader\" has been introduced in v1.5.x - Called separately to fail silently if the hook does not exist */\r\n\r\n\r\n\t\treturn true;\r\n\t}", "public static function install() {\n\t\terror_log('INSTALLL plugin');\n\t\t$product_list = Product_List::get();\n\t\t$product_list->create_product_list_table();\n\t\t$product_list->create_product_list_detail_table();\n\t\tadd_option( 'product_list_version', Product_List::PRODUCT_LIST_VERSION );\n\n\t\twp_schedule_event( time(), 'hourly', 'my_cron_event' );\n\n\t}", "function install() {\r\n global $db;\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Nochex Module', 'MODULE_PAYMENT_NOCHEX_STATUS', 'True', 'Do you want to accept Nochex payments?', '6', '44', 'zen_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Nochex Email Address', 'MODULE_PAYMENT_NOCHEX_EMAIL_ADDRESS','\".STORE_OWNER_EMAIL_ADDRESS.\"', 'Registered email address for your Nochex account.<br />NOTE: This must match <strong>EXACTLY </strong>the registered email address on your Nochex account.', '6', '44', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Nochex Account Type', 'MODULE_PAYMENT_NOCHEX_ACCOUNT_TYPE', 'Seller', 'Please select the type of Nochex account you are accepting payments with.', '6', '44', 'zen_cfg_select_option(array(\\'Seller\\',\\'Merchant\\'), ', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_NOCHEX_MERCHANT_ID', '', 'For Nochex Merchant account holders, allows you to accept payments using a different merchant ID. Has no effect on Seller accounts.', '6', '44', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_NOCHEX_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '44', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Pending Notification Status', 'MODULE_PAYMENT_NOCHEX_PROCESSING_STATUS_ID', '\" . DEFAULT_ORDERS_STATUS_ID . \"', 'Set the status of orders made with this payment module that are not yet completed to this value<br />(\\'Pending\\' recommended)', '6', '44', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID', '2', 'Set the status of orders made with this payment module that have completed payment to this value<br />(\\'Processing\\' recommended)', '6', '44', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_NOCHEX_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '44', now())\");\r\n\r\n // Nochex testing options go here\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Debug Mode', 'MODULE_PAYMENT_NOCHEX_APC_DEBUG', 'Off', 'Enable debug logging? <br />NOTE: This can REALLY clutter your email inbox!<br />Logging goes to the /includes/modules/payment/nochex_apc/logs folder<br />Email goes to the store-owner address.<strong>Leave OFF for normal operation.</strong>', '6', '44', 'zen_cfg_select_option(array(\\'Off\\',\\'Log File\\',\\'Log and Email\\'), ', now())\");\r\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Status Live/Testing', 'MODULE_PAYMENT_NOCHEX_TESTING', 'Live', 'Set Nochex module to Live or Test. In Test mode no money is transferred.', '6', '44', 'zen_cfg_select_option(array(\\'Live\\', \\'Test\\'), ', now())\");\r\n\r\n $this->notify('NOTIFY_PAYMENT_NOCHEX_INSTALLED');\r\n }", "public function install()\n {\n if (extension_loaded('curl') == false)\n {\n $this->_errors[] = $this->l('You have to enable the cURL extension on your server to install this module');\n return false;\n }\n\n Configuration::updateValue('KUSHKIPAGOS_LIVE_MODE', false);\n Configuration::updateValue('KUSHKIPAGOS_TRANSFER', false);\n Configuration::updateValue('KUSHKIPAGOS_DEV', true);\n\n PrestaShopLogger::addLog('Instalación de módulo de pagos Kushki', 2);\n if( parent::install()\n && $this->registerHook('payment')\n && $this->registerHook('paymentOptions')\n && $this->registerHook('paymentReturn')\n && $this->registerHook('displayHeader')\n && $this->registerHook('actionProductCancel')\n && $this->registerHook('actionPaymentConfirmation')\n ){\n return true;\n }else{\n $this->_errors[] = $this->l('No se pudo registrar los hooks payment');\n return false;\n }\n\n // install DataBase\n if (!$this->installSQL()) {\n $this->_errors[] = $this->l('No se pudo ejecutar el sql');\n return false;\n }\n\n return true;\n\n }", "function mmdyk_activate() {\n\n\tglobal $wpdb;\n\n\t// Create the table name\n\t$table_name = $wpdb->prefix . 'mmdyk_quote';\n\n\t// Create the table if it doesn't already exist\n\tif($wpdb->get_var(\"SHOW TABLES LIKE '$table_name'\") != $table_name) {\n\t\t$results = $wpdb->query(\"CREATE TABLE IF NOT EXISTS $table_name(id INT(11) NOT NULL AUTO_INCREMENT, quotes VARCHAR(2048) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, post_id INT(11) NOT NULL, link VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (id)) DEFAULT CHARSET=utf8;\");\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'MM Did You Know? Wordpress plugin by Milan Milosevic.', 'post_id' => 0, 'link' => 'http://www.mmilan.com/'));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'A rat can last longer without water than a camel.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'A female ferret will die if it goes into heat and cannot find a mate.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'A duck`s quack doesn`t echo. No one knows why.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'Donald Duck comics were banned from Finland because he doesn`t wear pants.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'Because metal was scarce, the Oscars given out during World War II were made of wood.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'The number of possible ways of playing the first four moves per side in a game of chess is 318,979,564,000.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'There are no words in the dictionary that rhyme with month, orange, purple, and silver.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'The first CD pressed in the US was Bruce Springsteen`s \"Born in the USA.\"', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'Charlie Chaplin once won third prize in a Charlie Chaplin look-alike contest.', 'post_id' => 0, 'link' => ''));\n\t\t$wpdb->insert( $table_name, array( 'quotes' => 'The Guinness Book of Records holds the record for being the book most often stolen from public libraries.', 'post_id' => 0, 'link' => ''));\n\t} else {\n\t\t$results = $wpdb->query(\"alter table $table_name' default collate utf8_unicode_ci;\");\n\t\t$results = $wpdb->query(\"ALTER TABLE $table_name CHANGE quotes quotes VARCHAR(2048) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;\");\n\t\t$results = $wpdb->query(\"ALTER TABLE $table_name CHANGE link link VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;\");\n\t}\n\t\n}", "public function install() {\n $this->load->model($this->module_path);\n\n $this->helper_pricealert->createTables();\n\n $this->__registerEvents();\n }", "public function install(){\r\n\r\n\t\t$this->load->library('module_installer');\r\n\r\n\t\t$lang_avail = $this->config->item('lang_avail');\r\n\t\t\r\n\t\t$data['dbprefix'] = $this->db->dbprefix;\r\n\t\t\t\r\n\t\t\r\n\t\t//echo \" FLAG1 \";\r\n\t\t\t\t\r\n\t\tforeach($lang_avail AS $langcode=>$language){ \r\n\t\t\r\n\t\t\t$data['langcode'] = $langcode;\r\n\t\t\r\n\t\t\t$this->module_installer->process_file(dirname(dirname(__FILE__)) . \"/install/mydata.sql\",$data);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now copy any required css or js fles to the assets folder\r\n\t\t$this->module_installer->copy_assets(\"/custom_modules/\" . $this->router->class);\r\n\r\n\t\t\r\n\t}", "function dbInstall($data) {\n/*\nmyblocks - Myblocks\nmyblocks_categories - Myblocks Categories\n*/\n $data = <<<EOD\n myblocks: ID int(10) unsigned NOT NULL auto_increment\n myblocks: SYSTEM varchar(255) NOT NULL DEFAULT ''\n myblocks: TITLE varchar(255) NOT NULL DEFAULT ''\n myblocks: CATEGORY_ID int(10) NOT NULL DEFAULT '0'\n myblocks: BLOCK_TYPE char(10) NOT NULL DEFAULT ''\n myblocks: BLOCK_COLOR int(10) NOT NULL DEFAULT '0'\n myblocks: SCRIPT_ID int(10) NOT NULL DEFAULT '0'\n myblocks: LINKED_OBJECT varchar(255) NOT NULL DEFAULT ''\n myblocks: LINKED_PROPERTY varchar(255) NOT NULL DEFAULT ''\n myblocks_categories: ID int(10) unsigned NOT NULL auto_increment\n myblocks_categories: TITLE varchar(255) NOT NULL DEFAULT ''\n myblocks_categories: SYSTEM varchar(255) NOT NULL DEFAULT ''\nEOD;\n parent::dbInstall($data);\n }", "public function install()\n {\n $this->initConfig();\n $this->loadConfig();\n $this->config['installed']=GPC_VERSION2;\n $this->saveConfig();\n\n $result=GPCRequestBuilder::createTables();\n return($result);\n }", "public function install()\n {\n\n return parent::install() &&\n $this->registerHook('actionAdminControllerSetMedia') &&\n $this->registerHook('displayAdminProductsQuantitiesStepBottom') ;\n \n }", "function dbInstall($data) {\n/*\nlagartoservers - lagarto Devices\nlagartoendpoints - lagarto Properties\n*/\n $data = <<<EOD\n\n lagartoservers: ID int(10) unsigned NOT NULL auto_increment\n lagartoservers: TITLE varchar(255) NOT NULL DEFAULT ''\n lagartoservers: MDID varchar(255) NOT NULL DEFAULT ''\n lagartoservers: TYPE varchar(255) NOT NULL DEFAULT ''\n lagartoservers: PORT int(10) NOT NULL DEFAULT '0'\n lagartoservers: ZMQPORT int(10) NOT NULL DEFAULT '0'\n lagartoservers: IP varchar(255) NOT NULL DEFAULT ''\n lagartoservers: PASSWORD varchar(255) NOT NULL DEFAULT ''\n lagartoservers: UPDATE_PERIOD int(10) NOT NULL DEFAULT '0'\n lagartoservers: NEXT_UPDATE datetime\n\n lagartoendpoints: ID int(10) unsigned NOT NULL auto_increment\n lagartoendpoints: SERVER_ID int(10) NOT NULL DEFAULT '0'\n lagartoendpoints: ENDPOINT_ID varchar(50) NOT NULL DEFAULT '0'\n lagartoendpoints: TITLE varchar(50) NOT NULL DEFAULT '0'\n lagartoendpoints: TYPE int(3) NOT NULL DEFAULT '0'\n lagartoendpoints: CURRENT_VALUE_STRING varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: TYPE_STRING varchar(20) NOT NULL DEFAULT ''\n lagartoendpoints: DIRECTION_STRING varchar(20) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_OBJECT varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_PROPERTY varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_METHOD varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: UPDATED datetime\n\nEOD;\n parent::dbInstall($data);\n }" ]
[ "0.69736654", "0.6714206", "0.6714206", "0.66782314", "0.66782314", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.65510887", "0.6327981", "0.6169283", "0.61365294", "0.6135494", "0.61118186", "0.6104212", "0.59939843", "0.5989338", "0.5975755", "0.5932936", "0.59288836", "0.5927338", "0.59154075", "0.5900022", "0.5900022", "0.58989674", "0.58786446", "0.5862951", "0.5862951", "0.58560187", "0.5768739", "0.5749682", "0.5747945", "0.57325375", "0.57260394", "0.5714077", "0.571023", "0.569222", "0.5690993", "0.5668403", "0.56553257", "0.5653492", "0.5613668", "0.5599596", "0.55250293", "0.5521571", "0.5515948", "0.5515806", "0.5511275", "0.54844135", "0.54525894", "0.5446317", "0.5433288", "0.54260886", "0.54259986", "0.5405834", "0.5355463", "0.5347768", "0.53413343", "0.53334606", "0.53237116", "0.53230166", "0.53060997", "0.5305149", "0.52899945", "0.5289747", "0.52895623", "0.5278014", "0.52771807", "0.52743775", "0.5270994", "0.52591765", "0.52559566", "0.5240659", "0.52360725", "0.5231536", "0.52310103", "0.522989", "0.5225428", "0.5224719", "0.52077407", "0.51967657", "0.5189172", "0.5184106", "0.51798946", "0.51763934", "0.5172846", "0.5172587", "0.5167569", "0.51614213", "0.5155826", "0.5153395", "0.51489615", "0.51472056", "0.513896", "0.5133721", "0.5128761", "0.5125185", "0.5114857" ]
0.84290344
0
Install sales custom data
Установить данные о продажах пользовательских данных
public function installSalesData() { $salesInstaller = $this->salesSetupFactory->create( [ 'resourceName' => 'sales_setup', 'setup' => $this->setup ] ); $salesInstaller ->addAttribute( 'order', CustomFieldsInterface::CHECKOUT_PURPOSE, ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => false] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install($data='') {\r\n parent::install();\r\n }", "function install($data='') {\r\n parent::install();\r\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data='') {\n parent::install();\n\n\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "function install($data='') {\n parent::install();\n }", "public function install(){\r\n\t\t\r\n\t}", "public function install() {\r\n\t\tadd_option(ShoppWholesale::OPTION_NAME, $this->defaults);\r\n\t}", "function install($data='') {\r\n @umask(0);\r\n if (!Is_Dir(ROOT.\"./cms/products/\")) {\r\n mkdir(ROOT.\"./cms/products/\", 0777);\r\n }\r\n parent::install();\r\n }", "public function postInstallCmd(){\n\n \\Disco\\manage\\Manager::install();\n\n }", "public function install($data = array()) {\n\t\t$this->pkg = parent::install();\n\n\t// Installing\n\t\t $this->installOrUpgrade($data);\n\t}", "public function install() {\n $this->load->model('extension/module/export_yml');\n $this->model_extension_module_export_yml->installPromCategoryTable();\n $this->model_extension_module_export_yml->installPromProductTable();\n }", "public function install() {\n\n\n }", "public function install()\n {\n Configuration::updateValue('APISFACT_PRESTASHOP_TOKEN', '');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEF', 'F001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROF', '0');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEB', 'B001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROB', '0');\n\n include(dirname(__FILE__).'/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('displayAdminOrderLeft') &&\n $this->registerHook('displayAdminOrderMain');\n }", "public function install() {\r\n \r\n }", "public function installWordpressData() {\n }", "public function install();", "public function install();", "function install(){}", "public static function install(){\n\t}", "function install() {\n /*\n * do some stuff at install db table creation/modification, email template creation etc.\n * \n * \n */\n return parent::install();\n }", "public function install()\n {\n }", "public function install()\n {\n }", "function install() {}", "public function beforeInstall()\n\t{}", "public function install(){\r\n\r\n\t\t$this->load->library('module_installer');\r\n\r\n\t\t$lang_avail = $this->config->item('lang_avail');\r\n\t\t\r\n\t\t$data['dbprefix'] = $this->db->dbprefix;\r\n\t\t\t\r\n\t\t\r\n\t\t//echo \" FLAG1 \";\r\n\t\t\t\t\r\n\t\tforeach($lang_avail AS $langcode=>$language){ \r\n\t\t\r\n\t\t\t$data['langcode'] = $langcode;\r\n\t\t\r\n\t\t\t$this->module_installer->process_file(dirname(dirname(__FILE__)) . \"/install/mydata.sql\",$data);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now copy any required css or js fles to the assets folder\r\n\t\t$this->module_installer->copy_assets(\"/custom_modules/\" . $this->router->class);\r\n\r\n\t\t\r\n\t}", "public function install() {\n $this->load->model($this->module_path);\n\n $this->helper_pricealert->createTables();\n\n $this->__registerEvents();\n }", "protected function install(){ return true;}", "public function preInstall()\n {\n }", "function install()\n {\n }", "function install()\n {\n \t// Creating tables\n\t\t\tinclude('db/tables.php');\n }", "public static function run_install()\n {\n global $wpdb;\n\n // Create Base Table in mysql\n //$charset_collate = $wpdb->get_charset_collate();\n //require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n }", "protected function afterInstall()\n {\n }", "private function _install() {\r\n// `id` int(11) NOT NULL,\r\n// `language_id` int(11) NOT NULL,\r\n// `human_name` mediumtext NOT NULL,\r\n// `machine_name` varchar(255) NOT NULL,\r\n// `is_active` enum('0','1') NOT NULL,\r\n// PRIMARY KEY(`id`)\r\n// ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n// CREATE TABLE IF NOT EXISTS `security_attributes_values` (\r\n// `id` int(11) NOT NULL,\r\n// `user_id` int(11) NOT NULL,\r\n// `attribute_id` int(11) NOT NULL,\r\n// `value` mediumtext NOT NULL,\r\n// PRIMARY KEY(`id`)\r\n// ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n }", "public function install()\n {\n $this->installClasses();\n $this->command();\n $this->markInstalled();\n //or call parent::install(); \n }", "public static function install()\n\t{\n\t\tmanpower_create_page_with_slug(MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_catalog_slug', MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_worker_slug', MANPOWER_DEFAULT_WORKER_SLUG);\t\t\n\t}", "public function install()\n {\n if (!parent::install()\n || !$this->registerHook('displayBackOfficeHeader')\n || !$this->installModuleTab('onehopsmsservice', array(\n 1 => 'Onehop SMS Services'\n ), 0)\n || !$this->installDB()\n || !$this->registerHook('orderConfirmation')\n || !$this->registerHook('postUpdateOrderStatus')\n || !$this->registerHook('actionUpdateQuantity')\n || !$this->registerHook('actionObjectProductUpdateAfter')) {\n return false;\n }\n return true;\n }", "public function manualInstallAction()\r\n\t{\r\n\t $helper = Mage::helper('manager');\r\n // initialize the channel model\r\n $chn = Mage::getModel('manager/channel');\r\n // load by given channel_id if there is an id\r\n if ($channel_id = $this->getRequest()->getParam('channel_id')) {\r\n \t$chn->load($channel_id);\r\n \t// set channel name\r\n \t$channelName = $chn->getUrl();\r\n \t// get package name from post data\r\n \t$packageName = $this->getRequest()->getParam('package_name');\r\n \t// try to get package information for given package_name\r\n \t$package = $this->_service->packageInfo(\r\n \t\t$packageName,\r\n \t $channelName\r\n \t);\r\n \tif ($package) {\r\n\t \t// initialize the package model\r\n\t $pkg = Mage::getModel('manager/package');\r\n\t // try to load the package from the database by its name\r\n\t $id = $pkg->loadByName($packageName)->getId();\r\n\t if (empty($id)) {\r\n\t // if the package is new, create it\r\n\t $pkg->setChannelIdFk($chn->getId());\r\n\t $pkg->setName($packageName);\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t $pkg->setCreatedTime(now());\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t } else {\r\n\t // if the package already exists update it\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t }\r\n\t // set the package state\r\n $pkg->setState($helper->getPackageState($pkg));\r\n // save the package\r\n \t $pkg->save();\r\n \t // set package id to request params\r\n \t $this->getRequest()->setParam('id', $pkg->getId());\r\n \t $this->_forward('install');\r\n \t}\r\n } else {\r\n \tMage::getSingleton('adminhtml/session')->addError(\r\n $helper->__(\r\n '201.error.package-no-id'\r\n )\r\n );\r\n }\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "public function install()\n {\n xtc_db_query(\n \"delete from \" . TABLE_CONFIGURATION\n . \" where configuration_key in ('MODULE_PAYMENT_SHOPGATE_STATUS', 'MODULE_PAYMENT_SHOPGATE_ALLOWED', 'MODULE_PAYMENT_SHOPGATE_ORDER_STATUS_ID')\"\n );\n xtc_db_query(\n \"insert into \" . TABLE_CONFIGURATION\n . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_SHOPGATE_STATUS', 'True', '6', '1', 'xtc_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\"\n );\n xtc_db_query(\n \"insert into \" . TABLE_CONFIGURATION\n . \" (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_SHOPGATE_ALLOWED', '0', '6', '1', now())\"\n );\n xtc_db_query(\n \"insert into \" . TABLE_CONFIGURATION\n . \" (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_SHOPGATE_SORT_ORDER', '0', '6', '1', now())\"\n );\n $result = xtc_db_query(\n 'select configuration_key,configuration_value from configuration as c where c.configuration_key = \"'\n . ShopgateInstallHelper::SHOPGATE_DATABASE_CONFIG_KEY . '\"'\n );\n $row = xtc_db_fetch_array($result);\n if (empty($row)) {\n xtc_db_query(\n \"insert into \" . TABLE_CONFIGURATION\n . \" ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_SHOPGATE_IDENT' , '0', '6', '\"\n . $this->sort_order . \"', now())\"\n );\n }\n\n $this->installTable();\n $this->updateDatabase();\n $this->grantAdminAccess();\n $installHelper = new ShopgateInstallHelper();\n $installHelper->sendData();\n }", "public static function install() \r\n\t{\r\n\t\tself::uninstall();\r\n\r\n\t\tglobal $wpdb;\r\n\t\t$wpdb->query( $wpdb->prepare( \"UPDATE $wpdb->mp_mailmeta SET meta_key = %s WHERE meta_key = %s;\", self::meta_key, 'batch_spool_send' ) );\r\n\r\n\t\tMP_Log::set_option( self::log_name );\r\n\r\n\t\tdo_action( 'MailPress_schedule_batch_spool_send' );\r\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 }", "function dbInstall($data) {\n/*\napp_vkbot - \n*/\n $data = <<<EOD\n app_vkbot: ID int(10) unsigned NOT NULL auto_increment\n app_vkbot: TITLE varchar(100) NOT NULL DEFAULT ''\n app_vkbot: COLOR varchar(255) NOT NULL DEFAULT ''\n app_vkbot: VAL varchar(255) NOT NULL DEFAULT ''\n app_vkbot: CODE varchar(255) NOT NULL DEFAULT ''\nEOD;\n parent::dbInstall($data);\n }", "protected function install() {\n\n\t\t// include settings so we can install defaults\n\t\t$settings = $this->load_class( '/includes/admin/class-wc-avatax-settings.php', 'WC_AvaTax_Settings' );\n\n\t\t// install default settings for each section\n\t\tforeach ( $settings->get_settings() as $setting ) {\n\n\t\t\tif ( isset( $setting['default'] ) ) {\n\n\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\n\t\t$this->maybe_migrate();\n\t}", "public function onPostInstall() {\n $moduleName = 'siteevent';\n $db = $this->getDb();\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_core_modules')\n ->where('name = ?', 'sitemobile')\n ->where('enabled = ?', 1);\n $is_sitemobile_object = $select->query()->fetchObject();\n if (!empty($is_sitemobile_object)) {\n $db->query(\"INSERT IGNORE INTO `engine4_sitemobile_modules` (`name`, `visibility`) VALUES\n('$moduleName','1')\");\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_sitemobile_modules')\n ->where('name = ?', $moduleName)\n ->where('integrated = ?', 0);\n $is_sitemobile_object = $select->query()->fetchObject();\n if ($is_sitemobile_object) {\n $actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n if ($controllerName == 'manage' && $actionName == 'install') {\n $view = new Zend_View();\n $baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $redirector->gotoUrl($baseUrl . 'admin/sitemobile/module/enable-mobile/enable_mobile/1/name/' . $moduleName . '/integrated/0/redirect/install');\n }\n }\n }\n //END - SITEMOBILE CODE TO CALL MY.SQL ON POST INSTALL\n //WORK FOR THE WORD CHANGES IN THE ADVANCED EVENT PLUGIN .CSV FILE.\n $actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n if ($controllerName == 'manage' && ($actionName == 'install' || $actionName == 'query')) {\n $view = new Zend_View();\n $baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n if ($actionName == 'install') {\n $redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/install');\n } else {\n $redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/query');\n }\n }\n }", "public function initialInstall()\n\t\t{\n\t\t\t$installer = $this->getInstaller();\n\t\t\t$installer->newTable($installer->getResourceTable('core/extension'))\n\t\t\t->addColumn('code', $installer::TYPE_TEXT, 50, array(\n\t\t\t\t'nullable' => FALSE,\n\t\t\t\t'default' => '',\n\t\t\t\t'primary' => TRUE,\n\t\t\t\t),'Extension identifier')\n\t\t\t->addColumn('version', $installer::TYPE_TEXT, 50, array(\n\t\t\t\t'nullable' => FALSE,\n\t\t\t\t'default' => '',\n\t\t\t\t),'The currently installed version of this extension')\n\t\t\t->setComment('List of ZeroG installed extensions and their version number');\n\t\t\t$installer->run();\n\t\t}", "function install()\n {\n $query = parent::getList( 'user_name = \\'admin@test.com\\'' );\n \n if( $query->num_rows() == 0 )\n {\n $data = array(\n 'user_name' => 'admin@test.com',\n 'password' => sha1('rkauqkf.'),\n 'role' => 'admin',\n 'is_active' => '1',\n 'd_o_c'=>date(\"Y/m/d\"),\n );\n \n parent::add($data);\n }\n }", "function insta_f_install(){\n}", "public function install()\n {\n include dirname(__FILE__) . '/sql/install.php';\n Configuration::updateValue('WI_SPENT_ENABLED', '0');\n Configuration::updateValue('WI_SPENT_AMOUNT', '');\n Configuration::updateValue('WI_SPENT_COUPON', '');\n Configuration::updateValue('WI_SPENT_DAYS', '30');\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('actionValidateOrder') &&\n $this->registerHook('postUpdateOrderStatus') &&\n $this->registerHook('actionOrderStatusPostUpdate') &&\n $this->registerHook('displayOrderConfirmation');\n }", "public function afterInstall()\n\t{}", "public function install()\r\n {\r\n if (!get_option('ohs_newsletter_installed')) {\r\n global $wpdb;\r\n $charset_collate = $wpdb->get_charset_collate();\r\n $fullTableName = $wpdb->prefix . self::$tableName;\r\n\r\n $sql = \"CREATE TABLE $fullTableName (\r\n id mediumint(9) UNSIGNED NOT NULL AUTO_INCREMENT,\r\n first_name varchar(100) NOT NULL,\r\n last_name varchar(100) NOT NULL,\r\n email varchar(100) NOT NULL,\r\n validation_code varchar(200) NOT NULL,\r\n PRIMARY KEY id (id)\r\n ) $charset_collate;\";\r\n\r\n dbDelta($sql);\r\n add_option('ohs_newsletter_installed', 1);\r\n\r\n add_option('ohs_newsletter_sendgrid_api', \"\");\r\n add_option('ohs_newsletter_sendgrid_list', \"\");\r\n add_option('ohs_newsletter_redirect', \"\");\r\n }\r\n }", "public function install()\n\t{\n\t\tif (Shop::isFeatureActive()) {\n\t\t\tShop::setContext(Shop::CONTEXT_ALL);\n\t\t}\n\n\t\t//initialize empty settings\n\t\tConfiguration::updateValue('CLERK_PUBLIC_KEY', '');\n\t\tConfiguration::updateValue('CLERK_PRIVATE_KEY', '');\n\n\t\tConfiguration::updateValue('CLERK_SEARCH_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_SEARCH_TEMPLATE', '');\n\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_INCLUDE_CATEGORIES', 0);\n\t\tConfiguration::updateValue('CLERK_LIVESEARCH_TEMPLATE', '');\n\n\t\tConfiguration::updateValue('CLERK_POWERSTEP_ENABLED', 0);\n\t\tConfiguration::updateValue('CLERK_POWERSTEP_TEMPLATES', '');\n\n\t\treturn parent::install() &&\n $this->registerHook('top') &&\n\t\t\t$this->registerHook('footer') &&\n\t\t\t$this->registerHook('displayOrderConfirmation');\n\t}", "public function runInstallTasks();", "function install($data='') {\n subscribeToEvent($this->name, 'SAY');\n parent::install();\n }", "function dbInstall($data='') {\n/*\nmixcloud_favorites - \n*/\n $data = <<<EOD\n mixcloud_favorites: ID int(10) unsigned NOT NULL auto_increment\n mixcloud_favorites: TITLE varchar(100) NOT NULL DEFAULT ''\n mixcloud_favorites: STREAM varchar(255) NOT NULL DEFAULT ''\n mixcloud_favorites: ITEM_ID varchar(255) NOT NULL DEFAULT '' \nEOD;\n parent::dbInstall($data);\n }", "function wlms_plugin_install()\n{\n wlms_create_table();\n wlms_settings_data();\n}", "abstract public function installSQL();", "function AdminUsers_install()\n\t{\n\t}", "public function install () {\n\t\t$this->_log_version_number();\n\t}", "public function install() {\n\t\t\t$date = Symphony::Configuration()->get('date_format', 'region');\n\t\t\t$time = Symphony::Configuration()->get('time_format', 'region');\n\t\t\t$separator = Symphony::Configuration()->get('datetime_separator', 'region');\n\n\t\t\t// Store current date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', $date, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->set('time_format', $time, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->set('datetime_separator', $separator, 'lang-Finnish-storage');\n\t\t\tSymphony::Configuration()->write();\n\t\t}", "function dbInstall($data) {\r\n/*\r\nwatchfolders - Watchfolders\r\n*/\r\n $data = <<<EOD\r\n watchfolders: ID int(10) unsigned NOT NULL auto_increment\r\n watchfolders: TITLE varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: FOLDER varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: CHECK_MASK varchar(255) NOT NULL DEFAULT ''\r\n watchfolders: CHECK_LATEST datetime\r\n watchfolders: CHECK_NEXT datetime\r\n watchfolders: CHECK_INTERVAL int(255) NOT NULL DEFAULT '0'\r\n watchfolders: SCRIPT_ID int(10) NOT NULL DEFAULT '0'\r\n watchfolders: CHECK_SUB int(3) NOT NULL DEFAULT '0'\r\n watchfolders: SCRIPT_TYPE int(255) NOT NULL DEFAULT '0'\r\n watchfolders: CHECK_RESULTS longtext\r\n\r\nEOD;\r\n parent::dbInstall($data);\r\n }", "function dbInstall($data='')\n {\n $data = <<<'EOD'\n apiai_actions: ID int(10) unsigned NOT NULL auto_increment\n apiai_actions: TITLE varchar(255) NOT NULL DEFAULT ''\n apiai_actions: LATEST_PARAMS varchar(255) NOT NULL DEFAULT '' \n apiai_actions: LATEST_USAGE datetime\n apiai_actions: CODE text\n\n apiai_entities: ID int(10) unsigned NOT NULL auto_increment\n apiai_entities: NAME varchar(255) NOT NULL DEFAULT ''\n apiai_entities: LAST_EXPORT datetime\n apiai_entities: CODE text\nEOD;\n parent::dbInstall($data);\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$terminals = SQLSelect('select NAME, TITLE from terminals');\n$total = count($terminals);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $entries[] = array('value' => $terminals[$i]['NAME'], 'synonyms' => array($terminals[$i]['TITLE']));\n}\n\n$entity = array(\n 'name' => 'terminal',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'terminal'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'terminal', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$users = SQLSelect('select USERNAME, NAME from users');\n$total = count($users);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $entries[] = array('value' => $users[$i]['USERNAME'], 'synonyms' => array($users[$i]['NAME']));\n}\n\n$entity = array(\n 'name' => 'user',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'user'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'user', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\n\n// --------------------------------------------------------------------\n $code = <<<'EOD'\n$rooms = getObjectsByClass('Rooms');\n$total = count($rooms);\n$entries = array();\nfor($i=0; $i<$total; $i++) {\n $name = $rooms[$i]['TITLE'];\n $entry = array('value' => $name);\n $title = gg($rooms[$i]['TITLE'].'.Title');\n if($title)\n $entry['synonyms'] = array($title);\n $entries[] = $entry;\n}\n\n$entity = array(\n 'name' => 'room',\n 'entries' => $entries\n);\n\nreturn $entity;\nEOD;\n \n $rec = SQLSelect(\"select * from apiai_entities where NAME LIKE 'room'\");\n if(!count($rec)) {\n $rec = array('NAME' => 'room', 'CODE' => $code);\n SQLInsert('apiai_entities', $rec);\n }\n }", "function amt_wsc_team_install(){\n}", "abstract public function installVirtuoso();", "public function installAction()\r\n\t{\r\n\t try {\r\n \t // run the install command\r\n \t $packageName = $this->_runCommand(\r\n \t $command = Faett_Core_Interfaces_Service::COMMAND_INSTALL\r\n \t );\r\n // attach a message to the session\r\n \t\tMage::getSingleton('adminhtml/session')->addSuccess(\r\n \t\t Mage::helper('adminhtml')->__(\r\n \t\t '201.success.package-install', $packageName\r\n \t\t )\r\n \t\t);\r\n\t } catch(Faett_Manager_Exceptions_InvalidCommandException $ice) {\r\n Mage::getSingleton('adminhtml/session')->addError(\r\n \t\t $ice->getMessage()\r\n \t\t);\r\n\t } catch(Exception $e) {\r\n Mage::getSingleton('adminhtml/session')->addError(\r\n \t\t Mage::helper('manager')->__(\r\n \t\t '900.pear.exception',\r\n \t\t $e->getMessage()\r\n \t\t )\r\n \t\t);\r\n\t }\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "public function install() {\n include(dirname(__FILE__) . '/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('actionProductUpdate') &&\n $this->registerHook('displayAdminProductsExtra');\n }", "public function install()\n {\n // create tables\n try {\n DoctrineHelper::createSchema($this->entityManager, array('PostCalendar_Entity_CalendarEvent',\n 'PostCalendar_Entity_EventCategory',\n 'PostCalendar_Entity_RecurException'));\n } catch (Exception $e) {\n LogUtil::registerError($this->__f('Error! Could not create tables (%s).', $e->getMessage()));\n return false;\n }\n\n // insert default category\n try {\n $this->createCategoryTree();\n } catch (Exception $e) {\n LogUtil::registerError($this->__f('Did not create default categories (%s).', $e->getMessage()));\n }\n\n\n // PostCalendar Default Settings\n $defaultsettings = PostCalendar_Util::getdefaults();\n $result = $this->setVars($defaultsettings);\n if (!$result) {\n return LogUtil::registerError($this->__('Error! Could not set the default settings for PostCalendar.'));\n }\n\n $this->createinstallevent();\n\n HookUtil::registerSubscriberBundles($this->version->getHookSubscriberBundles());\n HookUtil::registerProviderBundles($this->version->getHookProviderBundles());\n\n // register handlers\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'get.pending_content', array('PostCalendar_Handlers', 'pendingContent'));\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'installer.module.uninstalled', array('PostCalendar_HookHandlers', 'moduleDelete'));\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'module_dispatch.service_links', array('PostCalendar_HookHandlers', 'servicelinks'));\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'controller.method_not_found', array('PostCalendar_HookHandlers', 'postcalendarhookconfig'));\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'controller.method_not_found', array('PostCalendar_HookHandlers', 'postcalendarhookconfigprocess'));\n EventUtil::registerPersistentModuleHandler('PostCalendar', 'module.content.gettypes', array('PostCalendar_Handlers', 'getTypes'));\n\n return true;\n }", "protected function install()\n {\n $this->modx->runProcessor('workspace/packages/scanLocal');\n $answer = $this->modx->runProcessor('workspace/packages/install',\n ['signature' => join('-', [self::PKG_NAME, self::PKG_VERSION, self::PKG_RELEASE])]\n );\n\n if ($answer) {\n $response = $answer->getResponse();\n echo $response['message'] . PHP_EOL;\n }\n\n $this->modx->getCacheManager()->refresh();\n $this->modx->reloadConfig();\n }", "public function install()\n\t{\n\t\tConfiguration::updateValue('ORDERLIST_LIVE_MODE', false);\n\n\t\tinclude(dirname(__FILE__).'/sql/install.php');\n\n\t\treturn parent::install() &&\n\t\t\t$this->registerHook('header') &&\n\t\t\t$this->registerHook('backOfficeHeader') &&\n\t\t\t$this->registerHook('displayCustomerAccount') &&\n\t\t\t$this->registerHook('displayProductAdditionalInfo');\n\t}", "function customs()\n\t{\n\t\t$custom = $this->ipsclass->load_class( ROOT_PATH.'mod_install/'.$this->xml_array['customs_group']['custom'][0]['script_name']['VALUE'].'.php', $this->xml_array['customs_group']['custom'][0]['script_name']['VALUE'] );\n\t\t$custom->xml_array =& $this->xml_array;\n\t\t\n\t\tif ( $this->ipsclass->input['un'] )\n\t\t{\n\t\t\t$custom->uninstall();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$custom->install();\n\t\t}\n\t}", "public function install(){\n\n return true;\n\n }", "function pm_demo_install() {\t\t\n\t\t//create llog\n\t\t$array = array();\n\t\t//add log to database\n\t\tself::createLog($array);\n }", "public function install()\n {\n $this->initConfig();\n $this->loadConfig();\n $this->config['installed']=GPC_VERSION2;\n $this->saveConfig();\n\n $result=GPCRequestBuilder::createTables();\n return($result);\n }", "function top10_install() {\r\n/* Creates new database field */\r\n//add_option('omekafeedpull_omekaroot', '/omeka', '', 'yes');\r\n}", "function Install()\n\t{\n\t\t#$user = $model->table('tp_users');\n\t\t$user = M(\"User\",\"tp_\",'AZ_DB_CONFIG');\n $user_list = $user->select();\n\t\techo \"user list:<pre>\";\n\t\tprint_r($user_list);\n\t\techo \"</pre>\";\n\t\tdie;\n\t\t$conn = mysql_connect(C('DB_HOST'), C('DB_USER'), C('DB_PWD')); \n\t\tif (!$conn)\n\t\t\texit('数据库配置不正确');\n\n\t\t$state = mysql_select_db(C('DB_NAME'), $conn);\n\t\tif (!$state)\n\t\t\texit('数据库连接不正确');\n\n\t\tmysql_query('SET NAMES UTF8');\n\t\t$result = mysql_list_tables(C('DB_NAME'));\n\t\t$i = 0;\n\t\twhile ($row = mysql_fetch_assoc($result))\n\t\t{\n\t\t\techo \"<pre>\";\n\t\t\tprint_r($row);\n\t\t\techo \"</pre>\";\n\t\t}\n\n\t\t$domain = strtolower($_SERVER['HTTP_HOST']);\n\t\t$domain = explode('.', $domain);\n\t\t$idsn \t= $domain[0];\n\t\t$sql \t= 'SELECT * FROM tp_shops WHERE idsn = \"' . $idsn . '\" LIMIT 1';\n\t\t$result = mysql_query($sql, $conn);\n\t\t$this->install_info = mysql_fetch_assoc($result);\n\t\t\n\t\t//判断一级域名是否合法\n\t\t$full_domain = $idsn . '.' . C('DOMAIN');\n\t\tif ($full_domain != strtolower($_SERVER['HTTP_HOST']))\n\t\t\texit('一级域名不合法');\n\n\t\t//判断2级域名是否合法\n\t\tif (!$this->install_info)\n\t\t\texit('二级域名不合法');\n\t}", "public function install() {\r\n\tforeach ($this->getModel() AS $model) {\r\n\t $this->getEntity($model->getName())->createTable();\r\n\t}\r\n }", "public function runSetupScripts()\n\t\t{\n\t\t\t$xmlResources = \\Z::getConfig()->getResources();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$installedResources = \\Z::getModel('core/extension')->getCollection()->load();\n\t\t\t}\n\t\t\tcatch (\\Sys\\Exception $e)\n\t\t\t{\n\t\t\t\t$this->initialInstall();\n\t\t\t\t$installedResources = \\Z::getModel('core/extension')->getCollection()->load();\n\t\t\t}\n\t\t\tforeach ($xmlResources as $name => $resource)\n\t\t\t{\n\t\t\t\t// this is the version we should have installed on our system\n\t\t\t\t$latestVersion = $resource['requiredVersion'];\n\t\t\t\t// this is the version we currently have on our system, if the\n\t\t\t\t// extension is installed at all\n\t\t\t\t$installedExtension = $installedResources->isInstalled($name);\n\t\t\t\tif ($installedExtension)\n\t\t\t\t\t$installedVersion = $installedExtension->getVersion();\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$installedVersion = '0.0.0';\n\t\t\t\t\t$installedExtension = \\Z::getModel('core/extension');\n\t\t\t\t}\n\t\t\t\t$end = 'install-'.$latestVersion.'.php';\n\t\t\t\t$start = 'install-'.$installedVersion.'.php';\n\t\t\t\tif ($latestVersion != $installedVersion)\n\t\t\t\t{\n\t\t\t\t\t$installerFilesLocation = \\Z::getConfig()->getModule($resource['module'])->getPath('sql/'.$name.'/');\n\t\t\t\t\t$handle = opendir($installerFilesLocation);\n\t\t\t\t\tif ($handle)\n\t\t\t\t\t{\n\t\t\t\t\t\twhile (FALSE !== ($file = readdir($handle)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (strpos($file, '.php') > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (($file > $start) && ($file <= $end))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->_executedFiles[] = $installerFilesLocation.$file;\n\t\t\t\t\t\t\t\t\t//echo $installerFilesLocation.$file.'<br/>';\n\t\t\t\t\t\t\t\t\tinclude $installerFilesLocation.$file;\n\t\t\t\t\t\t\t\t\t// after the script is executed, set the\n\t\t\t\t\t\t\t\t\t// current version in the extension table\n\t\t\t\t\t\t\t\t\tif ($installedExtension->getCode() != '')\n\t\t\t\t\t\t\t\t\t\t$installedExtension->setVersion($latestVersion);\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t$installedExtension->setVersion($latestVersion)\n\t\t\t\t\t\t\t\t\t\t\t->setCode($name);\n\t\t\t\t\t\t\t\t\t$installedExtension->save();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// execute the install script for $file\n\t\t\t\t\t\t\t\t// update the version in the table\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclosedir($handle);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new \\Sys\\Exception('Cannot open the location => %s of the setup install scripts',\n\t\t\t\t\t\t\t$installerFilesLocation);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "function dbInstall($data) {\n/*\nlagartoservers - lagarto Devices\nlagartoendpoints - lagarto Properties\n*/\n $data = <<<EOD\n\n lagartoservers: ID int(10) unsigned NOT NULL auto_increment\n lagartoservers: TITLE varchar(255) NOT NULL DEFAULT ''\n lagartoservers: MDID varchar(255) NOT NULL DEFAULT ''\n lagartoservers: TYPE varchar(255) NOT NULL DEFAULT ''\n lagartoservers: PORT int(10) NOT NULL DEFAULT '0'\n lagartoservers: ZMQPORT int(10) NOT NULL DEFAULT '0'\n lagartoservers: IP varchar(255) NOT NULL DEFAULT ''\n lagartoservers: PASSWORD varchar(255) NOT NULL DEFAULT ''\n lagartoservers: UPDATE_PERIOD int(10) NOT NULL DEFAULT '0'\n lagartoservers: NEXT_UPDATE datetime\n\n lagartoendpoints: ID int(10) unsigned NOT NULL auto_increment\n lagartoendpoints: SERVER_ID int(10) NOT NULL DEFAULT '0'\n lagartoendpoints: ENDPOINT_ID varchar(50) NOT NULL DEFAULT '0'\n lagartoendpoints: TITLE varchar(50) NOT NULL DEFAULT '0'\n lagartoendpoints: TYPE int(3) NOT NULL DEFAULT '0'\n lagartoendpoints: CURRENT_VALUE_STRING varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: TYPE_STRING varchar(20) NOT NULL DEFAULT ''\n lagartoendpoints: DIRECTION_STRING varchar(20) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_OBJECT varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_PROPERTY varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: LINKED_METHOD varchar(255) NOT NULL DEFAULT ''\n lagartoendpoints: UPDATED datetime\n\nEOD;\n parent::dbInstall($data);\n }", "function kkm_install() {\r\n\tglobal $wpdb, $install_sql;\r\n\t\r\n\t//Remove database tables if present\r\n\tkkm_uninstall(true);\r\n\t\r\n\t$wpdb->flush();\r\n\t$wpdb->query('begin'); //Start transaction\r\n\t\r\n\t/*\r\n\t * Run install script command by command\r\n\t */\r\n\t$error_occured = false;\r\n\t$sql_commands = preg_split('/(?<!\\\\\\\\);/', $install_sql);\r\n\tforeach ($sql_commands as $command) {\r\n\t\t$command = trim($command);\r\n\t\tif (!empty($command)) {\r\n\t\t\t$wpdb->flush();\r\n\t\t\t$wpdb->query($command);\r\n\t\t\tif (!empty($wpdb->last_error)) {\r\n\t\t\t\techo($command.\"\\n\\n\");\r\n\t\t\t\techo($wpdb->last_error);\r\n\t\t\t\t$error_occured = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t//Add format tags supported by the modules\r\n\tkkm_install_format_tags();\r\n\t\r\n\tif ($error_occured) {\r\n\t\t$wpdb->query('rollback'); //Roll back changes\r\n\t\tdie(__('Cannot create database tables.','kkm'));\r\n\t} else {\r\n\t\t$wpdb->query('commit'); //Commit\r\n\t}\r\n\t\r\n\t/*\r\n\t * Create dir struct for user data\r\n\t */\r\n\t$dirs = array(\r\n\t\t'kkm_dir' =>\t\tWP_CONTENT_DIR.'/kkm',\r\n\t\t'temp_dir' =>\t\tWP_CONTENT_DIR.'/kkm/temp',\r\n\t\t'doc_dir' =>\t\tWP_CONTENT_DIR.'/kkm/docs'\r\n\t);\r\n\t$stat = @stat(WP_CONTENT_DIR);\r\n\t$mode = $stat['mode'];// & 0000666;\r\n\tforeach ($dirs as $dir) {\r\n\t\tif (!is_dir($dir)) {\r\n\t\t\tmkdir($dir);\r\n\t\t}\r\n\t\t@chmod($dir, $mode);\r\n\t}\r\n\t\r\n\t/*\r\n\t * Write .htaccess files\r\n\t */\r\n\t$htaccess_content = \"deny from all\";\r\n\tfile_put_contents($dirs['kkm_dir'].'/.htaccess', $htaccess_content);\r\n}", "public function install()\n {\n if (!parent::install())\n {\n return false;\n }\n\n if (!$this->registerHooks(array('displayPayment', 'displayPaymentReturn')))\n {\n return false;\n }\n\n if (!$this->createPaynetPaymentsTable())\n {\n return false;\n }\n\n if (Shop::isFeatureActive())\n {\n Shop::setContext(Shop::CONTEXT_ALL);\n }\n\n if (!$this->saveConfig())\n {\n return false;\n }\n\n return true;\n }", "public function install(){\n\n\t\t$model = Advertikon::getCurrentModel();\n\n\t\ttry {\n\t\t\t$this->_checkCompatibility();\n\t\t}\n\t\tcatch( Exception\\Transport $e ) {\n\t\t\t$this->errorPage( $e->getData() , 424 , 'Failed Dependency' );\n\t\t}\n\n\t\t$this->_install();\n\n\t\t$config = Advertikon::getXmlConfig();\n\t\t$settingsModel = Advertikon::getExtendedModel( 'setting_setting' );\n\t\t$settings = $model->stripPrefix( $settingsModel->getSetting() );\n\t\t$model->merge( $settings , $config->getValues( '/' ) );\n\t\t$settingsModel->editSetting( $settings );\n\n\t\t//mark the extension as installed\n\t\tAdvertikon::getExtendedModel( 'setting_setting' )->setSettingValue( 'installed' , 1 );\n\t}", "public static function install()\n {\n DataWebGl::createTable();\n }", "public function install() {\n\t\t\t$date = Symphony::Configuration()->get('date_format', 'region');\n\t\t\t$time = Symphony::Configuration()->get('time_format', 'region');\n\t\t\t$separator = Symphony::Configuration()->get('datetime_separator', 'region');\n\n\t\t\t// Store current date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', $date, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->set('time_format', $time, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->set('datetime_separator', $separator, 'lang-slovak-storage');\n\t\t\tSymphony::Configuration()->write();\n\t\t}", "public function install()\n {\n Configuration::updateValue('MF_TITLE', 'Our Favourite Brands');\n Configuration::updateValue('MF_DESCRIPTION', 'Browse our favourite brands');\n Configuration::updateValue('MF_MAN_NUMBER', 0);\n Configuration::updateValue('MF_PER_ROW_DESKTOP', 4);\n Configuration::updateValue('MF_PER_ROW_TABLET', 3);\n Configuration::updateValue('MF_PER_ROW_MOBILE', 1);\n Configuration::updateValue('MF_MAN_ORDER', 'name_asc');\n Configuration::updateValue('MF_SHOW_MAN_NAME', 0);\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('displayHome');\n }", "public function install()\n {\n if (Shop::isFeatureActive())\n Shop::setContext(Shop::CONTEXT_ALL);\n\n\n if (!parent::install() ||\n !$this->registerHook('productfooter') ||\n !$this->registerHook('header') ||\n !Configuration::updateValue('BLOCKPRODUCTMANUFACTURER_NAME', 'Block Product Manufacturer')\n )\n return false;\n\n return true;\n }", "public function install () {\n $this->_log_version_number();\n }", "public static function install() {\n\t\terror_log('INSTALLL plugin');\n\t\t$product_list = Product_List::get();\n\t\t$product_list->create_product_list_table();\n\t\t$product_list->create_product_list_detail_table();\n\t\tadd_option( 'product_list_version', Product_List::PRODUCT_LIST_VERSION );\n\n\t\twp_schedule_event( time(), 'hourly', 'my_cron_event' );\n\n\t}", "public function install()\n {\n include(dirname(__FILE__).'/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('displayHome');\n }", "public function onPostInstall(Event $event): void\n {\n $this->onPostUpdate($event);\n }", "public function install()\n {\n $carrierConfig = array(\n 0 => array(\n 'name' => 'Custom Shipping',\n 'active' => true,\n 'deleted' => 0,\n 'id_tax_rule_group' => '2',\n 'shipping_handling' => false,\n 'range_behavior' => 0,\n 'delay' => array(\n 'fr' => 'Custom',\n 'en' => 'Custom',\n Language::getIsoById(Configuration::get('PS_LANG_DEFAULT')) => 'Custom',\n ),\n 'is_module' => true,\n 'shipping_external' => true,\n 'external_module_name' => 'ts_customshipping',\n 'need_range' => true,\n ),\n );\n\n $id_carrier1 = $this->installExternalCarrier($carrierConfig[0]);\n $Carrier = new Carrier((int) $id_carrier1);\n $Carrier->setTaxRulesGroup((int) $this->getTaxRulesGroupMostUsed());\n Configuration::updateValue('TS_CUSTOM_SHIPPING_CARRIER_ID', (int) $id_carrier1);\n\n return parent::install() && $this->registerHook('displayBackOfficeHeader');\n }", "function crowdx_install(){\r\n if (!is_plugin_active('phpx/phpx.php')){\r\n die('CrowdX requires the <a href=\"http://www.phpx.org/\" target=\"_new\">PHPX Framework</a>. Please install PHPX and then reinstall CrowdX.');\r\n }\r\n \r\n if (!get_option('crowdx_options')){\r\n //$sql = 'CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . '_cx_user` ( `wp_user_id` int(10) NOT NULL, `cx_user_active` tinyint(1) NOT NULL DEFAULT \\'0\\', UNIQUE KEY `wp_user_id` (wp_user_id`), KEY `cx_user_active` (`cx_user_active`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;';\r\n //$this->wpdb->query($sql);\r\n \r\n $options = array();\r\n $options['enable'] = false;\r\n $options['all_users'] = false;\r\n $options['server'] = 'http://yourserver';\r\n \r\n \r\n update_option('crowdx_options', $options);\r\n }\r\n }", "function hookInstall() {\n// $db = get_db()cou;\n//die(\"got to the installer method...\");\n $this->_saveVocabularies();\n }", "public function isDataInstalled() {\n $check = Mage::getModel('inventoryplus/install')\n ->getCollection()\n ->setPageSize(1)\n ->setCurPage(1)\n ->getFirstItem();\n if ($check->getStatus() != 1) {\n $isInsertData = Mage::getModel('inventoryplus/checkupdate')\n ->getCollection()\n ->setPageSize(1)\n ->setCurPage(1)\n ->getFirstItem()\n ->getIsInsertData();\n if ($isInsertData != 1) {\n return 0;\n } else {\n $check->setStatus(1);\n try {\n $check->save();\n } catch (Exception $e) {\n throw $e;\n }\n }\n }\n return 1;\n }", "public function install()\n\t{\n\t\treturn true;\n\t}", "function test_install(){\n \t}", "public function install()\n {\n // Set up module config variables\n $this->setVar('ztools_backupsdir', 'userdata/Ztools/backups');\n $this->setVar('ztools_scriptsdir', 'userdata/Ztools/scripts');\n $this->setVar('ztools_scriptssort', '0');\n $this->setVar('ztools_scriptseditor', '1');\n $this->setVar('ztools_showphpinfo', '1');\n $this->setVar('ztools_downloaduseranges', '0');\n $this->setVar('ztools_url_cpanel', '');\n $this->setVar('ztools_url_phpmyadmin', '');\n $this->setVar('ztools_exportmethod', '2');\n $this->setVar('ztools_exportcompress', '0');\n $this->setVar('ztools_expmethodshow', '1');\n $this->setVar('ztools_mysqldumpexe', '');\n\n // Register hooks\n HookUtil::registerSubscriberBundles($this->version->getHookSubscriberBundles());\n\n return true;\n }", "public function install()\n {\n /**\n * Add the information into the database.\n * This is commented out so we don't actually\n * create anything.\n */\n $this->uninstall();\n $sql = Schema::createTable(\n $this->tablename,\n true,\n array(\n 'rID',\n 'rName',\n 'rDesc',\n 'rCreatedBy',\n 'rCreatedTime'\n ),\n array(\n 'INTEGER',\n 'VARCHAR(255)',\n 'LONGTEXT',\n 'VARCHAR(40)',\n 'TIMESTAMP'\n ),\n array(\n false,\n false,\n false,\n false,\n false\n ),\n array(\n false,\n false,\n false,\n false,\n 'CURRENT_TIMESTAMP'\n ),\n array(\n 'rID',\n 'rName'\n ),\n 'MyISAM',\n 'utf8',\n 'rID',\n 'rID'\n );\n\n if (!self::$DB->query($sql)) {\n return false;\n } else {\n $sql = sprintf(\n \"INSERT INTO `%s` VALUES\"\n . \"(1, 'Administrator', 'FOG Administrator', 'fog', NOW()),\"\n . \"(2, 'Technician', 'FOG Technician', 'fog', NOW())\",\n $this->tablename\n );\n self::$DB->query($sql);\n }\n return self::getClass('AccessControlAssociationManager')->install();\n }" ]
[ "0.728193", "0.728193", "0.7153113", "0.7153113", "0.7073944", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.6849865", "0.6809988", "0.67987514", "0.67848814", "0.6744894", "0.6724681", "0.66995364", "0.66390264", "0.66146016", "0.65689033", "0.65605325", "0.65605325", "0.6560347", "0.6552162", "0.6499989", "0.6492102", "0.6492102", "0.6490683", "0.6476538", "0.64756864", "0.6461537", "0.63875145", "0.63836426", "0.63629043", "0.63263786", "0.62692887", "0.6255291", "0.62319416", "0.6210759", "0.6208485", "0.619424", "0.6184128", "0.6176587", "0.6171552", "0.61711603", "0.6163156", "0.6152371", "0.6139356", "0.6132061", "0.6127912", "0.6116774", "0.6116234", "0.611086", "0.6098481", "0.60487944", "0.60486424", "0.60440755", "0.6040573", "0.6039675", "0.60106766", "0.60012734", "0.59952664", "0.5991874", "0.5974633", "0.5971209", "0.59707904", "0.59684545", "0.5967028", "0.5964172", "0.59561604", "0.5938692", "0.59337205", "0.5932732", "0.59236544", "0.5921695", "0.59096164", "0.5905458", "0.5901039", "0.5899258", "0.588661", "0.5876486", "0.585966", "0.5857527", "0.58567244", "0.58282936", "0.5827648", "0.58106023", "0.58017516", "0.57891005", "0.5786798", "0.5779912", "0.5772566", "0.5770654", "0.5768065", "0.57669514", "0.57610476", "0.5754378", "0.5743298", "0.5723391", "0.57179064" ]
0.8170202
0
Get the description for an enum value.
Получить описание значения перечисления.
public static function getDescription($value): string { return static::getLocalizedDescription($value) ?? static::getKey($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusDescription($value)\n {\n $status = $this->getEveryStatus();\n\n if (isset($status[$value])) {\n return $status[$value];\n }\n\n return $status['D'];\n }", "public static function getDescription($value): string\n {\n switch ($value) {\n case self::PENDING:\n return '未完了';\n break;\n case self::RECEIVED:\n return '完了';\n break;\n \n default:break;\n }\n\n return parent::getDescription($value);\n }", "public function getEnumvalue()\n {\n return $this->enumvalue;\n }", "public static function getDescription($value): string\n {\n if ($value === self::ACQUISITION) {\n return '取得ポイント';\n } elseif ($value === self::CONSUMPTION) {\n return '消費ポイント';\n }\n\n return parent::getDescription($value);\n }", "public function getDescription() {\n\t\t$field = $this->getDescriptionField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "public function getDescription() {\n return self::getDescriptionType($this->_type);\n }", "public function description($value = null)\n \t{\n \t\tif ($value != null) $this->_description = $value;\n \t\telse return $this->_description;\n \t}", "public static function getDescription($value): string\n {\n $key = self::getKey($value);\n \n if (ctype_upper($key)) {\n $key = strtolower($key);\n }\n \n return ucfirst(str_replace('_', ' ', snake_case($key)));\n }", "public function getDescription() \n {\n return $this->_fields['Description']['FieldValue'];\n }", "public function message(): string|array\n {\n return trans()->has('validation.enum_value')\n ? __('validation.enum_value')\n : __('laravelEnum::messages.enum_value');\n }", "public function getDescription()\n {\n return $this->__get(self::FIELD_DESCRIPTION); \n }", "public function __toString() {\n\t\ttry {\n\t\t\treturn array_flip($this->getConstants())[$this->value];\n\t\t\t// when the value is not in the constants\n\t\t} catch(Exception $e) {\n\t\t\treturn \"Invalid value \".$this->value;\n\t\t}\n\t}", "public function getEnumeration(): string\n {\n return $this->enumeration;\n }", "public function getDesc()\n {\n return $this->get(self::_DESC);\n }", "public function getValueDescription() {\n\t\t\n\t\t$test_service = t3lib_div::makeInstanceService('caretaker_test_service',$this->test_service_type);\n\t\t\n\t\tif ($test_service){\n\t\t\treturn $test_service->getValueDescription();\n\t\t} else {\n\t\t\treturn 'unknown service '.$this->test_service_type;\n\t\t}\n\t}", "public static function getDescription()\n {\n return self::$description;\n }", "final public static function Label( $enumType, $enumValue )\n {\n $result = 'IllegalValue';\n\n if ( class_exists( $enumType, false ) )\n {\n $reflector = new ReflectionClass( $enumType );\n\n foreach( $reflector->getConstants() as $key => $val )\n {\n if ( $val == $enumValue )\n {\n $result = $key;\n break;\n }\n }\n }\n return $result;\n }", "public function getDescriptionAttribute($value)\n {\n return $value;\n }", "public function getStatusDescription() {\n return $this->statusDescription;\n }", "public function getDesciption();", "public function getDescription() {\n\t\treturn self::$_description;\n\t}", "public function getTypeDesc () {\n return self::$typeMap[$this->type];\n }", "public static function description()\n {\n return static::$_description;\n }", "public function getDescription() {\n return($this->{Foomy_Model_Role_Peer::F_DESCRIPTION});\n }", "public function getDescription()\n {\n return self::QUALITY_MAP[$this->qualityID]['description'];\n }", "public static function getDescription(): string\n {\n return static::$description;\n }", "public function getDescription()\n {\n return $this->_Description;\n }", "public function getTypeDesc(){\n $type = $this->type;\n $arr = self::getTypeDescArr();\n return $arr[$type] ?? \"\";\n }", "public function GetTypeDesc(): string {\n\t\tswitch($this->debugType) {\n\t\t\tcase self::NONE: \treturn \"NONE\";\n\t\t\tcase self::LOG: \treturn \"LOG\";\n\t\t\tcase self::DEBUG:\treturn \"DEBUG\";\n\t\t\tcase self::DEV:\t\treturn \"DEV\";\n\t\t\tdefault: \t\t\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public function getStatusDescription()\n {\n return isset($this->statusDescription) ? $this->statusDescription : null;\n }", "public function getDescription() {\n return $this->desc;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->_description;\n\t}", "public static function getDescription();", "public function getDescription() {\n\t\treturn $this->_description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function get_description()\n {\n return strtoupper($this->description);\n }", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function getDescription()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description()\n {\n return $this->get_default_property(self::PROPERTY_DESCRIPTION);\n }", "public function getDescription()\n {\n $statistics = $this->getStatistics();\n\n return sprintf(\n '%s [%s (%d%%) used, %s available]',\n $this->getLabel(),\n binary_format($statistics['used']),\n $statistics['percentage'],\n binary_format($statistics['available'])\n );\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription() {\n return $this->_get( 'description' );\n }", "function getDescription() \n {\n return $this->getValueByFieldName( 'statevar_desc' );\n }", "function get_description()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\r\n }", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "public function getDescription()\r\n {\r\n return $this->m_description;\r\n }", "public function getDescription()\n {\n return $this->_description;\n }", "public function getDesc()\n {\n return $this->Desc;\n }", "function get_description()\n {\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\n }", "static public function getDescription(): string\n {\n return static::$description;\n }", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription();", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\n {\n return $this->_description;\n }", "public function getDescription() {\r\n return $this->description;\r\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }" ]
[ "0.729808", "0.6696256", "0.6622626", "0.66111773", "0.6537815", "0.6507612", "0.6460673", "0.643342", "0.63763815", "0.636937", "0.6343878", "0.62796587", "0.6253956", "0.6248732", "0.6213775", "0.61919093", "0.6179035", "0.6177627", "0.6158251", "0.6118068", "0.6096676", "0.60598695", "0.60299927", "0.6024142", "0.60175073", "0.60116845", "0.59922236", "0.598155", "0.5980482", "0.59708595", "0.59599555", "0.59516764", "0.59516764", "0.59516764", "0.5923374", "0.5923374", "0.5923374", "0.5917039", "0.59161216", "0.59158504", "0.59145224", "0.59145224", "0.59145224", "0.59145224", "0.59145224", "0.59145224", "0.5913748", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.59124154", "0.5909566", "0.5907153", "0.59025556", "0.5900338", "0.5897898", "0.5889558", "0.5886862", "0.5886862", "0.5883811", "0.5883811", "0.5882844", "0.5882534", "0.5881669", "0.5869592", "0.58670014", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.58656275", "0.5862587", "0.5862587", "0.58611065", "0.5856064", "0.5851379", "0.5851379", "0.5851379", "0.5851379" ]
0.70144653
1
Tests Transform_Unserialize_Serial>process() with a chain
Тестирование Transform_Unserialize_Serial>process() с цепочкой
public function testProcess_Chain() { $mock = $this->getMock('Q\Transform', array('process')); $mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:"a";a:1:{s:1:"c";s:3:"abc";}s:1:"d";s:1:"e";}')); $transform = new Transform_Unserialize_Serial(); $transform->chainInput($mock); $contents = $transform->process('test'); $this->assertType('Q\Transform_Unserialize_Serial', $transform); $this->assertEquals(array('a'=>array('c'=>'abc'), 'd'=>'e'), $contents); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $transform->getReverse());\n }", "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform1 = new Transform_Unserialize_Serial();\n $transform2 = new Transform_Unserialize_Serial();\n \n $transform2->chainInput($mock);\n $transform1->chainInput($transform2);\n \n $this->assertEquals('reverse of mock transformer', $transform1->getReverse());\n }", "public function testCompress_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('process'));\n $mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue(\"a test string\"));\n \n $this->Compress_Gzip->chainInput($mock);\n $contents = $this->Compress_Gzip->process('test');\n\n $this->assertType('Q\\Transform_Compress_Gzip', $this->Compress_Gzip);\n $this->assertEquals(gzcompress(\"a test string\"), $contents);\n }", "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $this->Compress_Gzip->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $this->Compress_Gzip->getReverse());\n }", "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform1 = new Transform_Compress_Gzip();\n $transform2 = new Transform_Compress_Gzip();\n \n $transform2->chainInput($mock);\n $transform1->chainInput($transform2);\n \n $this->assertEquals('reverse of mock transformer', $transform1->getReverse());\n }", "public function testProcessSimple2 () {\n \t$csv = <<<TESTDATA\nid,name,qty,qty2\n11,abc,4,41\n11,abc1,4,42\nTESTDATA;\n \tfile_put_contents(\"testCSV.csv\", $csv);\n \tfile_put_contents(\"testCSVOut.csv\", '');\n \tfile_put_contents(\"testCSVOut1.csv\", '');\n \t\n \t\n \t$csvOutput = <<<TESTDATA\nid,name,qty,qty2\n11,abc,4,41\n11,abc1,4,44\n\nTESTDATA;\n \t$csvOutput1 = <<<TESTDATA\nid,name,qty,qty2\n11,abc1,4,44\n\nTESTDATA;\n\n \t$input = (new CSV(\"testCSV.csv\"))\n \t\t->process( function ($v) { return $v['name'] == 'abc1';},\n\t\t \t(new Transient())\n\t\t \t->modify (function(&$data) { $data['qty2'] += 2;\n\t\t \t\t\t\t\treturn Entity::CONTINUE_PROCESSING;\n\t \t\t})\n\t\t \t->saveTo(new CSV(\"testCSVOut1.csv\"))\n\t \t\t)\n \t\t->saveTo(new CSV(\"testCSVOut.csv\"))\n \t\t->transfer();\n \t\n \t$this->assertEquals($csvOutput, file_get_contents(\"testCSVOut.csv\"));\n \t$this->assertEquals($csvOutput1, file_get_contents(\"testCSVOut1.csv\"));\n \t\n \tunlink(\"testCSVOut.csv\");\n \tunlink(\"testCSVOut1.csv\");\n \t\n }", "public function __construct( $input ) {\n $this->mParcelableTypes = array(\n 'boolean' => new BooleanTransformer(),\n 'Boolean' => new BooleanTransformerSafe(),\n 'byte' => new IntegratedTransformer( 'Byte' ),\n 'double' => new IntegratedTransformer( 'Double' ),\n 'float' => new IntegratedTransformer( 'Float' ),\n 'int' => new IntegratedTransformer( 'Int' ),\n 'long' => new IntegratedTransformer( 'Long' ),\n 'Byte' => new IntegratedTransformerSafe( 'Byte' ),\n 'Double' => new IntegratedTransformerSafe( 'Double' ),\n 'Float' => new IntegratedTransformerSafe( 'Float' ),\n 'Integer' => new IntegratedTransformerSafe( 'Int' ),\n 'Long' => new IntegratedTransformerSafe( 'Long' ),\n 'String' => new IntegratedTransformer( 'String' ),\n 'Bundle' => new IntegratedTransformer( 'Bundle' ),\n 'Date' => new DateTransformer(),\n 'List' => new ListTransformer( 'ArrayList' ),\n 'AbstractList' => new ListTransformer( 'LinkedList' ),\n 'AbstractSequentialList' => new ListTransformer( 'ArrayList' ),\n 'ArrayList' => new ListTransformer( 'ArrayList' ),\n 'AttributeList' => new ListTransformer( 'AttributeList' ),\n 'CopyOnWriteArrayList' => new ListTransformer( 'CopyOnWriteArrayList' ),\n 'LinkedList' => new ListTransformer( 'LinkedList' ),\n 'RoleList' => new ListTransformer( 'RoleList' ),\n 'RoleUnresolvedList' => new ListTransformer( 'RoleUnresolvedList' ),\n 'Stack' => new ListTransformer( 'Stack' ),\n 'Vector' => new ListTransformer( 'Vector' ),\n 'JSONObject' => new JSONTransformer( 'Object' ),\n 'JSONArray' => new JSONTransformer( 'Array' ),\n );\n\n // These are some of the most widespread types that cannot be written to Parcel \n $this->mUnsupportedTypes = array(\n 'File',\n 'Map',\n 'Runnable',\n 'Thread',\n 'Handler',\n 'AsyncTask' \n );\n\n $this->parse( $input );\n }", "public function testProcess2()\n {\n $unit1 = $this->getUnit('customer');\n $unit1->setReversedMapping([\n 'email' => 'map.email',\n 'name' => function ($map) {\n return $map['fname'] . ' ' . $map['lname'];\n },\n 'age' => 'map.age',\n ]);\n $unit1->setReversedConnection([\n 'customer_id' => 'id',\n ]);\n $unit1->setMapping([\n 'id' => 'map.id',\n 'fname' => function ($map) {\n list($fname) = explode(\" \", $map['name']);\n return $fname;\n },\n 'lname' => function ($map) {\n list(, $lname) = explode(\" \", $map['name']);\n return $lname;\n },\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, 'Olaf', 'Stone', 'tst1@example.com', 30],\n [2, 'Peter', 'Ostridge', 'pete111@eol.com', 33],\n false,\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('address');\n $unit2->setReversedMapping([\n 'addr_city' => 'map.city',\n 'addr_street' => 'map.street',\n ]);\n $unit2->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.addr_id',\n 'street' => 'map.addr_street',\n 'city' => 'map.addr_city',\n 'parent_id' => 'map.id',\n ]);\n $unit2->addContribution(function (MapInterface $map) {\n $map->incr('addr_id', 1);\n });\n $unit2->setFilesystem($this->getFS(\n [\n [1, '4100 Marine dr. App. 54', 'Chicago', 1],\n [2, '3300 St. George, Suite 300', 'New York', 1],\n [3, '111 W Jackson', 'Chicago', 4],\n [4, '111 W Jackson-2', 'Chicago', 4],\n // next rows will not be read due to LogicException\n // [5, 'Hollywood', 'LA', 4],\n // false,\n ]\n ));\n $unit2->setTmpFileName('address_tmp.csv');\n $unit2->setParent($unit1);\n\n $expected = [\n [[\n 'email' => 'tst1@example.com',\n 'name' => 'Olaf Stone',\n 'age' => 30,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '4100 Marine dr. App. 54',\n ],\n [\n 'addr_city' => 'New York',\n 'addr_street' => '3300 St. George, Suite 300',\n ]\n ]\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2], $expected);\n $action->process($this->getResultMock());\n }", "function testChaining(){\n\t\t#mdx:chaining\n\t\tParam::get('number')\n\t\t\t->filters()\n\t\t\t\t->strip('/[^\\d]/')\n\t\t\t\t->required()\n\t\t\t\t->minlen(5)\n\t\t\t\t->maxlen(10);\n\n\t\t$result = Param::get('number')->process([\n\t\t\t'number' => '203-40-10/80'\n\t\t]);\n\t\t#/mdx var_dump($result->output)\n\t\t$this->assertEquals('203401080',$result->output);\n\n\t}", "public function testProcess()\n {\n $unit1 = $this->getUnit('customer');\n $unit1->setReversedMapping([\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setReversedConnection([\n 'customer_id' => 'id',\n ]);\n $unit1->setMapping([\n 'id' => 'map.id',\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, 'tst1@example.com', 30],\n [2, 'pete111@eol.com', 33],\n [3, 'bm@gmail.com', 55],\n [4, 'pp@gmail.com', 11],\n false,\n ]\n ));\n $unit1->setIsEntityCondition(function (\n MapInterface $map,\n MapInterface $oldmap\n ) {\n return $oldmap->offsetGet('email') != $map->offsetGet('email');\n });\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('customer_data');\n $unit2->setReversedMapping([\n 'name' => function ($map) {\n return $map['fname'] . ' ' . $map['lname'];\n },\n ]);\n $unit2->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.data_id',\n 'parent_id' => 'map.id',\n 'fname' => function ($map) {\n list($fname) = explode(\" \", $map['name']);\n return $fname;\n },\n 'lname' => function ($map) {\n list(, $lname) = explode(\" \", $map['name']);\n return $lname;\n },\n ]);\n $unit2->setTmpFileName('customer_data_tmp.csv');\n $unit2->setFilesystem($this->getFS(\n [\n [1, 1, 'Olaf', 'Stone'],\n [2, 2, 'Peter', 'Ostridge'],\n [3, 3, 'Bill', 'Murray'],\n [4, 4, 'Peter', 'Pan'],\n false,\n ]\n ));\n $unit2->addSibling($unit1);\n\n $unit3 = $this->getUnit('address');\n $unit3->setReversedMapping([\n 'addr_city' => 'map.city',\n 'addr_street' => 'map.street',\n ]);\n $unit3->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit3->setMapping([\n 'id' => 'map.addr_id',\n 'street' => 'map.addr_street',\n 'city' => 'map.addr_city',\n 'parent_id' => 'map.id',\n ]);\n $unit3->addContribution(function (MapInterface $map) {\n $map->incr('addr_id', 1);\n });\n $unit3->setFilesystem($this->getFS(\n [\n [1, '4100 Marine dr. App. 54', 'Chicago', 1],\n [2, '3300 St. George, Suite 300', 'New York', 1],\n [3, '111 W Jackson', 'Chicago', 2],\n [4, '111 W Jackson-2', 'Chicago', 3],\n [5, '111 W Jackson-3', 'Chicago', 3],\n [6, 'Hollywood', 'LA', 3],\n [7, 'fake', 'LA', 3],\n [8, 'Fairy Tale', 'NY', 4],\n false,\n ]\n ));\n $unit3->setTmpFileName('address_tmp.csv');\n $unit3->setParent($unit1);\n\n $expected = [\n [[\n 'email' => 'tst1@example.com',\n 'name' => 'Olaf Stone',\n 'age' => 30,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '4100 Marine dr. App. 54',\n ],\n [\n 'addr_city' => 'New York',\n 'addr_street' => '3300 St. George, Suite 300',\n ],\n ]\n ]],\n [[\n 'email' => 'pete111@eol.com',\n 'name' => 'Peter Ostridge',\n 'age' => 33,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson',\n ]\n ]\n ]],\n [[\n 'email' => 'bm@gmail.com',\n 'name' => 'Bill Murray',\n 'age' => 55,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-2',\n ],\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-3',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'Hollywood',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'fake',\n ]\n ]\n ]],\n [[\n 'email' => 'pp@gmail.com',\n 'name' => 'Peter Pan',\n 'age' => 11,\n 'address' => [\n [\n 'addr_city' => 'NY',\n 'addr_street' => 'Fairy Tale',\n ]\n ]\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2, $unit3], $expected);\n $action->process($this->getResultMock());\n }", "public function testProcessWeirdCase1()\n {\n $unit1 = $this->getUnit('test');\n $unit1->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit1->setReversedConnection([\n 'tid' => 'id',\n ]);\n $unit1->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'id' => 'id',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1', '1'],\n false,\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('test2');\n $unit2->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit2->setReversedConnection([\n 'tid' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'parent_id' => 'id',\n ]);\n $unit2->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1', '2'],\n false,\n ]\n ));\n $unit2->setTmpFileName('customer_tmp.csv');\n $unit2->setParent($unit1);\n\n $action = $this->getAction([$unit1, $unit2]);\n $action->process($this->getResultMock());\n }", "public function testSerialization(): void\n {\n $items = new ArrayObject([\n 'a' => 1,\n 'b' => 2,\n 'c' => 3,\n ]);\n $expected = (array)$items;\n\n $iterator = new BufferedIterator($items);\n\n $serialized = serialize($iterator);\n $outcome = unserialize($serialized);\n $this->assertEquals($expected, $outcome->toArray());\n }", "abstract protected function _process();", "abstract protected function _process();", "abstract public function get__do_process ( $data );", "public function testProcess1b2l()\n {\n $unit1 = $this->getUnit('customer');\n $unit1->setReversedMapping([\n 'email' => 'map.email',\n 'name' => function ($map) {\n return $map['fname'] . ' ' . $map['lname'];\n },\n 'age' => 'map.age',\n ]);\n $unit1->setReversedConnection([\n 'customer_id' => 'id',\n ]);\n $unit1->setMapping([\n 'id' => 'map.id',\n 'email' => 'map.email',\n 'age' => 'map.age',\n 'fname' => function ($map) {\n list($fname) = explode(\" \", $map['name']);\n return $fname;\n },\n 'lname' => function ($map) {\n list(, $lname) = explode(\" \", $map['name']);\n return $lname;\n },\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, 'tst1@example.com', 30, 'Olaf', 'Stone'],\n [2, 'pete111@eol.com', 33, 'Peter', 'Ostridge'],\n [3, 'bm@gmail.com', 55, 'Bill', 'Murray'],\n [4, 'pp@gmail.com', 11, 'Peter', 'Pan'],\n false,\n ]\n ));\n $unit1->setIsEntityCondition(function (\n MapInterface $map,\n MapInterface $oldmap\n ) {\n return $oldmap->offsetGet('email') != $map->offsetGet('email');\n });\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit3 = $this->getUnit('address');\n $unit3->setReversedMapping([\n 'addr_city' => 'map.city',\n ]);\n $unit3->setReversedConnection([\n 'customer_id' => 'parent_id',\n 'address_id' => 'id',\n ]);\n $unit3->setMapping([\n 'id' => 'map.addr_id',\n 'city' => 'map.addr_city',\n 'parent_id' => 'map.id',\n ]);\n $unit3->addContribution(function (MapInterface $map) {\n $map->incr('addr_id', 1);\n });\n $unit3->setFilesystem($this->getFS(\n [\n [1, 'Chicago', 1],\n [2, 'New York', 1],\n [3, 'Chicago', 2],\n [4, 'Chicago', 3],\n [5, 'Chicago', 3],\n [6, 'LA', 3],\n [7, 'LA', 3],\n [8, 'NY', 4],\n false,\n ]\n ));\n $unit3->setTmpFileName('address_tmp.csv');\n $unit3->setParent($unit1);\n\n $unit2 = $this->getUnit('address_data');\n $unit2->setReversedMapping([\n 'addr_street' => 'map.street',\n ]);\n $unit2->setReversedConnection([\n 'address_id' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.addr_data_id',\n 'street' => 'map.addr_street',\n 'parent_id' => 'map.address_id',\n ]);\n $unit2->setTmpFileName('customer_data_tmp.csv');\n $unit2->setFilesystem($this->getFS(\n [\n [1, '4100 Marine dr. App. 54', 1],\n [2, '3300 St. George, Suite 300', 2],\n [3, '111 W Jackson', 3],\n [4, '111 W Jackson-2', 4],\n [5, '111 W Jackson-3', 5],\n [6, 'Hollywood', 6],\n [7, 'fake', 7],\n [8, 'Fairy Tale', 8],\n false,\n ]\n ));\n $unit2->addSibling($unit3);\n\n $expected = [\n [[\n 'email' => 'tst1@example.com',\n 'name' => 'Olaf Stone',\n 'age' => 30,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '4100 Marine dr. App. 54',\n ],\n [\n 'addr_city' => 'New York',\n 'addr_street' => '3300 St. George, Suite 300',\n ],\n ]\n ]],\n [[\n 'email' => 'pete111@eol.com',\n 'name' => 'Peter Ostridge',\n 'age' => 33,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson',\n ]\n ]\n ]],\n [[\n 'email' => 'bm@gmail.com',\n 'name' => 'Bill Murray',\n 'age' => 55,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-2',\n ],\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-3',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'Hollywood',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'fake',\n ]\n ]\n ]],\n [[\n 'email' => 'pp@gmail.com',\n 'name' => 'Peter Pan',\n 'age' => 11,\n 'address' => [\n [\n 'addr_city' => 'NY',\n 'addr_street' => 'Fairy Tale',\n ]\n ]\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2, $unit3], $expected);\n $action->process($this->getResultMock());\n }", "function deserialise(string $data): void;", "abstract protected function unSerializeData();", "public function testProcessWeirdCase2()\n {\n $unit1 = $this->getUnit('test');\n $unit1->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit1->setReversedConnection([\n 'tid' => 'id',\n ]);\n $unit1->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'id' => 'id',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1', '1'],\n false,\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('test2');\n $unit2->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit2->setReversedConnection([\n 'tid' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'parent_id' => 'id',\n ]);\n $unit2->setFilesystem($this->getFS(\n [\n false\n ]\n ));\n $unit2->setTmpFileName('customer_tmp.csv');\n $unit2->setParent($unit1);\n\n $action = $this->getAction([$unit1, $unit2]);\n $action->process($this->getResultMock());\n }", "public function run()\n {\n $result = $this->serializeData(parent::run());\n $result = $this->filterResult($result);\n return $result;\n }", "abstract protected function process();", "abstract protected function process();", "abstract protected function process();", "abstract protected function process();", "public function testProcess(): void\n {\n $this->scopeConfig->method('getValue')->willReturnCallback(static function ($path) {\n if ($path === Import::XML_INRIVER_IMPORT_PATH_CSV) {\n return CsvImportByUrlOperationTest::INRIVER_IMPORT_CSV_PATH;\n }\n\n return null;\n });\n\n $this->downloader->method('download')->willReturn(10);\n\n $output = $this->createMock(ReadInterface::class);\n $output->method('getAbsolutePath')->willReturn(self::FAKE_PATH);\n $this->filesystem->method('getDirectoryRead')->willReturn($output);\n\n $csvImportByUrlOperation = $this->getNewSubject();\n\n $csvImportByUrlOperation->post($this->message);\n }", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "function _unserialize( $serial ) {\n\t\tif( function_exists( 'gzinflate' ) ) {\n\t\t\t$decomp = @gzinflate( $serial );\n\t\t\tif( false !== $decomp ) {\n\t\t\t\t$serial = $decomp;\n\t\t\t}\n\t\t}\n\t\treturn unserialize( $serial );\n\t}", "public function testTransform_invalid()\n {\n $this->transformer->transform('invalid');\n }", "public function testDoubleOptionalProcess()\n {\n $unit1 = $this->getUnit('shipment');\n $unit1->setReversedMapping([\n 'total' => 'map.total'\n ]);\n $unit1->setReversedConnection([\n 'shipment_id' => 'shipment_id',\n ]);\n $unit1->setMapping([\n 'shipment_id' => 'map.shipment_id',\n 'total' => 'map.total',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, 30],\n [2, 33],\n [3, 55],\n [4, 11],\n false,\n ]\n ));\n $unit1->setIsEntityCondition(function (MapInterface $map) {\n return !empty($map['shipment_id']);\n });\n $unit1->setTmpFileName('shipment_tmp.csv');\n\n $unit2 = $this->getUnit('item');\n $unit2->setReversedMapping([\n 'item_name' => 'map.name',\n ]);\n $unit2->setReversedConnection([\n 'shipment_id' => 'shipment_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.incr(\"item_id\", 1)',\n 'name' => 'map.item_name',\n 'shipment_id' => 'map.shipment_id',\n ]);\n $unit2->setFilesystem($this->getFS(\n [\n [1, 'cool item', 1],\n [2, 'another super item', 1],\n [3, 'Coca Cola', 2],\n [4, 'Pepsi', 3],\n false,\n false,\n ]\n ));\n $unit2->setTmpFileName('item_tmp.csv');\n $unit2->setParent($unit1);\n $unit2->setOptional(true);\n\n $unit3 = $this->getUnit('tracking');\n $unit3->setReversedMapping([\n 'tracking_number' => 'map.tracking_number',\n ]);\n $unit3->setReversedConnection([\n 'shipment_id' => 'shipment_id',\n ]);\n $unit3->setMapping([\n 'id' => 'map.incr(\"track_id\", 1)',\n 'tracking_number' => 'map.tracking_number',\n 'shipment_id' => 'map.shipment_id',\n ]);\n $unit3->setFilesystem($this->getFS(\n [\n [1, '13122333', 3],\n [2, '13343443', 4],\n false,\n ]\n ));\n $unit3->setTmpFileName('tracking_tmp.csv');\n $unit3->addSibling($unit1);\n $unit3->setOptional(true);\n\n $expected = [\n [[\n 'total' => 30,\n 'tracking_number' => null,\n 'item' => [\n [\n 'item_name' => 'cool item'\n ],\n [\n 'item_name' => 'another super item'\n ],\n ],\n ]],\n [[\n 'total' => 33,\n 'tracking_number' => null,\n 'item' => [\n [\n 'item_name' => 'Coca Cola'\n ],\n ],\n ]],\n [[\n 'total' => 55,\n 'tracking_number' => '13122333',\n 'item' => [\n [\n 'item_name' => 'Pepsi'\n ],\n ],\n ]],\n [[\n 'total' => 11,\n 'tracking_number' => '13343443',\n 'item' => [\n [\n 'item_name' => null\n ],\n ],\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2, $unit3], $expected);\n $action->process($this->getResultMock());\n }", "public function doProcessData() {}", "public function process(): \\Generator;", "public function testChain()\n\t{\n\t\t$request = $this->createMock(\\Psr\\Http\\Message\\ServerRequestInterface::class);\n\n\t\t$response = $this->createMock(\\Psr\\Http\\Message\\ResponseInterface::class);\n\t\t$response->method('getReasonPhrase')->willReturn('ping');\n\n\t\t$middlewareAdaptor = $this->createMock(MiddlewareAdaptorInterface::class);\n\t\t$middlewareAdaptor->method('setResolver');\n\t\t$middlewareAdaptor->method('executePipeline')\n\t\t->with(\n\t\t\t$this->equalTo('pipelineFoo'),\n\t\t\t$this->equalTo($request),\n\t\t\t$this->equalTo(null)\n\t\t)\n\t\t->willReturn($response);\n\n\t\t$resolveAdaptor = $this->createMock(\\Weave\\Resolve\\ResolveAdaptorInterface::class);\n\t\t$dispatchAdaptor = $this->createMock(\\Weave\\Dispatch\\DispatchAdaptorInterface::class);\n\n\t\t$requestFactory = $this->createMock(\\Weave\\Http\\RequestFactoryInterface::class);\n\t\t$responseFactory = $this->createMock(\\Weave\\Http\\ResponseFactoryInterface::class);\n\t\t$emitter = $this->createMock(\\Weave\\Http\\ResponseEmitterInterface::class);\n\n\t\t$middleware = new Middleware(\n\t\t\t$middlewareAdaptor,\n\t\t\tfn () => 'pipelineFoo',\n\t\t\t$resolveAdaptor,\n\t\t\t$dispatchAdaptor,\n\t\t\t$requestFactory,\n\t\t\t$responseFactory,\n\t\t\t$emitter\n\t\t);\n\n\t\t$result = $middleware->chain('pipelineFoo', $request);\n\n\t\t$this->assertEquals('ping', $result->getReasonPhrase());\n\t}", "public function transform(){\r\n\t\tswitch($this->processor){\r\n\t\t\tcase 'saxon':\r\n\t\t\t\t$this->runSaxon();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'salbotron':\r\n\t\t\tdefault:\r\n\t\t\t\t$this->runSalbatron();\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function processData() {}", "abstract public function process();", "abstract public function process();", "abstract public function process();", "public function process($data);", "protected abstract function process();", "static function process($input, $params = array()) {\n\t\t$return = self::_preProcess($input);\n\t\t// ... Stub\n\t\tself::log('Import finished');\n\t\treturn $return;\n\t}", "function serializationAction(& $body)\n{\n\t$rawResponse = & $body->getResults();\n\n\terror_log (\"[SWX] INFO Method call result = $rawResponse\");\n\n\tadapterMap($rawResponse);\n\n\t$swxAssembler = new SwxAssembler();\n\n\tob_start();\n\n\t$swxAssembler->writeSwf($rawResponse, $GLOBALS['swx']['debug'], 4, $GLOBALS['swx']['url']);\n\n\t$rawResponse = ob_get_contents();\n\tob_end_clean();\n\n\t$body->setResults($rawResponse);\n}", "function MBunserialize($serial_str)\n{\n $serial_str = preg_replace_callback('!s:(\\d+):\"(.*?)\";!s', function($match){return 's:'.strlen($match['2']).':\"'.$match['2'] . '\";';}, $serial_str);\n $serial_str= str_replace(\"\\r\", \"\", $serial_str);\n return unserialize($serial_str);\n}", "public function testPreprocessingUnrotate()\n {\n }", "public function process(array $requestHeader, array $requestBody): Transcription;", "public function run(&$results)\n {\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.02-content-ascii.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"a\"],[\"2\",\"b\"],[\"3\",\"A\"],[\"4\",\"B\"],[\"5\",\"\"],[\"6\",\" abcd\"],[\"7\",\"abcd\"],[\"8\",\"abCD\"],[\"9\",\"ABcd\"],[\"10\",\"ab cd\"],[\"11\",\"ab CD\"],[\"12\",\"AB cd\"]];\n \\Flexio\\Tests\\Check::assertArray('A.1', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.03-content-unicode.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"\"],[\"2\",\"á é í ó ú ý Á É Í Ó Ú Ý\"],[\"3\",\"à è ì ò ù À È Ì Ò Ù\"],[\"4\",\"ä ë ï ö ü ÿ Ä Ë Ï Ö Ü Ÿ\"],[\"5\",\"â ê î ô û ð Â Ê Î Ô Û Ð\"],[\"6\",\"ã ñ õ Ã Ñ Õ\"],[\"7\",\"æ œ Æ Œ ß\"],[\"8\",\"å Å\"],[\"9\",\"ç Ç\"],[\"10\",\"ø Ø\"],[\"11\",\"¿ ¡\"],[\"12\",\"€ £ § º ©\"]];\n \\Flexio\\Tests\\Check::assertArray('A.2', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.04-content-integer.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"0\"],[\"2\",\"-1\"],[\"3\",\"1\"],[\"4\",\"9\"],[\"5\",\"10\"],[\"6\",\"-100000000\"],[\"7\",\"100000000\"],[\"8\",\"-100000001\"],[\"9\",\"100000001\"],[\"10\",\"\"],[\"11\",\"-999999999\"],[\"12\",\"999999999\"]];\n \\Flexio\\Tests\\Check::assertArray('A.3', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.05-content-decimal.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"0\"],[\"2\",\"-0.000000000001\"],[\"3\",\"0.000000000001\"],[\"4\",\"-0.4\"],[\"5\",\"0.4\"],[\"6\",\"-0.5\"],[\"7\",\"0.5\"],[\"8\",\"-0.9\"],[\"9\",\"0.9\"],[\"10\",\"\"],[\"11\",\"-9999999999999.9\"],[\"12\",\"9999999999999.9\"]];\n \\Flexio\\Tests\\Check::assertArray('A.4', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.06-content-number.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"123,456\"],[\"2\",\" 1.2345678\"],[\"3\",\"1,2345678\"],[\"4\",\"+123,456.78\"],[\"5\",\"-123.456,78\"],[\"6\",\"99999999999999999999\"],[\"7\",\"0.00000000000000000001\"],[\"8\",\"1/2\"],[\"9\",\"1/0\"],[\"10\",\"NaN\"],[\"11\",\"123.\"],[\"12\",\"- 123\"]];\n \\Flexio\\Tests\\Check::assertArray('A.5', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.07-content-scientific.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"0e10\"],[\"2\",\"+10E-1\"],[\"3\",\"1.23e+2\"],[\"4\",\"1,23e02\"],[\"5\",\" 1.23 E0\"],[\"6\",\"-.23e+1\"],[\"7\",\"123,456.78E-5\"],[\"8\",\"1.e02\"],[\"9\",\"1E\"],[\"10\",\"E1\"],[\"11\",\"1e-99\"],[\"12\",\"1e99\"]];\n \\Flexio\\Tests\\Check::assertArray('A.6', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.08-content-amount.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"0%\"],[\"2\",\" 1.2345%\"],[\"3\",\".1%\"],[\"4\",\"-98.6%\"],[\"5\",\"100,01 %\"],[\"6\",\"( 49% )\"],[\"7\",\"+7%\"],[\"8\",\"\"],[\"9\",\"NET WT. 20 OZ.\"],[\"10\",\"1 LB. 4 OZ.\"],[\"11\",\"(1 LB 4 OZ)\"],[\"12\",\"567g\"]];\n \\Flexio\\Tests\\Check::assertArray('A.7', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.09-content-financial.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"$1\"],[\"2\",\" $10\"],[\"3\",\"-$0.01\"],[\"4\",\"$ 1,234.56\"],[\"5\",\"$1,234,567.89\"],[\"6\",\"($1234567.89)\"],[\"7\",\"€1.234,56\"],[\"8\",\"€ 1.234.567,89 EUR\"],[\"9\",\"EUR 1.234.567,89\"],[\"10\",\"£ 1.234,56\"],[\"11\",\"£1.234.567,89\"],[\"12\",\"GBP 1.234.567,89\"]];\n \\Flexio\\Tests\\Check::assertArray('A.8', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.10-content-identifier.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"123456\"],[\"2\",\"000123456\"],[\"3\",\"123456000\"],[\"4\",\"001234560\"],[\"5\",\"000-123-456\"],[\"6\",\"000 123 456\"],[\"7\",\"000.123.456\"],[\"8\",\"(123) 456-7890\"],[\"9\",\"a123b456C\"],[\"10\",\"A01230B4560C\"],[\"11\",\"#98\"],[\"12\",\"\"]];\n \\Flexio\\Tests\\Check::assertArray('A.9', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.11-content-null.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"null\"],[\"2\",\"NULL\"],[\"3\",\"Null\"],[\"4\",null],[\"5\",\"\\\\\\\\N\"],[\"6\",\"\\\\\\\\\\\\\\\\N\"],[\"7\",\"\\\\n\"],[\"8\",\"\\\\\\\\n\"],[\"9\",\"\\\\\\\\\\\\\\\\n\"],[\"10\",\"\\\\0\"],[\"11\",\"\\\\\\\\0\"],[\"12\",\"\\\\\\\\\\\\\\\\0\"]];\n \\Flexio\\Tests\\Check::assertArray('A.10', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.12-content-escape.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"\\\\\"],[\"2\",\"\\\\\\\\\"],[\"3\",\"\\\\\\\\\\\\\"],[\"4\",\"\\\\\\\\\\\\\\\\\"],[\"5\",\"\\\\n\"],[\"6\",\"\\\\r\"],[\"7\",\"\\\\r\\\\n\"],[\"8\",\"\\\\t\"],[\"9\",\"\\\\/\"],[\"10\",\"\\\\\\\\/\"],[\"11\",\"\\\\'\"],[\"12\",\"\\\\\\\"\"]];\n \\Flexio\\Tests\\Check::assertArray('A.11', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.13-content-symbol.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"?\"],[\"2\",\"!\"],[\"3\",\"@\"],[\"4\",\"#\"],[\"5\",\"$\"],[\"6\",\"%\"],[\"7\",\"^\"],[\"8\",\"&\"],[\"9\",\"*\"],[\"10\",\"-\"],[\"11\",\"=\"],[\"12\",\"+\"]];\n \\Flexio\\Tests\\Check::assertArray('A.12', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.14-content-separator.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\";\"],[\"2\",\",\"],[\"3\",\".\"],[\"4\",\"|\"],[\"5\",\":\"],[\"6\",\"~\"],[\"7\",\"_\"],[\"8\",\"\\\" \\\"\"],[\"9\",\"\\\" \\\"\"],[\"10\",\"\\\\t\"],[\"11\",\"\\\\f\"],[\"12\",\"\"]];\n \\Flexio\\Tests\\Check::assertArray('A.13', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.15-content-bracket.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"(\"],[\"2\",\")\"],[\"3\",\"[\"],[\"4\",\"]\"],[\"5\",\"{\"],[\"6\",\"}\"],[\"7\",\"<\"],[\"8\",\">\"],[\"9\",\"'\"],[\"10\",\"\\\"\"],[\"11\",\"`\"],[\"12\",\"/\"]];\n \\Flexio\\Tests\\Check::assertArray('A.14', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.16-content-code.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",'\";break;$b=\"'],[\"2\",'\\';$a=1/0;$b=\\''],[\"3\",\"true;\"],[\"4\",\"throw new Exception('Problem.');\"],[\"5\",'\" or \"a\" != \"'],[\"6\",\"' or 'a' != '\"],[\"7\",\"// /*\"],[\"8\",\".*\"],[\"9\",\"/.*/\"],[\"10\",\"' || true || '\"],[\"11\",\"' || true;\"],[\"12\",\"''; while (1) {}\"]];\n \\Flexio\\Tests\\Check::assertArray('A.15', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.17-content-date.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"0000-00-00\"],[\"2\",\"1582-10-05\"],[\"3\",\"1582-10-15\"],[\"4\",\"1969-12-31\"],[\"5\",\"1970-01-01\"],[\"6\",\"\"],[\"7\",\"1999-12-31\"],[\"8\",\"2000-01-01\"],[\"9\",\"2001-02-03\"],[\"10\",\"2016-02-29\"],[\"11\",\"2038-01-19\"],[\"12\",\"2038-01-20\"]];\n \\Flexio\\Tests\\Check::assertArray('A.16', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.18-content-date-format.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"20011225\"],[\"2\",\" 2001-12-25\"],[\"3\",\"12-25-2001\"],[\"4\",\"December 25, 2001\"],[\"5\",\"Dec 25, 2001\"],[\"6\",\"25 December 2001\"],[\"7\",\"25 Dec 2001\"],[\"8\",\"12.25.01\"],[\"9\",\"11/12/99\"],[\"10\",\"12/11/99\"],[\"11\",\"12/13/1999\"],[\"12\",\"13/12/1999\"]];\n \\Flexio\\Tests\\Check::assertArray('A.17', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.19-content-datetime.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"1969-12-31 23:59:59\"],[\"2\",\"1970-01-01 00:00:00\"],[\"3\",\"1970-01-01 00:00:01\"],[\"4\",\"\"],[\"5\",\"1999-12-31 23:59:59\"],[\"6\",\"2000-01-01 00:00:00\"],[\"7\",\"2000-01-01 00:00:01\"],[\"8\",\"2001-02-03 04:05:06\"],[\"9\",\"2016-02-29 00:00:00\"],[\"10\",\"2038-01-19 03:14:06\"],[\"11\",\"2038-01-19 03:14:07\"],[\"12\",\"2038-01-19 03:14:08\"]];\n \\Flexio\\Tests\\Check::assertArray('A.18', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.20-content-datetime-format.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"24 Dec 2001 23:59:60Z\"],[\"2\",\"25 Dec 2001 00:00:00Z\"],[\"3\",\"Dec 31, 1999 10:01:02\"],[\"4\",\"December 31, 1999 10:01:02 PM\"],[\"5\",\"Friday, December 31, 1999\"],[\"6\",\"Fri, 31 Dec 1999 23:59:59 +0000\"],[\"7\",\"25 December 2001 01:02:03\"],[\"8\",\"25 Dec 2001 04:05:06Z\"],[\"9\",\"2001-12-25T16:56:42+00:00\"],[\"10\",\"20011225T12:00:00\"],[\"11\",\" 2001-12-25 01:02:03\"],[\"12\",\"2016-02-29 01:02:03.4 +0005\"]];\n \\Flexio\\Tests\\Check::assertArray('A.19', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.21-content-bool.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"true\"],[\"2\",\"true\"],[\"3\",\"\"],[\"4\",\"false\"],[\"5\",\"false\"],[\"6\",\"false\"],[\"7\",\"true\"],[\"8\",\"true\"],[\"9\",\"true\"],[\"10\",\"true\"],[\"11\",\"false\"],[\"12\",\"false\"]];\n \\Flexio\\Tests\\Check::assertArray('A.20', 'Convert Delimited; content conversion', $actual, $expected, $results);\n\n // BEGIN TEST\n $task = self::createConvertTask(\"\\t\", \"\", false);\n $stream = \\Flexio\\Tests\\Util::createStream('/text/03.22-content-bool-format.tsv');\n $process = \\Flexio\\Jobs\\Process::create()->setStdin($stream)->execute($task);\n $output = $process->getStdout()->getReader()->read();\n $output = json_decode($output,true);\n $actual = self::getTableValues($output);\n $expected = [[\"1\",\"True\"],[\"2\",\"False\"],[\"3\",\"TRUE\"],[\"4\",\"FALSE\"],[\"5\",\"t\"],[\"6\",\"f\"],[\"7\",\"T\"],[\"8\",\"F\"],[\"9\",\"1\"],[\"10\",\"0\"],[\"11\",\"Y\"],[\"12\",\"N\"]];\n \\Flexio\\Tests\\Check::assertArray('A.21', 'Convert Delimited; content conversion', $actual, $expected, $results);\n }", "abstract public function process($parameters);", "#[ReturnTypeWillChange]\n public function __unserialize($data)\n {\n foreach ($data as $item) {\n $this->unshift($item);\n }\n }", "public function testTransformData()\n {\n $request = new Request;\n $request->attributes->set('transformer', 'MJanssen\\Fixtures\\Transformer\\TestTransformer');\n\n $app = new Application();\n\n $service = new TransformerService($request, $app);\n\n $data = array('foo' => 'baz');\n\n $this->assertEquals($data, $service->transformHydrateData($data));\n $this->assertEquals($data, $service->transformExtractData($data));\n }", "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"CorpId\",$param) and $param[\"CorpId\"] !== null) {\n $this->CorpId = $param[\"CorpId\"];\n }\n\n if (array_key_exists(\"BatchId\",$param) and $param[\"BatchId\"] !== null) {\n $this->BatchId = $param[\"BatchId\"];\n }\n\n if (array_key_exists(\"TaskId\",$param) and $param[\"TaskId\"] !== null) {\n $this->TaskId = $param[\"TaskId\"];\n }\n\n if (array_key_exists(\"Phase\",$param) and $param[\"Phase\"] !== null) {\n $this->Phase = $param[\"Phase\"];\n }\n\n if (array_key_exists(\"PhaseName\",$param) and $param[\"PhaseName\"] !== null) {\n $this->PhaseName = $param[\"PhaseName\"];\n }\n\n if (array_key_exists(\"ChainStatus\",$param) and $param[\"ChainStatus\"] !== null) {\n $this->ChainStatus = $param[\"ChainStatus\"];\n }\n\n if (array_key_exists(\"Type\",$param) and $param[\"Type\"] !== null) {\n $this->Type = $param[\"Type\"];\n }\n\n if (array_key_exists(\"TraceId\",$param) and $param[\"TraceId\"] !== null) {\n $this->TraceId = $param[\"TraceId\"];\n }\n\n if (array_key_exists(\"TraceItems\",$param) and $param[\"TraceItems\"] !== null) {\n $this->TraceItems = [];\n foreach ($param[\"TraceItems\"] as $key => $value){\n $obj = new TraceItem();\n $obj->deserialize($value);\n array_push($this->TraceItems, $obj);\n }\n }\n\n if (array_key_exists(\"Status\",$param) and $param[\"Status\"] !== null) {\n $this->Status = $param[\"Status\"];\n }\n\n if (array_key_exists(\"PhaseData\",$param) and $param[\"PhaseData\"] !== null) {\n $this->PhaseData = new PhaseData();\n $this->PhaseData->deserialize($param[\"PhaseData\"]);\n }\n }", "public function testChain()\n {\n $filter = Solar::factory('Solar_Filter');\n \n // required, but no filter\n $filter->setChainRequire('foo');\n \n // one filter\n $filter->addChainFilter('bar', 'validateInt');\n \n // many filters\n $filter->addChainFilters('baz', array(\n 'sanitizeInt',\n array('validateRange', 1, 9),\n ));\n \n // required, one filter\n $filter->setChainRequire('dib');\n $filter->addChainFilter('dib', 'validateInt');\n \n // required, many filters\n $filter->setChainRequire('zim');\n $filter->addChainFilters('zim', array(\n 'sanitizeInt',\n array('validateRange', 1, 9),\n ));\n \n /**\n * expected output after being sanitized\n */\n $expect = array(\n 'foo' => 'anything',\n 'bar' => 123,\n 'baz' => 4,\n 'dib' => 678,\n 'zim' => 7,\n );\n \n /**\n * apply filter with \"valid\" user input\n */\n \n // user input\n $data = array(\n 'foo' => 'anything',\n 'bar' => 123,\n 'baz' => 4.5,\n 'dib' => 678,\n 'zim' => 7.9,\n );\n \n // valid?\n $valid = $filter->applyChain($data);\n $this->assertTrue($valid);\n \n // should have sanitized the data in-place\n $this->assertSame($data, $expect);\n \n /**\n * apply filter with invalid user input\n */\n \n // user input\n $data = array(\n 'foo' => 'anything',\n 'bar' => 'abc', // validateInt\n 'baz' => 123, // validateRange\n 'dib' => 456,\n 'zim' => -78, // validateRange\n );\n \n // valid?\n $valid = $filter->applyChain($data);\n $this->assertFalse($valid);\n \n // get the list of invalid elements\n $invalid = $filter->getChainInvalid();\n $keys = array_keys($invalid);\n $this->assertSame($keys, array('bar', 'baz', 'zim'));\n \n /**\n * apply filter with missing requires\n */\n \n // user input\n $data = array(\n 'foo' => null,\n 'bar' => 123,\n 'baz' => 4.5,\n 'dib' => '',\n );\n \n // valid?\n $valid = $filter->applyChain($data);\n $this->assertFalse($valid);\n \n // get the list of invalid elements\n $invalid = $filter->getChainInvalid();\n $keys = array_keys($invalid);\n $this->assertSame($keys, array('foo', 'dib', 'zim'));\n \n /**\n * apply filter with invalid user input and missing requires\n */\n \n // user input\n $data = array(\n 'bar' => 'abc', // validateInt\n 'baz' => 123, // validateRange\n 'dib' => 4.5,\n );\n \n // valid?\n $valid = $filter->applyChain($data);\n $this->assertFalse($valid);\n \n // get the list of invalid elements\n $invalid = $filter->getChainInvalid();\n $keys = array_keys($invalid);\n $this->assertEquals($keys, array('foo', 'zim', 'bar', 'baz', 'dib'));\n }", "function process() {\n return $this->_parse();\n }", "public function testProcessException1()\n {\n $unit1 = $this->getUnit('test');\n $unit1->setReversedMapping([\n 'name' => 'field3',\n ]);\n $unit1->setReversedConnection([\n 'id' => 'field4',\n ]);\n $unit1->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1']\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $action = $this->getAction([$unit1]);\n $action->process($this->getResultMock());\n }", "public abstract function process();", "public function parse()\n {\n $raw = $this->getRaw();\n $count = count($raw);\n for ($i = 7; $i < $count; $i++) {\n $line = $raw[$i];\n\n $process = new Process(\n $line[11],\n $line[0],\n floatval($line[8]),\n floatval($line[9])\n );\n\n $this->processes[] = $process;\n }\n }", "public function testInvalidSerializedData()\n {\n $someData = 12;\n\n $serializer = ArrayObject::DEFAULT_SERIALIZER;\n $serializer = new $serializer;\n\n $data = new ArrayObject;\n $data->unserialize($serializer->serialize($someData));\n }", "abstract public function transform();", "public function testProcessDataCommunication() {\n $process = new Process(function() use (&$process) {\n // Don't do this!\n // Because $process is here a copy of the parent process!\n });\n\n $process = new Process(function(Process $proc) {\n $value = $proc->receiveData( true );\n $value *= 10;\n $proc->sendData($value);\n });\n\n $process->run();\n\n $processes = $this->readProcessIDs();\n\n $this->assertContains( $process->getProcessID(), $processes );\n $this->assertContains( $process->getChildProcessID(), $processes );\n\n usleep(100000);\n\n $processes = $this->readProcessIDs();\n\n $this->assertContains( $process->getProcessID(), $processes );\n $this->assertContains( $process->getChildProcessID(), $processes );\n\n $process->sendData(12);\n $value = $process->receiveData(true);\n\n $process->wait();\n\n $processes = $this->readProcessIDs();\n\n $this->assertContains( $process->getProcessID(), $processes );\n $this->assertNotContains( $process->getChildProcessID(), $processes );\n\n $this->assertEquals(120, $value);\n }", "public function testPreprocessingBinarize()\n {\n }", "public function extractTransformLoad()\n {\n $startEtlTime = microtime(true);\n\n $extractTime = 0.0;\n $transformTime = 0.0;\n $loadTime = 0.0;\n\n #--------------------------------------------------\n # Extract the record ID batches\n #--------------------------------------------------\n $startExtractTime = microtime(true);\n $recordIdBatches = $this->dataProject->getRecordIdBatches(\n (int) $this->configuration->getBatchSize()\n );\n $endExtractTime = microtime(true);\n $extractTime += $endExtractTime - $startExtractTime;\n\n # Count and log the number of record IDs found\n $recordIdCount = 0;\n foreach ($recordIdBatches as $recordIdBatch) {\n $recordIdCount += count($recordIdBatch);\n }\n $this->log(\"Number of record_ids found: \". $recordIdCount);\n\n #--------------------------------------------------------------\n # Foreach record_id, get all REDCap records for that record_id.\n # There will be one record for each event for each record_id\n #--------------------------------------------------------------\n $recordEventsCount = 0;\n \n #-------------------------------------------------------\n # For each batch of data, extract, transform, and load\n #-------------------------------------------------------\n foreach ($recordIdBatches as $recordIdBatch) {\n #---------------------------------\n # Extract the data from REDCap\n #---------------------------------\n $startExtractTime = microtime(true);\n $recordBatch = $this->dataProject->getRecordBatch($recordIdBatch);\n $endExtractTime = microtime(true);\n $extractTime += $endExtractTime - $startExtractTime;\n\n if ($this->configuration->getExtractedRecordCountCheck()) {\n if (count($recordBatch) < count($recordIdBatch)) {\n $message = \"Attempted to retrieve \".count($recordIdBatch).\" records, but only \"\n .count($recordBatch).\" were actually retrieved.\"\n .\" This error can be caused by a very large batch size. If you are using a large\"\n .\" batch size (1,000 or greater), try reducing it to 500 or less.\"\n .\" This error could also be caused by records being deleted while the ETL process\"\n .\" is running.\"\n .\" You can turn this error check off by setting the \"\n .ConfigProperties::EXTRACTED_RECORD_COUNT_CHECK.\" to false.\";\n $code = EtlException::INPUT_ERROR;\n throw new EtlException($message, $code);\n } elseif (count($recordBatch) > count($recordIdBatch)) {\n $message = \"Attempted to retrieve \".count($recordIdBatch).\" records, but \"\n .count($recordBatch).\" were actually retrieved.\"\n .\" This error could be caused by records being added while the\"\n .\" ETL process is running.\"\n .\" You can turn this error check off by setting the \"\n .ConfigProperties::EXTRACTED_RECORD_COUNT_CHECK.\" to false.\";\n $code = EtlException::INPUT_ERROR;\n throw new EtlException($message, $code);\n }\n }\n\n foreach ($recordBatch as $recordId => $records) {\n $recordEventsCount += count($records);\n\n #-----------------------------------\n # Transform the data\n #-----------------------------------\n $startTransformTime = microtime(true);\n # For each root table, because processing will be done\n # recursively to the child tables\n foreach ($this->schema->getRootTables() as $rootTable) {\n // Transform the records for this record_id into rows\n $this->transform($rootTable, $records, '', '');\n }\n $endTransformTime = microtime(true);\n $transformTime += $endTransformTime - $startTransformTime;\n }\n\n #print(\"\\n\\n===============================================================\\n\");\n #print(\"\\n\\nSCHEMA MAP\\n{$this->schema->toString()}\\n\\n\");\n #print(\"\\n\\n===============================================================\\n\");\n \n #-------------------------------------\n # Load the data into the database\n #-------------------------------------\n $startLoadTime = microtime(true);\n foreach ($this->schema->getTables() as $table) {\n # Single row storage (stores one row at a time):\n # foreach row, load it\n $this->loadTableRows($table);\n }\n #####$this->loadRows();\n $endLoadTime = microtime(true);\n $loadTime += $endLoadTime - $startLoadTime;\n }\n\n $endEtlTime = microtime(true);\n $this->logInfoToFile('Extract time: '.$extractTime.' seconds');\n $this->logInfoToFile('Transform time: '.$transformTime.' seconds');\n $this->logInfoToFile('Load time: '.$loadTime.' seconds');\n $this->logInfoToFile('ETL total time: '.($endEtlTime - $startEtlTime).' seconds');\n\n $this->reportRows();\n\n $this->log(\"Number of record events transformed: \". $recordEventsCount);\n \n return $recordIdCount;\n }", "public function testSerializationIsStable() {\n\n\t\t$serializer = $this->createSerializer();\n\n\t\t$lexeme = NewLexeme::havingId( new LexemeId( 'L1' ) )\n\t\t\t->withLanguage( 'Q1' )\n\t\t\t->withLexicalCategory( 'Q2' )\n\t\t\t->withLemma( 'en', 'color' )\n\t\t\t->withLemma( 'en_gb', 'colour' )\n\t\t\t->withForm(\n\t\t\t\tNewForm::havingId( 'F1' )\n\t\t\t\t\t->andRepresentation( 'en', 'color' )\n\t\t\t\t\t->andRepresentation( 'en_gb', 'colour' )\n\t\t\t\t\t->andGrammaticalFeature( 'Q3' )\n\t\t\t\t\t->andStatement( new PropertyNoValueSnak( new PropertyId( 'P1' ) ) )\n\t\t\t)->withForm(\n\t\t\t\tNewForm::havingId( 'F2' )\n\t\t\t\t\t->andRepresentation( 'en', 'colors' )\n\t\t\t\t\t->andRepresentation( 'en_gb', 'colours' )\n\t\t\t\t\t->andGrammaticalFeature( 'Q4' )\n\t\t\t\t\t->andStatement( new PropertySomeValueSnak( new PropertyId( 'P2' ) ) )\n\t\t\t)->withSense(\n\t\t\t\tNewSense::havingId( 'S1' )\n\t\t\t\t\t->withGloss(\n\t\t\t\t\t\t'en',\n\t\t\t\t\t\t'the property of an object of producing different sensations on the eye'\n\t\t\t\t\t)->withStatement(\n\t\t\t\t\t\tnew PropertyValueSnak(\n\t\t\t\t\t\t\tnew PropertyId( 'P3' ),\n\t\t\t\t\t\t\tnew EntityIdValue( new ItemId( 'Q5' ) )\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t)->withStatement( new PropertySomeValueSnak( new PropertyId( 'P4' ) ) )\n\t\t\t->withStatement( new PropertyNoValueSnak( new PropertyId( 'P5' ) ) )\n\t\t\t->build();\n\n\t\t$lexemeSerialization = $serializer->serialize( $lexeme );\n\n\t\t$expectedSerialization = [\n\t\t\t'type' => 'lexeme',\n\t\t\t'id' => 'L1',\n\t\t\t'lemmas' => [\n\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'color' ],\n\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colour' ],\n\t\t\t],\n\t\t\t'lexicalCategory' => 'Q2',\n\t\t\t'language' => 'Q1',\n\t\t\t'claims' => [\n\t\t\t\t'P4' => [ [\n\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t'snaktype' => 'somevalue',\n\t\t\t\t\t\t'property' => 'P4',\n\t\t\t\t\t\t'hash' => 'ede91cc55952400386a2401405bb09e446b1867b',\n\t\t\t\t\t],\n\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t] ],\n\t\t\t\t'P5' => [ [\n\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t'snaktype' => 'novalue',\n\t\t\t\t\t\t'property' => 'P5',\n\t\t\t\t\t\t'hash' => '6ee46c6e25606f949a870c84ae6694be8b5d4a02',\n\t\t\t\t\t],\n\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t] ],\n\t\t\t],\n\t\t\t'nextFormId' => 3,\n\t\t\t'forms' => [\n\t\t\t\t[\n\t\t\t\t\t'id' => 'L1-F1',\n\t\t\t\t\t'representations' => [\n\t\t\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'color' ],\n\t\t\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colour' ],\n\t\t\t\t\t],\n\t\t\t\t\t'grammaticalFeatures' => [ 'Q3' ],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P1' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'novalue',\n\t\t\t\t\t\t\t\t'property' => 'P1',\n\t\t\t\t\t\t\t\t'hash' => 'c77761897897f63f151c4a1deb8bd3ad23ac51c6',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t\t\t], ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'id' => 'L1-F2',\n\t\t\t\t\t'representations' => [\n\t\t\t\t\t\t'en' => [ 'language' => 'en', 'value' => 'colors' ],\n\t\t\t\t\t\t'en_gb' => [ 'language' => 'en_gb', 'value' => 'colours' ],\n\t\t\t\t\t],\n\t\t\t\t\t'grammaticalFeatures' => [ 'Q4' ],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P2' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'somevalue',\n\t\t\t\t\t\t\t\t'property' => 'P2',\n\t\t\t\t\t\t\t\t'hash' => '0cf42a63838da890a0b23c220bdb7705ca9c7892',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t\t\t] ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t],\n\t\t\t'senses' => [\n\t\t\t\t[\n\t\t\t\t\t'id' => 'S1',\n\t\t\t\t\t'glosses' => [\n\t\t\t\t\t\t'en' => [\n\t\t\t\t\t\t\t'language' => 'en',\n\t\t\t\t\t\t\t'value' => 'the property of an object of producing' .\n\t\t\t\t\t\t\t\t' different sensations on the eye',\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t'claims' => [\n\t\t\t\t\t\t'P3' => [ [\n\t\t\t\t\t\t\t'mainsnak' => [\n\t\t\t\t\t\t\t\t'snaktype' => 'value',\n\t\t\t\t\t\t\t\t'property' => 'P3',\n\t\t\t\t\t\t\t\t'hash' => '4c2e17bc6d4c930be2beccbf929724b2cd431f3d',\n\t\t\t\t\t\t\t\t'datavalue' => [\n\t\t\t\t\t\t\t\t\t'value' => [\n\t\t\t\t\t\t\t\t\t\t'entity-type' => 'item',\n\t\t\t\t\t\t\t\t\t\t'numeric-id' => 5,\n\t\t\t\t\t\t\t\t\t\t'id' => 'Q5',\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t'type' => 'wikibase-entityid',\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'statement',\n\t\t\t\t\t\t\t'rank' => 'normal',\n\t\t\t\t\t\t] ],\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t]\n\t\t];\n\n\t\t$this->assertEquals( $expectedSerialization, $lexemeSerialization );\n\t}", "public function testNormalize() {\n $this->data['Account'][] = array(\n 'AccountID' => $this->createGuid(),\n 'Name' => $this->getRandomGenerator()->word(10),\n 'Code' => '200',\n 'Type' => 'BANK'\n );\n $expect = $this->data;\n\n $string_def = DataDefinition::create('string');\n $integer_def = DataDefinition::create('integer');\n $guid[] = new StringData($string_def);\n $guid[] = new StringData($string_def);\n $name[] = new StringData($string_def);\n $name[] = new StringData($string_def);\n $code[] = new IntegerData($integer_def);\n $code[] = new IntegerData($integer_def);\n $type[] = new StringData($string_def);\n $type[] = new StringData($string_def);\n\n $guid[0]->setValue($this->data['Account'][0]['AccountID']);\n $name[0]->setValue($this->data['Account'][0]['Name']);\n $code[0]->setValue($this->data['Account'][0]['Code']);\n $type[0]->setValue($this->data['Account'][0]['Type']);\n $guid[1]->setValue($this->data['Account'][1]['AccountID']);\n $name[1]->setValue($this->data['Account'][1]['Name']);\n $code[1]->setValue($this->data['Account'][1]['Code']);\n $type[1]->setValue($this->data['Account'][1]['Type']);\n\n $itemList = XeroItemList::createInstance($this->listDefinition);\n $account = Account::createInstance($this->accountDefinition);\n $account->setValue($this->data['Account'][0], FALSE);\n\n $account2 = Account::createInstance($this->accountDefinition);\n $account2->setValue($this->data['Account'][1], FALSE);\n\n $this->typedDataManager->expects($this->any())\n ->method('create')\n ->with($this->listDefinition, $this->data['Account'])\n ->will($this->returnValue($itemList));\n\n $this->typedDataManager->expects($this->any())\n ->method('getPropertyInstance')\n ->withConsecutive(\n array($itemList, 0, $account),\n array($itemList, 1, $account2),\n array($account, 'AccountID', $this->data['Account'][0]['AccountID']),\n array($account, 'Code', $this->data['Account'][0]['Code']),\n array($account, 'Name', $this->data['Account'][0]['Name']),\n array($account, 'Type', $this->data['Account'][0]['Type']),\n array($account, 'Description', null),\n array($account, 'TaxType', null),\n array($account, 'EnablePaymentsToAccount', null),\n array($account, 'ShowInExpenseClaims', null),\n array($account, 'Class', null),\n array($account, 'Status', null),\n array($account, 'SystemAccount', null),\n array($account, 'BankAccountNumber', null),\n array($account, 'CurrencyCode', null),\n array($account, 'ReportingCode', null),\n array($account, 'ReportingCodeName', null),\n array($account2, 'AccountID', $this->data['Account'][1]['AccountID']),\n array($account2, 'Code', $this->data['Account'][1]['Code']),\n array($account2, 'Name', $this->data['Account'][1]['Name']),\n array($account2, 'Type', $this->data['Account'][1]['Type'])\n )\n ->will($this->onConsecutiveCalls(\n $account, $account2, $guid[0], $code[0], $name[0], $type[0],\n null, null, null, null, null, null, null, null, null, null, null,\n $guid[1], $code[1], $name[1], $type[1]\n ));\n\n $itemList->setValue([0 => $account, 1 => $account2]);\n\n $items = $this->typedDataManager->create($this->listDefinition, $this->data['Account']);\n\n $data = $this->normalizer->normalize($items, 'xml', array('plugin_id' => 'xero_account'));\n\n $this->assertArrayEquals($expect, $data, print_r($data, TRUE));\n }", "public function traverse(callable $transformation);", "public function processOutput() {}", "public function __unserialize(array $data): void\n {\n $this->createFromArray($data);\n }", "public function testSerializationDeserialization()\n {\n $obj = new Payout(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getSenderBatchHeader());\n $this->assertNotNull($obj->getItems());\n $this->assertNotNull($obj->getLinks());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function testConvert()\n {\n $methodInterface = $this->getMockForAbstractClass(\\Magento\\Payment\\Model\\MethodInterface::class);\n\n $paymentData = ['test' => 'test2'];\n $data = ['some_id' => 1];\n $paymentMethodTitle = 'TestTitle';\n $additionalInfo = ['token' => 'TOKEN-123'];\n\n $this->paymentMock->expects($this->once())->method('getMethodInstance')->willReturn($methodInterface);\n $methodInterface->expects($this->once())->method('getTitle')->willReturn($paymentMethodTitle);\n $this->objectCopyMock->expects($this->once())->method('getDataFromFieldset')->with(\n 'quote_convert_payment',\n 'to_order_payment',\n $this->paymentMock\n )->willReturn($paymentData);\n\n $this->paymentMock->expects($this->once())\n ->method('getAdditionalInformation')\n ->willReturn($additionalInfo);\n $ccNumber = 123456798;\n $ccCid = 1234;\n $this->paymentMock->expects($this->once())\n ->method('getCcNumber')\n ->willReturn($ccNumber);\n $this->paymentMock->expects($this->once())\n ->method('getCcCid')\n ->willReturn($ccCid);\n\n $orderPayment = $this->getMockForAbstractClass(\n \\Magento\\Sales\\Api\\Data\\OrderPaymentInterface::class,\n [],\n '',\n false,\n true,\n true,\n ['setCcNumber', 'setCcCid', 'setAdditionalInformation']\n );\n $orderPayment->expects($this->once())\n ->method('setAdditionalInformation')\n ->with(array_merge($additionalInfo, [Substitution::INFO_KEY_TITLE => $paymentMethodTitle]))\n ->willReturnSelf();\n $orderPayment->expects($this->once())\n ->method('setCcNumber')\n ->willReturnSelf();\n $orderPayment->expects($this->once())\n ->method('setCcCid')\n ->willReturnSelf();\n\n $this->orderPaymentRepositoryMock->expects($this->once())->method('create')->willReturn($orderPayment);\n $this->dataObjectHelper->expects($this->once())\n ->method('populateWithArray')\n ->with(\n $orderPayment,\n array_merge($paymentData, $data),\n \\Magento\\Sales\\Api\\Data\\OrderPaymentInterface::class\n )\n ->willReturnSelf();\n\n $this->assertSame($orderPayment, $this->converter->convert($this->paymentMock, $data));\n }", "function _safe_unserialize($str)\n{\n\tif(strlen($str) > MAX_SERIALIZED_INPUT_LENGTH)\n\t{\n\t\tthrow new Exception('safe_unserialize: input exceeds ' . MAX_SERIALIZED_INPUT_LENGTH);\n\t}\n\n\tif(empty($str) || !is_string($str))\n\t{\n\t\treturn false;\n\t}\n\n\t$stack = array();\n\t$expected = array();\n\n\t/*\n\t * states:\n\t * 0 - initial state, expecting a single value or array\n\t * 1 - terminal state\n\t * 2 - in array, expecting end of array or a key\n\t * 3 - in array, expecting value or another array\n\t */\n\t$state = 0;\n\twhile($state != 1)\n\t{\n\t\t$type = isset($str[0]) ? $str[0] : '';\n\n\t\tif($type == '}')\n\t\t{\n\t\t\t$str = substr($str, 1);\n\t\t}\n\t\telse if($type == 'N' && $str[1] == ';')\n\t\t{\n\t\t\t$value = null;\n\t\t\t$str = substr($str, 2);\n\t\t}\n\t\telse if($type == 'b' && preg_match('/^b:([01]);/', $str, $matches))\n\t\t{\n\t\t\t$value = $matches[1] == '1' ? true : false;\n\t\t\t$str = substr($str, 4);\n\t\t}\n\t\telse if($type == 'i' && preg_match('/^i:(-?[0-9]+);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'd' && preg_match('/^d:(-?[0-9]+\\.?[0-9]*(E[+-][0-9]+)?);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (float)$matches[1];\n\t\t\t$str = $matches[3];\n\t\t}\n\t\telse if($type == 's' && preg_match('/^s:([0-9]+):\"(.*)/s', $str, $matches) && substr($matches[2], (int)$matches[1], 2) == '\";')\n\t\t{\n\t\t\t$value = substr($matches[2], 0, (int)$matches[1]);\n\t\t\t$str = substr($matches[2], (int)$matches[1] + 2);\n\t\t}\n\t\telse if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches) && $matches[1] < MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t{\n\t\t\t$expectedLength = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'O')\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: objects not supported');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: unknown/malformed type: '.$type);\n\t\t}\n\n\t\tswitch($state)\n\t\t{\n\t\t\tcase 3: // in array, expecting value or another array\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$stack[] = &$list;\n\t\t\t\t\t$list[$key] = array();\n\t\t\t\t\t$list = &$list[$key];\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$list[$key] = $value;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: missing array value');\n\n\t\t\tcase 2: // in array, expecting end of array or a key\n\t\t\t\tif($type == '}')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) < end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size less than expected ' . $expected[0]);\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($list);\n\t\t\t\t\t$list = &$stack[count($stack)-1];\n\t\t\t\t\tarray_pop($stack);\n\n\t\t\t\t\t// go to terminal state if we're at the end of the root array\n\t\t\t\t\tarray_pop($expected);\n\t\t\t\t\tif(count($expected) == 0) {\n\t\t\t\t\t\t$state = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type == 'i' || $type == 's')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) >= MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds ' . MAX_SERIALIZED_ARRAY_LENGTH);\n\t\t\t\t\t}\n\t\t\t\t\tif(count($list) >= end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds expected length');\n\t\t\t\t\t}\n\n\t\t\t\t\t$key = $value;\n\t\t\t\t\t$state = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: illegal array index type');\n\n\t\t\tcase 0: // expecting array or value\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$list = &$data;\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$data = $value;\n\t\t\t\t\t$state = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: not in array');\n\t\t}\n\t}\n\n\tif(!empty($str))\n\t{\n\t\tthrow new Exception('safe_unserialize: trailing data in input');\n\t}\n\treturn $data;\n}", "public function testReverseTransform_invalid()\n {\n $this->transformer->reverseTransform(44);\n }", "public function __unserialize(array $data): void\n {\n $this->__construct($data);\n }", "function maybe_unserialize($data)\n {\n }", "public function testInvalidUnserializeArgument($invalidArgument)\n {\n $data = new ArrayObject;\n $data->unserialize($invalidArgument);\n }", "public static function process() {}", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "abstract protected function doActualConvert();", "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 processData() ;", "function maybe_unserialize( $item ){\n if( is_serialized( $item ) ){\n \n try{\n \n // Try unzerialising\n $output = unserialize( $item );\n \n } catch( Exception $e ){\n \n // If there's an error it might be corrupted, so try uncorrupting then unserializing\n $output = unserialize( serialize_fix( $item ) );\n \n }\n \n return $output;\n \n } else {\n return $item;\n }\n}", "abstract protected function _preProcess();", "public function testTransformsAdd(): void\n {\n $pipe = new EtlPipe();\n\n $pipe->extract(new CsvExtractor($this->testFile));\n\n $pipe->transformers([\n (new CaseTransformer())->transformColumn('test', 'lower'),\n ]);\n\n $this->assertInstanceOf(EtlPipe::class, $pipe);\n }", "public function testSerializationDeserialization()\n {\n $obj = new TX(self::getJson());\n\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getBlockHash());\n $this->assertNotNull($obj->getBlockHeight());\n $this->assertNotNull($obj->getHash());\n $this->assertNotNull($obj->getAddresses());\n $this->assertNotNull($obj->getTotal());\n $this->assertNotNull($obj->getFees());\n // TODO: Only included when the includeHex URL property is set to true.\n //$this->assertNotNull($obj->getHex());\n $this->assertNotNull($obj->getPreference());\n $this->assertNotNull($obj->getRelayedBy());\n $this->assertNotNull($obj->getConfirmed());\n $this->assertNotNull($obj->getReceived());\n $this->assertNotNull($obj->getVer());\n $this->assertNotNull($obj->getLockTime());\n $this->assertNotNull($obj->getDoubleSpend());\n // TODO: Only present for unconfirmed transactions\n //$this->assertNotNull($obj->getReceiveCount());\n $this->assertNotNull($obj->getVinSz());\n $this->assertNotNull($obj->getVoutSz());\n $this->assertNotNull($obj->getConfirmations());\n $this->assertNotNull($obj->getConfidence());\n $this->assertNotNull($obj->getInputs());\n $this->assertNotNull($obj->getOutputs());\n $this->assertNotNull($obj->getNextInputs());\n\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function process()\n {\n parent::process();\n $data = $this->getBody();\n if (!isset($data)) {\n $data = array();\n }\n\n try {\n if ($this->_validateSchema()) {\n $resultSet = $this->_processLookup($data);\n $customer = $resultSet['customer'];\n if (!is_null($customer)) {\n $response = array(\n 'customer' => $customer,\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendSuccess($response);\n }\n if (sizeof($resultSet['errors']) > 0) {\n $response = array(\n 'errors' => $resultSet['errors'],\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($response);\n }\n }\n } catch (Exception $ex) {\n Mage::logException($ex);\n\n\n $errorResponse = array(\n 'id' => $data['id'],\n 'errors' => array(\n array(\n 'code' => empty($code) ? '-1' : '' . $code,\n 'message' => $ex->getMessage(),\n 'parameters' => null\n )\n ),\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($errorResponse);\n }\n return $this;\n }", "public function testItShouldReturnSameValueAfterEncodeAndDecode()\n {\n $driver = new ChainDriver([\n new HexDriver(),\n new PrefixDriver(['prefix' => 'ABC']),\n ]);\n\n $input = '123456';\n $encoded = $driver->encode($input);\n $decoded = $driver->decode($encoded);\n\n $this->assertNotSame($input, $encoded);\n $this->assertSame($input, $decoded);\n }", "public function testBrokenPipe(): void\n {\n $passable = '(0)';\n $container = new Container();\n $pipeline = new Pipeline($container);\n\n $result = $pipeline\n ->send($passable)\n ->through([\n PipeOne::class => 'a',\n PipeTwo::class => 'b',\n BrokenPipeOne::class => 'c',\n ])\n ->via('handle')\n ->then(function ($passable) {\n return $passable . '(e)';\n })\n ->run();\n\n self::assertEquals('(-2b)(-1a)', $result);\n }", "public function testDebuggingTransformCalls()\n {\n $mock_response = new MockHttpResponse(\n 200,\n '{\"apikey\": \"someapikey\", \"errors\": \"some errors\"}'\n );\n\n $stub_http_client = $this->createMock(\\GuzzleHttp\\Client::class);\n $stub_http_client->method('request')\n ->willReturn($mock_response);\n\n $client = new FilestackClient(\n $this->test_api_key,\n $this->test_security,\n $stub_http_client\n );\n\n $transform_tasks = [\n 'resize' => ['w' => '100', 'h' => '100'],\n 'detect_faces' => []\n ];\n\n $json_response = $client->debug($this->test_file_handle, $transform_tasks);\n\n $this->assertNotNull($json_response);\n }", "function process($process, $method) {\n while ($process->hasNext()) {\n $input = $process->next();\n if ($input->isOperand()) {\n $method->addElement($input->Value);\n } else if ($input->isOperator()) {\n try {\n $operand_a = $method->getElement();\n $operand_b = $method->getElement();\n } catch (EmptyStackException $exp) {\n // TODO Must return the previous last value !\n // OR do we want the continue?\n throw new NotImplementedException(\"Not Implemented Yet\" . $exp->getMessage());\n }\n\n try {\n $result = $input->execute($operand_b, $operand_a);\n $method->addElement($result);\n $method->log($input->Value . \" performed on $operand_b & $operand_a\");\n } catch (NotImplementedException $ignore) {\n $method->log($input->Value . 'Not Implemented');\n }\n }\n $method->printStack();\n }\n\n return $method->getElement();\n}", "public function testSerializationCapabilities()\n {\n $generator = $this->getTokenGeneratorForTesting();\n\n $tmp = serialize($generator);\n $tmp = unserialize($tmp);\n\n $this->assertEquals($generator, $tmp);\n $this->assertNotEmpty($tmp->getTokenString(10));\n\n unset($tmp);\n $this->assertNotNull($generator);\n }", "public function testPreprocessingBinarizeAdvanced()\n {\n }", "public function testTransform_null()\n {\n $this->assertNull($this->transformer->transform(null));\n }", "public function testTransform()\n {\n $startTime = new \\DateTime();\n $endTime = new \\DateTime(\"+2 hours\");\n\n $shift = mockery::mock(Shift::class);\n $shift->shouldReceive('getId')->twice()->withNoArgs()->andReturn(1);\n $shift->shouldReceive('getBreak')->once()->withNoArgs()->andReturn(12.5);\n $shift->shouldReceive('getStartTime')->once()->withNoArgs()->andReturn($startTime);\n $shift->shouldReceive('getEndTime')->once()->withNoArgs()->andReturn($endTime);\n\n $transformer = new ShiftTransformer;\n $transformedData = $transformer->transform($shift);\n\n $this->assertEquals([\n 'id' => 1,\n 'break' => 12.5,\n 'start_time' => $startTime->format('r'),\n 'end_time' => $endTime->format('r'),\n 'links' => [\n [\n 'rel' => 'self',\n 'uri' => '/shifts/1'\n ]\n ]\n ], $transformedData);\n }", "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"BiopsyPart\",$param) and $param[\"BiopsyPart\"] !== null) {\n $this->BiopsyPart = new BiopsyPart();\n $this->BiopsyPart->deserialize($param[\"BiopsyPart\"]);\n }\n\n if (array_key_exists(\"Desc\",$param) and $param[\"Desc\"] !== null) {\n $this->Desc = new EndoscopyDesc();\n $this->Desc->deserialize($param[\"Desc\"]);\n }\n\n if (array_key_exists(\"Summary\",$param) and $param[\"Summary\"] !== null) {\n $this->Summary = new Summary();\n $this->Summary->deserialize($param[\"Summary\"]);\n }\n }", "public function testDecode(): void\n {\n $tx = MinterTx::decode(self::VALID_SIGNATURE);\n $validTx = $this->makeTransaction();\n\n $this->assertSame($validTx->getNonce(), $tx->getNonce());\n $this->assertSame($validTx->getGasCoin(), $tx->getGasCoin());\n $this->assertSame($validTx->getGasPrice(), $tx->getGasPrice());\n $this->assertSame($validTx->getChainID(), $tx->getChainID());\n $this->assertSame($validTx->getData()->coins, $tx->getData()->coins);\n $this->assertSame($validTx->getData()->minimumValueToBuy, $tx->getData()->minimumValueToBuy);\n $this->assertSame(self::MINTER_ADDRESS, $tx->getSenderAddress());\n }", "public function process() {}", "public function process() {}", "public function process() {}", "public function process() {}", "function testProcess(){\n\t\t#mdx:process\n\t\t$field = new MyField('username');\n\t\t$field->context(['username'=>'Jack']);\n\t\t#/mdx echo $field->process()->output\n\t\t$this->assertEquals('Jack',$field->process()->output);\n\t}", "public function testBypassPipe(): void\n {\n $passable = '(0)';\n $container = new Container();\n $pipeline = new Pipeline($container);\n\n $result = $pipeline\n ->send($passable)\n ->through([\n PipeOne::class => 'a',\n BypassPipe::class => 'c',\n PipeTwo::class => 'b',\n ])\n ->via('handle')\n ->then(function ($passable) {\n return $passable . '(e)';\n })\n ->run();\n\n self::assertEquals('(0)(1a)(-1a)', $result);\n }" ]
[ "0.6494883", "0.6243429", "0.5968294", "0.5685148", "0.55904967", "0.543727", "0.5375368", "0.5365713", "0.52476954", "0.5242949", "0.51979697", "0.5149354", "0.5097645", "0.5097645", "0.5096598", "0.50465333", "0.5031752", "0.49766967", "0.49701434", "0.4945104", "0.49326783", "0.49326783", "0.49326783", "0.49326783", "0.4884503", "0.48748508", "0.48748508", "0.48748508", "0.48748508", "0.48649386", "0.48070556", "0.47864228", "0.47843444", "0.478362", "0.4781032", "0.47699112", "0.47690538", "0.47671494", "0.47671494", "0.47671494", "0.47646052", "0.47479343", "0.4742073", "0.47243416", "0.46887496", "0.46626562", "0.46557707", "0.46500838", "0.46489257", "0.46317342", "0.46217245", "0.4613957", "0.460931", "0.4590122", "0.45842892", "0.4573977", "0.45498312", "0.4543682", "0.45410913", "0.45389575", "0.45380533", "0.45145544", "0.45087883", "0.45072028", "0.44932014", "0.44869798", "0.44762585", "0.44716454", "0.44436628", "0.44369802", "0.4434622", "0.44319937", "0.44317928", "0.44240034", "0.44131175", "0.44129765", "0.4406459", "0.44031143", "0.44006968", "0.43951786", "0.43902126", "0.43890694", "0.43860275", "0.43798205", "0.4376313", "0.4364475", "0.43597323", "0.43536845", "0.43519294", "0.43429637", "0.43391103", "0.43244448", "0.43240908", "0.4314956", "0.43112928", "0.43098983", "0.43098983", "0.43098983", "0.43088785", "0.43009147" ]
0.820725
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
Тестирование Transform_Unserialize_Serial>getReverse() с цепочкой
public function testGetReverse_Chain() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); $transform = new Transform_Unserialize_Serial(); $transform->chainInput($mock); $this->assertEquals('reverse of mock transformer', $transform->getReverse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform1 = new Transform_Unserialize_Serial();\n $transform2 = new Transform_Unserialize_Serial();\n \n $transform2->chainInput($mock);\n $transform1->chainInput($transform2);\n \n $this->assertEquals('reverse of mock transformer', $transform1->getReverse());\n }", "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform1 = new Transform_Compress_Gzip();\n $transform2 = new Transform_Compress_Gzip();\n \n $transform2->chainInput($mock);\n $transform1->chainInput($transform2);\n \n $this->assertEquals('reverse of mock transformer', $transform1->getReverse());\n }", "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $this->Compress_Gzip->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $this->Compress_Gzip->getReverse());\n }", "public function reversal()\n {\n }", "public function reversed();", "public function reverse() {}", "private function reverseTransaction() {\n $data = [\n 'Initiator' => ' ',\n 'SecurityCredential' => ' ',\n 'CommandID' => 'TransactionReversal',\n 'TransactionID' => ' ',\n 'Amount' => ' ',\n 'ReceiverParty' => ' ',\n 'RecieverIdentifierType' => '4',\n 'QueueTimeOutURL' => $this->apiBaseUrl.'/mobilepay/tran_reverse/time_out',\n 'ResultURL' => $this->apiBaseUrl.'/mobilepay/tran_reverse/result',\n 'Remarks' => ' ',\n 'Occasion' => ' '\n ];\n return $this->remotePostCall('mpesa/reversal/v1/request', $data);\n }", "public function testProcess_Chain() \n {\n \t$mock = $this->getMock('Q\\Transform', array('process'));\n \t$mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:\"a\";a:1:{s:1:\"c\";s:3:\"abc\";}s:1:\"d\";s:1:\"e\";}'));\n \t\n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n $contents = $transform->process('test');\n\n $this->assertType('Q\\Transform_Unserialize_Serial', $transform);\n $this->assertEquals(array('a'=>array('c'=>'abc'), 'd'=>'e'), $contents);\n }", "public function testReverseTransform_invalid()\n {\n $this->transformer->reverseTransform(44);\n }", "public function reverse();", "public function reverse();", "public function reverse();", "public function reverse();", "abstract public function reverse($preserveKeys = false);", "function reverse($object);", "public function testGetReverse_useReverseMethod()\n {\n $this->Compress_Gzip->mode = FORCE_DEFLATE;\n $reverse = $this->Compress_Gzip->getReverse();\n $this->assertType('Q\\Transform_Decompress_Gzip', $reverse);\n $this->assertEquals(FORCE_DEFLATE, $reverse->mode);\n }", "public function testReverseTransform()\n {\n $invite = m::mock('Braincrafted\\Bundle\\UserBundle\\Entity\\Invite');\n\n $repository = m::mock('Doctrine\\Common\\Persistence\\ObjectRepository');\n $repository\n ->shouldReceive('findOneBy')\n ->with(array('code' => 'abcdef'))\n ->once()\n ->andReturn($invite);\n\n $this->om\n ->shouldReceive('getRepository')\n ->with('Braincrafted\\Bundle\\UserBundle\\Entity\\Invite')\n ->once()\n ->andReturn($repository);\n\n $this->assertEquals($invite, $this->transformer->reverseTransform('abcdef'));\n }", "public function testReverseTransform_null()\n {\n $this->assertNull($this->transformer->reverseTransform(null));\n $this->assertNull($this->transformer->reverseTransform(''));\n }", "public function GetReverseParams ();", "function reverse()\n {\n }", "public function reverse() {\n\t\t$clone = clone $this;\n\t\t\n\t\tif (is_array($clone->order)) {\n\t\t\tforeach ($clone->order as &$value) {\n\t\t\t\t$value[1] = $value[1] == 'DESC' ? 'ASC' : 'DESC';\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$clone->sql = null;\n\t\treturn $clone;\n\t}", "public function reverse()\n {\n $array = $this->toArray();\n return static::createFormArray(array_reverse($array), false);\n }", "public function reverse()\n {\n return $this::from(array_reverse($this->hash, true));\n }", "public function testReverseTransformFunctionWithValidData(array $input)\n {\n /** @var \\Integrated\\Bundle\\ContentBundle\\Document\\ContentType\\Embedded\\CustomField $output */\n $output = $this->customTransformer->reverseTransform($input);\n\n $this->assertInstanceOf('\\Integrated\\Bundle\\ContentBundle\\Document\\ContentType\\Embedded\\CustomField', $output);\n $this->assertSame($input['label'], $output->getLabel());\n $this->assertSame($input['type'], $output->getType());\n\n if (!empty($input['required'])) {\n $options = $output->getOptions();\n $this->assertTrue($options['required']);\n }\n\n if (isset($input['name'])) {\n $this->assertSame($input['name'], $output->getName());\n }\n }", "public function reverse() {\n $str = Input::get ( 'value' );\n $task = new My_task;\n $result = $task->reverse($str);\n return $result;\n }", "public function reverse()\n {\n $this->dataToArray();\n $preserveKeys = (\\Sledgehammer\\is_indexed($this->data) === false);\n\n return new self(array_reverse($this->data, $preserveKeys));\n }", "function reverse () {\r\n\t$rev = $this;\r\n $rev->edits = array();\r\n foreach ($this->edits as $edit) {\r\n $rev->edits[] = $edit->reverse();\r\n }\r\n\treturn $rev;\r\n }", "public function reverse()\n {\n $reversed = UTF8::strrev($this->str);\n\n return static::create($reversed, $this->encoding);\n }", "public function reverse($value) {\n return $this->setProperty('reverse', $value);\n }", "public function reverse($value) {\n return $this->setProperty('reverse', $value);\n }", "public function reverse(): self\n {\n return Factory::create(array_reverse($this->items, true));\n }", "public function it_creates_with_2_reversed_args()\n {\n $a2 = $this->get('spec\\Aspire\\DIC\\A2', ['Foo', $this->get('spec\\Aspire\\DIC\\ExtendedB')]);\n\n $a2->b->shouldBeAnInstanceOf('spec\\Aspire\\DIC\\B');\n $a2->c->shouldBeAnInstanceOf('spec\\Aspire\\DIC\\C');\n $a2->foo->shouldEqual('Foo');\n }", "protected function initReverse () {\n\t\tif ($this->reverseSections !== NULL) return;\n\t\t$reverse = NULL;\n\t\tif ($this->reverse !== NULL) {\n\t\t\t$reverse = $this->reverse;\n\t\t} else if ($this->pattern !== NULL) {\n\t\t\t$reverse = $this->pattern;\n\t\t} else/* if ($this->pattern === NULL)*/ {\n\t\t\tif ($this->redirect !== NULL)\n\t\t\t\treturn $this->initFlagsByPatternOrReverse(\n\t\t\t\t\t$this->pattern !== NULL\n\t\t\t\t\t\t? $this->pattern\n\t\t\t\t\t\t: str_replace(['\\\\', '(?', ')?', '/?'], '', $this->match)\n\t\t\t\t);\n\t\t\t$this->throwExceptionIfKeyPropertyIsMissing('reverse', 'pattern');\n\t\t}\n\n\t\t$this->lastPatternParam = NULL;\n\n\t\t$this->reverseSections = $this->initSectionsInfo($reverse);\n\t\t$this->reverse = $reverse;\n\n\t\t$match = NULL;\n\t\t$this->reverseParams = $this->initReverseParams(\n\t\t\t$reverse, $this->reverseSections, $this->constraints, $match\n\t\t);\n\n\t\t$this->initFlagsByPatternOrReverse($reverse);\n\t}", "public function reverse() {\n $prev = NULL;\n $curr = $this->head;\n $next = $this->head->next;\n $this->tail = $this->head;\n\n while (!empty($curr)) {\n $curr->next = $prev;\n $prev = $curr;\n $curr = $next;\n $next = $next->next;\n }\n $this->head = $prev; \n }", "function _unserialize( $serial ) {\n\t\tif( function_exists( 'gzinflate' ) ) {\n\t\t\t$decomp = @gzinflate( $serial );\n\t\t\tif( false !== $decomp ) {\n\t\t\t\t$serial = $decomp;\n\t\t\t}\n\t\t}\n\t\treturn unserialize( $serial );\n\t}", "public function reverse() {\n $rev = $this;\n $rev->edits = [];\n foreach ($this->edits as $edit) {\n $rev->edits[] = $edit->reverse();\n }\n return $rev;\n }", "function setReverseMode(){\n\t\t$this->mode = SUSHEE_DEP_REVERSE_MODE;\n\t}", "function MyMod_Sort_Reverse_Get($reverse=\"\")\n {\n $reverse=$this->Reverse;\n if ($reverse==\"\")\n {\n $value=$this->CGI_GETint($this->ModuleName.\"_Reversed\");\n \n if (!empty($value))\n {\n $reverse=$value;\n }\n else\n {\n $reverse=0;\n }\n }\n\n return $reverse;\n }", "function deserialise(string $data): void;", "public function testReverseTransformFunctionWithInvalidData($input)\n {\n $this->assertNull($this->customTransformer->reverseTransform($input));\n }", "public function reversal($request);", "abstract protected function unSerializeData();", "public function reverse(): CollectionInterface;", "public function reverseMap(): MappingInterface;", "public function isReversed() {\n\t\treturn $this->attributes['reversed'];\n\t}", "public function testReverseWithExtension(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}/{action}/*');\n Router::extensions('json', false);\n\n $request = new ServerRequest([\n 'url' => '/posts/view/1.json',\n 'params' => [\n 'controller' => 'Posts',\n 'action' => 'view',\n 'pass' => [1],\n '_ext' => 'json',\n ],\n ]);\n $result = Router::reverse($request);\n $expected = '/Posts/view/1.json';\n $this->assertSame($expected, $result);\n }", "public function reverse(): \\IvoPetkov\\DataList\n {\n $this->actions[] = ['reverse'];\n return $this;\n }", "public function reverse()\n {\n return new static(array_reverse($this->objects, true));\n }", "public function reverse()\r\n\t{\r\n\t\tarray_reverse($this->_items);\r\n\t}", "public function reverseMap()\n {\n $mappedData = [];\n\n foreach ($this->rawData as $index => $field) {\n $mappedData[$index]['id'] = getVal($field, ['id'], '');\n $mappedData[$index]['reference'] = getVal($field, ['transaction', 'reference'], '');\n $mappedData[$index]['date'] = getVal($field, ['transaction', 'transaction_date', 0, 'date'], '');\n $mappedData[$index]['amount'] = getVal($field, ['transaction', 'value', 0, 'amount'], '');\n $mappedData[$index]['currency'] = getVal($field, ['transaction', 'value', 0, 'currency'], '');\n $mappedData[$index]['description'] = getVal($field, ['transaction', 'description', 0, 'narrative', 0, 'narrative'], '');\n $mappedData[$index]['organisation'] = getVal($field, ['transaction', 'receiver_organization', 0, 'narrative', 0, 'narrative'], '');\n }\n\n return $mappedData;\n }", "public function reversal($values)\n\t{\n\t\treturn $this->getRequest('Reversal', $values);\n\t}", "public function reverse($destinationFieldValue, $field, $source, $destination);", "public function setReversed($reversed) {\n\t\t$this->attributes['reversed'] = $reversed;\n\t\treturn $this;\n\t}", "public function setReverseOrder($reverse = true)\n {\n $this->reverse = $reverse;\n return $this;\n }", "public function reverse(array $params = array())\n {\n $parsed = $this->reverse;\n foreach ($params as $name => $value) {\n $parsed = str_replace(':' . $name, $value, $parsed);\n }\n return $parsed;\n }", "public function testBuildCreditCardReversal()\n {\n $config = new SinglePayConfig();\n $config->setServiceConfig(self::$testConfig);\n\n $card = new Card();\n $card->setToken('test-token')\n ->setName('TEST')\n ->setNumber('8696969')\n ->setExpiryMonth('09')\n ->setExpiryYear('18')\n ->setCvv('200');\n\n $data = new SinglePayData();\n $data->setOrderAmount('10.00')\n ->setCard($card);\n\n $creditCardReversal = ExpressFactory::buildCreditCardReversal($config, $data);\n $this->assertInstanceOf('\\SinglePay\\PaymentService\\Element\\Express\\Method\\CreditCardReversal', $creditCardReversal);\n $this->assertInternalType('array', $creditCardReversal->extendedParameters);\n $this->assertInternalType('int', $creditCardReversal->extendedParameters[0]->Value->enc_type);\n }", "public function reverseMe(): CollectionInterface;", "function reverse() {\r\n return new self(array_reverse($this->list));\r\n }", "public function reverse() {\n\t\tarray_reverse( $this->elements );\n\n\t\treturn $this;\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new Payout(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getSenderBatchHeader());\n $this->assertNotNull($obj->getItems());\n $this->assertNotNull($obj->getLinks());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public function reverse($preserve = true) {\n\t\t$this->_value = array_reverse($this->_value, $preserve);\n\n\t\treturn $this;\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new TX(self::getJson());\n\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getBlockHash());\n $this->assertNotNull($obj->getBlockHeight());\n $this->assertNotNull($obj->getHash());\n $this->assertNotNull($obj->getAddresses());\n $this->assertNotNull($obj->getTotal());\n $this->assertNotNull($obj->getFees());\n // TODO: Only included when the includeHex URL property is set to true.\n //$this->assertNotNull($obj->getHex());\n $this->assertNotNull($obj->getPreference());\n $this->assertNotNull($obj->getRelayedBy());\n $this->assertNotNull($obj->getConfirmed());\n $this->assertNotNull($obj->getReceived());\n $this->assertNotNull($obj->getVer());\n $this->assertNotNull($obj->getLockTime());\n $this->assertNotNull($obj->getDoubleSpend());\n // TODO: Only present for unconfirmed transactions\n //$this->assertNotNull($obj->getReceiveCount());\n $this->assertNotNull($obj->getVinSz());\n $this->assertNotNull($obj->getVoutSz());\n $this->assertNotNull($obj->getConfirmations());\n $this->assertNotNull($obj->getConfidence());\n $this->assertNotNull($obj->getInputs());\n $this->assertNotNull($obj->getOutputs());\n $this->assertNotNull($obj->getNextInputs());\n\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "function eT_dtora_reverse2dritta($datareverse, $sepaore=\":\", $sepadtora=\" \", $sepadt=\"/\") {\n $anno = substr($datareverse,0,4);\n $mese = substr($datareverse,4,2);\n $giorno = substr($datareverse,6,2);\n $ore = substr($datareverse,8,2);\n $minuti = substr($datareverse,10,2);\n $secondi = substr($datareverse,12,2);\n \n return $giorno.$sepadt.$mese.$sepadt.$anno.$sepadtora.$ore.$sepaore.$minuti.$sepaore.$secondi; \n}", "#[ReturnTypeWillChange]\n public function __unserialize($data)\n {\n foreach ($data as $item) {\n $this->unshift($item);\n }\n }", "public function reverse()\n\t{\n\t\treturn new static(array_reverse($this->stack));\n\t}", "public function reverse() {\n\t\t$out = new CMS_Navigation3_LinkSet();\n\t\t$rev = array_reverse((array)$this->links);\n\t\tforeach($rev as $link) {\n\t\t\t$out->links[] = $link;\n\t\t}\n\t\treturn $out;\n\t}", "public function getReversePhone()\n\t{\n\t\t$this->_makeRequest(Wp_WhitePages_Model_Api::API_REQUEST_METHOD_REVERSEPHONE);\n\t\treturn $this->_result;\n\t}", "public function uncompress() {}", "public function uncompress() {}", "public function testFlip() {\n $data = array(\n 'true' => true,\n 'false' => false,\n 'null' => null,\n 'zero' => 0,\n 'stringZero' => '0',\n 'empty' => array(),\n 'array' => array(\n 'false' => false,\n 'null' => null,\n 'empty' => array()\n )\n );\n\n $this->assertEquals(array(\n 1 => 'true',\n 0 => 'stringZero',\n 'empty' => array(),\n 'array' => array(\n 'empty' => array()\n )\n ), Hash::flip($data));\n\n $data = array(\n 'foo' => 'bar',\n 1 => 'one',\n 2 => 'two',\n true,\n false,\n null,\n 'key' => 'value',\n 'baz' => 'bar',\n );\n\n $this->assertEquals(array(\n 'bar' => 'baz',\n 'one' => '',\n 'two' => '',\n 1 => '',\n 'value' => 'key'\n ), Hash::flip($data));\n\n $this->assertEquals(array(\n 1 => 'boolean',\n 123 => 'integer',\n 'foobar' => 'strings',\n 1988 => 'numeric',\n 'empty' => array(),\n 'one' => array(\n 1 => 'depth',\n 'two' => array(\n 2 => 'depth',\n 'three' => array(\n 3 => 'depth',\n 1 => 'true',\n 0 => 'zero',\n 'four' => array(\n 'five' => array(\n 'six' => array(\n 'seven' => array(\n 'We can go deeper!' => 'key'\n )\n )\n )\n )\n )\n )\n )\n ), Hash::flip($this->expanded));\n }", "public function testSerializationDeserialization()\n {\n $obj = new LookupDataEntry(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getKey());\n $this->assertNotNull($obj->getValue());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function flip()\n\t{\n\t\treturn $this->toBase()->flip();\n\t}", "public function deQueue()\n {\n /*var_dump('#outgoing#');\n var_dump($this->outgoing);\n var_dump('#outgoing empty#'.$this->outgoing->isEmpty());\n var_dump('#incoming#');\n var_dump($this->incoming);\n var_dump('#incoming empty#'.$this->incoming->isEmpty());*/\n if($this->outgoing->isEmpty() && $this->incoming->isEmpty()){\n return self::createEmpty();\n }\n if($this->outgoing->isEmpty()){\n //var_dump('flip active');\n $fliped = $this->flip();\n //var_dump('#fliped#');\n //var_dump($fliped);\n $popFliped = $fliped->pop();\n //var_dump('#$popFliped#');\n //var_dump($popFliped);\n //var_dump(new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1));\n return new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1);\n }\n /*if($this->outgoing->isEmpty()){\n $fliped = $this->flip();\n $this->outgoing = $fliped;\n //var_dump('#fliped#');\n //var_dump($fliped);\n //$popFliped = $fliped->pop();\n $this->outgoing = $this->outgoing->pop();\n //var_dump('#$popFliped#');\n //var_dump($popFliped);\n //var_dump(new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1));\n return new self(ImmutableStack::createEmpty(),$this->outgoing,$this->size-1);\n }*/\n $pop = $this->outgoing->pop();\n\n return new self($this->incoming, $pop, $this->size-1);\n }", "protected function _processTransactionPaymentReversed($parameters) {\n\t\t\tif (\n\t\t\t\t!empty($parameters['invoice_id']) &&\n\t\t\t\t!empty($parameters['user'])\n\t\t\t) {\n\t\t\t\t$invoice = $this->_call('invoices', array(\n\t\t\t\t\t'methodName' => 'invoice',\n\t\t\t\t\t'methodParameters' => array(\n\t\t\t\t\t\t'invoices',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'id' => $parameters['invoice_id']\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\ttrue\n\t\t\t\t\t)\n\t\t\t\t));\n\n\t\t\t\tif (!empty($invoice['data'])) {\n\t\t\t\t\t$mailParameters = array(\n\t\t\t\t\t\t'from' => $this->settings['from_email'],\n\t\t\t\t\t\t'subject' => 'Invoice #' . $invoice['data']['invoice']['id'] . ' payment pending reversal',\n\t\t\t\t\t\t'template' => array(\n\t\t\t\t\t\t\t'name' => 'payment_reversal',\n\t\t\t\t\t\t\t'parameters' => array(\n\t\t\t\t\t\t\t\t'invoice' => $invoice['data']['invoice'],\n\t\t\t\t\t\t\t\t'transaction' => array_merge($parameters, array(\n\t\t\t\t\t\t\t\t\t'payment_method' => $this->_retrieveTransactionPaymentMethod($parameters['payment_method_id'])\n\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t'user' => $parameters['user']\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'to' => $parameters['user']['email']\n\t\t\t\t\t);\n\t\t\t\t\t$this->_sendMail($mailParameters);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}", "public function afterSerialize($serializedData, $unserializedData) {\n\t\treturn $serializedData;\n\t}", "public function reverseDeposit(FinancialTransactionInterface $transaction, $retry);", "public function reverse(): void\n {\n $ranks = $this->ranks;\n\n $this->commit(array_values(collect($ranks)->reverse()->all()));\n }", "abstract public function decode(array $options = array());", "public function decompress() {}", "public function reverse()\n {\n return Collection::new(array_reverse($this->items));\n }", "public function testReduceRight() {\n\t\t$array = str_split('reverse');\n\t\t$string = _::reduceRight($array, function($memo, $value) {\n\t\t\treturn \"$memo$value\";\n\t\t});\n\t\t$this->assertEquals('esrever', $string);\n\t}", "public function reversePart($lo,$hi);", "public function reverse()\n {\n if ($this->getLen() <= 1) {\n return true;\n }\n $node = $this->getHead();\n $newNode = new SingleNode($node->Data, null);\n while ($node = $node->Next) {\n $newNode = new SingleNode($node->Data, $newNode);\n }\n $newNode = $this->setHead($newNode);\n return true;\n }", "private function normToModel(mixed $value): mixed\n {\n try {\n $transformers = $this->config->getModelTransformers();\n\n for ($i = \\count($transformers) - 1; $i >= 0; --$i) {\n $value = $transformers[$i]->reverseTransform($value);\n }\n } catch (TransformationFailedException $exception) {\n throw new TransformationFailedException(sprintf('Unable to reverse value for property path \"%s\": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());\n }\n\n return $value;\n }", "public function flip()\n {\n return $this->toBase()->flip();\n }", "public function reverseTransform($string) {\n\t\t\treturn json_decode($string);\n\t\t}", "function pass($data, array $chain, callable $finish)\n{\n $reversed = array_reverse($chain);\n\n $result = array_reduce($reversed, function (callable $next, callable $fn) {\n return function ($data) use ($next, $fn) {\n return $fn($data, $next);\n };\n }, $finish);\n\n return $result($data);\n}", "public function decode($in) {}", "public function reverseTransform($value)\n {\n return $value;\n }", "public function testInvert() {\n\t\t$array = array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$expected = array(1 => 'one', 2 => 'two', 3 => 'three');\n\t\t$result = _::invert($array);\n\t\t$this->assertEquals($expected, $result);\n\n\t\t// test with an object\n\t\t$object = (object)$array;\n\t\t$result = _::invert($object);\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function reversed(iterable $it) : \\Generator\n {\n $array = [];\n foreach ( $it as $key => $item ) {\n $array[] = [ $key, $item ];\n }\n\n for ( end($array); key($array) !== null; prev($array) ) {\n [ $key, $item ] = current($array);\n\n yield $key => $item;\n }\n }", "public static function deserializeReverseCsvResponse(string $rawResponse): ReverseCsvResponse {\n return static::deserializeCsvResponse($rawResponse, new ReverseCsvResponse());\n }", "public function unserialize($serialized=null){ }", "public function reverse() {\r\n\t\t$this->collection = array_reverse($this->collection);\r\n return $this;\r\n }", "abstract public function revert();", "protected function reverseTransform($value)\n {\n if (null === $this->valueTransformer) {\n return '' === $value ? null : $value;\n }\n return $this->valueTransformer->reverseTransform($value, $this->data);\n }", "public function deserialize($data);", "public function reverseTransform($value)\n {\n if (!is_string($value)) {\n throw new UnexpectedTypeException($value, 'string');\n }\n\n if ('' === $value) {\n return null;\n }\n\n $value = json_decode($value, true);\n\n if (json_last_error() !== JSON_ERROR_NONE) {\n throw new TransformationFailedException($this->getLastError(json_last_error()));\n }\n\n return $value;\n }", "public function testDecode()\n {\n $json = $this->_newJson();\n \n $before = '{ \"test\": { \"foo\": \"bar\" } }';\n \n $actual = var_export($json->decode($before), 1);\n \n $expect = \"stdClass::__set_state(array(\\n\"\n . \" 'test' => \\n\"\n . \" stdClass::__set_state(array(\\n\"\n . \" 'foo' => 'bar',\\n\"\n . \" )),\\n\"\n . \"))\";\n \n $this->assertSame($actual, $expect);\n }" ]
[ "0.75660837", "0.66889006", "0.6677965", "0.6240784", "0.61688167", "0.61540484", "0.61508316", "0.61504894", "0.6074951", "0.59442", "0.59442", "0.59442", "0.59442", "0.591658", "0.59154224", "0.5853217", "0.58103627", "0.5676281", "0.5646193", "0.5595553", "0.5431423", "0.5373707", "0.53495646", "0.5324432", "0.52822465", "0.5258017", "0.5212726", "0.520557", "0.52027535", "0.52027535", "0.51947767", "0.51609427", "0.5154439", "0.5139298", "0.51181966", "0.5093672", "0.5091353", "0.5065922", "0.50519985", "0.5042689", "0.50377905", "0.50030065", "0.50029045", "0.4958846", "0.49358198", "0.49146086", "0.4911931", "0.49116006", "0.4901049", "0.4892612", "0.48891598", "0.48584035", "0.48125562", "0.4800835", "0.47946236", "0.47903877", "0.47773716", "0.47765905", "0.47695416", "0.47559488", "0.47421944", "0.47342476", "0.4714364", "0.47067708", "0.47058895", "0.47011906", "0.46823767", "0.4656634", "0.4653575", "0.46534085", "0.45986906", "0.45956865", "0.4593599", "0.4593012", "0.45892143", "0.45778447", "0.45719102", "0.45675153", "0.45634672", "0.45400348", "0.45341375", "0.45279995", "0.45250204", "0.45220405", "0.45216525", "0.45204693", "0.45019463", "0.44936615", "0.44873786", "0.44743702", "0.44742918", "0.44729832", "0.44715735", "0.44696167", "0.44643465", "0.44544455", "0.44541574", "0.44520685", "0.4449451", "0.44449395" ]
0.7750612
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
Тестирование Transform_Unserialize_Serial>getReverse() с цепочкой
public function testGetReverse_ChainDouble() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); $transform1 = new Transform_Unserialize_Serial(); $transform2 = new Transform_Unserialize_Serial(); $transform2->chainInput($mock); $transform1->chainInput($transform2); $this->assertEquals('reverse of mock transformer', $transform1->getReverse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $transform->getReverse());\n }", "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $transform1 = new Transform_Compress_Gzip();\n $transform2 = new Transform_Compress_Gzip();\n \n $transform2->chainInput($mock);\n $transform1->chainInput($transform2);\n \n $this->assertEquals('reverse of mock transformer', $transform1->getReverse());\n }", "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Decompress_Gzip'))->will($this->returnValue('reverse of mock transformer'));\n \n $this->Compress_Gzip->chainInput($mock);\n \n $this->assertEquals('reverse of mock transformer', $this->Compress_Gzip->getReverse());\n }", "public function reversal()\n {\n }", "public function reversed();", "public function reverse() {}", "private function reverseTransaction() {\n $data = [\n 'Initiator' => ' ',\n 'SecurityCredential' => ' ',\n 'CommandID' => 'TransactionReversal',\n 'TransactionID' => ' ',\n 'Amount' => ' ',\n 'ReceiverParty' => ' ',\n 'RecieverIdentifierType' => '4',\n 'QueueTimeOutURL' => $this->apiBaseUrl.'/mobilepay/tran_reverse/time_out',\n 'ResultURL' => $this->apiBaseUrl.'/mobilepay/tran_reverse/result',\n 'Remarks' => ' ',\n 'Occasion' => ' '\n ];\n return $this->remotePostCall('mpesa/reversal/v1/request', $data);\n }", "public function testProcess_Chain() \n {\n \t$mock = $this->getMock('Q\\Transform', array('process'));\n \t$mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:\"a\";a:1:{s:1:\"c\";s:3:\"abc\";}s:1:\"d\";s:1:\"e\";}'));\n \t\n $transform = new Transform_Unserialize_Serial();\n $transform->chainInput($mock);\n $contents = $transform->process('test');\n\n $this->assertType('Q\\Transform_Unserialize_Serial', $transform);\n $this->assertEquals(array('a'=>array('c'=>'abc'), 'd'=>'e'), $contents);\n }", "public function testReverseTransform_invalid()\n {\n $this->transformer->reverseTransform(44);\n }", "public function reverse();", "public function reverse();", "public function reverse();", "public function reverse();", "function reverse($object);", "abstract public function reverse($preserveKeys = false);", "public function testGetReverse_useReverseMethod()\n {\n $this->Compress_Gzip->mode = FORCE_DEFLATE;\n $reverse = $this->Compress_Gzip->getReverse();\n $this->assertType('Q\\Transform_Decompress_Gzip', $reverse);\n $this->assertEquals(FORCE_DEFLATE, $reverse->mode);\n }", "public function testReverseTransform()\n {\n $invite = m::mock('Braincrafted\\Bundle\\UserBundle\\Entity\\Invite');\n\n $repository = m::mock('Doctrine\\Common\\Persistence\\ObjectRepository');\n $repository\n ->shouldReceive('findOneBy')\n ->with(array('code' => 'abcdef'))\n ->once()\n ->andReturn($invite);\n\n $this->om\n ->shouldReceive('getRepository')\n ->with('Braincrafted\\Bundle\\UserBundle\\Entity\\Invite')\n ->once()\n ->andReturn($repository);\n\n $this->assertEquals($invite, $this->transformer->reverseTransform('abcdef'));\n }", "public function testReverseTransform_null()\n {\n $this->assertNull($this->transformer->reverseTransform(null));\n $this->assertNull($this->transformer->reverseTransform(''));\n }", "public function GetReverseParams ();", "function reverse()\n {\n }", "public function reverse() {\n\t\t$clone = clone $this;\n\t\t\n\t\tif (is_array($clone->order)) {\n\t\t\tforeach ($clone->order as &$value) {\n\t\t\t\t$value[1] = $value[1] == 'DESC' ? 'ASC' : 'DESC';\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$clone->sql = null;\n\t\treturn $clone;\n\t}", "public function reverse()\n {\n $array = $this->toArray();\n return static::createFormArray(array_reverse($array), false);\n }", "public function reverse()\n {\n return $this::from(array_reverse($this->hash, true));\n }", "public function testReverseTransformFunctionWithValidData(array $input)\n {\n /** @var \\Integrated\\Bundle\\ContentBundle\\Document\\ContentType\\Embedded\\CustomField $output */\n $output = $this->customTransformer->reverseTransform($input);\n\n $this->assertInstanceOf('\\Integrated\\Bundle\\ContentBundle\\Document\\ContentType\\Embedded\\CustomField', $output);\n $this->assertSame($input['label'], $output->getLabel());\n $this->assertSame($input['type'], $output->getType());\n\n if (!empty($input['required'])) {\n $options = $output->getOptions();\n $this->assertTrue($options['required']);\n }\n\n if (isset($input['name'])) {\n $this->assertSame($input['name'], $output->getName());\n }\n }", "public function reverse() {\n $str = Input::get ( 'value' );\n $task = new My_task;\n $result = $task->reverse($str);\n return $result;\n }", "public function reverse()\n {\n $this->dataToArray();\n $preserveKeys = (\\Sledgehammer\\is_indexed($this->data) === false);\n\n return new self(array_reverse($this->data, $preserveKeys));\n }", "function reverse () {\r\n\t$rev = $this;\r\n $rev->edits = array();\r\n foreach ($this->edits as $edit) {\r\n $rev->edits[] = $edit->reverse();\r\n }\r\n\treturn $rev;\r\n }", "public function reverse()\n {\n $reversed = UTF8::strrev($this->str);\n\n return static::create($reversed, $this->encoding);\n }", "public function reverse($value) {\n return $this->setProperty('reverse', $value);\n }", "public function reverse($value) {\n return $this->setProperty('reverse', $value);\n }", "public function reverse(): self\n {\n return Factory::create(array_reverse($this->items, true));\n }", "public function it_creates_with_2_reversed_args()\n {\n $a2 = $this->get('spec\\Aspire\\DIC\\A2', ['Foo', $this->get('spec\\Aspire\\DIC\\ExtendedB')]);\n\n $a2->b->shouldBeAnInstanceOf('spec\\Aspire\\DIC\\B');\n $a2->c->shouldBeAnInstanceOf('spec\\Aspire\\DIC\\C');\n $a2->foo->shouldEqual('Foo');\n }", "protected function initReverse () {\n\t\tif ($this->reverseSections !== NULL) return;\n\t\t$reverse = NULL;\n\t\tif ($this->reverse !== NULL) {\n\t\t\t$reverse = $this->reverse;\n\t\t} else if ($this->pattern !== NULL) {\n\t\t\t$reverse = $this->pattern;\n\t\t} else/* if ($this->pattern === NULL)*/ {\n\t\t\tif ($this->redirect !== NULL)\n\t\t\t\treturn $this->initFlagsByPatternOrReverse(\n\t\t\t\t\t$this->pattern !== NULL\n\t\t\t\t\t\t? $this->pattern\n\t\t\t\t\t\t: str_replace(['\\\\', '(?', ')?', '/?'], '', $this->match)\n\t\t\t\t);\n\t\t\t$this->throwExceptionIfKeyPropertyIsMissing('reverse', 'pattern');\n\t\t}\n\n\t\t$this->lastPatternParam = NULL;\n\n\t\t$this->reverseSections = $this->initSectionsInfo($reverse);\n\t\t$this->reverse = $reverse;\n\n\t\t$match = NULL;\n\t\t$this->reverseParams = $this->initReverseParams(\n\t\t\t$reverse, $this->reverseSections, $this->constraints, $match\n\t\t);\n\n\t\t$this->initFlagsByPatternOrReverse($reverse);\n\t}", "public function reverse() {\n $prev = NULL;\n $curr = $this->head;\n $next = $this->head->next;\n $this->tail = $this->head;\n\n while (!empty($curr)) {\n $curr->next = $prev;\n $prev = $curr;\n $curr = $next;\n $next = $next->next;\n }\n $this->head = $prev; \n }", "function _unserialize( $serial ) {\n\t\tif( function_exists( 'gzinflate' ) ) {\n\t\t\t$decomp = @gzinflate( $serial );\n\t\t\tif( false !== $decomp ) {\n\t\t\t\t$serial = $decomp;\n\t\t\t}\n\t\t}\n\t\treturn unserialize( $serial );\n\t}", "public function reverse() {\n $rev = $this;\n $rev->edits = [];\n foreach ($this->edits as $edit) {\n $rev->edits[] = $edit->reverse();\n }\n return $rev;\n }", "function setReverseMode(){\n\t\t$this->mode = SUSHEE_DEP_REVERSE_MODE;\n\t}", "function MyMod_Sort_Reverse_Get($reverse=\"\")\n {\n $reverse=$this->Reverse;\n if ($reverse==\"\")\n {\n $value=$this->CGI_GETint($this->ModuleName.\"_Reversed\");\n \n if (!empty($value))\n {\n $reverse=$value;\n }\n else\n {\n $reverse=0;\n }\n }\n\n return $reverse;\n }", "function deserialise(string $data): void;", "public function testReverseTransformFunctionWithInvalidData($input)\n {\n $this->assertNull($this->customTransformer->reverseTransform($input));\n }", "public function reversal($request);", "public function reverse(): CollectionInterface;", "abstract protected function unSerializeData();", "public function reverseMap(): MappingInterface;", "public function isReversed() {\n\t\treturn $this->attributes['reversed'];\n\t}", "public function testReverseWithExtension(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}/{action}/*');\n Router::extensions('json', false);\n\n $request = new ServerRequest([\n 'url' => '/posts/view/1.json',\n 'params' => [\n 'controller' => 'Posts',\n 'action' => 'view',\n 'pass' => [1],\n '_ext' => 'json',\n ],\n ]);\n $result = Router::reverse($request);\n $expected = '/Posts/view/1.json';\n $this->assertSame($expected, $result);\n }", "public function reverse()\n {\n return new static(array_reverse($this->objects, true));\n }", "public function reverse(): \\IvoPetkov\\DataList\n {\n $this->actions[] = ['reverse'];\n return $this;\n }", "public function reverse()\r\n\t{\r\n\t\tarray_reverse($this->_items);\r\n\t}", "public function reverseMap()\n {\n $mappedData = [];\n\n foreach ($this->rawData as $index => $field) {\n $mappedData[$index]['id'] = getVal($field, ['id'], '');\n $mappedData[$index]['reference'] = getVal($field, ['transaction', 'reference'], '');\n $mappedData[$index]['date'] = getVal($field, ['transaction', 'transaction_date', 0, 'date'], '');\n $mappedData[$index]['amount'] = getVal($field, ['transaction', 'value', 0, 'amount'], '');\n $mappedData[$index]['currency'] = getVal($field, ['transaction', 'value', 0, 'currency'], '');\n $mappedData[$index]['description'] = getVal($field, ['transaction', 'description', 0, 'narrative', 0, 'narrative'], '');\n $mappedData[$index]['organisation'] = getVal($field, ['transaction', 'receiver_organization', 0, 'narrative', 0, 'narrative'], '');\n }\n\n return $mappedData;\n }", "public function reversal($values)\n\t{\n\t\treturn $this->getRequest('Reversal', $values);\n\t}", "public function reverse($destinationFieldValue, $field, $source, $destination);", "public function setReversed($reversed) {\n\t\t$this->attributes['reversed'] = $reversed;\n\t\treturn $this;\n\t}", "public function setReverseOrder($reverse = true)\n {\n $this->reverse = $reverse;\n return $this;\n }", "public function reverse(array $params = array())\n {\n $parsed = $this->reverse;\n foreach ($params as $name => $value) {\n $parsed = str_replace(':' . $name, $value, $parsed);\n }\n return $parsed;\n }", "public function testBuildCreditCardReversal()\n {\n $config = new SinglePayConfig();\n $config->setServiceConfig(self::$testConfig);\n\n $card = new Card();\n $card->setToken('test-token')\n ->setName('TEST')\n ->setNumber('8696969')\n ->setExpiryMonth('09')\n ->setExpiryYear('18')\n ->setCvv('200');\n\n $data = new SinglePayData();\n $data->setOrderAmount('10.00')\n ->setCard($card);\n\n $creditCardReversal = ExpressFactory::buildCreditCardReversal($config, $data);\n $this->assertInstanceOf('\\SinglePay\\PaymentService\\Element\\Express\\Method\\CreditCardReversal', $creditCardReversal);\n $this->assertInternalType('array', $creditCardReversal->extendedParameters);\n $this->assertInternalType('int', $creditCardReversal->extendedParameters[0]->Value->enc_type);\n }", "public function reverseMe(): CollectionInterface;", "function reverse() {\r\n return new self(array_reverse($this->list));\r\n }", "public function reverse() {\n\t\tarray_reverse( $this->elements );\n\n\t\treturn $this;\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new Payout(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getSenderBatchHeader());\n $this->assertNotNull($obj->getItems());\n $this->assertNotNull($obj->getLinks());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public function reverse($preserve = true) {\n\t\t$this->_value = array_reverse($this->_value, $preserve);\n\n\t\treturn $this;\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new TX(self::getJson());\n\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getBlockHash());\n $this->assertNotNull($obj->getBlockHeight());\n $this->assertNotNull($obj->getHash());\n $this->assertNotNull($obj->getAddresses());\n $this->assertNotNull($obj->getTotal());\n $this->assertNotNull($obj->getFees());\n // TODO: Only included when the includeHex URL property is set to true.\n //$this->assertNotNull($obj->getHex());\n $this->assertNotNull($obj->getPreference());\n $this->assertNotNull($obj->getRelayedBy());\n $this->assertNotNull($obj->getConfirmed());\n $this->assertNotNull($obj->getReceived());\n $this->assertNotNull($obj->getVer());\n $this->assertNotNull($obj->getLockTime());\n $this->assertNotNull($obj->getDoubleSpend());\n // TODO: Only present for unconfirmed transactions\n //$this->assertNotNull($obj->getReceiveCount());\n $this->assertNotNull($obj->getVinSz());\n $this->assertNotNull($obj->getVoutSz());\n $this->assertNotNull($obj->getConfirmations());\n $this->assertNotNull($obj->getConfidence());\n $this->assertNotNull($obj->getInputs());\n $this->assertNotNull($obj->getOutputs());\n $this->assertNotNull($obj->getNextInputs());\n\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "function eT_dtora_reverse2dritta($datareverse, $sepaore=\":\", $sepadtora=\" \", $sepadt=\"/\") {\n $anno = substr($datareverse,0,4);\n $mese = substr($datareverse,4,2);\n $giorno = substr($datareverse,6,2);\n $ore = substr($datareverse,8,2);\n $minuti = substr($datareverse,10,2);\n $secondi = substr($datareverse,12,2);\n \n return $giorno.$sepadt.$mese.$sepadt.$anno.$sepadtora.$ore.$sepaore.$minuti.$sepaore.$secondi; \n}", "public function reverse()\n\t{\n\t\treturn new static(array_reverse($this->stack));\n\t}", "#[ReturnTypeWillChange]\n public function __unserialize($data)\n {\n foreach ($data as $item) {\n $this->unshift($item);\n }\n }", "public function reverse() {\n\t\t$out = new CMS_Navigation3_LinkSet();\n\t\t$rev = array_reverse((array)$this->links);\n\t\tforeach($rev as $link) {\n\t\t\t$out->links[] = $link;\n\t\t}\n\t\treturn $out;\n\t}", "public function getReversePhone()\n\t{\n\t\t$this->_makeRequest(Wp_WhitePages_Model_Api::API_REQUEST_METHOD_REVERSEPHONE);\n\t\treturn $this->_result;\n\t}", "public function uncompress() {}", "public function uncompress() {}", "public function testFlip() {\n $data = array(\n 'true' => true,\n 'false' => false,\n 'null' => null,\n 'zero' => 0,\n 'stringZero' => '0',\n 'empty' => array(),\n 'array' => array(\n 'false' => false,\n 'null' => null,\n 'empty' => array()\n )\n );\n\n $this->assertEquals(array(\n 1 => 'true',\n 0 => 'stringZero',\n 'empty' => array(),\n 'array' => array(\n 'empty' => array()\n )\n ), Hash::flip($data));\n\n $data = array(\n 'foo' => 'bar',\n 1 => 'one',\n 2 => 'two',\n true,\n false,\n null,\n 'key' => 'value',\n 'baz' => 'bar',\n );\n\n $this->assertEquals(array(\n 'bar' => 'baz',\n 'one' => '',\n 'two' => '',\n 1 => '',\n 'value' => 'key'\n ), Hash::flip($data));\n\n $this->assertEquals(array(\n 1 => 'boolean',\n 123 => 'integer',\n 'foobar' => 'strings',\n 1988 => 'numeric',\n 'empty' => array(),\n 'one' => array(\n 1 => 'depth',\n 'two' => array(\n 2 => 'depth',\n 'three' => array(\n 3 => 'depth',\n 1 => 'true',\n 0 => 'zero',\n 'four' => array(\n 'five' => array(\n 'six' => array(\n 'seven' => array(\n 'We can go deeper!' => 'key'\n )\n )\n )\n )\n )\n )\n )\n ), Hash::flip($this->expanded));\n }", "public function flip()\n\t{\n\t\treturn $this->toBase()->flip();\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new LookupDataEntry(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getKey());\n $this->assertNotNull($obj->getValue());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function deQueue()\n {\n /*var_dump('#outgoing#');\n var_dump($this->outgoing);\n var_dump('#outgoing empty#'.$this->outgoing->isEmpty());\n var_dump('#incoming#');\n var_dump($this->incoming);\n var_dump('#incoming empty#'.$this->incoming->isEmpty());*/\n if($this->outgoing->isEmpty() && $this->incoming->isEmpty()){\n return self::createEmpty();\n }\n if($this->outgoing->isEmpty()){\n //var_dump('flip active');\n $fliped = $this->flip();\n //var_dump('#fliped#');\n //var_dump($fliped);\n $popFliped = $fliped->pop();\n //var_dump('#$popFliped#');\n //var_dump($popFliped);\n //var_dump(new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1));\n return new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1);\n }\n /*if($this->outgoing->isEmpty()){\n $fliped = $this->flip();\n $this->outgoing = $fliped;\n //var_dump('#fliped#');\n //var_dump($fliped);\n //$popFliped = $fliped->pop();\n $this->outgoing = $this->outgoing->pop();\n //var_dump('#$popFliped#');\n //var_dump($popFliped);\n //var_dump(new self(ImmutableStack::createEmpty(),$popFliped,$this->size-1));\n return new self(ImmutableStack::createEmpty(),$this->outgoing,$this->size-1);\n }*/\n $pop = $this->outgoing->pop();\n\n return new self($this->incoming, $pop, $this->size-1);\n }", "protected function _processTransactionPaymentReversed($parameters) {\n\t\t\tif (\n\t\t\t\t!empty($parameters['invoice_id']) &&\n\t\t\t\t!empty($parameters['user'])\n\t\t\t) {\n\t\t\t\t$invoice = $this->_call('invoices', array(\n\t\t\t\t\t'methodName' => 'invoice',\n\t\t\t\t\t'methodParameters' => array(\n\t\t\t\t\t\t'invoices',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'id' => $parameters['invoice_id']\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\ttrue\n\t\t\t\t\t)\n\t\t\t\t));\n\n\t\t\t\tif (!empty($invoice['data'])) {\n\t\t\t\t\t$mailParameters = array(\n\t\t\t\t\t\t'from' => $this->settings['from_email'],\n\t\t\t\t\t\t'subject' => 'Invoice #' . $invoice['data']['invoice']['id'] . ' payment pending reversal',\n\t\t\t\t\t\t'template' => array(\n\t\t\t\t\t\t\t'name' => 'payment_reversal',\n\t\t\t\t\t\t\t'parameters' => array(\n\t\t\t\t\t\t\t\t'invoice' => $invoice['data']['invoice'],\n\t\t\t\t\t\t\t\t'transaction' => array_merge($parameters, array(\n\t\t\t\t\t\t\t\t\t'payment_method' => $this->_retrieveTransactionPaymentMethod($parameters['payment_method_id'])\n\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t'user' => $parameters['user']\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'to' => $parameters['user']['email']\n\t\t\t\t\t);\n\t\t\t\t\t$this->_sendMail($mailParameters);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}", "public function afterSerialize($serializedData, $unserializedData) {\n\t\treturn $serializedData;\n\t}", "public function reverseDeposit(FinancialTransactionInterface $transaction, $retry);", "public function reverse(): void\n {\n $ranks = $this->ranks;\n\n $this->commit(array_values(collect($ranks)->reverse()->all()));\n }", "abstract public function decode(array $options = array());", "public function decompress() {}", "public function reverse()\n {\n return Collection::new(array_reverse($this->items));\n }", "public function testReduceRight() {\n\t\t$array = str_split('reverse');\n\t\t$string = _::reduceRight($array, function($memo, $value) {\n\t\t\treturn \"$memo$value\";\n\t\t});\n\t\t$this->assertEquals('esrever', $string);\n\t}", "public function reversePart($lo,$hi);", "public function reverse()\n {\n if ($this->getLen() <= 1) {\n return true;\n }\n $node = $this->getHead();\n $newNode = new SingleNode($node->Data, null);\n while ($node = $node->Next) {\n $newNode = new SingleNode($node->Data, $newNode);\n }\n $newNode = $this->setHead($newNode);\n return true;\n }", "private function normToModel(mixed $value): mixed\n {\n try {\n $transformers = $this->config->getModelTransformers();\n\n for ($i = \\count($transformers) - 1; $i >= 0; --$i) {\n $value = $transformers[$i]->reverseTransform($value);\n }\n } catch (TransformationFailedException $exception) {\n throw new TransformationFailedException(sprintf('Unable to reverse value for property path \"%s\": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());\n }\n\n return $value;\n }", "public function flip()\n {\n return $this->toBase()->flip();\n }", "public function reverseTransform($string) {\n\t\t\treturn json_decode($string);\n\t\t}", "function pass($data, array $chain, callable $finish)\n{\n $reversed = array_reverse($chain);\n\n $result = array_reduce($reversed, function (callable $next, callable $fn) {\n return function ($data) use ($next, $fn) {\n return $fn($data, $next);\n };\n }, $finish);\n\n return $result($data);\n}", "public function decode($in) {}", "public function reverseTransform($value)\n {\n return $value;\n }", "public function testInvert() {\n\t\t$array = array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$expected = array(1 => 'one', 2 => 'two', 3 => 'three');\n\t\t$result = _::invert($array);\n\t\t$this->assertEquals($expected, $result);\n\n\t\t// test with an object\n\t\t$object = (object)$array;\n\t\t$result = _::invert($object);\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function reversed(iterable $it) : \\Generator\n {\n $array = [];\n foreach ( $it as $key => $item ) {\n $array[] = [ $key, $item ];\n }\n\n for ( end($array); key($array) !== null; prev($array) ) {\n [ $key, $item ] = current($array);\n\n yield $key => $item;\n }\n }", "public static function deserializeReverseCsvResponse(string $rawResponse): ReverseCsvResponse {\n return static::deserializeCsvResponse($rawResponse, new ReverseCsvResponse());\n }", "public function unserialize($serialized=null){ }", "public function reverse() {\r\n\t\t$this->collection = array_reverse($this->collection);\r\n return $this;\r\n }", "protected function reverseTransform($value)\n {\n if (null === $this->valueTransformer) {\n return '' === $value ? null : $value;\n }\n return $this->valueTransformer->reverseTransform($value, $this->data);\n }", "abstract public function revert();", "public function deserialize($data);", "public function reverseTransform($value)\n {\n if (!is_string($value)) {\n throw new UnexpectedTypeException($value, 'string');\n }\n\n if ('' === $value) {\n return null;\n }\n\n $value = json_decode($value, true);\n\n if (json_last_error() !== JSON_ERROR_NONE) {\n throw new TransformationFailedException($this->getLastError(json_last_error()));\n }\n\n return $value;\n }", "public function testDecode()\n {\n $json = $this->_newJson();\n \n $before = '{ \"test\": { \"foo\": \"bar\" } }';\n \n $actual = var_export($json->decode($before), 1);\n \n $expect = \"stdClass::__set_state(array(\\n\"\n . \" 'test' => \\n\"\n . \" stdClass::__set_state(array(\\n\"\n . \" 'foo' => 'bar',\\n\"\n . \" )),\\n\"\n . \"))\";\n \n $this->assertSame($actual, $expect);\n }" ]
[ "0.77503055", "0.66885215", "0.6677177", "0.6240599", "0.6170473", "0.61553895", "0.61520016", "0.61476904", "0.607417", "0.5945706", "0.5945706", "0.5945706", "0.5945706", "0.59170383", "0.591687", "0.5853025", "0.5810367", "0.56759506", "0.56476384", "0.55959487", "0.543253", "0.5375059", "0.53507125", "0.5322391", "0.52827865", "0.5258638", "0.5213316", "0.52065796", "0.52045006", "0.52045006", "0.5196143", "0.51613635", "0.51556206", "0.5140801", "0.51155275", "0.5094709", "0.5091632", "0.50680536", "0.50483495", "0.5041155", "0.503918", "0.50043046", "0.499892", "0.49588683", "0.4937701", "0.49159443", "0.49132872", "0.4912078", "0.49014363", "0.48914683", "0.4891264", "0.48588294", "0.48136038", "0.48027173", "0.47966847", "0.47901753", "0.47783887", "0.47780076", "0.47705323", "0.47549036", "0.47383457", "0.47351363", "0.47135597", "0.470769", "0.47028264", "0.4702655", "0.4683461", "0.4658442", "0.46504244", "0.46502563", "0.45983702", "0.45944205", "0.45936275", "0.45934", "0.45896658", "0.457638", "0.45733577", "0.45685485", "0.4561353", "0.45374265", "0.45357612", "0.45284837", "0.45258397", "0.45237324", "0.45214587", "0.45213604", "0.4501332", "0.44942638", "0.44854861", "0.44739145", "0.44731846", "0.44730297", "0.44715604", "0.44670168", "0.44654828", "0.4453853", "0.4453795", "0.44490504", "0.4448614", "0.44434893" ]
0.75659686
1
/ Function: get factor from database Parameter: Atom1, Atom2, bond order, primary/secondary table Return: Factor
Функция: получение фактора из базы данных Параметр: Atom1, Atom2, порядок связи, основная/второстепенная таблица Возвращаемое значение: Фактор
function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) { global $conn; global $PRIMARY_TB; // Check if all the parameters are valid if (!$Atom1) { die("Atom 1 is not specified."); } elseif (!$Atom2) { die("Atom 2 is not specified."); } elseif (!$BondOrder) { die("Bond order is not specified."); } $query_str = "SELECT Factor FROM $tb_name ". "WHERE (Atom1='$Atom1' AND Atom2='$Atom2')". "AND BondOrder=$BondOrder"; $result = $conn->query($query_str); // Everything is ok if ($result->num_rows == 1) { $row = $result->fetch_assoc(); return $row['Factor']; } // There is something wrong if ($BondOrder == 1) { $boName = "single"; } elseif ($BondOrder == 2) { $boName = "double"; } elseif ($BondOrder == 3) { $boName = "tripple"; } else { $boName = $BondOrder; } // If such bond DNE, print error if($result->num_rows == 0) { if ($tb_name == $PRIMARY_TB) { die("The $Atom1-$Atom2 $boName bond does not exist in the database."); } else { return 0; } } // If there are multiple entries if ($result->num_rows > 1) { die("There are multiple entries in the database of the $Atom1-$Atom2 $boName bond."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_factor_query($is_aromatic_ring) {\n\t\n\tglobal $PRIMARY_TB, $SECONDARY_TB, $l_0;\n\t\n\t$bonds = json_decode($_GET['json_query'], true);\n\t$sum = 0;\n\tforeach ($bonds as $bond) {\n\t\t// $bond has keys: Atom1, Atom2, BondOrder, Proximity\n\t\tif ($bond[\"Proximity\"] == 1) {\n\t\t\t$f = get_factor($bond[\"Atom1\"], $bond[\"Atom2\"], $bond[\"BondOrder\"], $PRIMARY_TB);\n\t\t\t$l_char = \"<i>L</i>\";\n\t\t} elseif ($bond[\"Proximity\"] == 2) {\n\t\t\t$f = get_factor($bond[\"Atom1\"], $bond[\"Atom2\"], $bond[\"BondOrder\"], $SECONDARY_TB);\n\t\t\t$l_char = \"<i>l</i>\";\n\t\t}\n\t\t$sum += $f;\n\t\tif ($bond[\"BondOrder\"] == 1) {\n\t\t\t$bond_char = \"-\";\n\t\t} elseif ($bond[\"BondOrder\"] == 2) {\n\t\t\t$bond_char = \"=\";\n\t\t} elseif ($bond[\"BondOrder\"] == 3) {\n\t\t\t$bond_char = \"&equiv;\";\n\t\t}\n\t\techo \"<p>\".$l_char.\"<sub>\".$bond[\"Atom1\"].$bond_char.$bond[\"Atom2\"].\"</sub> = \".$f.\"</p>\";\n\t}\n\tif ($is_aromatic_ring == \"true\") {\n\t\t$sum += $l_0;\n\t\techo \"<p>l<sub>0</sub> = \".$l_0.\"</p>\";\n\t}\n\techo \"<h4>&beta; = \".($sum+1).\"</h4>\";\n}", "public function factor();", "public function getFactor()\n\t{\n\t\treturn $this->factor;\n\t}", "function calculDeterminent($tab)\n {\n\n $detemninent = $tab[0][1] * (-1) * (($tab[1][0] * $tab[2][2]) - ($tab[1][2] * $tab[2][0])) +\n $tab[1][1] * (1) * (($tab[0][0] * $tab[2][2]) - ($tab[2][0] * $tab[0][2])) +\n $tab[2][1] * (-1) * (($tab[0][0] * $tab[1][2]) - ($tab[1][0] * $tab[0][2]));\n\n return $detemninent;\n }", "function get_franimeischdisc_pid($fid,$pid)\r\n\t{\r\n\t\t$ddet_res = $this->db->query(\"select menuid,catid,brandid from king_deals a join king_dealitems b on a.dealid = b.dealid where pnh_id = ? \",$pid);\r\n\t\tif($ddet_res->num_rows())\r\n\t\t{\r\n\t\t\t$ddet = $ddet_res->row_array();\r\n\t\t\treturn @$this->db->query(\"select scheme_type,credit_value,if(scheme_type,concat(credit_value,'%'),concat('Rs ',credit_value)) as disc,\r\n\t\t\t\t\t\t\t\t\t\t\tmenuid,categoryid,brandid \r\n\t\t\t\t\t\t\t\t\t\t\tfrom imei_m_scheme \r\n\t\t\t\t\t\t\t\t\t\t\twhere franchise_id = ? and brandid = ? and categoryid = ? and menuid = ?\r\n\t\t\t\t\t\t\t\t\t\t\tand unix_timestamp() between scheme_from and scheme_to \r\n\t\t\t\t\t\t\t\t\t\t\tand is_active = 1 order by id desc limit 1\",array($fid,$ddet['brandid'],$ddet['catid'],$ddet['menuid']))->row()->disc;\r\n\t\t}\r\n\t\treturn 0;\t\r\n\t}", "public function getF()\n {\n if (isset($this->f)) {\n return $this->f;\n }\n\n if (isset($this->b)) {\n // f = (a-b)/a\n return ($this->a - $this->b) / $this->a;\n }\n\n if (isset($this->rf)) {\n // r = 1/rf\n return 1 / $this->rf;\n }\n }", "public function getCaracteristicaFactor($id, $idComponente) {\n if($idComponente == 0){\n $sql = 'select * FROM caracteristica as caracte \nINNER JOIN factores AS fact ON caracte.id_factor = fact.id \nINNER JOIN componentes AS comp ON comp.id = fact.idParent\nWHERE caracte.id_factor = \"' . $id . '\"';\n }else{\n $sql = 'select * FROM caracteristica as caracte \nINNER JOIN factores AS fact ON caracte.id_factor = fact.id \nINNER JOIN componentes AS comp ON comp.id = fact.idParent\nWHERE caracte.id_factor = \"' . $id . '\" AND comp.id = \"' . $idComponente . '\" ';\n }\n $results = $this->adapter->query($sql, Adapter::QUERY_MODE_EXECUTE);\n return $results;\n }", "private function AsrFactor($asrParam)\n\t{\n\t\treturn $asrParam == AsrMethod::Standard ? 1 : 0;\n\t}", "function gain($l_column,$other_column,$res){\r\n\t$res_gain = array();\r\n\r\n\t$information = information_for_each_column($other_column,$res);\r\n\t$entropy_lastColumn = entropy($l_column);\r\n\t\r\n\tfor ($i = 0; $i < count($information); $i++){\r\n\t\t$temp = $entropy_lastColumn - $information[$i];\r\n\t\tarray_push($res_gain, $temp);\r\n\t}\r\n\treturn $res_gain;\r\n}", "public function getFactor(array $options = [])\n {\n return $this->getResourceProperty(self::FACTOR, Stormpath::FACTOR, $options);\n }", "private static function getAmortizationCoefficient(float $rate): float\n {\n // Life of assets (1/rate) Depreciation coefficient\n // Less than 3 years 1\n // Between 3 and 4 years 1.5\n // Between 5 and 6 years 2\n // More than 6 years 2.5\n $fUsePer = 1.0 / $rate;\n\n if ($fUsePer < 3.0) {\n return 1.0;\n } elseif ($fUsePer < 4.0) {\n return 1.5;\n } elseif ($fUsePer <= 6.0) {\n return 2.0;\n }\n\n return 2.5;\n }", "private static function _getFactor($token, $parent)\n {\n $factor = self::_newFactor($token);\n $parentIndex = $parent->getIndex();\n $factor->setParentIndex($parentIndex);\n\n return $factor;\n }", "function getCommonFactor($first, $second, $tenPoint, $height) {\n $allNumbers = array(intval($first), intval($second));\n $upDown = $down;\n $interval = 1;\n $isCommon = false;\n $testNumber = intval(0.2181818181 * ($height/$tenPoint)); // when we've got more height than font, we'll start looking at a higher number for the common factor. Default will be 12.\n while(!$isCommon AND $testNumber > 3) {\n\t\t$isCommon = true; // if we make it through the following loop without changing this, then we've found our number!\n\t\tforeach($allNumbers as $num) {\n\t\t\t$remainder = $num % $testNumber;\n if($remainder != 0) {\n $isCommon = false;\n }\n\t\t}\n if(!$isCommon) {\n if($upDown == \"down\") {\n $testNumber = $testNumber - $interval;\n $upDown = \"up\";\n } else {\n $testNumber = $testNumber + $interval;\n $upDown = \"down\";\n }\n $interval++;\n }\n\t}\n if(!$isCommon) {\n return 12;\n } else {\n return $testNumber;\n }\n}", "private static function _identifyFactor($token)\n {\n foreach (RX::FACTOR_SYM_DEF as $type => $regex) {\n if (preg_match($regex, $token) === 1) {\n return K::DESC[$type];\n }\n }\n if (self::_isEnclosure($token)) {\n return K::FACTOR_ENCLOSURE;\n }\n return K::POWER;\n }", "function getCompatibilityByWeight2($searchee=array(), $candidate=array()){\r\n\t\t$similarItems = $this->getSimilarItems ( $searchee, $candidate );\r\n\t\t$n = count($similarItems);\r\n\t\tif ($n==0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t$sum1 = $this->sumUpWeights($searchee, $similarItems);\r\n\t\t$sum2 = $this->sumUpWeights($candidate, $similarItems);\r\n\t\t$sumPow1 = $this->sumUpWeights($searchee, $similarItems, \"sumpower\");\r\n\t\t$sumPow2 = $this->sumUpWeights($candidate, $similarItems, \"sumpower\");\r\n\t\t$sameItems1 = $this->getSimilarItemsPerPerson($searchee, $similarItems);\r\n\t\t$sameItems2 = $this->getSimilarItemsPerPerson($candidate, $similarItems);\r\n\t\t$sumMul = 0;\r\n\t\tfor($i=0;$i<$n;$i++){\r\n\t\t\t$sumMul += ($sameItems1[$i][\"weight\"]*$sameItems2[$i][\"weight\"]);\r\n\t\t}\r\n\t\t//$numerator = $sumMul*$n - (($sum1*$sum2)/$n);\r\n\t\t$numerator = ($sumMul*$n - ($sum1*$sum2))/$n;\r\n\t\t$denominator = sqrt(\r\n\t\t\t($sumPow1 - (pow($sum1, 2)/$n))*($sumPow2 - (pow($sum2, 2)/$n))\r\n\t\t\r\n\t\t);\r\n\t\tif ($numerator==$denominator){\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif ($denominator==0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn $numerator/$denominator;\r\n\t}", "private static function _getFactorObject($token, int $type)\n {\n switch ($type) {\n case K::FACTOR_ENCLOSURE:\n $factor = new FactorEnclosure($token);\n break;\n case K::FRACTION:\n $fstr = substr($token, 1);\n $ft = self::_identifyFactor($fstr);\n switch ($ft) {\n case K::FACTOR_ENCLOSURE:\n $factor = new FactorEnclosure($token);\n break;\n default:\n $factor = new Factor($token);\n }\n $factor->setFactorType($ft);\n return $factor;\n default:\n $factor = new Factor($token);\n }\n return $factor;\n }", "function OBTENER_FORMULA($_ARGS) {\r\n\t$sql = \"SELECT Formula FROM pr_concepto WHERE CodConcepto = '\".$_ARGS['CONCEPTO'].\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) {\r\n\t\t$field = mysql_fetch_array($query);\r\n\t\treturn $field['Formula'];\r\n\t} else return \"\";\r\n}", "function getCompatibilityByWeight($searchee=array(), $candidate=array(), $type=1){\r\n\t\t$commonItems = 0;\r\n\t\t$sim = 0;\r\n\t\tforeach($searchee[\"MemberAttributeWeight\"] as $weight_searchee){\r\n\t\t\tforeach($candidate[\"MemberAttributeWeight\"] as $weight_candidate){\r\n\t\t\t\tif ($weight_searchee[\"attribute_id\"]==$weight_candidate[\"attribute_id\"]){\r\n\t\t\t\t\t$attribute = $this->controller->Attribute->find(\"first\", array(\"conditions\"=>array(\"Attribute.id\"=>$weight_candidate[\"attribute_id\"])));\r\n\t\t\t\t\t//if ($attribute[\"attribute_type_id\"]==$type){\r\n\t\t\t\t\t\t$commonItems++;\r\n\t\t\t\t\t\t$weight1 = $weight_searchee[\"weight\"];\r\n\t\t\t\t\t\t$weight2 = $weight_candidate[\"weight\"];\r\n\t\t\t\t\t\t$sim+=pow(($weight1-$weight2), 2);\r\n\t\t\t\t\t//}\t\t\t\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($commonItems>0){\r\n\t\t\t$sim = sqrt($sim/$commonItems);\r\n\t\t\t$sim = 1 - tanh($sim);\r\n\t\t\t$maxItems = min(count($searchee[\"MemberAttributeWeight\"]), count($candidate[\"MemberAttributeWeight\"]));\r\n\t\t\t$sim = $sim * ($commonItems/$maxItems);\r\n\t\t}\r\n\t\treturn $sim;\r\n\t}", "public function getSlavePriceFriendRank($uid)\n {\n \t$sql = \" SELECT (COUNT(a.fid)+1) AS rank_price FROM (SELECT f.fid FROM slave_friend AS f WHERE f.uid=:uid\n \t\t\t UNION SELECT u.uid FROM slave_user AS u WHERE u.uid=:uid) a,\n\t\t\t\t slave_user b WHERE a.fid = b.uid\n\t\t\t\t AND b.price > (SELECT price FROM slave_user WHERE uid=:uid)\";\n\n \treturn $this->_rdb->fetchOne($sql, array('uid' => $uid));\n }", "function getInterestFactor($interest)\n{\n $rate = $interest / 365.25;\n return $rate;\n}", "public static function getFactorings($fechai, $fechaf, $tercero)\n {\n $query = Factoring1::query();\n $query->select(DB::raw(\"SUM(factoring3_saldo) AS factoring\"), DB::raw(\"COUNT(factoring1_numero) AS numerofactoring\"));\n $query->join('factoring3', function($join){\n $join->on('factoring3_numero', '=', 'factoring1_numero');\n $join->on('factoring3_sucursal', '=', 'factoring1_sucursal');\n });\n $query->whereRaw(\"factoring3_numero = factoring1_numero\");\n $query->whereRaw(\"factoring3_numero = factoring1_numero\");\n $query->where('factoring3_tercero_cartera', $tercero->tercero_nit)->orWhere('factoring3_tercero_endoso', $tercero->tercero_nit);\n $query->where('factoring1_fecha', '>=', $fechai);\n $query->where('factoring1_fecha', '<', $fechaf);\n return $query->first();\n }", "public function getB()\n {\n if (isset($this->b)) {\n return $this->b;\n }\n\n if (isset($this->f)) {\n // f = (a-b)/a ∴ fa = a-b ∴ b = a-fa\n return $this->a - ($this->f * $this->a);\n }\n\n if (isset($this->rf)) {\n // rf = a/(a-b) ∴ rf/a = a-b ∴ b = a-rf/a\n return $this->a - ($this->rf / $this->a);\n }\n }", "public function calculateFactor($number){\n\n //Variables that define the multiples of three and five\n $ofThree = $number%3 === 0;\n $ofFive = $number%5 === 0;\n $ofBoth = $ofThree && $ofFive;\n\n //Push all the answers to the container\n $container = [];\n array_push($container, $ofThree, $ofFive, $ofBoth, false);\n $size = 3;\n \n $count = 0;\n $count_true = 0;\n $index = 0;\n \n //Finds the first true, add 1 to the end to match the values later\n while($container[$index] !== true && $index < $size){\n $index++;\n }\n $index++;\n\n //Counts the total number of trues\n while($count < $size){\n $count_true += $container[$count];\n $count++;\n }\n\n //Array that contains the map for the answer\n $arr_values = [0 => $number, 1 => 'Linio', 2 => 'IT', 3 => 'Linianos'];\n\n //Only if that evaluate if there is one true and gives the value with $index\n if($count_true == 1){\n return $arr_values[$index];\n }\n\n //Return the arr value in case there is less or more than one true\n return $arr_values[$count_true];\n }", "private function convertCurrencyByAmount($transaction) {\nlist($currency, $amount)=explode(\" \", $transaction);\n\n$stmt=$this->mysqli->prepare(\"SELECT currencyType, currencyRate FROM currencyrates WHERE currencyType=?\");\n$stmt->bind_param(\"s\", $currency);\n$stmt->execute();\n$res=$stmt->get_result();\n$row=$res->fetch_assoc();\n$stmt->close();\n\nreturn $this->basecurrency . ' ' . number_format((float)$row['currencyRate'] * (float)$amount, 2);\n}", "public function datosFactura($idFactura, $vector)\n{\n conectar::conexiones();\n $sql=\"SELECT * FROM pedidos WHERE id='\".$this->filtroNumerico($idFactura).\"'\";\n $query=mysql_query($sql);\n $rs=mysql_fetch_array($query);\n\n switch ($vector) {\n case 'nroPedido':\n # code...\n return $rs[\"nroPedido\"];\n break;\n\n case 'idCliente':\n # code...\n return $rs[\"idCliente\"];\n break;\n\n case 'idVendedor':\n # code...\n return $rs[\"idVendedor\"];\n break;\n\n\n case 'fechaPedido':\n # code...\n return $rs[\"fechaPedido\"];\n break;\n\n\n case 'valorPedido':\n # code...\n return $rs[\"valorPedido\"];\n break;\n\n case 'debe':\n # code...\n return $rs[\"debe\"];\n break;\n\n\n\n default:\n # code...\n return 'No hay datos';\n break;\n }\n conectar::desconectar();\n}", "final public function useFactor($value) {\n\t\treturn $this->factor*$value;\n\t}", "function retrieveFunds() {\n return -110.98;\n }", "function getCIMaxcnt($account_id_local,$DbConnection)\n{\n\t$query=\"SELECT MAX(docket_no) as max_count from consignment_info USE INDEX(accountId_status) WHERE\".\n\t\t \" account_id=$account_id_local AND status=1\";\n\t$result=mysql_query($query,$DbConnection);\n\t$max_no = mysql_fetch_row($result1);\n\treturn $row[0];\n}", "function getFondoPatrimonial(){\n\t\t$sql = \"SELECT\n\t\t\tSUM(`operaciones_mvtos`.`afectacion_real` *\n\t\t\t`eacp_config_bases_de_integracion_miembros`.`afectacion`) AS 'monto'\n\n\t\tFROM\n\t\t\t`operaciones_mvtos` `operaciones_mvtos`\n\t\t\t\tINNER JOIN `eacp_config_bases_de_integracion_miembros`\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`\n\t\t\t\tON `operaciones_mvtos`.`tipo_operacion` =\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`miembro`\n\t\tWHERE\n\t\t\t(`operaciones_mvtos`.`socio_afectado` =\" . $this->mCodigo . \")\n\t\t\tAND\n\t\t\t(`eacp_config_bases_de_integracion_miembros`.`codigo_de_base` = 2607)\n\t\t\tGROUP BY\n\t\t\t\t`operaciones_mvtos`.`fecha_afectacion`,\n\t\t\t\t`operaciones_mvtos`.`socio_afectado`,\n\t\t\t\t`operaciones_mvtos`.`docto_afectado`,\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`codigo_de_base`\n\t\t\tORDER BY\n\t\t`eacp_config_bases_de_integracion_miembros`.`codigo_de_base`\";\n\n\t\t$monto = mifila($sql, \"monto\");\n\t\treturn $monto;\n\t}", "public function get_balance1($dist_id)\n {\n $q=$this->db->where(['dist_id'=>$dist_id])->get('distributor');\n return $q->result_array()[0]['dist_balance'];\n }", "function determine_compound_structural_formula ($chemical_compound_name) {\n\t\n\t\n}", "function Factor($n){\n while($n%2==0){\n echo \"2 \\n\";\n $n=$n/2;\n }\n for($i=3;$i<=sqrt($n);$i=$i+2){\n while($n%$i==0){\n echo \"$i \\n\";\n $n=$n/$i;\n }\n }\n if($n>2){\n echo \"$n\\n\";\n }\n }", "function c2f ($value){\n $fahrenheit=$value/5*9+32;\n return $fahrenheit;\n }", "function get_constituency_id($constituency_name, $conn_huduma_db) {\n $constituency_result = mysql_query(\"SELECT `id` FROM boundary WHERE LOWER(boundary_name) = '\".trim(strtolower($constituency_name)).\"'\", $conn_huduma_db);\n\n if($constituency_result) {\n if($my_array = mysql_fetch_array($constituency_result)) {\n return $my_array[0];\n }\n\n return null;\n }\n\n return null;\n}", "function factorielle($n) : float\n{\n\treturn ($n === 0) ? 1 : $n*factorielle($n-1);\n}", "function getSpecificValue($con, $table, $column1, $column2, $value1)\n{\n $result = mysqli_query($con, \"SELECT $column2 \"\n . \"FROM $table \"\n . \"WHERE $column1='$value1'\");\n $valueArray = mysqli_fetch_array($result);\n\n return $valueArray[0];\n}", "public function getCFU(): int\n {\n return array_reduce($this->esami, function ($acc, $esame) {\n return $acc + $esame->cfu * $esame->in_cdl;\n }, 0);\n }", "abstract function getEmissionFactors();", "function valore_assoluto_costo_mio_gas($id_ordine,$id_gas){\r\n //echo $ordine.\" - \".$gas;\r\n global $db;\r\n $query = \"SELECT * FROM retegas_referenze WHERE id_ordine_referenze='$id_ordine' AND id_gas_referenze='$id_gas';\";\r\n $result = $db->sql_query($query);\r\n $row = $db->sql_fetchrow($result);\r\n\r\n return (float)$row[\"maggiorazione_referenza\"]; \r\n}", "public function getRF()\n {\n if (isset($this->rf)) {\n return $this->rf;\n }\n\n if (isset($this->b)) {\n // rf = a/(a-b)\n return $this->a / ($this->a - $this->b);\n }\n\n if (isset($this->f)) {\n // rf = 1/f\n return 1 / $this->f;\n }\n }", "function calculate_commitions($p_id,$conn)\n {\n $sql=\"select price,branch_commision,com_type from products where id=$p_id\";\n $res=$conn->query($sql);\n $row=$res->fetch_assoc();\n \n if($row['com_type']=='Percentage')\n {\n $cc=$row['price']*$row['branch_commision']/100;\n }\n else\n {\n $cc=$row['branch_commision'];\n }\n return $cc;\n }", "static public function ctrCalcularFolio(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularFolio($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "function obtener_pct_anio_mes($anio, $mes, $result_inflacion) {\n \n mysql_data_seek($result_inflacion, 0);\n\n while ($row = mysql_fetch_array($result_inflacion))\n {\n if ($row[0] == $anio && $row[1] == $mes) {\n return $row[2];\n }\n }\n return -1;\n}", "public function getFee(): float;", "function calc_dream_mp_score_a($db, $dreamid, $personid) {\n global $pwpdo;\n $query = \"select pw_vote.vote as mpvote, pw_dyn_dreamvote.vote as dreamvote from\n pw_vote, pw_dyn_dreamvote, pw_division, pw_mp where\n pw_vote.division_id = pw_division.division_id and\n pw_dyn_dreamvote.division_number = pw_division.division_number and\n pw_dyn_dreamvote.division_date = pw_division.division_date\n and pw_vote.mp_id = pw_mp.mp_id\n and pw_mp.person = ? and pw_dyn_dreamvote.dream_id = ?\";\n\n $qrowarray=$pwpdo->fetch_all_rows($query,array($personid,$dreamid));\n $t = 0.0;\n $c = 0.0;\n foreach ($qrowarray as $qrow)\n {\n $weight = 1;\n $mpvote = $qrow['mpvote'];\n $mpvote = str_replace(\"tell\", \"\", $mpvote);\n $dreamvote = $qrow['dreamvote'];\n if ($dreamvote == \"aye3\" or $dreamvote == \"no3\") {\n $dreamvote = str_replace(\"3\", \"\", $dreamvote);\n $weight = 3;\n }\n $t += $weight;\n\n if ($mpvote == $dreamvote)\n $c += $weight;\n elseif ($mpvote == \"both\" or $dreamvote == \"both\")\n $c = $c + ($weight / 2);\n }\n\n return array($c, $t);\n}", "public function getBasis();", "public function getIndicatorByFactor($factor)\n {\n $indicator = DB::select('select al_i.name from al_indicators as al_i inner join al_factor as al_f on al_i.al_factor_id = al_f.al_factor_id where al_f.name =\"' . $factor . '\"');\n return $indicator;\n }", "function gainRatios($last_column,$columns_after_cut,$res) {\r\n\t$res_gainRatios = array();\r\n\t\r\n\t$gain = gain($last_column,$columns_after_cut,$res);\r\n\t$splitInfo = splitInfo($columns_after_cut);\r\n\t\r\n\tfor ($i = 0; $i < count($gain); $i++){\r\n\t\tif ($splitInfo[$i] != 0){\r\n\t\t\t$temp = $gain[$i] / $splitInfo[$i];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$temp = \"SplitInfo = 0\";\r\n\t\t}\r\n\t\tarray_push($res_gainRatios, $temp);\r\n\t}\r\n\t\r\n\treturn $res_gainRatios;\r\n}", "function it_finds_the_lowest_base_monthly_rate_in_the_absence_of_other_rates()\n {\n // daily rate - 10\n // daily rate - 10\n $baseRate = new Rate(null, Price::fromString('10', Currency::fromString('EUR')), 1);\n $equipment = new Equipment('Jack Hammer', $baseRate);\n $rentalPeriod = RentalPeriod::fromDateTime(new \\DateTime('2014-07-01'), new \\DateTime('2014-07-07'), 1);\n $rentalQuery = new RentalQuery($equipment, $rentalPeriod);\n\n // weekly rate - 60\n $weekPrice = Price::fromString('65', Currency::fromString('EUR'));\n $equipment->addRate(null, $weekPrice, 7);\n\n // 3 weekly + 5 daily = 250\n // monthly rate = 240\n $monthPrice = Price::fromString('240', Currency::fromString('EUR'));\n $equipment->addRate(null, $monthPrice, 30);\n\n $quotes = $this->getQuotesFor($rentalQuery);\n $quote = $quotes[0];\n\n /** @var RateQuote $quote */\n $quote->getLineItems()->shouldHaveCount(1);\n $lineItems = $quote->getLineItems();\n /** @var RateQuoteLineItem $lineItem */\n $lineItem = $lineItems[0];\n $lineItem->getRate()->getPrice()->equals($monthPrice);\n }", "function getMaxDocketNoConsignmentInfo($account_id_local,$DbC)\n{\n\t$query1=\"SELECT MAX(docket_no) as max_count FROM consignment_info WHERE account_id=$account_id_local\";\n\t$result1=mysql_query($query1,$DbC);\n\t$max_no = mysql_fetch_object($result1);\n\t$max_no1=$max_no->max_count;\n\treturn $max_no1;\n}", "function get_commission($conn,$p_id)\n {\n $sql=\"select price,branch_commision,com_type from products where id=$p_id\";\n $res=$conn->query($sql);\n $row = $res->fetch_assoc();\n if($row['com_type']=='Percentage')\n {\n $commision=$row['price']*$row['branch_commision']/100;\n }\n else\n {\n $commision=$row['branch_commision'];\n }\n return $commision;\n }", "public function adj_test($parameter){\n // print_r($parameter);\n $storedProcedure='adj_get_brand_name';\n $this -> dbmodel = new DBModel();\n $retrieval = $this -> dbmodel -> call_dbFunction($storedProcedure, $parameter);\n \n $i=0;\n $data=array();\n while($row=mysql_fetch_array($retrieval)){\n $data[$i]['id'] = $row['id'];\n $data[$i]['b_category_name'] = $row['b_category_name'];\n \n $i++;\n }\n $retrieval = $this -> dbmodel -> make_result($data);\n \n return $retrieval;\n }", "public function fat()\n\t{\n\t\treturn $this->macronutrients()['fat'];\n\t}", "static public function mdlCalcularUtilidad2($tabla){\r\n\r\n\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla set utilidad2 = ((precioUnitario2-precioCompra2)/precioUnitario2)*100 where idPedido = :idPedido and serie = :serie\");\r\n\r\n\t\t\t$stmt -> bindParam(\":idPedido\", $datos[\"idPedido\"], PDO::PARAM_INT);\r\n\t\t\t$stmt->bindParam(\":serie\", $datos[\"serie\"], PDO::PARAM_STR);\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}", "function GetFiesPercentual($p_WPessoa_Id, $dBase='', $p_Incidencia = '' )\r\n {\r\n \tif ($dBase == '')\r\n \t{\r\n \t\t$dBase = date('d/m/Y');\r\n \t}\r\n \r\n \t$aReturn = '';\r\n \r\n \t$sql = \"select\r\n\t \t\t\t\t\tBolsa_gnPercentual(bolsa.id, to_char( to_date( '\". $dBase .\"' ), 'mm'), 3)\tas percentual,\r\n \t\t\t\t\t\tto_char(bolsa.dtinicio, 'dd/mm/yyyy')\t\t\t\t\t\t\t\t\t\tas dtinicio,\r\n \t\t\t\t\t\tto_char(bolsa.dttermino, 'dd/mm/yyyy')\t\t\t\t\t\t\t\t\t\tas dttermino,\r\n\t \t\t\t\t\treplace(bolsa.valor , ',','.')\t\t\t\t\t\t\t\t\t\t\t\tas valor,\r\n\t \t\t\t\t\tbolsa.bolsati_id\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tas bolsati_id \t\t\t\r\n\t\t\t\t\tfrom\r\n\t\t\t\t\t\tBolsa join Bolsati on bolsati_id=bolsati.id\r\n\t\t\t\t\twhere\r\n \t\t\t(\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.mensalidade = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'MENSALIDADE'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.licenciatura = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'LICENCIATURA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.dependencia = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'DEPENDENCIA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.adaptacao = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'ADAPTACAO'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.estagioprof = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'ESTAGIOPROF'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.monografia = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'MONOGRAFIA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t\t\t(\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' is null\r\n \t\t\t\t\t\t)\t\t\t\r\n \t\t\t\t\t)\r\n \t\t\t\t\tand \r\n \t\t\t\t\t\tto_date( '\" . $dBase . \"' ) between to_date(bolsa.dtinicio) and to_date(bolsa.dttermino)\r\n \t\t\t\t\tand\r\n \t\t\t\t\t\tbolsa.bolsati_id in ( 10600000000048, 10600000000156, 10600000000152, 10600000000153, 10600000000160 ) \r\n \t\t\t\t\tand\r\n \t\t\t\t\t\tbolsa.state_id=3000000018003\r\n \t\t\t\t\tand\r\n\t \t\t\t\t\tbolsa.WPessoa_Id = nvl ( '\" . $p_WPessoa_Id . \"' ,0)\r\n \t\t\t\t\torder by bolsati.nome\";\r\n \r\n \r\n \t$dbData = new DbData($this->db);\r\n \r\n \t$dbData->Get($sql);\r\n \r\n \twhile ($row = $dbData->Row())\r\n \t{\r\n \t\t$aReturn[] = $row;\r\n \t}\r\n \r\n \tunset($dbData);\r\n \r\n \r\n \treturn $aReturn;\r\n }", "function ml_compute_ranking($r_id){\n\tglobal $dbh1, $dbh2; // Global variables for database connections\n\t$sql = 'SELECT student_id FROM student_recruiter WHERE recruiter_id='.$r_id;\n\t$result = mysql_query($sql, $dbh1);\n\t$rank_dist = [];\n\t\n\twhile ($data = mysql_fetch_array($result)){\n\t\t$s_id = $data['student_id'];\n\t\t// Extract feature vector from s_id\n\t\t$sql1 = 'SELECT feature FROM ml_feature_vectors WHERE recruiter_id='.$r_id.' AND student_id='.$s_id;\n\t\t$result1 = mysql_query($sql1, $dbh2);\n\t\t$data1 = mysql_fetch_array($result1);\n\t\t$feature = $data1['feature'];\n\t\t\n\t\t// Convert feature vector string to array of integers\n\t\t$feature_array = array();\n\t\tfor($i=0;$i<strlen($feature);$i++){\n\t\t\t$feature_array[$i] = (int)$feature[$i];\n\t\t}\n\t\t\n\t\t// Create best array --> For Comparison\n\t\t$best_array = array();\n\t\tfor($i=0;$i<strlen($feature);$i++){\n\t\t\t$best_array[$i] = 5;\n\t\t}\n\t\t// Calculate distance between feature vector and best vector based on Cosine similarity distance\n\t\t$cdist = cosinus($feature_array, $best_array);\n\t\t$rank_dist[$s_id] = $cdist;\n\t\t\t\n\t} //while (student)\n\t\n\t// Sort $rank_dist array\n\tarsort($rank_dist);\n\t$rank_dist_keys = array_keys($rank_dist);\n\t\n\t$rank_id = '';\n\tfor($i=0; $i<count($rank_dist_keys); $i++){\n\t\tif($i==(count($rank_dist_keys)-1) )\n\t\t\t$rank_id = $rank_id.$rank_dist_keys[$i];\n\t\telse $rank_id = $rank_id.$rank_dist_keys[$i].',';\n\t}\n\t\n\t$sql2 = 'SELECT * FROM ml_rank WHERE recruiter_id='.$r_id; \n\t$result2 = mysql_query($sql2, $dbh2);\n\t$count2 = mysql_num_rows($result2);\n\t\n\tif ($count2==0)\n\t\t$sql3 = 'INSERT INTO ml_rank VALUES('.$r_id.',\"'.$rank_id.'\")';\n\telse\n\t\t$sql3 = 'UPDATE ml_rank SET rank_id=\"'.$rank_id.'\" WHERE recruiter_id='.$r_id;\n\tmysql_query($sql3, $dbh2);\n\t\t\n\n}", "function retrieveFunds() {\n return -58.98;\n }", "private static function _newFactor($token)\n {\n $type = self::_identifyFactor($token);\n $factor = self::_getFactorObject($token, $type);\n $factor->setType($type);\n\n return $factor;\n }", "static public function setRelationCoef() {\n $link_db = Piwidict::getDatabaseConnection();\n \n $rk = array();\n $query = \"SELECT id, name FROM relation_type\";\n $res = $link_db -> query_e($query,\"Query failed in file <b>\".__FILE__.\"</b>, string <b>\".__LINE__.\"</b>\");\n\n while ($row = $res->fetch_object()){\n// if ($row->name == 'synonyms') \n if ($row->name != 'synonyms') \n\t $rk[$row->id] = 1;\n\t else \t\n\t $rk[$row->id] = 0.5;\n } \n return $rk;\n }", "public static function COUPDAYS(\n $settlement,\n $maturity,\n $frequency,\n $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD\n ) {\n $settlement = Functions::flattenSingleValue($settlement);\n $maturity = Functions::flattenSingleValue($maturity);\n $frequency = Functions::flattenSingleValue($frequency);\n $basis = ($basis === null)\n ? FinancialConstants::BASIS_DAYS_PER_YEAR_NASD\n : Functions::flattenSingleValue($basis);\n\n try {\n $settlement = FinancialValidations::validateSettlementDate($settlement);\n $maturity = FinancialValidations::validateMaturityDate($maturity);\n self::validateCouponPeriod($settlement, $maturity);\n $frequency = FinancialValidations::validateFrequency($frequency);\n $basis = FinancialValidations::validateBasis($basis);\n } catch (Exception $e) {\n return $e->getMessage();\n }\n\n switch ($basis) {\n case FinancialConstants::BASIS_DAYS_PER_YEAR_365:\n // Actual/365\n return 365 / $frequency;\n case FinancialConstants::BASIS_DAYS_PER_YEAR_ACTUAL:\n // Actual/actual\n if ($frequency == FinancialConstants::FREQUENCY_ANNUAL) {\n $daysPerYear = (int) Helpers::daysPerYear(Functions::scalar(DateTimeExcel\\DateParts::year($settlement)), $basis);\n\n return $daysPerYear / $frequency;\n }\n $prev = self::couponFirstPeriodDate($settlement, $maturity, $frequency, self::PERIOD_DATE_PREVIOUS);\n $next = self::couponFirstPeriodDate($settlement, $maturity, $frequency, self::PERIOD_DATE_NEXT);\n\n return $next - $prev;\n default:\n // US (NASD) 30/360, Actual/360 or European 30/360\n return 360 / $frequency;\n }\n }", "public function Taxecumule2($part)\n\t{\n\t\t$taxecumule = 0;\n\t\t$part = $part - 1594;\n\t\tif ($part <= 0)\n\t\t\treturn (0);\n\t\telse\n\t\t{\n\t\t\t$taxecumule = $part * 55 / 100;\n\t\t\treturn ($taxecumule);\n\t\t}\n\t\treturn (-1);\n\t}", "function get_divide_denial_accounts()\n\t{\n\t return $this->db->select()\n\t\t ->from('pamm_accounts')\n\t\t ->where('divide_denial','1')\n\t\t ->get()->result();\n\t}", "function convert_cm_to_feet($cm_value)\n{\n\t//TODO: Convert cm to feet eg. 5'7\n\treturn $cm_value;\n}", "function getMainArticleID($db) {\n $sql = \"SELECT ArticleID FROM Featured WHERE FeaturedType = 'Main';\";\n $result = mysqli_query($db, $sql);\n\n $row = mysqli_fetch_array($result, MYSQLI_ASSOC);\n return $row['ArticleID'];\n}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('ActivityEfficiencyFormulas');\n }", "function getPairValue($pair,$type='ask') { \r\n\t$curl = new Curl;\r\n\t$ticker = (array)$curl->get(\"https://api.bitfinex.com/v1/pubticker/$pair\");\r\n\treturn $ticker[$type];\r\n}", "function evclid($name1, $name2, $film1, $film2, $t)\n{\n $res = sqrt( \n\tpow($t->$name1->$film1 - $t->$name2->$film1,2 )\n\t+ pow ($t->$name1->$film2 - $t->$name2->$film2,2)\n );\n\n #return 1/(1+$res);\n return $res;\n}", "public function adj_get_brand_category_name($parameter){\n // print_r($parameter);\n $storedProcedure='adj_get_brand_category_name';\n $this -> dbmodel = new DBModel();\n $retrieval = $this -> dbmodel -> call_dbFunction($storedProcedure, $parameter);\n \n $i=0;\n $data=array();\n while($row=mysql_fetch_array($retrieval)){\n $data[$i]['category_id'] = $row['id'];\n $data[$i]['b_category_name'] = $row['b_category_name'];\n $data[$i]['check_val'] = $row['check_val'];\n \n $i++;\n }\n $retrieval = $this -> dbmodel -> make_result($data);\n \n return $retrieval;\n }", "function extra_calc_scenario_two($base, $goal) {\n\tif ($base >= $goal) {\n\t\treturn 0;\n\t} else {\n\t\t$ce_db = access_db();\n\n\t\t$diff = $goal - $base;\n\t\t$curr_data = $_COOKIE['ce_info'];\n\t\t$pieces = explode(\"|\" , $curr_data);\n\t\t$account_id = $pieces[0];\n\t\t$account_name = $pieces[1];\n\t\t$game_id = $pieces[2];\n\t\t$period_id = $pieces[3];\n\t\t$company_id = $pieces[4];\n\t\t$plant_id = $pieces[5];\n\t\t$game_start_date = $pieces[6];\n\t\t$game_period_id = $pieces[7];\n\n\t\t$query = \"SELECT * FROM ce_game WHERE game_id = $game_id AND game_period_id = $game_period_id\";\n\t\t$result = $ce_db->get_results($query, ARRAY_A);\n\t\t$carbon_price = $result[\"carbon_price_last_perd\"];\n\n\n\t}\n}", "function ObtenerDisc($userSec, $periodA)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT discountcode FROM cart WHERE id_student = %s AND id_term = %s\",\n\t\t\t\t\t\t\t\t\t\t GetSQLValueString($userSec, \"int\"),\n\t\t\t\t\t\t\t\t\t\t GetSQLValueString($periodA, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"discountcode\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "function distance_lookup($c1,$c2,$distance_table){\n //TODO make this return infinite if there's nothing in the table\n return $distance_table[$c1][$c2]['duration']['value'];\n}", "function getCalibrationMaxSerial($DbConnection)\n{\n\t$query =\"select Max(sno)+1 as seiral_no from calibration\"; \n\t$result=mysql_query($query,$DbConnection);\n\t$row=mysql_fetch_row($result);\n\treturn $row[0];\n}", "static public function ctrCalcularFolio(){\r\n\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularFolio($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "function calculatePrice( &$item ) {\r\n\t\r\n\tglobal $db, $site;\r\n\t\r\n\t$resultPrice = $basePrice = $item['price'];\r\n\t\r\n\t$pricing = $db->getAll( 'select * from '. ATTRPRICING_TABLE.\" where product_id='$item[id]' and site_key='$site'\" );\r\n\t\r\n\tforeach ( $pricing as $pidx=>$price ) {\r\n\t\t\r\n\t\t$match = true;\r\n\t\t\r\n\t\tif ( $item['attributes'] )\r\n\t\tforeach( $item['attributes'] as $attr_id=>$attr ) {\r\n\t\t\t\r\n\t\t\t$values = $db->getRow( 'select value1, value2 from '. ATTRPRICEVALUES_TABLE.\" where price_id='$price[id]' and attr_id='$attr_id'\" );\r\n\t\t\t\r\n\t\t\tif ( !$values )\r\n\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t$value1 = $values['value1'];\r\n\t\t\t$value2 = $values['value2'];\r\n\t\t\t$value = $attr['value'];\r\n\t\t\r\n\t\t\tswitch( $attr['type'] ) {\r\n\t\t\t\tcase 'number':\r\n/*\t\t\t\t\tif ( strlen( $value1 ) )\r\n\t\t\t\t\t\t$match &= $value >= $value1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ( strlen( $value2 ) )\r\n\t\t\t\t\t\t$match &= $value <= $value2;\r\n\t\t\t\t\tbreak;\r\n*/\t\t\t\t\t\r\n\t\t\t\tcase 'single-text':\r\n\t\t\t\tcase 'multi-text':\r\n\t\t\t\tcase 'date':\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$match &= $value == $value1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( $match ) {\r\n\t\t\t$resultPrice = getPriceValue( $price, $basePrice );\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $resultPrice;\r\n\t\r\n}", "private function get_disc_max_price() : float {\n\t\tpreg_match( '/runParams\\.actMaxPrice=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn floatval( $matches[1] );\n\t}", "public function FaciPerClassHandle(){\n # include the needed / required library\n require_once('DBConnection.php');\n # instantiate the DBConnection and assign it to the faciperfaciperclass attribute DB_CONNECTION \n $databaseConnection = new DBConnection();\n $this->DB_CONNECTION = $databaseConnection->DB_CONNECTION;\n }", "function getfid_tid($tid)\n{\n $fid = mysql_fetch_array(mysql_query(\"SELECT fid FROM ibwf_topics WHERE id='\".$tid.\"'\"));\n return $fid[0];\n}", "public function getFeasibilityPlus($idea_id,$version = 0){\r\n \r\n $model = new Ynidea_Model_DbTable_Ideavotes; \r\n $select = $model->select()\r\n ->from('engine4_ynidea_ideavotes',array('SUM(feasibility_plus) AS feasibility_plus'))\r\n ->where('idea_id = ?',$idea_id)->where('version_id=?',$version); \r\n $row = $model->fetchRow($select);\r\n return $row->feasibility_plus; \r\n }", "public function getFaciPerClassItem ($item, $FaciPerClassId) {\n /*if ($this->DB_CONNECTION == NULL) {\n return $errorArray['DB_NOTCONNECTED'];\n }\n else {*/\n # protection against SQL injection, add slashes to escape all escape characters\n $FaciPerClassId = addslashes($FaciPerClassId);\n $item = addslashes($item);\n # prepare the statement\n $statement = \"SELECT $item FROM faciperfaciperclass WHERE idfaciperfaciperclass = '$FaciPerClassId'\";\n # query & check if error has occured\n if(!$result = mysql_query($statement)) {\n return $errorArray['DB_QUERYERROR'] . ' -[FaciPerClassHandle:getFaciPerClassItem]';\n }\n else {\n # debugging purposes <remove on production> \n //echo \"got it\";\n \n # get the entry values\n $resultArray = mysql_fetch_assoc($result);\n # return the values \n return $resultArray[$item];\n } \n //}\n }", "function get_focal_point_permohonan($where) {\n $CI = & get_instance();\n $CI->load->database();\n\n $CI->db->from('m_pdln as mp');\n $CI->db->where($where);\n $id_fp = $CI->db->get()->row()->unit_fp;\n return $id_fp;\n}", "public function prepareSaveFactors($params) {\n \textract($params);\n \t$reduction = new ReductionScheme($db);\n \t$reduction->setFactors($facilityID,$AREfactor,$TEfactor);\n }", "function get_portfolio($connection, $id, $symbol)\n{\n try {\n $sql = \"SELECT symbol, amount FROM portfolio WHERE userId = ? AND symbol = ?\";\n $statement = runQuery($connection, $sql, array($id, $symbol));\n $result = $statement->fetch(PDO::FETCH_ASSOC);\n return $result;\n }\n catch (PDOException $e) {\n die( $e->getMessage() );\n }\n}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('CompFact');\n }", "public function getFaciPerClass ($FaciPerClassId) {\n # check if the DB_CONNECTION has connected to the database\n /*if ($this->DB_CONNECTION == NULL) {\n return $errorArray['DB_NOTCONNECTED'];\n }\n else {*/\n # protection against SQL injection, add slashes to escape all escape characters\n $FaciPerClassId = addslashes($FaciPerClassId);\n # prepare the statement\n $statement = \"SELECT * FROM faciperfaciperclass WHERE idfaciperfaciperclass = '$FaciPerClassId'\";\n # query & check if error has occured\n if(!$result = mysql_query($statement)) {\n return $errorArray['DB_QUERYERROR'] . ' -[FaciPerClassHandle:getFaciPerClass]';\n }\n else {\n # debugging purposes <remove on production> \n //echo \"got it\";\n \n # get the entry values\n $resultArray = mysql_fetch_array($result);\n # return the values \n return $resultArray;\n }\n //}\n }", "function estcalcinksidespart($quoteid, $quotestockid) {\n global $conn, $lang,$userid,$active_company;\n $sides=1;\n $recordSet=&$conn->Execute('select estquotestockink.side from estquote,estquotestock,estquotestockink where estquote.id=estquotestock.quoteid and estquotestock.id=estquotestockink.quotestockid and estquotestockink.quotestockid='.sqlprep($quotestockid).' and estquote.id='.sqlprep($quoteid));\n if ($recordSet&&!$recordSet->EOF) $sides=$recordSet->fields[0];\n return $sides;\n }", "function calculatePriceForRabatt(){\r\n// @ToDo remove static Values \r\n\r\n\t $basketIns = array_merge($this->basket->get_articles_by_article_type_uid_asuidlist(1)); //,$this->basket->get_articles_by_article_type_uid_asuidlist($this->pObj->conf['couponNormalType']),$this->basket->get_articles_by_article_type_uid_asuidlist($this->pObj->conf['couponRelatedType'])); // 4 and 5\r\n\t $value = array('net'=>0,'gross'=>0);\r\n\t \r\n\t foreach ($basketIns as $itemObjId) {\r\n\t\t$temp = $this->basket->basket_items[$itemObjId];\r\n\t\t$temp->recalculate_item_sums();\r\n\t\t\r\n\t\t$value['net'] += $temp->get_item_sum_net();\r\n\t\t$value['gross'] += $temp->get_item_sum_gross();\r\n\t }\r\n\r\n\t if($value['net']< 0){\r\n\t\t$value['net'] = 0;\r\n\t }\r\n\r\n\t if($value['gross'] < 0){\r\n\t\t$value['gross'] = 0;\r\n\t }\r\n\t return $value;\r\n\t}", "public function totalq1($modalite)\r\n\t{\r\n\t$conge = new Default_Model_Conge();\r\n\t$debut_mois = $this->getAnnee_reference().'-01-01';\r\n\t$fin_mois = $this->getAnnee_reference().'-12-31'; // il faut la remplacer par l'annee de reference\r\n\t\r\n\t\r\n\t$jours_ouvres_de_annee_ref = $conge->joursOuvresDuMois($debut_mois,$fin_mois);\r\n\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t$personne = new Default_Model_Personne();\r\n\t$id_entite =1; // MBA : pourquoi entite 1 pour personne? \r\n\t$personne = $personne->fetchall('id_entite ='.$id_entite. '&&'. 'id ='.$this->getPersonne()->getId());\r\n\t//var_dump($personne);\r\n\tif (null!==$personne)\r\n\t\r\n\t{\r\n\t\tif ($modalite == 4)\r\n\t\t{\r\n\t\t\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t\t\tif($nbr_heurs_ouvrees_annee >1607)\r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t\telseif($nbr_heurs_ouvrees_annee <1607.5)\r\n\t\t\t{\r\n\t\t\t\treturn 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 5 ||$modalite == 6 )\r\n\t\t{\r\n\t\t\t$nbr_jours_ouvrees_annee = $jours_ouvres_de_annee_ref-243;\r\n\t\t\tif($nbr_jours_ouvrees_annee < 10)\r\n\t\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t\t}\r\n\t\t\telseif($nbr_jours_ouvrees_annee >10)\r\n\t\t\t{\r\n\t\t\t\treturn $nbr_jours_ouvrees_annee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 1 ||$modalite == 2 ||$modalite == 3)\r\n\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\telse return 0;\r\n\t\r\n\t}", "public function getFeasibilityMinus($idea_id,$version = 0){\r\n \r\n $model = new Ynidea_Model_DbTable_Ideavotes; \r\n $select = $model->select()\r\n ->from('engine4_ynidea_ideavotes',array('SUM(feasibility_minus) AS feasibility_minus'))\r\n ->where('idea_id = ?',$idea_id)->where('version_id=?',$version); \r\n $row = $model->fetchRow($select);\r\n return $row->feasibility_minus; \r\n }", "public function getCompanyRate($companyName,$rate) {\n\n$con = ($GLOBALS[\"___mysqli_ston\"] = mysqli_connect($this->myHost, $this->username, $this->password));\nif (!$con)\n {\n die('Could not connect: ' . ((is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_error($GLOBALS[\"___mysqli_ston\"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)));\n }\n\n((bool)mysqli_query( $con, \"USE \" . $this->database));\n\n$result = mysqli_query($GLOBALS[\"___mysqli_ston\"], \"SELECT ($rate) as rate FROM Company WHERE companyName = '$companyName' \");\n\nwhile($row = mysqli_fetch_array($result))\n {\nreturn $row['rate'];\n }\n\n}", "function calcDTI() {\n try {\n $results = $db->query(\"SELECT * FROM borrower_tbl WHERE id='\" . $borrowerId . \"';\" );\n } catch (Exception $e) {\n echo \"Could not connect to database!: \" . $e->getMessage();\n exit;\n }\n $borrower = $results->fetchAll(PDO::FETCH_ASSOC);\n \n }", "abstract function getPriceFromAPI($pair);", "public function getPairsFee($pairs) {\n\t\treturn $this->makePublicMethod( self::PUBLIC_METHOD_FEE, $pairs);\n\t}", "function getPrimary(string $table);", "function weight_factor($section, $rating_rules){\r\n\t$weight_fact = 1 ;\r\n\tforeach($rating_rules as $kew=> $val){\r\n\t\tif(!empty($section) & $val['RatingRule']['section'] == $section){\r\n\t\t\t$weight_fact=$val['RatingRule']['Weight_factor'];\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\treturn ($weight_fact);\r\n}", "function CONCEPTO($_ARGS, $_CONCEPTO) {\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodTipoNom = '\".$_ARGS['NOMINA'].\"' AND\r\n\t\t\t\tPeriodo = '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tCodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND\r\n\t\t\t\tCodTipoProceso = '\".$_ARGS['PROCESO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "public static function findRDV($NuMedecin,$value, $column = 'id_rdv', $table_name = 'rdv') {\n $data = Model::findBy($value, $column, $table_name);\n if(($data != null) && ($data['Nu_medecin']==$NuMedecin)){\n $rdv = new RDV();\n $rdv->setIdRDV($data['id_rdv']);\n $rdv->setCINP($data['CIN']);\n $rdv->setNuMedecin($data['Nu_medecin']);\n $rdv->setDateRdv($data['date_rdv']);\n $rdv->setEtat($data['Etat']);\n return $rdv;\n }else {\n return null;\n }\n\n\n }", "private static function itemToItemSimilarityMatrix($matrixRanking){\n\t\t$numerator=0;\n\t\t$denominator=1;\n\t\t$itemToItemSimilarityMatrix=array($matrixRanking[0]);\n\t\tfor ($i=0; $i < count($itemToItemSimilarityMatrix[0]); $i++) { //Creates associative arrays with key value (id object learning) and empty spaces to put the results from similarity cosine\n\t\t\t$tmpNew = array($itemToItemSimilarityMatrix[0][$i]=>$itemToItemSimilarityMatrix[0][$i]) + array_fill(0,count($itemToItemSimilarityMatrix[0]), '');\n\t\t\t$itemToItemSimilarityMatrix[]=$tmpNew;\n\t\t}\n\t\tfor ($i=0; $i < count($matrixRanking[0]); $i++) { // We create two item-vectors, v1 for item m1 and v2 for item m2, in the user-space of (u2,u3) and then find the cosine of angle between these vectors. A zero angle or overlapping vectors with cosine value of 1 means total similarity (or per user, across all items, there is same rating) and an angle of 90 degree would mean cosine of 0 or no similarity. Thus, the two item-vectors would be,\n //v1 = 5 u2 + 3 u3\n //v2 = 3 u2 + 3 u3\n\n\t\t\tfor ($j=($i+1); $j < count($matrixRanking[0]); $j++) { //The cosine similarity between the two vectors, v1 and v2, would then be:\n //cos(v1,v2) = (5*3 + 3*3)/sqrt[(25 + 9)*(9+9)] = 0.76\n\t\t\t\tfor ($k=1; $k < count($matrixRanking); $k++) { \n\t\t\t\t\t$v1=$matrixRanking[$k][$i];\n\t\t\t\t\t$v2=$matrixRanking[$k][$j];\n\t\t\t\t\t\n\t\t\t\t\tif($v1!=''&&$v2!=''){\n\t\t\t\t\t\t$numerator=$numerator+($v1*$v2);\n\t\t\t\t\t\t$tmpSum=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor ($l=0; $l < count($matrixRanking[0]); $l++) { \n\t\t\t\t\t\t\tif($matrixRanking[$k][$l]!=''){\n\t\t\t\t\t\t\t$tmpSum=$tmpSum+pow($matrixRanking[$k][$l],2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$denominator=$denominator*sqrt($tmpSum);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$cos=$numerator/$denominator;\n\t\t\t\t$itemToItemSimilarityMatrix[$i+1][$i]=1;\n\t\t\t\t$itemToItemSimilarityMatrix[$i+1][$j]=$cos;\n\t\t\t\t$itemToItemSimilarityMatrix[$j+1][$i]=$cos;\n\t\t\t\t\n\t\t\t\t$numerator=0;\n\t\t\t\t$denominator=1;\n\t\t\t}\n\t\t}\n\t\treturn $itemToItemSimilarityMatrix;//We now have the complete item-to-item similarity matrix as follows:\n// \t\tm1\t m2\t m3\n// m1\t1\t 0.76\t0.78\n// m2\t0.76\t1\t 0.86\n// m3\t0.78\t0.86\t1\n\t}", "function getUnitCost( $modelid, $dealerid, $cost )\n{\nglobal $db;\n\n//08.21.2015 ghh - first we're going to see if there is a dealer specific price for \n//this item and if so we'll just pass it back\n$query = \"select Cost from UnitModelCost where ModelID=$modelid and \n\t\t\t\tDealerID=$dealerid\";\nif (!$result = $db->sql_query($query))\n\t{\n\tRestLog(\"Error 16562 in query: $query\\n\".$db->sql_error());\n\tRestUtils::sendResponse(500,\"16562 - There was a problem attempting find the dealer cost\"); //Internal Server Error\n\treturn false;\n\t}\n\n$row = $db->sql_fetchrow( $result );\n\n//if there is a cost then lets just return it.\nif ( $row['Cost'] > 0 )\n\treturn $row['Cost'];\n\nreturn $cost;\n}", "function getCreateCompound($parameters){\n\t$ownConnection = false;\n\t//Make a connection to the DB if none is given.\n\tif(isset($parameters['connection'])){\n\t\t\t$connection = $parameters['connection'];\n\t}\n\telse{\n\t\t$connection = makeConnectionToDIAMONDS();\n\t\t$ownConnection = true;\n\t}\n\t\n\t//Create variables to allow for non-required fields to be empty when creating the compound\n\t$compoundName = ''; \n\t$compoundCAS = ''; \n\t$compoundAbbr ='';\n\t$compoundOfficialName = '';\n\t$compoundSynonyms = '';\n\t\n\tif(isset($parameters['name'])){\n\t\t$compoundName = $parameters['name'];\n\t}else{ echo \"Did not specify a compoundName to search a compound!\";}\n\t\n\tif(isset($parameters['casNumber'])){\n\t\t$compoundCAS = $parameters['casNumber'];\n\t}else{ echo \"Did not specify a compoundCAS to search a compound!\";}\n\t\n\tif(isset($parameters['abbreviation'])){\n\t\t$compoundAbbr = $parameters['abbreviation'];\n\t}\n\t\n\tif(isset($parameters['officialName'])){\n\t\t$compoundOfficialName = $parameters['officialName'];\n\t}\n\t//If synonyms are submitted, insert them into tcompoundsynonyms if not already present\n\tif(isset($parameters['synonyms'])){\n\t\t$compoundSynonyms = $parameters['synonyms'];\n\t}\n\n\t//Check if compound already exist\n\t$query = \"SELECT idCompound FROM tCompound WHERE casNumber = '$compoundCAS'\";\n\tif ($result = mysqli_query($connection, $query)) {\n\t\twhile ($row = mysqli_fetch_assoc($result)) {\n\t\t\treturn $row['idCompound'];\n\t\t}\n\t}\n\t\n\t//Create compound if it does not already exist\n\t$sqlStatement = \"INSERT INTO tCompound (name, casNumber, abbreviation, officialName)\n\tVALUES (?,?,?,?)\";\n\t\n\t$sqlQuery = prepareSQLStatement($connection, $sqlStatement);\n\t\n\t//Bind the variables to the SQL parameters\n\t$sqlQuery->bind_param('ssss',\n\t$compoundName,\n\t$compoundCAS,\n\t$compoundAbbr,\n\t$compoundOfficialName\n\t);\n\t\n\t$id = executeSQLStatementGetID($connection, $sqlQuery);\n\t//Also add the synonyms to this compound if any were given, else just return the id\n\tif($compoundSynonyms != ''){\n\t\tforeach(explode(',',$compoundSynonyms) as $compoundSyn){\n\t\t\t$sqlStatement = \"INSERT INTO tCompoundsynonyms (idCompound, synonym)\n\t\tVALUES (?,?)\";\n\t\t\n\t\t\t$sqlQuery = prepareSQLStatement($connection, $sqlStatement);\n\t\t\t\n\t\t\t//Bind the variables to the SQL parameters\n\t\t\t$sqlQuery->bind_param('ds',\n\t\t\t$id,\n\t\t\t$compoundSyn\n\t\t\t);\n\t\t\t\n\t\t\texecuteSQLStatementGetIDNonID($connection, $sqlQuery);\n\t\t}\n\t}\n\t\n\t$connection->commit();\n\t\n\tif($ownConnection == true){\n\t\tcloseConnectionDB($connection);\n\t}\n\treturn $id;\n\t\n}", "function ULTIMO_CONCEPTO($_CONCEPTO) {\r\n\tglobal $_ARGS;\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tPeriodo < '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\r\n\t\t\tORDER BY Periodo DESC\r\n\t\t\tLIMIT 0, 1\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}" ]
[ "0.58923936", "0.5406703", "0.52434677", "0.48543575", "0.4839819", "0.469212", "0.467898", "0.4612812", "0.45833796", "0.4533701", "0.4524233", "0.45230362", "0.4512122", "0.45047995", "0.44994777", "0.44635758", "0.4456885", "0.43951088", "0.43903002", "0.43697584", "0.43500063", "0.43494195", "0.43475246", "0.4341942", "0.4334254", "0.43043473", "0.42944166", "0.4293232", "0.4292172", "0.42883018", "0.42800018", "0.42795885", "0.42687872", "0.4263158", "0.42619386", "0.42594662", "0.42508885", "0.42486438", "0.42421326", "0.42415628", "0.42408052", "0.4237749", "0.42312497", "0.4214289", "0.42114687", "0.42072", "0.4203889", "0.4201008", "0.41999763", "0.4188815", "0.41659656", "0.41583562", "0.41578695", "0.41551843", "0.41496247", "0.41445875", "0.414239", "0.41359004", "0.41287965", "0.41240203", "0.4120893", "0.41043442", "0.41016048", "0.41004524", "0.4093489", "0.40909174", "0.4090748", "0.40880227", "0.40841332", "0.40830964", "0.40807182", "0.40805402", "0.40753523", "0.40651727", "0.40637895", "0.40632364", "0.4063063", "0.40585044", "0.40574735", "0.40551957", "0.40409774", "0.4040244", "0.4037037", "0.40327945", "0.4032351", "0.40314266", "0.4028117", "0.4027674", "0.40261373", "0.4022308", "0.40190026", "0.40162078", "0.40139103", "0.40060818", "0.40045455", "0.40032706", "0.4002251", "0.3999853", "0.3999203", "0.39985323" ]
0.80697685
0
/ For all of the associative arrays passed through $_GET if (Proximity == 1) get_factor($Atom1, $Atom2, $BondOrder, $primary_tb); get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); primary secondary is the number. else get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); Add everything together, and that is the answer.
Для всех ассоциативных массивов, переданных через $_GET, если (Proximity == 1) вызвать get_factor($Atom1, $Atom2, $BondOrder, $primary_tb); get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); primary secondary — это число. иначе вызвать get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); Сложить всё вместе, и это будет ответ.
function process_factor_query($is_aromatic_ring) { global $PRIMARY_TB, $SECONDARY_TB, $l_0; $bonds = json_decode($_GET['json_query'], true); $sum = 0; foreach ($bonds as $bond) { // $bond has keys: Atom1, Atom2, BondOrder, Proximity if ($bond["Proximity"] == 1) { $f = get_factor($bond["Atom1"], $bond["Atom2"], $bond["BondOrder"], $PRIMARY_TB); $l_char = "<i>L</i>"; } elseif ($bond["Proximity"] == 2) { $f = get_factor($bond["Atom1"], $bond["Atom2"], $bond["BondOrder"], $SECONDARY_TB); $l_char = "<i>l</i>"; } $sum += $f; if ($bond["BondOrder"] == 1) { $bond_char = "-"; } elseif ($bond["BondOrder"] == 2) { $bond_char = "="; } elseif ($bond["BondOrder"] == 3) { $bond_char = "&equiv;"; } echo "<p>".$l_char."<sub>".$bond["Atom1"].$bond_char.$bond["Atom2"]."</sub> = ".$f."</p>"; } if ($is_aromatic_ring == "true") { $sum += $l_0; echo "<p>l<sub>0</sub> = ".$l_0."</p>"; } echo "<h4>&beta; = ".($sum+1)."</h4>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) {\n\t\n\tglobal $conn;\n\tglobal $PRIMARY_TB;\n\t\n\t// Check if all the parameters are valid\n\tif (!$Atom1) {\n\t\tdie(\"Atom 1 is not specified.\");\n\t} elseif (!$Atom2) {\n\t\tdie(\"Atom 2 is not specified.\");\n\t} elseif (!$BondOrder) {\n\t\tdie(\"Bond order is not specified.\");\n\t}\n\n\t$query_str = \"SELECT Factor FROM $tb_name \".\n\t \"WHERE (Atom1='$Atom1' AND Atom2='$Atom2')\".\n\t \"AND BondOrder=$BondOrder\";\n\t$result = $conn->query($query_str);\n\t\n\t\n\t// Everything is ok\n\tif ($result->num_rows == 1) {\n\t\t$row = $result->fetch_assoc();\n\t\treturn $row['Factor'];\n\t}\n\t\n\t// There is something wrong\n\tif ($BondOrder == 1) {\n\t\t$boName = \"single\";\n\t} elseif ($BondOrder == 2) {\n\t\t$boName = \"double\";\n\t} elseif ($BondOrder == 3) {\n\t\t$boName = \"tripple\";\n\t} else {\n\t\t$boName = $BondOrder;\n\t}\n\n\t// If such bond DNE, print error\n\tif($result->num_rows == 0) {\n\t\tif ($tb_name == $PRIMARY_TB) {\n\t\t\tdie(\"The $Atom1-$Atom2 $boName bond does not exist in the database.\");\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}\n\t\n\t// If there are multiple entries\n\tif ($result->num_rows > 1) {\n\t\tdie(\"There are multiple entries in the database of the $Atom1-$Atom2 $boName bond.\");\n\t}\n\t\n}", "function sim_distance($prefs, $p1, $p2){\r\n\t//returns the distance based on the similarity between the persons\r\n\t$sharedItems = array();\r\n\t$sum_sq = 0;\r\n\t//get the movie list for person 2\r\n\t$keys = array_keys($prefs[$p2]);\r\n\t//print_r($keys);\r\n\r\n\t//get the list of common things between the two\r\n\tforeach($prefs[$p1] as $k => $v){\r\n\t\tif(in_array($k, $keys)){\r\n\t\t\t$sharedItems[] = $k;\r\n\t\t\t//calculating the diiference in rating\r\n\t\t\t$diff = $prefs[$p2][$k] - $prefs[$p1][$k];\r\n\t\t\t$sum_sq += pow($diff, 2); \r\n\t\t}\r\n\t}\r\n\t//echoing everything\r\n\t//print_r($sharedItems);\r\n\r\n\t//if there is no similarity return the zero\r\n\tif($sum_sq === 0){\r\n\t\treturn 0;\r\n\t}\r\n\r\n\t//calculating the distance\r\n\t$dist = pow($sum_sq, 1/2);\r\n\treturn 1 / (1 + $dist);\r\n}", "function old_calculate_position($fingerPrints, $user_signals)\n{\n\n\t$closest_distance = 100000000.0;\n\t$closest_coordinates = \"000,000\";\n\t$closest_room = \"default\";\n\t$a = 0;\n\tforeach ($fingerPrints as $outer) {\n\t\t$temp_sum = 0.0;\n\t\tforeach ($outer as $value) {\t\n\t\t\tforeach($user_signals as $mac => $sig) {\n\t\t\t\tif ($mac == $value->get_mac()) {\n\t\t\t\t\t$signal_distance = $value->get_average() - $sig;\n\t\t\t\t\t$absolute_distance = abs($signal_distance);\n\t\t\t\t\t$temp_sum = $temp_sum + $absolute_distance;\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\t \n\t\t}\n\t\tif ($temp_sum < $closest_distance) {\n\t\t\t$closest_distance = $temp_sum;\n\t\t\t$closest_coordinates = $fingerPrints[$a][0]->get_position();\n\t\t$closest_room = $fingerPrints[$a][0]->get_room();\n\t\t}\n\t\t$a = $a + 1;\n\t}\n\techo $closest_coordinates; \n\techo \"_\";\n\techo $closest_room;\n}", "function calc_dream_mp_score_a($db, $dreamid, $personid) {\n global $pwpdo;\n $query = \"select pw_vote.vote as mpvote, pw_dyn_dreamvote.vote as dreamvote from\n pw_vote, pw_dyn_dreamvote, pw_division, pw_mp where\n pw_vote.division_id = pw_division.division_id and\n pw_dyn_dreamvote.division_number = pw_division.division_number and\n pw_dyn_dreamvote.division_date = pw_division.division_date\n and pw_vote.mp_id = pw_mp.mp_id\n and pw_mp.person = ? and pw_dyn_dreamvote.dream_id = ?\";\n\n $qrowarray=$pwpdo->fetch_all_rows($query,array($personid,$dreamid));\n $t = 0.0;\n $c = 0.0;\n foreach ($qrowarray as $qrow)\n {\n $weight = 1;\n $mpvote = $qrow['mpvote'];\n $mpvote = str_replace(\"tell\", \"\", $mpvote);\n $dreamvote = $qrow['dreamvote'];\n if ($dreamvote == \"aye3\" or $dreamvote == \"no3\") {\n $dreamvote = str_replace(\"3\", \"\", $dreamvote);\n $weight = 3;\n }\n $t += $weight;\n\n if ($mpvote == $dreamvote)\n $c += $weight;\n elseif ($mpvote == \"both\" or $dreamvote == \"both\")\n $c = $c + ($weight / 2);\n }\n\n return array($c, $t);\n}", "function postcode_dist($postcode1, $postcode2, $suburb1 = '', $suburb2 = '') {\n//Get lat and lon for postcode 1\n $extra = \"\";\n if ($suburb1 != '') {\n $extra = \" and suburb = '$suburb1'\";\n }\n $sqlquery = \"SELECT * FROM postcode_db WHERE lat <> 0 and lon <> 0 and postcode = '$postcode1'$extra\";\n $res = mysqli_query($sqlquery);\n $num = mysqli_num_rows($res);\n\n\n//Get lat and lon for postcode 2\n\n $extra = \"\";\n if ($suburb2 != '') {\n $extra = \" and suburb = '$suburb2'\";\n }\n $sqlquery = \"SELECT * FROM postcode_db WHERE lat <> 0 and lon <> 0 and postcode = '$postcode2'$extra\";\n $res1 = mysqli_query($sqlquery);\n $num1 = mysqli_num_rows($res1);\n\n if ($num != 0 && $num1 != 0) {\n//proceed\n $lat1 = mysql_result($res, 0, \"lat\");\n $lon1 = mysql_result($res, 0, \"lon\");\n $lat2 = mysql_result($res1, 0, \"lat\");\n $lon2 = mysql_result($res1, 0, \"lon\");\n $dist = calc_dist($lat1, $lon1, $lat2, $lon2);\n if (is_numeric($dist)) {\n return $dist;\n } else {\n return \"Unknown\";\n }\n } else {\n return \"Unknown\";\n }\n}", "function noun_scoring($id, $base_form, $noun2, $host, $uname, $pass, $dbname){\n\n\t$conn = new mysqli ($host,$uname,$pass,$dbname);\n\n\t$score = $count = 0;\n\t$syn_tok = $noun_tok = \"\";\n\t\n\t$sql = $conn->query(\"SELECT synset FROM synset_table WHERE synset LIKE '% \".$base_form.\",%' OR synset like '%, \".$base_form.\"' OR synset like '\".$base_form.\",%'\");\n\t$result = $sql->fetch_assoc();\n\t$synonyms = $result['synset'];\n\n\t$syn_tok = explode(\", \", $synonyms);\n\n\tfor ($i=0; $i<count($syn_tok); $i++){\n\t\t$noun2_tok = explode(\" \",$noun2);\n\n\t\tfor ($j=0; $j<count($noun2_tok); $j++){\n\n\t\t\tif ($syn_tok[$i] == $noun2_tok[$j]){\n\t\t\t\t$score+=5;\n\t\t\t\t$count++;\n\n\t\t\t\t$sql1 = $conn->query(\"SELECT num_vachana FROM morph\".$id.\" WHERE form = 'Noun' AND statement = 1 AND base_form = '\".$base_form.\"'\");\n\t\t\t\t$sql2 = $conn->query(\"SELECT num_vachana FROM morph\".$id.\" WHERE form = 'Noun' AND statement = 2 AND base_form = '\".$noun2_tok[$j].\"'\");\n\n\t\t\t\t$result1 = $sql1->fetch_assoc();\n\t\t\t\t$result2 = $sql2->fetch_assoc();\n\n\t\t\t\t$number1 = $result1['num_vachana'];\n\t\t\t\t$number2 = $result2['num_vachana'];\n\n\t\t\t\tif ($number1 == $number2){\n\t\t\t\t\t$score+=2;\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['score_array'][$j] < ($score + floor($count/2))){\n\t\t\t\t\t$GLOBALS['score_array'][$j] = $score + floor($count/2);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t}\n\n\t$conn->close();\n}", "function get_recommendations($prefs, $p1){\r\n\t//if he is very similar, then get the books from those that he has not read\r\n\r\n\t//saving the array in a different array\r\n\t$prefsOriginal = $prefs;\r\n\r\n\t//unsetting the person from the array - for whom we are getting the recommendation\r\n\tunset($prefs[$p1]);\r\n\r\n\t//array to save the person and the distance\r\n\t$personDistance = array();\r\n\r\n\t//calculating the similarity of this person with other users\r\n\tforeach($prefs as $k => $v){\r\n\t\t$dist = sim_distance($prefsOriginal, $p1, $k);\r\n\t\t$personDistance[$k] = $dist;\r\n\t}\r\n\r\n\t//sorting the array based on the distance - nearest first\r\n\tarsort($personDistance);\r\n\r\n\t//printing the top recommenders\r\n\t//print_r($personDistance);\r\n\r\n\t//getting the books from the distance people - taking top 3\r\n\t$i = 0;\r\n\t$recommendedBooks = array();\r\n\t$topBooks = array();\r\n\tforeach($personDistance as $k => $v){\r\n\t\t//get the top books for this person\r\n\t\t$topBooks = top_matches($prefs, $k, $v);\r\n\t\tif(sizeof($topBooks) >= 1){\r\n\t\t\t$recommendedBooks[] = $topBooks;\r\n\t\t\t$i += 1;\r\n\t\t}\r\n\t\tif($i > RECOM_NUM) break; //condition to take the recommendations only from the top matches\r\n\t}\r\n\t//printing the combine array\r\n\t//print_r($recommendedBooks);\r\n\r\n\t//echo ('<br><br>');\r\n\r\n\t$recBooks = array();\r\n\r\n\t//merging the arrays based on the RECOM_NUM\r\n\tforeach($recommendedBooks as $rks){\r\n\t\tforeach ($rks as $key => $value) {\r\n\t\t\t//check if the key already exists\r\n\t\t\tif(array_key_exists($key, $recBooks)){\r\n\t\t\t\t//see whether the value that we are going to insert is higher\r\n\t\t\t\tif($recBooks[$key] < $value){\r\n\t\t\t\t\t$recBooks[$key] = $value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$value = $recBooks[$key];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$recBooks[$key] = $value;\t\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t//getting the name of the books\r\n\t//$recBooks = array_keys($recBooks);\r\n\t//print_r($recBooks);\r\n\r\n\t//subtracting the items that the user has already seen\r\n\tforeach($prefsOriginal[$p1] as $k => $v){\r\n\t\t// echo('kitaab hai = '.$k);\r\n\t\t// echo ('<br>');\r\n\t\tif (in_array($k, $recBooks)){\r\n\t\t\t$key = array_search($k, $recBooks);\r\n\t\t\t//print $key;\r\n\t\t\tunset($recBooks[$key]);\r\n\t\t}\r\n\t}\r\n\r\n\t//getting the order of the books in which to display based on the rating match\r\n\t//sorting the array based on the key\r\n\tarsort($recBooks);\r\n\r\n\t//printing after removing the read books\r\n\t//echo ('<br><br>');\r\n\r\n\treturn $recBooks;\r\n\r\n}", "private function EvaluateOne($DISTANCES, $GT, &$BestThreshold, &$BestFP, &$BestFN)\n {\n # Flatten and sort distances vector\n $FVKEYS = array_keys($DISTANCES);\n $FlatDists = array();\n foreach ($DISTANCES as $k => $v)\n foreach ($v as $kk => $vv)\n $FlatDists[$k . \",\" . $kk] = $vv;\n asort($FlatDists);\n \n # Start from the top\n $BestThreshold = 0;\n $BestFP = 0;\n $FP = [];\n $BestFN = $FN = count($GT);\n $step = 0.01;\n $eps = 0.00001;\n $found = [];\n foreach($GT as $file) $found[$file] = false;\n \n for ($i=0; $i<1; $i+=$step)\n {\n foreach($FlatDists as $pair => $dist)\n {\n list($left, $right) = explode(\",\", $pair);\n if (($dist < $i || abs($dist-$i) < $eps) && $dist > $i-$step)\n {\n if (in_array($left, $GT) && !$found[$left]) { $found[$left] = true; $FN--; }\n if (in_array($right, $GT) && !$found[$right]) { $found[$right] = true; $FN--; }\n if (!in_array($left, $GT) && !in_array($left, $FP))\n $FP[] = $left;\n if (!in_array($right, $GT) && !in_array($right, $FP))\n $FP[] = $right;\n }\n else if ($dist > $i-$step)\n break;\n }\n //print \"Threshold $i FP \".count($FP).\" FN $FN\\n\";\n $quality = $FN + count($FP);\n $best = $BestFP + $BestFN;\n if ($quality < $best || $i == 0)\n {\n $BestFP = count($FP);\n $BestFN = $FN;\n $BestThreshold = $i;\n }\n }\n }", "function _fourD_analysis_calculate_project_goal_weight( $nid, $uid=0, $goals, $project ) {\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); <br>----------------------------<br>' );\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); $goals: '.print_r($goals, true) );\n //fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); $project: '.print_r($project, true) );\n \n if( !count($goals) || !$project ){\n return 0.0;\n }\n \n $weight = 0;\n $indirectParents = array();\n if( isset($project['project_goal']) ){\n foreach( $goals as $gid=>$g ){\n\n $goal = fourD_analysis_goal_entry_get($gid, $uid);\n// fourD_analysis_debug('----- _fourD_analysis_calculate_project_goal_weight; : Goal: '.$project['project_goal'][$gid]['title'].'; Info: '.print_r($goal, true) );\n\n if($goal && isset($goal['goal_weight']) ){\n if( isset($project['project_goal'][$gid]['rating']) ){\n \n// fourD_analysis_debug('+++++ _fourD_analysis_calculate_project_goal_weight; : Goal: '.$project['project_goal'][$gid]['title'].'; Info: '.print_r($project['project_goal'][$gid], true) );\n\n\n /* Direct parent and top-level are G1*W1 */\n if( _fourD_analysis_is_goal_applicable_to_project_input($nid, $g) ){\n $weight += ( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] );\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight; INPUT: Goal: '.$project['project_goal'][$gid]['title'].'; nid: '. $gid.'; W'.$gid.' = '.$goal['goal_weight'].'; G'.$gid.' = '.$project['project_goal'][$gid]['rating'].'; W'.$gid.'*G'.$gid.' = '.( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] ). '; Cumlative: '.$weight );\n\n //fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); INPUT: Goal: '.print_r($project['project_goal'][$gid], true) );\n }\n /* Indirect parents are simply (*W6*W7) - Note: not (G6*W6+G7*W7) */\n// elseif( _fourD_analysis_is_goal_applicable_to_project($nid, $g) ){\n// $indirectParents[$gid] = $goal['goal_weight'];\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight; APPLICABLE: Goal: '.$project['project_goal'][$gid]['title'].'; nid: '. $gid.'; W'.$gid.' = '.$goal['goal_weight'].'; G'.$gid.' = '.$project['project_goal'][$gid]['rating'].'; W'.$gid.'*G'.$gid.' = '.( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] ). '; Cumlative: '.$weight );\n// }\n \n /* ALL parents are simply (*W6*W7) - Note: not (G6*W6+G7*W7) */\n if( _fourD_analysis_is_goal_parent_to_project($nid, $g) ){\n $indirectParents[$gid] = $goal['goal_weight'];\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight; PARENT: Goal: '.$project['project_goal'][$gid]['title'].'; nid: '. $gid.'; W'.$gid.' = '.$goal['goal_weight'].'; G'.$gid.' = '.$project['project_goal'][$gid]['rating'].'; W'.$gid.'*G'.$gid.' = '.( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] ). '; Cumlative: '.$weight );\n //fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); PARENT: Goal: '.print_r($project['project_goal'][$gid], true) );\n }\n \n \n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight; nid: '. $gid.'; W'.$gid.' = '.$goal['goal_weight'].'; G'.$gid.' = '.$project['project_goal'][$gid]['rating'].'; W'.$gid.'*G'.$gid.' = '.( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] ). '; Cumlative: '.$weight );\n }\n\n else{\n /* ALL parents are simply (*W6*W7) - Note: not (G6*W6+G7*W7) */\n if( _fourD_analysis_is_goal_parent_to_project($nid, $g) ){\n $indirectParents[$gid] = $goal['goal_weight'];\n// fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight; PARENT: Goal: '.$project['project_goal'][$gid]['title'].'; nid: '. $gid.'; W'.$gid.' = '.$goal['goal_weight'].'; G'.$gid.' = '.$project['project_goal'][$gid]['rating'].'; W'.$gid.'*G'.$gid.' = '.( $goal['goal_weight']*$project['project_goal'][$gid]['rating'] ). '; Cumlative: '.$weight );\n //fourD_analysis_debug('_fourD_analysis_calculate_project_goal_weight('.$nid.'); PARENT: Goal: '.print_r($g, true) );\n }\n }\n }\n\n\n }\n\n /* Finally, factor in any indirect parents */\n foreach($indirectParents as $nid=>$w){\n $weight = ($weight*$w);\n }\n }\n \n return $weight;\n}", "function top_matches($prefs, $p, $dist){\r\n\t//get the top rated books only\r\n\t$topBooks = array();\r\n\tforeach($prefs[$p] as $k => $v){\r\n\t\tif ($v > RATING_MIN){\r\n\t\t\t//add the code to increase the rating if there is a similarity between the users\r\n\t\t\t//checking if the distance is greater that SOMEthING, then bumping up the rating\r\n\t\t\tif ($dist > SIM_NUM){\r\n\t\t\t\t$v += $v*$dist;\t\t\r\n\t\t\t}\r\n\t\t\t$topBooks[$k] = $v;\r\n\t\t}\r\n\t}\r\n\tarsort($topBooks);\r\n\t//print_r($topBooks);\r\n\treturn $topBooks;\r\n}", "function calculateScore($aryTip, $aryResult, $blnSD, $blnUserSD)\n { \n \t$aryScore = array\n\t(\n\t\t\"perfect\" => 3,\n\t\t\"correctScore\"=> 2,\n\t\t\"correctTeam\" => 1\n\t); \t\n \t\n \t$intResultDiff = $aryResult[0] - $aryResult[1];\t\t\n\t$intTipDiff = $aryTip[0] - $aryTip[1];\t\t\t\n\t\n\t$intScore = 0;\n\tif(is_numeric($aryTip[0]) AND is_numeric($aryTip[1]))\n\t{\n\t\t/* Sudden Death? */\n\t\t//\n\t\tif(FALSE) /* SD can't be tipped anymore!! */\n\t\t{\t\n\t\t\t/* user tipped a SD? */\n\t\t\tif( $blnUserSD == $blnSD )\n\t\t\t{\n\t\t\t\t/* correct team -> PERFECT */\t\n\t\t\t\tif( ($intResultDiff * $intTipDiff) > 0 )\n\t\t\t\t{\n\t\t\t\t\t$intScore += $aryScore['perfect'] + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\t\t\n\t\t\t/* PERFECT */\n\t\t\tif( ($aryResult[0] == $aryTip[0]) AND ($aryResult[1] == $aryTip[1]) )\n\t\t\t{\n\t\t\t\t//echo \"perfect\";\n\t\t\t\t$intScore += $aryScore['perfect'];\n\t\t\t}\n\t\t\t/* Correct Score */\n\t\t\telseif( $intResultDiff == $intTipDiff )\n\t\t\t{\n\t\t\t\t//echo \"Correct Score\";\n\t\t\t\t$intScore += $aryScore['correctScore'];\n\t\t\t}\n\t\t\t/* correct Team */\n\t\t\telseif( ($intResultDiff * $intTipDiff) > 0 )\n\t\t\t{\n\t\t\t\t//echo \"Correct Team\";\n\t\t\t\t$intScore += $aryScore['correctTeam'];\n\t\t\t}\t\t\t\n\t\t} \t\t\n\t}\n\treturn $intScore;\n}", "function promedio_general($vector){ \n $promedio=0;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n $promedio=$promedio+$n;\n }\n }\n return ($promedio/10);\n }", "function score_other($id, $base_form, $other2, $host, $uname, $pass, $dbname){\n\n\t$conn = new mysqli ($host,$uname,$pass,$dbname);\n\n\t$score = $count = 0;\n\t$syn_tok = $other2_tok = \"\";\n\n\t$sql = $conn->query(\"SELECT synset FROM synset_table WHERE synset LIKE '% \".$base_form.\",%' OR synset like '%, \".$base_form.\"' OR synset like '\".$base_form.\",%'\");\n\t$result = $sql->fetch_assoc();\n\t$synonyms = $result['synset'];\n\n\tif ($synonyms){\n\t\t$syn_tok = explode(\", \", $synonyms);\n\n\t\tfor ($i=0; $i<count($syn_tok); $i++){\n\t\t\t$other2_tok = explode(\" \",$other2);\n\n\t\t\tfor ($j=0; $j<count($other2_tok); $j++){\n\t\t\t\tif ($syn_tok[$i] == $other2_tok[$j]){\n\t\t\t\t\t$GLOBALS['score_array'][$j] = $GLOBALS['incr_other'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\t$other2_tok = explode(\" \",$other2);\n\n\t\tfor ($j=0; $j<count($other2_tok); $j++){\n\t\t\tif ($base_form == $other2_tok[$j]){\n\t\t\t\t$GLOBALS['score_array'][$j] = $GLOBALS['incr_other'];\n\t\t\t}\n\t\t}\n\t}\n\t\n\t$conn->close();\n}", "function absolute_distance($allRelations, $user_signals_relations)\n{\n\t$userComparison = array();\n\tforeach ($allRelations as $value) {\n\t\t$localRelations = array();\n\t\t$helperArray = $value->get_relations();\n\t\tforeach ($user_signals_relations as $key => $value_2) {\n\t\t\t$keyBackwards_firstPart = $key[18].$key[19].$key[20].$key[21].$key[22].$key[23].$key[24].\n\t\t\t\t$key[25].$key[26].$key[27].$key[28].$key[29].$key[30].$key[31]\n\t\t\t\t.$key[32].$key[33].$key[34].\"-\";\n\t\t\t$keyBackwards_secondPart = $key[0].$key[1].$key[2].$key[3].$key[4].$key[5].$key[6].\n\t\t\t\t$key[7].$key[8].$key[9].$key[10].$key[11].$key[12].$key[13].$key[14].\n\t\t\t\t$key[15].$key[16];\n\t\t\t$keyBackwards = $keyBackwards_firstPart . $keyBackwards_secondPart;\n\t\t\tif (array_key_exists($key, $helperArray)) {\n\t\t\t\t$localRelations[$key] = abs($value_2 - $helperArray[$key]); \n\t\t\t}\n\t\t\tif (array_key_exists((string)$keyBackwards, $helperArray)) {\n\t\t\t\t$localRelations[$key] = abs($value_2 + $helperArray[$keyBackwards]);\n\t\t\t}\n\t\t}\n\t\t$comparisonRelations = new FprintRelations($value->get_room(), $value->get_position(), $localRelations);\n\t\tarray_push($userComparison, $comparisonRelations);\n\t}\n\n\treturn $userComparison;\n\n\n}", "function getCompatibilityByWeight($searchee=array(), $candidate=array(), $type=1){\r\n\t\t$commonItems = 0;\r\n\t\t$sim = 0;\r\n\t\tforeach($searchee[\"MemberAttributeWeight\"] as $weight_searchee){\r\n\t\t\tforeach($candidate[\"MemberAttributeWeight\"] as $weight_candidate){\r\n\t\t\t\tif ($weight_searchee[\"attribute_id\"]==$weight_candidate[\"attribute_id\"]){\r\n\t\t\t\t\t$attribute = $this->controller->Attribute->find(\"first\", array(\"conditions\"=>array(\"Attribute.id\"=>$weight_candidate[\"attribute_id\"])));\r\n\t\t\t\t\t//if ($attribute[\"attribute_type_id\"]==$type){\r\n\t\t\t\t\t\t$commonItems++;\r\n\t\t\t\t\t\t$weight1 = $weight_searchee[\"weight\"];\r\n\t\t\t\t\t\t$weight2 = $weight_candidate[\"weight\"];\r\n\t\t\t\t\t\t$sim+=pow(($weight1-$weight2), 2);\r\n\t\t\t\t\t//}\t\t\t\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($commonItems>0){\r\n\t\t\t$sim = sqrt($sim/$commonItems);\r\n\t\t\t$sim = 1 - tanh($sim);\r\n\t\t\t$maxItems = min(count($searchee[\"MemberAttributeWeight\"]), count($candidate[\"MemberAttributeWeight\"]));\r\n\t\t\t$sim = $sim * ($commonItems/$maxItems);\r\n\t\t}\r\n\t\treturn $sim;\r\n\t}", "function gainRatios($last_column,$columns_after_cut,$res) {\r\n\t$res_gainRatios = array();\r\n\t\r\n\t$gain = gain($last_column,$columns_after_cut,$res);\r\n\t$splitInfo = splitInfo($columns_after_cut);\r\n\t\r\n\tfor ($i = 0; $i < count($gain); $i++){\r\n\t\tif ($splitInfo[$i] != 0){\r\n\t\t\t$temp = $gain[$i] / $splitInfo[$i];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$temp = \"SplitInfo = 0\";\r\n\t\t}\r\n\t\tarray_push($res_gainRatios, $temp);\r\n\t}\r\n\t\r\n\treturn $res_gainRatios;\r\n}", "function calculate_points($all_desired_list, $all_answers_list, $all_importance_list) {\n global $importance;\n $all_answers_array = explode(\",\", $all_answers_list);\n $all_importance_array = explode(\",\", $all_importance_list);\n $all_desired_array = explode(\",\", $all_desired_list);\n\n $total_questions = min(count($all_answers_array), count($all_importance_array), count($all_desired_array));\n\n $earned_points = 0;\n $max_points = 0;\n\n for($i = 0; $i < $total_questions; $i++) {\n if (strpos($all_desired_array[$i] , '-') !== false) {\n $all_desired_array_explode = explode(\"-\", $all_desired_array[$i]);\n $earned_points += get_points($all_desired_array_explode, $all_answers_array[$i], $all_importance_array[$i]).\"<br />\";\n } else {\n $earned_points += get_points($all_desired_array[$i], $all_answers_array[$i], $all_importance_array[$i]).\"<br />\";\n }\n $max_points += $importance[$all_importance_array[$i]];\n } \n\n if($earned_points != 0 || $max_points != 0) {\n return floor(($earned_points / $max_points) * 100);\n } else {\n return \"0\";\n }\n }", "function scoreBMI(){\n //Find the BMI of the user, and compare that to others.\n $userGender=$_POST[\"gender\"];\n $calcHeight=($_POST[\"height-ft\"] * 12)+$_POST[\"height-in\"];\n $userHeight=$calcHeight*2.54/100;\n $userWeight=($_POST[\"weight\"]*0.453592);\n\n $userBMI=$userWeight / pow($userHeight,2);\n if($userBMI < 18.5){\n $BMIpoints=7.5;\n } elseif($userBMI > 18.5 && $userBMI < 24.9){\n $BMIpoints=20;\n } elseif($userBMI > 24.9 && $userBMI < 29.9){\n $BMIpoints=10;\n } elseif($userBMI > 29.9){\n $BMIpoints=5;\n }\n return $BMIpoints;\n $url = 'data/bmi.json';\n $JSON = file_get_contents($url);\n $BMI = json_decode($JSON);\n foreach ($BMI as $category) {\n if($category->SEX == $userGender && $category->GEO == $userProvince){\n switch($userGender){\n case \"Males\":\n $baseline=68.5;\n break;\n case \"Females\":\n $baseline=73.5;\n break;\n }\n }\n }\n}", "function calculatePriceForRabatt(){\r\n// @ToDo remove static Values \r\n\r\n\t $basketIns = array_merge($this->basket->get_articles_by_article_type_uid_asuidlist(1)); //,$this->basket->get_articles_by_article_type_uid_asuidlist($this->pObj->conf['couponNormalType']),$this->basket->get_articles_by_article_type_uid_asuidlist($this->pObj->conf['couponRelatedType'])); // 4 and 5\r\n\t $value = array('net'=>0,'gross'=>0);\r\n\t \r\n\t foreach ($basketIns as $itemObjId) {\r\n\t\t$temp = $this->basket->basket_items[$itemObjId];\r\n\t\t$temp->recalculate_item_sums();\r\n\t\t\r\n\t\t$value['net'] += $temp->get_item_sum_net();\r\n\t\t$value['gross'] += $temp->get_item_sum_gross();\r\n\t }\r\n\r\n\t if($value['net']< 0){\r\n\t\t$value['net'] = 0;\r\n\t }\r\n\r\n\t if($value['gross'] < 0){\r\n\t\t$value['gross'] = 0;\r\n\t }\r\n\t return $value;\r\n\t}", "private function calcDistScores() {\n foreach ($this->cities as $city) { \n $cityLat = $city['Latitude'];\n $cityLong = $city['Longitude']; \n $distance = $this->distance($cityLat, $cityLong, \n $this->latitude, $this->longitude);\n $this->distScores[] = $distance; \n }\n }", "function getCompatibilityByWeight2($searchee=array(), $candidate=array()){\r\n\t\t$similarItems = $this->getSimilarItems ( $searchee, $candidate );\r\n\t\t$n = count($similarItems);\r\n\t\tif ($n==0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t$sum1 = $this->sumUpWeights($searchee, $similarItems);\r\n\t\t$sum2 = $this->sumUpWeights($candidate, $similarItems);\r\n\t\t$sumPow1 = $this->sumUpWeights($searchee, $similarItems, \"sumpower\");\r\n\t\t$sumPow2 = $this->sumUpWeights($candidate, $similarItems, \"sumpower\");\r\n\t\t$sameItems1 = $this->getSimilarItemsPerPerson($searchee, $similarItems);\r\n\t\t$sameItems2 = $this->getSimilarItemsPerPerson($candidate, $similarItems);\r\n\t\t$sumMul = 0;\r\n\t\tfor($i=0;$i<$n;$i++){\r\n\t\t\t$sumMul += ($sameItems1[$i][\"weight\"]*$sameItems2[$i][\"weight\"]);\r\n\t\t}\r\n\t\t//$numerator = $sumMul*$n - (($sum1*$sum2)/$n);\r\n\t\t$numerator = ($sumMul*$n - ($sum1*$sum2))/$n;\r\n\t\t$denominator = sqrt(\r\n\t\t\t($sumPow1 - (pow($sum1, 2)/$n))*($sumPow2 - (pow($sum2, 2)/$n))\r\n\t\t\r\n\t\t);\r\n\t\tif ($numerator==$denominator){\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif ($denominator==0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn $numerator/$denominator;\r\n\t}", "function fiftyone_degrees_evaluate_numeric_nodes(\n $useragent_bytes,\n &$node_offsets,\n &$lowest_score,\n &$debug_info,\n $headers) {\n\n $current_position = count($useragent_bytes) - 1;\n $existing_node_index = count($node_offsets) - 1;\n\n $lowest_score = NULL;\n\n $root_node_offsets = fiftyone_degrees_read_root_node_offsets($headers);\n while ($current_position > 0) {\n // $existing_node = fiftyone_degrees_read_node($node_offsets[$existing_node_index], $headers);\n if ($existing_node_index >= 0) {\n $root_node = fiftyone_degrees_get_nodes_root_node(\n $node_offsets[$existing_node_index],\n $headers);\n $root_node_position = $root_node['position'];\n }\n\n if ($existing_node_index < 0 || $root_node_position < $current_position) {\n $debug_info['root_nodes_evaluated']++;\n $position_root = fiftyone_degrees_read_node(\n $root_node_offsets[$current_position],\n $headers);\n\n $node = fiftyone_degrees_get_complete_numeric_node(\n $position_root,\n $current_position,\n $useragent_bytes,\n $lowest_score,\n $debug_info,\n $headers);\n\n\n if ($node != NULL\n && fiftyone_degrees_get_any_nodes_overlap($node, $node_offsets, $headers)) {\n // Insert the node and update the existing index so that\n // it's the node to the left of this one.\n\n $index = fiftyone_degrees_integer_binary_search(\n $node_offsets,\n $node['offset']);\n array_splice($node_offsets, ~$index, 0, $node['offset']);\n $existing_node_index = ~$index - 1;\n\n // Move to the position of the node found as \n // we can't use the next node incase there's another\n // not part of the same signatures closer.\n $current_position = $node['position'];\n }\n else\n $current_position--;\n }\n else {\n // The next position to evaluate should be to the left\n // of the existing node already in the list.\n $existing_node = fiftyone_degrees_read_node($node_offsets[$existing_node_index], $headers);\n $current_position = $existing_node['position'];\n\n // Swap the existing node for the next one in the list.\n $existing_node_index--;\n }\n }\n return $node_offsets;\n}", "public function interpretation() {\n $functiontype = $this->inputarray[$this->position];\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the addition \n Advances index position by 4 to continue to next function */\n if ($functiontype == 1) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->one();\n $this->position = $this->position+4;\n return;\n }\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the multiplication \n Advances index position by 4 to continue to next function */\n if ($functiontype == 2) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->two();\n $this->position = $this->position+4;\n return;\n }\n \n /* Sets the final calculated value at position 0 and returns 99 to end the while loop*/\n if ($functiontype == 99) {\n $this->finalvalue = $this->inputarray[0];\n return $this->inputarray[$this->position];\n }\n }", "private function calcTempScores() {\n foreach ($this->cities as $city){\n $cityTemp = $city['Temp']; \n $difference = abs($this->preferredTemp - $cityTemp); \n $score = ((self::TEMP_BASE - $difference)/4)*$this->citiesInputed; \n $this->tempScores[] = $score; \n }\n }", "private function _setup_weight_factors()\n\t{\n\t\t$default_factors = $this->_weight_factors = array(\n\t\t\t'frequency' => array(\n\t\t\t\t'search' => 'COUNT(*) / (MAX(t.num_replies) + 1)',\n\t\t\t\t'results' => '(t.num_replies + 1)',\n\t\t\t),\n\t\t\t'age' => array(\n\t\t\t\t'search' => 'CASE WHEN MAX(m.id_msg) < {int:min_msg} THEN 0 ELSE (MAX(m.id_msg) - {int:min_msg}) / {int:recent_message} END',\n\t\t\t\t'results' => 'CASE WHEN t.id_first_msg < {int:min_msg} THEN 0 ELSE (t.id_first_msg - {int:min_msg}) / {int:recent_message} END',\n\t\t\t),\n\t\t\t'length' => array(\n\t\t\t\t'search' => 'CASE WHEN MAX(t.num_replies) < {int:huge_topic_posts} THEN MAX(t.num_replies) / {int:huge_topic_posts} ELSE 1 END',\n\t\t\t\t'results' => 'CASE WHEN t.num_replies < {int:huge_topic_posts} THEN t.num_replies / {int:huge_topic_posts} ELSE 1 END',\n\t\t\t),\n\t\t\t'subject' => array(\n\t\t\t\t'search' => 0,\n\t\t\t\t'results' => 0,\n\t\t\t),\n\t\t\t'first_message' => array(\n\t\t\t\t'search' => 'CASE WHEN MIN(m.id_msg) = MAX(t.id_first_msg) THEN 1 ELSE 0 END',\n\t\t\t),\n\t\t\t'sticky' => array(\n\t\t\t\t'search' => 'MAX(t.is_sticky)',\n\t\t\t\t'results' => 't.is_sticky',\n\t\t\t),\n\t\t\t'likes' => array(\n\t\t\t\t'search' => 'MAX(t.num_likes)',\n\t\t\t\t'results' => 't.num_likes',\n\t\t\t),\n\t\t);\n\n\t\t// These are fallback weights in case of errors somewhere.\n\t\t// Not intended to be passed to the hook\n\t\t$default_weights = array(\n\t\t\t'search_weight_frequency' => 30,\n\t\t\t'search_weight_age' => 25,\n\t\t\t'search_weight_length' => 20,\n\t\t\t'search_weight_subject' => 15,\n\t\t\t'search_weight_first_message' => 10,\n\t\t);\n\n\t\tcall_integration_hook('integrate_search_weights', array(&$this->_weight_factors));\n\n\t\t// Set the weight factors for each area (frequency, age, etc) as defined in the ACP\n\t\t$this->_calculate_weights($this->_weight_factors, $this->_input_weights);\n\n\t\t// Zero weight. Weightless :P.\n\t\tif (empty($this->_weight_total))\n\t\t{\n\t\t\t// Admins can be bothered with a failure\n\t\t\tif ($this->_is_admin)\n\t\t\t{\n\t\t\t\tthrow new Exception('search_invalid_weights');\n\t\t\t}\n\n\t\t\t// Even if users will get an answer, the admin should know something is broken\n\t\t\tErrors::instance()->log_lang_error('search_invalid_weights');\n\n\t\t\t// Instead is better to give normal users and guests some kind of result\n\t\t\t// using our defaults.\n\t\t\t// Using a different variable here because it may be the hook is screwing\n\t\t\t// things up\n\t\t\t$this->_calculate_weights($default_factors, $default_weights);\n\t\t}\n\t}", "function moment_of_resistance($E, &$designParameter, &$designParameterRes)\n{\n\n// You may assign relavent names to input parameters\n\n$b = $designParameter[0] ;\n$d = $designParameter[1] ;\n\n// Perform alculations to find results / values of output parameters\n$Area = $b * $d ;\n$Peri = 2 * ( $b + $d ) ;\n\n// Put output parameters in array in sequence / order.\n$designParameterRes[] = $Area ; \n$designParameterRes[] = $Peri ;\n// $designParameterRes[] = $otheParameters ; // other parameters ...\n \n}", "private function calcTotalScores() {\n $enteredCities = [trim(strtolower($this->cityOne)), \n trim(strtolower($this->cityTwo)), trim(strtolower($this->cityThree))]; \n \n for($x=0; $x<$this->numberOfCities; $x++) {\n $this->totalScores[$x] = $this->tempScores[$x] + $this->traitScores[$x];\n if ($this->totalScores[$x] > $this->maxScore) {\n $testCity = $this->map[$x]; \n if (!in_array(strtolower($testCity), $enteredCities)) {\n # if Day Trip selected, will bypass certain cities too far away\n if($this->purposeForTravel == 'Close Trip') {\n if($this->distScores[$x] > $this->tripDistance)\n continue; \n }\n $this->maxScore = $this->totalScores[$x];\n $this->chosenCity = $testCity; \n }\n }\n }\n }", "function craft($item,$qty,$ft){\r\n\tglobal $recipe,$fuel;\r\n\t$items=Array();\r\n\t$itemsq=Array();\r\n\t$nitems=Array();\r\n\t$nitemsq=Array();\r\n\t$items[0]=$item;\r\n\t$itemsq[0]=$qty;\r\n\tdo{\r\n\t\t$allend=0;\r\n\t\tforeach($items as $k=>$v){\r\n\t\t\tif(!isset($recipe[$v])) echo('Error processing item: <b>'.$v.'</b>. Please report this to sajmon313@gmail.com<br>');\r\n\t\t\telse{\r\n\t\t\t\tif($recipe[$v]!='end'){\r\n\t\t\t\t\t$allend+=1;\r\n\t\t\t\t\t$tmp=explode(',',$recipe[$v]);\r\n\t\t\t\t\tforeach($tmp as $t){\r\n\t\t\t\t\t\t$t2=explode(':',$t);\r\n\t\t\t\t\t\t$nitems[count($nitems)]=$t2[0];\r\n\t\t\t\t\t\t$nitemsq[count($nitemsq)]=($t2[1]*$itemsq[$k]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if($v=='fuel'){\r\n\t\t\t\t\t$allend+=1;\r\n\t\t\t\t\t$nitems[count($nitems)]=$ft;\r\n\t\t\t\t\t$nitemsq[count($nitemsq)]=($itemsq[$k]/$fuel[$ft]);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t$nitems[count($nitems)]=$v;\r\n\t\t\t\t\t$nitemsq[count($nitemsq)]=$itemsq[$k];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$items=$nitems;\r\n\t\t$itemsq=$nitemsq;\r\n\t\t$nitems=Array();\r\n\t\t$nitemsq=Array();\r\n\t}while($allend!=0);\r\n\tforeach($items as $key=>$val){\r\n\t\t$re[$val]+=$itemsq[$key];\r\n\t}\r\n\treturn $re;\r\n}", "abstract protected function doPairs();", "function getCommonFactor($first, $second, $tenPoint, $height) {\n $allNumbers = array(intval($first), intval($second));\n $upDown = $down;\n $interval = 1;\n $isCommon = false;\n $testNumber = intval(0.2181818181 * ($height/$tenPoint)); // when we've got more height than font, we'll start looking at a higher number for the common factor. Default will be 12.\n while(!$isCommon AND $testNumber > 3) {\n\t\t$isCommon = true; // if we make it through the following loop without changing this, then we've found our number!\n\t\tforeach($allNumbers as $num) {\n\t\t\t$remainder = $num % $testNumber;\n if($remainder != 0) {\n $isCommon = false;\n }\n\t\t}\n if(!$isCommon) {\n if($upDown == \"down\") {\n $testNumber = $testNumber - $interval;\n $upDown = \"up\";\n } else {\n $testNumber = $testNumber + $interval;\n $upDown = \"down\";\n }\n $interval++;\n }\n\t}\n if(!$isCommon) {\n return 12;\n } else {\n return $testNumber;\n }\n}", "function ml_compute_ranking($r_id){\n\tglobal $dbh1, $dbh2; // Global variables for database connections\n\t$sql = 'SELECT student_id FROM student_recruiter WHERE recruiter_id='.$r_id;\n\t$result = mysql_query($sql, $dbh1);\n\t$rank_dist = [];\n\t\n\twhile ($data = mysql_fetch_array($result)){\n\t\t$s_id = $data['student_id'];\n\t\t// Extract feature vector from s_id\n\t\t$sql1 = 'SELECT feature FROM ml_feature_vectors WHERE recruiter_id='.$r_id.' AND student_id='.$s_id;\n\t\t$result1 = mysql_query($sql1, $dbh2);\n\t\t$data1 = mysql_fetch_array($result1);\n\t\t$feature = $data1['feature'];\n\t\t\n\t\t// Convert feature vector string to array of integers\n\t\t$feature_array = array();\n\t\tfor($i=0;$i<strlen($feature);$i++){\n\t\t\t$feature_array[$i] = (int)$feature[$i];\n\t\t}\n\t\t\n\t\t// Create best array --> For Comparison\n\t\t$best_array = array();\n\t\tfor($i=0;$i<strlen($feature);$i++){\n\t\t\t$best_array[$i] = 5;\n\t\t}\n\t\t// Calculate distance between feature vector and best vector based on Cosine similarity distance\n\t\t$cdist = cosinus($feature_array, $best_array);\n\t\t$rank_dist[$s_id] = $cdist;\n\t\t\t\n\t} //while (student)\n\t\n\t// Sort $rank_dist array\n\tarsort($rank_dist);\n\t$rank_dist_keys = array_keys($rank_dist);\n\t\n\t$rank_id = '';\n\tfor($i=0; $i<count($rank_dist_keys); $i++){\n\t\tif($i==(count($rank_dist_keys)-1) )\n\t\t\t$rank_id = $rank_id.$rank_dist_keys[$i];\n\t\telse $rank_id = $rank_id.$rank_dist_keys[$i].',';\n\t}\n\t\n\t$sql2 = 'SELECT * FROM ml_rank WHERE recruiter_id='.$r_id; \n\t$result2 = mysql_query($sql2, $dbh2);\n\t$count2 = mysql_num_rows($result2);\n\t\n\tif ($count2==0)\n\t\t$sql3 = 'INSERT INTO ml_rank VALUES('.$r_id.',\"'.$rank_id.'\")';\n\telse\n\t\t$sql3 = 'UPDATE ml_rank SET rank_id=\"'.$rank_id.'\" WHERE recruiter_id='.$r_id;\n\tmysql_query($sql3, $dbh2);\n\t\t\n\n}", "function weight_factor($section, $rating_rules){\r\n\t$weight_fact = 1 ;\r\n\tforeach($rating_rules as $kew=> $val){\r\n\t\tif(!empty($section) & $val['RatingRule']['section'] == $section){\r\n\t\t\t$weight_fact=$val['RatingRule']['Weight_factor'];\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\treturn ($weight_fact);\r\n}", "function discriminateInput($input, $discriminators = null) {\n\n if ($discriminators == null) {\n $discriminators = array('accept', 'clear');\n } \n\n\n\n $default_discriminator_thresholds = array(2=>0.3, 3=>0.3, 4=>0.3);\n\n if (count($discriminators) > 4) {\n $minimum_discrimination = $default_discriminator_thresholds[4];\n } else {\n $minimum_discrimination = $default_discriminator_thresholds[count($discriminators)];\n }\n\n\n\n $aliases = array();\n\n $aliases['accept'] = array('accept','add','+');\n $aliases['clear'] = array('clear','drop', 'clr', '-');\n\n\n\n $words = explode(\" \", $input);\n\n $count = array();\n\n $total_count = 0;\n // Set counts to 1. Bayes thing... \n foreach ($discriminators as $discriminator) {\n $count[$discriminator] = 1;\n\n $total_count = $total_count + 1;\n }\n // ...and the total count.\n\n\n\n foreach ($words as $word) {\n\n foreach ($discriminators as $discriminator) {\n\n if ($word == $discriminator) {\n $count[$discriminator] = $count[$discriminator] + 1;\n $total_count = $total_count + 1;\n //echo \"sum\";\n }\n\n foreach ($aliases[$discriminator] as $alias) {\n\n if ($word == $alias) {\n $count[$discriminator] = $count[$discriminator] + 1;\n $total_count = $total_count + 1;\n //echo \"sum\";\n }\n }\n }\n\n }\n\n //echo \"total count\"; $total_count;\n // Set total sum of all values to 1.\n\n $normalized = array();\n foreach ($discriminators as $discriminator) {\n $normalized[$discriminator] = $count[$discriminator] / $total_count; \n }\n\n\n // Is there good discrimination\n arsort($normalized);\n\n\n // Now see what the delta is between position 0 and 1\n\n foreach ($normalized as $key=>$value) {\n //echo $key, $value;\n\n if ( isset($max) ) {$delta = $max-$value; break;}\n if ( !isset($max) ) {$max = $value;$selected_discriminator = $key; }\n }\n\n\n //echo '<pre> Agent \"Train\" normalized discrimators \"';print_r($normalized);echo'\"</pre>';\n\n\n if ($delta >= $minimum_discrimination) {\n //echo \"discriminator\" . $discriminator;\n return $selected_discriminator;\n } else {\n return false; // No discriminator found.\n } \n\n return true;\n }", "function WeightedMatrix($con,$user_id,$filteredSimilarity)\n{\n// print_r($score_array);\n// die;\n\n $not_rated_product = [];\n $query1 = \"Select place.place_id from place WHERE place.place_id NOT IN (Select place.place_id from place join place_user on place_user.place_id = place.place_id WHERE user_id = {$user_id})\";\n $result1 = mysqli_query($con, $query1);\n\n while ($not_rated_place_id = mysqli_fetch_assoc($result1)) {\n $not_rated_product[] = $not_rated_place_id;\n\n }\n \n// print_r($not_rated_product);\n// die;\n\n $not_rated_product_map = [];\n $recommended_places = [];\n\n for ($i = 0; $i < sizeof($not_rated_product); $i++) {\n $id = $not_rated_product[$i]['place_id'];\n $query_rate = \"Select user_id,rating,place_id from place_user WHERE place_id = '$id' AND user_id != '$user_id'\";\n // echo $query_rate;\n // die;\n $result = mysqli_query($con, $query_rate);\n\n // echo \"</br>\";\n // print_r($result);\n // die;\n // echo \"Rating by other user\";\n $rate_from_user = array();\n\n while ($rating = mysqli_fetch_assoc($result)) {\n $rate_from_user[] = $rating;\n }\n\n \n \n // echo \" </br> rating is </br>\";\n // foreach($rate_from_user as $rate => $lol){\n // print_r($lol['rating']);\n // echo \"</br>\";\n // }\n \n // echo \"</br> score array is </br>\";\n // print_r($score_array);\n \n \n \n \n\n\n /// MAtching the user id from rate_from_user and score array\n\n $sum_sim_mul_rate = 0;\n $sim_mul_rate = 0;\n $sum_sim = 0;\n \n \n\n for ($k = 0; $k < sizeof($rate_from_user); $k++) {\n for ($j = 0; $j < sizeof($filteredSimilarity); $j++) {\n if ($rate_from_user[$k]['user_id'] == $filteredSimilarity[$j][0]) {\n \n \n $sum_sim = $sum_sim + $filteredSimilarity[$j][1];\n $sim_mul_rate = $rate_from_user[$k]['rating'] * $filteredSimilarity[$j][1];\n $sum_sim_mul_rate = $sum_sim_mul_rate + $sim_mul_rate;\n\n\n }\n // echo $sum_sim_mul_rate;\n \n }\n }\n ;\n \n if ($sum_sim == 0) {\n $sum_sim = 0.01;\n }\n $ratio = $sum_sim_mul_rate / $sum_sim;\n //$recommended_places[] = array($id,$ratio);\n $recommended_places[$id] = $ratio;\n\n\n }\n \n\n\n// echo \"</br> The recommened place are => </br>\";\n// echo json_encode($recommended_places) ;\n\n //print_r(arsort($recommended_places));\n\n// echo \"THe sorted\";\n\n\n// for($i = 0; $i < sizeof($recommended_places); $i++){\n// //$rec_pro_id[] = $recommended_places[$i][0];\n// $rec_pro_id[] = $recommended_places[$i][0];\n//\n// }\n\n //\n arsort($recommended_places);\n\n //--------------------------------------------------------------\n // This is the recommended place with their score\n // echo \"<pre>\";\n // print_r($recommended_places);\n // die;\n\n\n $rec_pro_id = [];\n // $count = 0;\n foreach ($recommended_places as $key => $value) {\n if ($value != 0) {\n $rec_pro_id[] = $key;\n // $count++;\n \n }\n // if ($count == 5) {\n // break;\n // }\n\n }\n //echo \"The id are \";\n //$arr=array();\n\n\n foreach ( $rec_pro_id as $abc){\n //print_r($abc);\n $arr[$i]=$abc;\n //array_push($arr,$abc);\n }\n // print_r($rec_pro_id);\n $arr=array_values($rec_pro_id);\n // print_r($arr);\n // die;\n\n return $rec_pro_id;\n\n\n\n}", "public function completions() {\n\t\t$completions_calc = $this->_completions/$this->_attempts;\n\t\t// Other NFL QBR specific manipulations\n\t\t$completions_calc -= .3;\n\t\tif ($completions_calc * 5 < 0) {\n\t\t\t$completions_calc = 0;\n\t\t} elseif ($completions_calc * 5 > 2.375) {\n\t\t\t$completions_calc = 2.375;\n\t\t} else {\n\t\t\t$completions_calc *= 5;\n\t\t}\n\t\treturn $completions_calc;\n\t}", "function interpersonal($cit1,$cit2,$action)\n\t{\n\t\t$sql = \"INSERT INTO relationship (cit1,cit2,value) VALUES ({$cit1}, {$cit2}, 1) ON DUPLICATE KEY UPDATE weight = weight+{$action}\";\n\t\ttry { $this->db->exec($sql);}catch(PDOException $e) { echo $e->getMessage();}\n\t\t\n\t}", "abstract protected function calcular($x, $y);", "function fiftyone_degrees_get_signature_score (\n $signature,\n $node_offsets,\n $useragent_bytes,\n $lowest_score,\n $last_node_character,\n $is_closest,\n $headers) {\n $sig_length = fiftyone_degrees_get_signature_length($signature, $headers);\n if ($is_closest === TRUE)\n $running_score = abs($last_node_character + 1 - $sig_length);\n else\n $running_score = 0;\n\n // We only need to check the nodes that are different. As the nodes\n // are in the same order we can simply look for those that are different.\n $match_node_index = 0;\n $signature_node_index = 0;\n while ($signature_node_index < count($signature['node_indexs'])\n && $running_score < $lowest_score) {\n $match_node_offset = $match_node_index >= count($node_offsets)\n ? PHP_INT_MAX : $node_offsets[$match_node_index];\n $signature_node_offset = $signature['node_indexs'][$signature_node_index];\n if ($match_node_offset > $signature_node_offset) {\n // The matched node is either not available, or is higher than\n // the current signature node. The signature node is not contained\n // in the match so we must score it.\n if ($is_closest) {\n $score = fiftyone_degrees_get_score(\n $signature['node_indexs'][$signature_node_index],\n $useragent_bytes,\n $lowest_score,\n $headers);\n }\n else {\n $score = fiftyone_degrees_get_nearest_score(\n $signature['node_indexs'][$signature_node_index],\n $useragent_bytes,\n $headers);\n \n }\n if ($score < 0) {\n return PHP_INT_MAX;\n }\n $running_score += $score;\n $signature_node_index++;\n }\n else if ($match_node_offset == $signature_node_offset) {\n // They both are the same so move to the next node in each.\n $match_node_index++;\n $signature_node_index++;\n }\n else if ($match_node_offset < $signature_node_offset) {\n // The match node is lower so move to the next one and see if\n // it's higher or equal to the current signature node.\n $match_node_index++;\n }\n }\n\n return $running_score;\n}", "function restaurant_check($meal,$tax,$tip){\n $tax_amount=$meal*($tax/100);\n $tip_amount=$meal*($tip/100);\n $total_amount=$meal+$tax_amount+$tip_amount;\n return $total_amount;\n}", "function formula_transfer($fcoords, $tcoords, $speed, $h2need)\n {\n //look at ./templates/fleets2.thtml\n $a=$tcoords['gal'];\n $b=$tcoords['sys'];\n $c=$tcoords['plan'];\n $p=10;\n $d=-1;\n $en=\"\";\n $fa=$fcoords['gal'];\n $fb=$fcoords['sys'];\n $fc=$fcoords['plan'];\n if($a!=$fa)\n {\n $d=abs(($a-$fa)*20000);\n }\n else if($b!=$fb)\n {\n $d=2700+5*abs(($b-$fb)*19);\n }\n else if($c!=$fc)\n {\n $d=1000+abs(($c-$fc)*5);\n }\n if($a<1|$a>199|$b<1|$b>300|$c<0|$c>199)\n {\n $d=-1;\n }\n $e=round($h2need*$d/35000*(($p/10)+1)*(($p/10)+1))+1;\n $s=round(35000/$p*sqrt($d*10/$speed));\n //$s is time ind secounds\n //$e is h2 needed...\n //$d is distance in Mm (Mega meters) ($d000 km)\n $ret['h2need'] = $e;\n $ret['time'] = $s;\n $ret['dist'] = $d;\n //echo \"e: $e, s: $s, d: $d<br>\";\n return $ret;\n }", "function update_dreammp_person_distance($db, $dreamid)\n{\n # update the number of votes and number of motions edited\n# print \"update_dreammp_person_distance $dreamid<p>\\n\";\n\n global $pwpdo;\n\tglobal $bdebug;\n\t$query = \"SELECT cache_uptodate\n\t\t\t FROM pw_cache_dreaminfo\n\t\t\t WHERE dream_id = ?\";\n $row=$pwpdo->get_single_row($query,array($dreamid));\n\tif ($row == null) {\n\t\tupdate_dreammp_votemeasures($db, $dreamid, 0);\n $row=$pwpdo->get_single_row($query,array($dreamid));\n\t\tif ($row == null) {\n\t\t\t// case of no votes yet by Dream MP\n\t\t\treturn;\n\t\t}\n\t}\n\telse\n\t\tupdate_dreammp_votemeasures($db, $dreamid, $row[\"cache_uptodate\"]); # forces the sums to add up properly\n\tif ($row[\"cache_uptodate\"] == 1)\n\t\treturn;\n\n\t# now go and rebuild all the distances\n\n\t$div_aye_vote = \"(SELECT count(*) FROM pw_vote pv2 WHERE pv2.division_id = pw_division.division_id AND vote = 'aye')\";\n\t$div_no_vote = \"(SELECT count(*) FROM pw_vote pv2 WHERE pv2.division_id = pw_division.division_id AND vote = 'no')\";\n\t$qselect = \"SELECT pw_mp.person AS person,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye' AND pw_vote.vote = 'aye')\n\tOR (pw_dyn_dreamvote.vote = 'aye' AND pw_vote.vote = 'tellaye' AND $div_aye_vote > 0)\n\tOR (pw_dyn_dreamvote.vote = 'no' AND pw_vote.vote = 'no')\n\tOR (pw_dyn_dreamvote.vote = 'no' AND pw_vote.vote = 'tellno' AND $div_no_vote > 0)\n) AS nvotessame,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye3' AND pw_vote.vote = 'aye')\n\tOR (pw_dyn_dreamvote.vote = 'aye3' AND pw_vote.vote = 'tellaye' AND $div_aye_vote > 0)\n\tOR (pw_dyn_dreamvote.vote = 'no3' AND pw_vote.vote = 'no')\n\tOR (pw_dyn_dreamvote.vote = 'no3' AND pw_vote.vote = 'tellno' AND $div_no_vote > 0)\n) AS nvotessamestrong,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye' AND pw_vote.vote = 'no')\n\tOR (pw_dyn_dreamvote.vote = 'aye' AND pw_vote.vote = 'tellno' AND $div_no_vote > 0)\n\tOR (pw_dyn_dreamvote.vote = 'no' AND pw_vote.vote = 'aye')\n\tOR (pw_dyn_dreamvote.vote = 'no' AND pw_vote.vote = 'tellaye' AND $div_aye_vote > 0)\n) AS nvotesdiffer,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye3' AND pw_vote.vote = 'no')\n\tOR (pw_dyn_dreamvote.vote = 'aye3' AND pw_vote.vote = 'tellno' AND $div_no_vote > 0)\n\tOR (pw_dyn_dreamvote.vote = 'no3' AND pw_vote.vote = 'aye')\n\tOR (pw_dyn_dreamvote.vote = 'no3' AND pw_vote.vote = 'tellaye' AND $div_aye_vote > 0)\n) AS nvotesdifferstrong,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye' OR pw_dyn_dreamvote.vote = 'no')\n\tAND (\n\t\tpw_vote.vote = 'both'\n\t\tOR pw_vote.vote IS null\n\t\tOR (pw_vote.vote = 'tellno' AND $div_no_vote = 0)\n\t\tOR (pw_vote.vote = 'tellaye' AND $div_aye_vote = 0)\n\t)\n) AS nvotesabsent,\nSUM(\n\t(pw_dyn_dreamvote.vote = 'aye3' OR pw_dyn_dreamvote.vote = 'no3')\n\tAND (\n\t\tpw_vote.vote = 'both'\n\t\tOR pw_vote.vote IS null\n\t\tOR (pw_vote.vote = 'tellno' AND $div_no_vote = 0)\n\t\tOR (pw_vote.vote = 'tellaye' AND $div_aye_vote = 0)\n\t)\n) AS nvotesabsentstrong,\nSUM(pw_vote.vote IS NOT null) AS nvotesoverlap \";\n\n\t# (no score from dreamMP absents or abstentions)\n\n\t$qfrom = \" FROM pw_mp\";\n\t$qjoin = \" LEFT JOIN pw_dyn_dreamvote ON pw_dyn_dreamvote.dream_id = ?\";\n\t$qjoin .= \" LEFT JOIN pw_division\n\t\t\t\t\tON pw_division.division_date = pw_dyn_dreamvote.division_date\n\t\t\t\t\tAND pw_division.division_number = pw_dyn_dreamvote.division_number\n\t\t\t\t\tAND pw_division.house = pw_dyn_dreamvote.house\";\n\t$qjoin .= \" LEFT JOIN pw_cache_divinfo\n\t\t\t\t\tON pw_cache_divinfo.division_id = pw_division.division_id\";\n\t$qjoin .= \" LEFT JOIN pw_vote\n\t\t\t\t\tON pw_vote.division_id = pw_division.division_id\n\t\t\t\t\tAND pw_vote.mp_id = pw_mp.mp_id\";\n\n\t# we do for one dreammp against all the votes they share with each MP\n\t$qwhere = \" WHERE pw_mp.entered_house <= pw_division.division_date\n\t\t\t\t AND pw_mp.left_house > pw_division.division_date\n AND pw_mp.house = pw_division.house\";\n\t$qgroup = \" GROUP BY pw_mp.person\";\n\n\t$query = $qselect.$qfrom.$qjoin.$qwhere.$qgroup;\n\n\t# do the database/scoring thing\n $rowarray=$pwpdo->fetch_all_rows($query,array($dreamid));\n\n\t# lock and clear the table\n $pwpdo->query('LOCK TABLE pw_cache_dreamreal_distance WRITE',array());\n $pwpdo->query('DELETE FROM pw_cache_dreamreal_distance WHERE dream_id = ?',array($dreamid));\n\n\t# this likes votes that are all one side or other\n\t$dconsistencyn = 0.0;\n\t$dconsistencyc = 0.0;\n\n\tforeach ($rowarray as $row)\n\t{\n\t\tif (!$row['nvotesoverlap']) { # can't quite see how to filter these out in the query\n #print \"nvotesoverlap \".$row['person'].\"\\n\";\n #print_r($row);\n\n # Actually, don't bother filtering it! We want to know when somebody didn't\n # attend all the votes on one subject, and need that recording in table. Can\n # check for their being no common attendance elsewhere.\n #continue\n\n if (!$row['nvotessame']) {\n $row['nvotessame']= 0;\n }\n if (!$row['nvotessamestrong']) {\n $row['nvotessamestrong']= 0;\n }\n if (!$row['nvotesdiffer']) {\n $row['nvotesdiffer']= 0;\n }\n if (!$row['nvotesdifferstrong']) {\n $row['nvotesdifferstrong']= 0;\n }\n if (!$row['nvotesabsent']) {\n $row['nvotesabsent']= 0;\n }\n if (!$row['nvotesabsentstrong']) {\n $row['nvotesabsentstrong']= 0;\n }\n }\n\t\t$nvotessame = $row['nvotessame'];\n\t\t$nvotessamestrong = $row['nvotessamestrong'];\n\t\t$nvotesdiffer = $row['nvotesdiffer'];\n\t\t$nvotesdifferstrong = $row['nvotesdifferstrong'];\n\t\t$nvotesabsent = $row['nvotesabsent'];\n\t\t$nvotesabsentstrong = $row['nvotesabsentstrong'];\n\t\t$person = $row['person'];\n\n\t\t$distancea = calc_dreammp_person_distance($nvotessame, $nvotessamestrong,\n\t\t\t\t\t\t\t\t\t\t\t \t $nvotesdiffer, $nvotesdifferstrong,\n\t\t\t\t\t\t\t\t\t\t\t \t $nvotesabsent, $nvotesabsentstrong);\n\n\t\t# score without absentions\n\t\t$distanceb = calc_dreammp_person_distance($nvotessame, $nvotessamestrong,\n\t\t\t\t\t\t\t\t\t\t\t \t $nvotesdiffer, $nvotesdifferstrong, 0, 0);\n\n\n\t\t$query = \"INSERT INTO pw_cache_dreamreal_distance\n (dream_id, person,\n\t\t\t\t\t\tnvotessame, nvotessamestrong,\n\t\t\t\t\t\tnvotesdiffer, nvotesdifferstrong,\n\t\t\t\t\t\tnvotesabsent, nvotesabsentstrong,\n\t\t\t\t\t\tdistance_a, distance_b)\n \tVALUES (?,?,?,?,\n \t?,?,?,?,\n\t\t\t\t\t?,?)\";\n\t\t$placeholders=array($dreamid,$person,$nvotessame, $nvotessamestrong,\n $nvotesdiffer, $nvotesdifferstrong,$nvotesabsent, $nvotesabsentstrong,\n $distancea, $distanceb);\n\n $pwpdo->query($query,$placeholders);\n\n\t\t# quick hack until better formulae are found\n\t\tif ($distancea < 0.1 or $distancea > 0.9)\n\t\t\t$dconsistencyn += 1.0;\n\t\t$dconsistencyc += 1.0;\n\t}\n\n\t# unlock, then post update(?)\n\t$pwpdo->query(\"UNLOCK TABLES\",array());\n\n\n\t$dconsistency = ($dconsistencyc != 0.0 ? $dconsistencyn / $dconsistencyc : 0.0);\n\n # Mark as updated\n $pwpdo->query('UPDATE pw_cache_dreaminfo\n\t\t\t\tSET cache_uptodate = 1, consistency_with_mps = ?\n\t\t\t\tWHERE dream_id =?',array($dconsistency,$dreamid));\n}", "function gain($l_column,$other_column,$res){\r\n\t$res_gain = array();\r\n\r\n\t$information = information_for_each_column($other_column,$res);\r\n\t$entropy_lastColumn = entropy($l_column);\r\n\t\r\n\tfor ($i = 0; $i < count($information); $i++){\r\n\t\t$temp = $entropy_lastColumn - $information[$i];\r\n\t\tarray_push($res_gain, $temp);\r\n\t}\r\n\treturn $res_gain;\r\n}", "private function getPossibleDistance(array $orthogonalDistances) : float\n {\n $possibleDistance = 0.;\n foreach ($orthogonalDistances as $orthogonalDistance) {\n $possibleDistance += $orthogonalDistance;\n }\n\n return $possibleDistance;\n }", "function PatternMatching($a_link)\r\n{\r\n\t$con = mysql_connect(\"localhost\",\"Phishsecure\")or die(\"Unable to connect to MySQL\");\r\n\tmysql_select_db(\"phishsecure\", $con);\r\n\t$result2 = mysql_query(\"SELECT surl FROM seedset\");\r\n\twhile($row2 = mysql_fetch_array($result2))\r\n\t{\r\n\t\tif($row2['surl']===$a_link)\r\n\t\t{\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$bv = Similarity($row2['surl'], $a_link);\r\n\t\t\tif($bv===true)\r\n\t\t\t{\r\n\t\t\t\t$phishing=2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$phishing=0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif($phishing === 0)\r\n\t{\r\n\t\t$result3 = mysql_query(\"SELECT wurl FROM whitelist\"); \r\n\t\twhile($row3 = mysql_fetch_array($result3))\r\n\t\t{\r\n\t\t\t$bv = Similarity($row3['wurl'], $a_link);\r\n\t\t\tif($bv===true)\r\n\t\t\t{\r\n\t\t\t\t$phishing=2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$phishing=0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tmysql_close($con);\r\n\treturn $phishing;\r\n}", "private function setResult() {\n $result = 0;\n foreach ($this->process AS $key => $value) {\n $total = $value['pivot'] * $value['adj']['result'];\n if($key == 0) {\n $result = $result + $total;\n }\n elseif($key == 1) {\n $result = $result - $total;\n }\n else {\n if($key % 2 == 0) {\n $result = $result + $total;\n }\n else {\n $result = $result - $total;\n }\n }\n }\n unset($key, $value, $total);\n return $result;\n }", "public function computeReliabilityScore($knownNumbers){\n\t\t$score=0;\n\t\t//$score-=count(array_intersect($knownNumbers,$this->operands))*20;\n\t\t// commented out, finally this is hard to justify such a rule for the general case\n\t\t\t\n\t\t//we really dont want that an operand is amongst the other numbers\n\t\t$score-=count($this->possibleAnomalies)*20; \n\t\t// This way, when selecting a formula scores are used only if the number of anomalies are the same \n\t\tforeach($this->numberReliabilityScore as $numScore){\n\t\t\t$score+=$numScore; \n\t\t}\n\t\treturn $score;\n\t\t\n\t}", "function fiftyone_degrees_get_score(\n $node_offset,\n $useragent_bytes,\n $lowest_score,\n $headers) {\n\n $score = 0;\n $node = fiftyone_degrees_read_node($node_offset, $headers);\n $node_characters = fiftyone_degrees_get_node_characters($node, $headers);\n $node_index = count($node_characters) - 1;\n\n $target_index\n = $node['position'] + fiftyone_degrees_get_node_length($node, $headers);\n\n // Adjust the score and indexes if the node is too long.\n $useragent_length = count($useragent_bytes);\n if ($target_index >= $useragent_length) {\n $score = $target_index - $useragent_length;\n $node_index -= $score;\n $target_index = $useragent_length - 1;\n }\n\n while ($node_index >= 0 && $score < $lowest_score) {\n $difference = abs(\n $useragent_bytes[$target_index] - $node_characters[$node_index]);\n if ($difference != 0) {\n $numeric_difference = fiftyone_degrees_get_numeric_difference(\n $node_characters,\n $useragent_bytes,\n $node_index,\n $target_index);\n if ($numeric_difference != 0)\n $score += $numeric_difference;\n else\n $score += $difference;\n }\n $node_index--;\n $target_index--;\n }\n return $score;\n}", "abstract public function calculate(array $results): int;", "private function score_weight_nutrition(){\r\n\t\t$data = $this->data['weight_nutrition'];\r\n\r\n\t\t$q21 = $this->scoreValue(array(5,1,3),$data['q21']);\r\n\t\t$q22 = $this->scoreValue(array(1,3,5),$data['q22']);\r\n\r\n\t\t$qn24 = $this->scoreValue(array(1,2,3,4,5), $data['qn24']);\r\n\t\t$qn25 = $this->scoreValue(array(1,2,3,4,5), $data['qn25']);\r\n\r\n\t\t//fruit & veg _1 & 2\r\n\t\t$q23a = 0;\r\n\t\t$f = $data['q23_1'];\r\n\t\t$v = $data['q23_2'];\r\n\t\t\r\n\t\tif ($f > 0) $f--;\r\n\t\tif ($v > 0) $v--;\r\n\t\t$table = array(\r\n\t\t array(1,1,1,2,2),\t\r\n\t\t array(1,1,2,2,3),\r\n\t\t array(1,2,2,3,3),\r\n\t\t array(2,2,3,4,5),\r\n\t\t array(2,3,3,5,5),\r\n\t\t);\r\n\t\t$q23a = $table[$v][$f];\r\n\t\t\r\n\t\t//Fats\r\n\t\t$q23b = 0;\r\n\t\tfor($x = 3; $x <= 7; $x++){\r\n\t\t\t$q23b += $this->scoreValue(array(0,3,5,12,25),$data['q23_'.$x]);\r\n\t\t}\r\n\t\t$q23b = $q23b/5;\r\n\t\tif ($q23b > 10) $q23b = 1;\r\n\t\telse if ($q23b > 5.1) $q23b = 2;\r\n\t\telse if ($q23b > 3.2) $q23b = 3;\r\n\t\telse if ($q23b > 2) $q23b = 4;\r\n\t\telse $q23b = 5;\r\n\t\t\r\n\t\t///breads & Grains _8\r\n\t\t$q23c = $this->scoreValue(array(0,3,5,12,25),$data['q23_8']);\r\n\t\tif ($q23c > 12) $q23c = 5;\r\n\t\telse if ($q23c > 8) $q23c = 4;\r\n\t\telse if ($q23c > 4.9) $q23c = 3;\r\n\t\telse if ($q23c > 3) $q23c = 2;\r\n\t\telse $q23c = 1;\r\n\t\t\r\n\t\t$ob=new stdClass();\r\n\t\t$ob->total=0;\r\n\t\t$ob->data=array('q21'=>array($q21,.1),\r\n\t\t\t\t\t\t'q22'=>array($q22,.1),\r\n\t\t\t\t\t\t'q23_1'=>array($q23a,.25),\r\n\t\t\t\t\t\t'q23_2'=>array($q23b,.25),\r\n\t\t\t\t\t\t'q23_3'=>array($q23c,.1),\r\n\t\t\t\t\t\t'qn24'=>array($qn24,.1),\r\n\t\t\t\t\t\t'qn25'=>array($qn25,.1)\r\n\t\t);\r\n\t\tforeach($ob->data as &$rec){\r\n\t\t\t$rec[2]=$rec[0]*$rec[1];\r\n\t\t\t$ob->total+=$rec[2];\r\n\t\t}\r\n\t\treturn $ob;\r\n\t}", "private function compute($base){\n\t\t$amount = \n\t\t $this->getSkillPercent($this->miningSkill) *\n\t\t $this->getSkillPercent($this->astroSkill) *\n\t\t $this->getSkillPercent($this->frigateSkill) *\n\t\t $this->getSkillPercent($this->upgradeLaser)\t\t\n\t\t;\n\t\treturn $base * $amount * $this->getVentureBonus();\n\t}", "public function calculateAccuracy($method = '', $coefficients = array()){\n\n $this->verifyMethod($method);\n\n $rating = 0;\n\n if ($this->store_mapping)\n $this->curves[$method]['data_map'] = array();\n\n for ($i = 0; $i < count($this->base_data_set); $i++){\n $value = array($this->base_data_set[$i][0], $this->evaluateCurve($method,$this->base_data_set[$i][0]));\n $distance = abs( $value[1] - $this->base_data_set[$i][1] );\n $rating += $distance;\n if ($this->store_mapping)\n $this->curves[$method]['data_map'][$i] = $value;\n }\n\n return $rating;\n\n }", "function distance_lookup($c1,$c2,$distance_table){\n //TODO make this return infinite if there's nothing in the table\n return $distance_table[$c1][$c2]['duration']['value'];\n}", "function getPairValue($pair,$type='ask') { \r\n\t$curl = new Curl;\r\n\t$ticker = (array)$curl->get(\"https://api.bitfinex.com/v1/pubticker/$pair\");\r\n\treturn $ticker[$type];\r\n}", "function atom_mass_task ($input_array, $options_array) {\n\t\n\tglobal $CONST_atomicMass;\n\t\n\tif ($input_array[\"task_type\"] == 1) {\n\t\t/// Oblicz % zawartość pierwiastków w związkach chemicznych\n\t\t\n\t\t//// Liczymy poszczególne atomy\n\t\t\n\t\t\n\t}\n\t\n\t\n\tif ($input_array[\"task_type\"] == 2) {\n\t\t/// Znając masę atomu [pierwiastek] która wynosi [liczba w notacji wykładniczej] oblicz jego masę atomową\n\t\t\n\t\t//// Liczymy proporcję\n\t\t/*\n\t\t\n\t\t1u - 0,166 * 10 -23\n\t\tx - 0,167 * 10 -23\n\t\t\n\t\t0,167 * 10 -23 = 0,166 * 10 -23 x\n\t\t\n\t\t\n\t\t\n\t\t*/\n\t\t\n\t\t// Calculate formula ///\n\t\t\n\t\t$atomic_mass = $input_array[\"atom_mass\"]/$CONST_atomicMass;\n\t\t\n\t\treturn $atomic_mass;\n\t\t\n\t}\n\t\n\tif ($input_array[\"task_type\"] == 2) {\n\t\t/// Znając masę atomową [pierwiastek] która wynosi [liczba w unitach] oblicz jego masę atomu\n\t\t\n\t\t//// Liczymy proporcję\n\t\t/*\n\t\t\n\t\t*/\n\t\t\n\t\t// Calculate formula ///\n\t\t\n\t\t$atom_mass = $input_array[\"atomic_mass\"]*$CONST_atomicMass;\n\t\t\n\t\treturn $atom_mass;\n\t\t\n\t}\n\t\n\t\n\t\n}", "function calculateUserSimilarity($con,$user_id_sess ){\n\n $user = array();\n\n $query_user = \"Select * from users\";\n $result = mysqli_query($con,$query_user);\n\n\n while ($user_one = mysqli_fetch_assoc($result)) {\n $user[] = $user_one;\n\n }\n\n\n// echo \"<pre>\";\n// print_r($user);\n// die;\n\n $score_array = array();\n\n \n for ($j=0; $j <sizeof($user); $j++){\n if($user_id_sess!= $user[$j]['id'] ){\n// echo $user[$i]['username'];\n// echo \"----------\";\n// echo $user[$j]['username';\n // echo $user_id_sess;\n // echo $user[$j]['id'].\" \";\n $score_array[] = PearsonSimilarity($user_id_sess,$user[$j]['id'],$con);\n }\n\n }\n\n $filteredSimilarity = array_filter($score_array, 'filter');\n\n \n \n\n//--------------------------------------------------------------\n // This is the pearson correaltion score \n // echo \"<pre>\";\n // print_r($filteredSimilarity);\n // die;\n\n\n $rec_pro_id = WeightedMatrix($con,$user_id_sess,$filteredSimilarity);\n // echo \"<pre>\";\n // print_r($rec_pro_id);\n // die;\n\n return $rec_pro_id ;\n\n\n \n\n\n\n\n\n\n\n}", "function rp($nominal) {\n //mengupdate nominal menjadi string, takutnya yang dimasukkan bertipe data int (angka)\n //mengeset string kosong buat penampung nanti, dan counter $c = 0\n $nominal = strval($nominal); $r = ''; $c = 0;\n $nominal = explode('.', $nominal); //memisah jika terdapat titik, takutnya ada titik seperti 4000.00\n $nominal = $nominal[0]; //mengambil data index pertama sebelum titik, berarti mengambil 4000-nya\n $nominal = explode('-', $nominal); //jika ada tanda minus di depan, maka akan dipecah lagi berdasarkan tanda minus tsb\n if (sizeof($nominal)>1) { //jika ternyata array yang dihasilkan oleh pemecahan tanda minus berjumlah lebih dari 1, berarti angka tersebut memang minus\n $min = '-'; $nominal = $nominal[1]; //dilakukan pemisahan dengan index 0 nin dan nominalnya di array index 1\n } else {\n $min = ''; $nominal = $nominal[0]; //jika tidak, maka memang bukan angka minus dan $min diset string kosong agar tidak berpengaruh saat direturn\n }\n for ($x=strlen($nominal)-1; $x>=0; $x--) { //diulang sebanyak string tapi dari belakang\n $r = $nominal[$x].$r; $c++; //menambah string kosong $r dengan index nominal dari belakang sambil menambah counter ($c)\n //jika counter kelipatan 3, maka saatnya ditambahkan dengan titik\n //misalnya 10000000, maka tiap perulangan 3x dari belakang akan ditambah titik, sehingga menjadi 10.000.000\n if ($c%3==0 & $x>0) $r = \".\".$r;\n }\n //mereturn hasil tadi, dengan tanda minusnya, tetapi jika tidak minus makan tidak akan mengganggu, karena variabel $min diisi string kosong di atas\n //return ditambahkan dengan ,00 dibelakang dan tanda Rp di depan sehingga berformat Rp ##.###,00\n return 'Rp '.$min.$r.',00';\n}", "function calc_value_potion ($level, $alch_perk, $phys_perk, $bene_perk, $pois_perk, $pure_perk) {\n\t\tdb_CRUD::select('ingredient_effect', 'eid, iid, magnitude_modifier, gold_modifier', \"iid in (select iid from effect where specials = 'y')\", 'eid');\n\t\t$nonStandard_data = db_CRUD::get_result();\n\t\t$cost_arr = array();\n\t\tforeach($this->temp_potion as $potion) {\n\t\t\t$cost_arr = array();\n\t\t\t//for each effect in potion: calculate price of effect\n\t\t\tforeach($potion->effect as $eff) {\n\t\t\t\t$select = \"eid, base_cost, base_magnitude, base_duration, poison, specials\";\n\t\t\t\t$where = \"eid = $eff\";\n\t\t\t\tdb_CRUD::select('effect', $select, $where);\n\t\t\t\t$result = db_CRUD::get_result();\n\t\t\t\t$mag_mod = 0;\n\t\t\t\t$gold_mod = 0;\n\t\t\t\t//if ingredient includes special variants: check if ingredient used is non-standard\n\t\t\t\tif($result[5] == 'y') {\n\t\t\t\t\tforeach($nonStandard_data as $nsd) {\n\t\t\t\t\t\tif($potion->ingredient1 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient2 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient_cnt == 3 && $potion->ingredient3 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\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\telse {\n\t\t\t\t\t$mag_mod = 1;\n\t\t\t\t\t$gold_mod = 1;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//specialized effect magnitude formulas\n\t\t\t\tif($eff != 30 && $eff != 34 && $eff != 50 && $eff != 49) {\n\t\t\t\t\t$mag = $result[2] * $mag_mod * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($eff == 46 || $eff == 47 || $eff || 48)\n\t\t\t\t\t\t$mag *= (1 + $phys_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$mag *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$dur = $result[3];\n\t\t\t\t}\n\t\t\t\t//common effect duration formulas\n\t\t\t\telse {\n\t\t\t\t\t$dur = $result[3] * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$dur *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$mag = $result[2];\n\t\t\t\t}\n\t\t\t\tif($mag != 0 && $dur != 0) \n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * pow($mag, 1.1) * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse if($mag == 0)\n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse\n\t\t\t\t\t$eff_cost = floor($result[1] * pow($mag, 1.1));\n\t\t\t\t$cost_arr[] = array($eff_cost, $result[4]);\n\t\t\t} //end foreach $eff\n\t\t\t//if purity perk is active: find most valuable effect to decide potion/poison\n\t\t\tif($pure_perk == 'y') {\n\t\t\t\t$max = 0;\n\t\t\t\t$x = 0;\n\t\t\t\tforeach($cost_arr as $i => $cost) {\n\t\t\t\t\tif($cost[0] > $max) {\n\t\t\t\t\t\t$max = $cost[0];\n\t\t\t\t\t\t$x = $i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$potion->poison = $cost_arr[$x][1];\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\tif($cost[1] == $cost_arr[$x][1]) {\n\t\t\t\t\t\t$total += $cost[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if no purity perk, sum all effect values\n\t\t\telse {\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\t$total += $cost[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$potion->value = $total;\n\t\t} //end foreach $potion\n\t}", "function calc_dreammp_person_distance($nvotessame, $nvotessamestrong,\n\t\t\t\t\t\t\t\t\t $nvotesdiffer, $nvotesdifferstrong,\n\t\t\t\t\t\t\t\t\t $nvotesabsent, $nvotesabsentstrong)\n{\n\t# absents have low weighting, except where it was 3-line\n\t# 3-line has higher than 3 to make it rise above the noise.\n\t$tlw = 5.0;\n\t$weight = $nvotessame + $tlw * $nvotessamestrong + $nvotesdiffer + $tlw * $nvotesdifferstrong +\n\t\t\t 0.2 * $nvotesabsent + $tlw * $nvotesabsentstrong;\n\n\t$score = $nvotesdiffer + $tlw * $nvotesdifferstrong + 0.1 * $nvotesabsent + ($tlw / 2) * $nvotesabsentstrong;\n\tif ($weight == 0.0)\n\t\treturn -1.0;\n\treturn $score / $weight;\n}", "function scoreHealth(){\n //Find the BMI of the user, and compare that to others.\n return $_POST['health1']+$_POST['health2']+$_POST['health3']+$_POST['health4']+$_POST['health5']+$_POST['health6'];\n}", "function query_chemical_formula($chemical_formula, $query_keyword)\n\t{\n\t\t// Connect to database\n\t\tinclude('../connect.php');\n\t\tmysqli_select_db($conn, 'rios');\n\t\t\n\t\t$chemical_formula = mysqli_real_escape_string($conn,$chemical_formula);\n\t\n\t\t// Read database\n\t\t/*\n\t\t$sql = 'SELECT * from molecule_data WHERE BINARY Molecule=\"'.$chemical_formula.'\"';\n\t\t////echo \"<p>\".$sql.\"</p>\";\n\t\t\n\t\t$retval = mysqli_query($conn, $sql);\n\t\t*/\n\t\t\n\t\t\n\t\t\n\t\t// Use prepared statements to prevent SQL injection\n\t\t$stmt = $conn->prepare(\"SELECT * from molecule_data WHERE BINARY Molecule=?\");\n\t\t$stmt->bind_param(\"s\", $chemical_formula);\n\t\t$stmt->execute();\n\t\t$retval = $stmt->get_result();\n\t\t\n\t\t\n\t\tif(! $retval)\n\t\t{\n\t\t\tdie('Error: cannot read data: ' . mysqli_error($conn));\n\t\t}\n\n\t\t// Get the number of query results\n\t\t$N_results = $retval->num_rows;\n\t\t\n\t\t\n\t\tif($N_results < 1)\n\t\t{\n\t\t\tdie('No results found for \"'.$chemical_formula.'\". Please check the chemical formula, or get the list of available molecules via /api/?query=list_molecules.');\n\t\t}\n\n\t\t// Get the results\n\t\t$idAll_in = array(); \n\t\t$idMol = array();\n\t\t$molecules = array();\n\t\t$states = array();\n\t\t$masses = array();\n\t\t$Te = array();\n\t\t$omega_e = array();\n\t\t$omega_ex_e = array();\n\t\t$Be = array();\n\t\t$alpha_e = array();\n\t\t$De = array();\n\t\t$Re = array();\n\t\t$D0 = array();\n\t\t$IPs = array();\n\t\t$dates = array();\n\t\t$references = array();\n\t\t\n\t\twhile($row = mysqli_fetch_array($retval, MYSQLI_ASSOC))\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\t$mass_au = round($row['Mass'] * 1822.8884, 3);\n\t\t\tarray_push($idAll_in, $row['idAll_in']);\n\t\t\tarray_push($idMol, $row['idMol']);\n\t\t\tarray_push($molecules, $row['Molecule']);\n\t\t\tarray_push($states, $row['State']);\n\t\t\tarray_push($masses, $mass_au);\n\t\t\tarray_push($Te, $row['Te']);\n\t\t\tarray_push($omega_e, $row['omega_e']);\n\t\t\tarray_push($omega_ex_e, $row['omega_ex_e']);\n\t\t\tarray_push($Be, $row['Be']);\n\t\t\tarray_push($alpha_e, $row['alpha_e']);\n\t\t\tarray_push($De, $row['De']);\n\t\t\tarray_push($Re, $row['Re']);\n\t\t\tarray_push($D0, $row['D0']);\n\t\t\tarray_push($IPs, $row['IP']);\n\t\t\tarray_push($dates, $row['reference_date']);\n\t\t\tarray_push($references, $row['reference']);\n\t\t}\n\t\t\n\t\t\n\t\t// Output the results\n\t\t\n\t\t$accessed_date = date('Y-m-d H:i:s');\n\t\t$id_molecule = (int)$idMol[0];\n\t\t$output_obj = array('accessed' => $accessed_date, 'id_molecule' => $id_molecule, 'chemical_formula' => $chemical_formula, 'n_records' => $N_results);\n\t\t\n\t\t\n\t\t$output_obj_main = array();\n\t\t\n\t\t/*\n\t\tif($query_keyword == 'states')\n\t\t{\n\t\t\t$output_obj_main['states'] = $states;\n\t\t}\n\t\t*/\n\t\t\n\t\t//die(\"query_keyword=\".$query_keyword.\";if query_keyword == omega_ex_e:\".($query_keyword=='Te'));\n\t\t\n\t\tfor($i = 0; $i < $N_results; $i++)\n\t\t{\n\t\t\t\n\t\t\t$output_obj_i = array();\n\t\t\t$output_obj_i['reference'] = $references[$i];\n\t\t\t$output_obj_i['reference_date'] = $dates[$i];\n\t\t\t$output_obj_i['id_record'] = (int)$idAll_in[$i];\n\t\t\t$output_obj_i['state'] = $states[$i];\n\t\t\t$output_obj_i['mass'] = $masses[$i];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif(($query_keyword == 'Te') || ($query_keyword == 'all'))\n\t\t\t{ \n\t\t\t\t$output_obj_i['Te'] = $Te[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'omega_e') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['omega_e'] = $omega_e[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'omega_ex_e') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['omega_ex_e'] = $omega_ex_e[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'Be') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['Be'] = $Be[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'alpha_e') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['alpha_e'] = $alpha_e[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'De') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['De'] = $De[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'Re') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['Re'] = $Re[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'D0') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['D0'] = $D0[$i];\n\t\t\t}\n\t\t\tif(($query_keyword == 'IP') || ($query_keyword == 'all'))\n\t\t\t{\n\t\t\t\t$output_obj_i['IP'] = $IPs[$i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tarray_push($output_obj_main, $output_obj_i);\n\t\t}\n\n\t\t$output_obj['data'] = $output_obj_main;\n\t\t\n\n\t\t// Free memory\n\t\tmysqli_free_result($retval);\n\n\t\tmysqli_close($conn);\t\n\t\t\n\t\treturn($output_obj);\n\t}", "protected function fareCalculator($args) {\n\n if ($args['ent_type_id'] == '' || $args['ent_from_lat'] == '' || $args['ent_from_long'] == '' || $args['ent_from_lat'] == '' || $args['ent_from_long'] == '' || $args['ent_to_lat'] == '' || $args['ent_to_long'] == '' || $args['ent_date_time'] == '')\n return $this->_getStatusMessage(1, 1);\n\n $this->curr_date_time = urldecode($args['ent_date_time']);\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n// $arr = array();\n\n $getTypeDataQry = \"select * from workplace_types where type_id = '\" . $args['ent_type_id'] . \"'\";\n $getTypeDataRes = mysql_query($getTypeDataQry, $this->db->conn);\n\n $cur_to_pick_arr = $this->_getDirectionsData(array('lat' => $args['ent_curr_lat'], 'long' => $args['ent_curr_long']), array('lat' => $args['ent_from_lat'], 'long' => $args['ent_from_long']));\n\n $cur_to_pick_distance_text = $cur_to_pick_arr['routes'][0]['legs'][0]['distance']['text'];\n\n $arr = $this->_getDirectionsData(array('lat' => $args['ent_from_lat'], 'long' => $args['ent_from_long']), array('lat' => $args['ent_to_lat'], 'long' => $args['ent_to_long']));\n\n $distance_in_mtr = $arr['routes'][0]['legs'][0]['distance']['value'];\n $distance_text = $arr['routes'][0]['legs'][0]['distance']['text'];\n\n $typeData = mysql_fetch_assoc($getTypeDataRes);\n\n $fare1 = number_format($typeData['basefare'] + (float) (($distance_in_mtr / $this->distanceMetersByUnits) * $typeData['price_per_km']), 2, '.', '');\n\n// $distance_in_mts = $arr['routes'][0]['legs'][0]['distance']['value'];\n// $dis_in_km = (float) ($distance_in_mts / $this->distanceMetersByUnits);\n\n $calculatedAmount = $typeData['min_fare']; //(float) $dis_in_km * $typeData['price_per_km'];\n\n $fare = ($calculatedAmount < $fare1) ? $fare1 : $calculatedAmount;\n\n $errMsgArr = $this->_getStatusMessage(21, 2);\n return array('errNum' => $errMsgArr['errNum'], 'errFlag' => $errMsgArr['errFlag'], 'errMsg' => $errMsgArr['errMsg'], 'dis' => $distance_text, 'fare' => $fare, 'curDis' => $cur_to_pick_distance_text, 't' => $arr, 't1' => $arr);\n }", "function do_combustion_reaction ($input_array, $options_array)\n{\n\n\t// // USING REGULAR FORMULA ///////\n\t// // ALKANES, ALKENES, ALKYNES ///\n\n\tif ($input_array[\"combusted_compound_type\"] == \"hydrocarbon\") { /// sprawdzamy czy to jest węglowodór\n\t\t$combusted_compound = $input_array[\"combusted_compound\"];\n\t\t$atoms_numbers_array = get_atom_number_in_compound($combusted_compound, $options_array);\n\t\t$n = $atoms_numbers_array[\"C\"]; /// check number of carbon atoms\n\t\t$hydrocarbon_type = get_hydrocarbon_type($combusted_compound, $options_array);\n\t\tif ($input_array[\"combustion_type\"] == \"complete\") { ///// spalanie całkowite\n\t\t\tif ($input_array[\"output_type\"] == \"detailed\") {\n\t\t\t\tif ($hydrocarbon_type == \"alkan\") {\n\t\t\t\t\t$oxygen_compouding_number = (3 * $n + 1);\n\t\t\t\t\t$water_compouding_number = $n + 1;\n\t\t\t\t\tif ($oxygen_compouding_number % 2 == 0) {\n\t\t\t\t\t\t$oxygen_compouding_number = $oxygen_compouding_number / 2;\n\t\t\t\t\t\t$reaction_ready_array[0] = $combusted_compound . \" + \" . $oxygen_compouding_number . \"O<sub>2</sub>\" . \" &rarr; \" . $n . \"CO<sub>2</sub>\" . \" + \" . $water_compouding_number . \"H<sub>2</sub>O\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$fraction1 = '<div class=\"frac\"><span>' . $oxygen_compouding_number . '</span><span class=\"symbol\" style=\"background: white; color: white;\">/</span><span class=\"bottom\">2</span></div>';\n\t\t\t\t\t\t$n2 = $n * 2;\n\t\t\t\t\t\t$water_compouding_number_double = $water_compouding_number * 2;\n\t\t\t\t\t\t$reaction_ready_array[0] = $combusted_compound . \" + \" . $fraction1 . \"O<sub>2</sub>\" . \" &rarr; \" . $n . \"CO<sub>2</sub>\" . \" + \" . $water_compouding_number . \"H<sub>2</sub>O &nbsp; / &bull;2\";\n\t\t\t\t\t\t$reaction_ready_array[1] = \"2\" . $combusted_compound . \" + \" . $oxygen_compouding_number . \"O<sub>2</sub>\" . \" &rarr; \" . $n2 . \"CO<sub>2</sub>\" . \" + \" . $water_compouding_number_double . \"H<sub>2</sub>O\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$unbalanced_reaction_chain = $combusted_compound . \" + \" . \"O2 = CO2 + H2O\";\n\t\t\t\t$reaction_balanced_array = balance_reaction($unbalanced_reaction_chain);\n\t\t\t}\n\t\t}\n\n\t\tif ($input_array[\"combustion_type\"] == \"semi_combustion\") { ///// półspalanie\n\t\t\tif ($input_array[\"output_type\"] == \"detailed\") {\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$unbalanced_reaction_chain = $combusted_compound . \" + \" . \"O2 = CO + H2O\";\n\n\t\t\t\t//\techo $unbalanced_reaction_chain;\n\n\t\t\t\t$reaction_balanced_array = balance_reaction($unbalanced_reaction_chain);\n\t\t\t}\n\t\t}\n\n\t\tif ($input_array[\"combustion_type\"] == \"incomplete\") { ///// spalanie całkowite\n\t\t\tif ($input_array[\"output_type\"] == \"detailed\") {\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$unbalanced_reaction_chain = $combusted_compound . \" + \" . \"O2 = C + H2O\";\n\t\t\t\t$reaction_balanced_array = balance_reaction($unbalanced_reaction_chain);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ($input_array[\"output_type\"] != \"detailed\") {\n\t\t$output_array[\"products\"] = $reaction_balanced_array[1];\n\t\t$output_array[\"substrats\"] = $reaction_balanced_array[0];\n\t\treturn $output_array;\n\t\t//return $reaction_balanced_array[0] . \" = \" . $reaction_balanced_array[1];\n\t}\n}", "private function _calculate_weights($factors, $weights)\n\t{\n\t\tforeach ($factors as $weight_factor => $value)\n\t\t{\n\t\t\t$this->_weight[$weight_factor] = (int) ($weights['search_weight_' . $weight_factor] ?? 0);\n\t\t\t$this->_weight_total += $this->_weight[$weight_factor];\n\t\t}\n\t}", "function get_query_params(&$query_params, $db_question, $question) {\n\t\t$mapping_function = $db_question['FedQuestion']['queryable'];\n\t\tif ($mapping_function == 'age') {\n\t\t\t$query_params['age_from'] = min($question['PreCodes']);\n\t\t\t$query_params['age_to'] = max($question['PreCodes']);\n\t\t}\n\t\telseif ($mapping_function == 'gender') {\n\t\t\t// two genders is same as all, so this can be excluded\n\t\t\tif (count($question['PreCodes']) > 1) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$query_params['gender'] = FedMappings::$mapping_function(current($question['PreCodes']));\n\t\t}\n\t\telseif (in_array($mapping_function, array('hhi'))) {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'postal_code') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$query_params['postal_code'][] = $precode;\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'dma') {\n\t\t\t$dmas = $this->GeoZip->getDmas();\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\tif (array_key_exists($precode, $dmas)) {\n\t\t\t\t\t$query_params['dma_code'][] = $precode;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'ethnicity') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'hispanic') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'children') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'employment') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'job') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'industry') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'organization_size') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode, $question['QuestionID']);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\tif (is_array($result)) {\n\t\t\t\t\t\t$query_params[$mapping_function] = isset($query_params[$mapping_function]) ? array_merge($query_params[$mapping_function], $result) : $result;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'organization_revenue') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'department') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'education') {\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\t$result = FedMappings::$mapping_function($precode);\n\t\t\t\tif ($result !== false) {\n\t\t\t\t\t$query_params[$mapping_function][] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telseif ($mapping_function == 'state') { // Question_id = 96 is matched.\n\t\t\tApp::import('Model', 'GeoState');\n\t\t\t$State = new GeoState();\n\t\t\tforeach ($question['PreCodes'] as $precode) {\n\t\t\t\tforeach ($db_question['FedAnswer'] as $answer) {\n\t\t\t\t\tif ($precode == $answer['precode']) {\n\t\t\t\t\t\t$geo_state = $State->find('first', array(\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'GeoState.state' => $answer['answer']\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t));\n\t\t\t\t\t\tif ($geo_state) {\n\t\t\t\t\t\t\t$query_params[$mapping_function][] = $geo_state['GeoState']['state_abbr'];\n\t\t\t\t\t\t}\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}\n\t\t}\n\t}", "function get_noun_score($id, $vibhakthi_number, $host, $uname, $pass, $dbname){\n\n\t/*\tCreate connection\t*/\n\t$conn = new mysqli ($host,$uname,$pass,$dbname);\n\n\t$noun_score = 0;\n\n\t$sql = $conn->query(\"SELECT \".$vibhakthi_number.\" from vibhakthi\".$id.\" WHERE no = 1\");\n\t$result = $sql->fetch_assoc();\n\t$noun1 = $result[$vibhakthi_number];\n\n\t$sql = $conn->query(\"SELECT \".$vibhakthi_number.\" from vibhakthi\".$id.\" WHERE no = 2\");\n\t$result = $sql->fetch_assoc();\n\t$noun2 = $result[$vibhakthi_number];\n\n\t$GLOBALS['score_array'] = array_fill(0, sizeof(explode(\" \",$noun2)), 0);\n\n\t$tok_noun1 = strtok($noun1, \" \");\n\twhile($tok_noun1 !== false){\n\n\t\tnoun_scoring($id, $tok_noun1, $noun2, $host, $uname, $pass, $dbname);\n\t\t$tok_noun1 = strtok(\" \");\n\n\t}\n\n\tfor ($i=0; $i < sizeof($GLOBALS['score_array']); $i++){\n\t\t$noun_score += $GLOBALS['score_array'][$i];\n\t}\n\n\t$conn->close();\n\n\treturn $noun_score;\n}", "function calculatePrice( &$item ) {\r\n\t\r\n\tglobal $db, $site;\r\n\t\r\n\t$resultPrice = $basePrice = $item['price'];\r\n\t\r\n\t$pricing = $db->getAll( 'select * from '. ATTRPRICING_TABLE.\" where product_id='$item[id]' and site_key='$site'\" );\r\n\t\r\n\tforeach ( $pricing as $pidx=>$price ) {\r\n\t\t\r\n\t\t$match = true;\r\n\t\t\r\n\t\tif ( $item['attributes'] )\r\n\t\tforeach( $item['attributes'] as $attr_id=>$attr ) {\r\n\t\t\t\r\n\t\t\t$values = $db->getRow( 'select value1, value2 from '. ATTRPRICEVALUES_TABLE.\" where price_id='$price[id]' and attr_id='$attr_id'\" );\r\n\t\t\t\r\n\t\t\tif ( !$values )\r\n\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t$value1 = $values['value1'];\r\n\t\t\t$value2 = $values['value2'];\r\n\t\t\t$value = $attr['value'];\r\n\t\t\r\n\t\t\tswitch( $attr['type'] ) {\r\n\t\t\t\tcase 'number':\r\n/*\t\t\t\t\tif ( strlen( $value1 ) )\r\n\t\t\t\t\t\t$match &= $value >= $value1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ( strlen( $value2 ) )\r\n\t\t\t\t\t\t$match &= $value <= $value2;\r\n\t\t\t\t\tbreak;\r\n*/\t\t\t\t\t\r\n\t\t\t\tcase 'single-text':\r\n\t\t\t\tcase 'multi-text':\r\n\t\t\t\tcase 'date':\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$match &= $value == $value1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( $match ) {\r\n\t\t\t$resultPrice = getPriceValue( $price, $basePrice );\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $resultPrice;\r\n\t\r\n}", "function checkCFC($attempted, $answer, $activity_id, $activity, $selected, $maxScore, $completion_state){\n\n\n $selected_options = array();\n\n\n\n foreach ($selected as $key => $value) {\n $val = null;\n if($value[\"type\"] == \"formula\"){\n\n $val = $value[\"value\"];\n\n }else{\n\n $val = floatval($value[\"value\"]);\n\n }\n $selected_options[$value[\"source\"]][$value[\"type\"]] = $val;\n\n }\n\n //////////error_log(json_encode($selected_options), 0);\n\n $correct = array();\n $incorrect = array();\n $totals = array();\n $score = 0;\n // $scales = $activity[\"content\"][\"scale\"];\n $optionsLen = 23;\n // //$pointsForEachSelected = $activity[\"points\"];\n\n $totalPoints = $activity[\"points\"];\n $points = $totalPoints;\n\n // foreach ($answer as $source_id => $values) {\n // if($source_id != \"points\"){\n\n // foreach ($values as $type => $val) {\n // //////error_log('RUUUUUUNN'.json_encode($activity[\"points\"]).$type,0);\n\n // $totalPoints += $activity[\"points\"][$type];\n // $points = $totalPoints;\n\n\n // }\n\n // }\n\n\n // }\n\n\n $completeFeedback = array();\n\n // ////////error_log(json_encode($answer), 0);\n\n\n foreach ($answer as $source_id => $values) {\n if($source_id != \"points\"){\n\n\n\n $checkNum = count($values);\n\n foreach ($values as $header => $value) {\n\n\n $checked = array(\n\n \"source_id\"=>$source_id,\n \"type\"=>$header\n\n );\n\n if($selected_options[$source_id][$header] == $value){\n\n array_push($correct, $checked);\n\n }else{\n\n array_push($incorrect, $checked);\n // $points -= ($totalPoints/$completion_state);\n //\n //\n ////error_log(\"Activity ID -\".json_encode($activity[\"id\"]), 0);\n ////error_log(\"Total Points -\".json_encode($totalPoints), 0);\n ////error_log(\"completion_state -\".$completion_state, 0);\n\n\n $points = $points - ($totalPoints/$completion_state);\n\n $checkNum --;\n\n\n $feedback = array();\n\n $feedback[\"source\"] = $source_id;\n $feedback[\"type\"] = $header;\n\n\n if($header == \"formula\"){\n foreach ($activity[\"content\"][\"formulas\"] as $formulaInd => $formulaObj) {\n if($formulaObj[\"formula_id\"] == $value){\n\n $value = $formulaObj[\"formula_name\"];\n\n }\n }\n }\n $feedback[\"answer\"] = $value;\n array_push($completeFeedback, $feedback);\n\n\n }\n\n\n\n\n }\n\n //if($checkNum == count($selected_options[$source_id])){\n\n //defaults\n\n $ecf = 1;\n $amount = 0;\n $co2 = 0;\n $ch4 = 0;\n $n2o = 0;\n $ef = 0;\n\n //Removed\n $aircon_leakage = 1;\n\n\n if(isset($selected_options[$source_id][\"amount\"])){\n $amount = $selected_options[$source_id][\"amount\"];\n }\n\n if(isset($selected_options[$source_id][\"ecf\"])){\n $ecf = $selected_options[$source_id][\"ecf\"];\n }\n\n if(isset($selected_options[$source_id][\"ch4\"])){\n $ch4 = $selected_options[$source_id][\"ch4\"];\n }\n\n if(isset($selected_options[$source_id][\"n2o\"])){\n $n2o = $selected_options[$source_id][\"n2o\"];\n }\n\n if(isset($selected_options[$source_id][\"co2\"])){\n $co2 = $selected_options[$source_id][\"co2\"];\n }\n\n $ef = ($co2+$ch4+$n2o);\n\n if(isset($selected_options[$source_id][\"ef\"])){\n $ef = $selected_options[$source_id][\"ef\"];\n }\n\n\n if($source_id == \"air_conditioners\"){\n\n $total = array(\n\n \"source_id\"=>$source_id,\n\n \"total\"=>$amount*$aircon_leakage*$ecf*$ef/1000\n\n );\n\n }else{\n\n $total = array(\n\n \"source_id\"=>$source_id,\n\n \"total\"=>$amount*$ecf*$ef/1000\n\n );\n\n }\n\n array_push($totals, $total);\n\n\n }\n\n }\n\n //error_log(\"feedback array: \".json_encode($completeFeedback).\" - \".$attempted.\" - \".$activity[\"attempts\"],0);\n\n if(!(($attempted >= $activity[\"attempts\"]) || (count($incorrect) == 0))){\n\n $completeFeedback = array();\n }\n\n $score = ($points/($totalPoints))*$maxScore;\n\n return array(\"correct\"=>$correct, \"incorrect\"=>$incorrect, \"score\"=>$score, \"possible_score\"=>$maxScore, \"points\"=>$points, \"possible_points\"=>$totalPoints, \"tco2e\"=>$totals, \"answer\"=>$completeFeedback);\n\n\n }", "private function score_tobaco_use(){\r\n\t\t$data = $this->data['tobaco_use'];\r\n\t\t$q44 = $this->scoreValue(array(1,4,3,5),$data['q44']);\r\n//\t\t$q45 = $this->scoreValue(array(4,4,3,2,1),$data['q45']);\r\n//\t\t$q46 = $this->scoreValue(array(4,4,3,2,1), $data['q46']);\r\n//\t\tif ($q44 == 5) {\r\n//\t\t\t$q45 = 5;\r\n//\t\t\t$q46 = 5;\r\n//\t\t}\r\n/*\r\n\t\t$q44Raw = $q44;\r\n\t\t$q44 = ($q44 > $q45) ? $q44 : $q45;\r\n\t\t$q45 = $q44;\r\n\t\t\t\r\n\t\t$q46 = $this->scoreValue(array(3,3,2,2,1),$data['q46']);\r\n\t\t$q46 = ($q44Raw > $q46) ? $q44Raw : $q46;\r\n*/\t\t\t\r\n//\t\t$q47 = $this->scoreValue(array(5,3,2,1,1),$data['q47']);\r\n\r\n\t\t$ob = new stdClass();\r\n\t\t$ob->total = 0;\r\n\t\t$ob->data = array('q44' => array($q44,1));\r\n//\t\t\t\t\t\t'q45' => array($q45,.30),\r\n//\t\t\t\t\t\t'q46' => array($q46,.30),\r\n//\t\t\t\t\t\t'q47' => array($q47,.10));\r\n\t\tforeach($ob->data as &$rec){\r\n\t\t\t$rec[2] = $rec[0] * $rec[1];\r\n\t\t\t$ob->total += $rec[2];\r\n\t\t}\r\n\t\treturn $ob;\r\n\t}", "function similarity($rep, $guessrep) {\r\n//usleep(15);\r\n if (stripos($rep, ';')) {\r\n $repExplodArray = explode(';', $rep);\r\n } elseif (stripos($rep, ',')) {\r\n $repExplodArray = explode(',', $rep);\r\n } else {\r\n $repExplodArray = array($rep);\r\n }\r\n if (stripos($guessrep, ';')) {\r\n $gpExplodArray = explode(';', $guessrep);\r\n } elseif (stripos($guessrep, ',')) {\r\n $gpExplodArray = explode(',', $guessrep);\r\n } else {\r\n $gpExplodArray = array($guessrep);\r\n }\r\n $rep_part_count = count($repExplodArray);\r\n $matchcount = 0;\r\n foreach ($repExplodArray as $key => $value) {\r\n $value = trim($value);\r\n for ($j = 0; $j < count($gpExplodArray); $j++) {\r\n $gpExplodArray[$j] = trim($gpExplodArray[$j]);\r\n if ($value === $gpExplodArray[$j]) {\r\n $matchcount = $matchcount + 1;\r\n }\r\n }\r\n }\r\n $similarityRatio = $matchcount / $rep_part_count;\r\n $percentage=($similarityRatio*100).'%';\r\n\t\r\n//\t//Something to write to txt log\r\n//\t$log = \"date: \".date(\"F j, Y, g:i a\").PHP_EOL.\r\n// \"Guessrep: \". $guessrep.PHP_EOL.\r\n// \"rep: \". $rep.PHP_EOL.\t\t\r\n// \"-------------------------\".PHP_EOL;\r\n////Save string to log, use FILE_APPEND to append.\r\n//\tfile_put_contents('./log_'.date(\"j.n.Y\").'.txt', $log, FILE_APPEND);\r\n\r\n return $percentage;\r\n}", "public function getProximitySearch() {\n return 10;\n }", "function _fourD_analysis_calculate_project_weight( $nid, $uid=0, $getsubtotal=false ) {\n\n $weight = 0.0;\n \n /* Factor in the Ability to Assess, by each user */\n if( $uid ){\n $weight = _fourD_analysis_calculate_project_weight_internal( $nid, $uid, $getsubtotal );\n }\n \n else{\n// if( $getsubtotal ){\n /* Factor in the Ability to Assess, by each user */\n $usrs = db_query(\"SELECT uid, assess_ability FROM {node_4dnetwork_analysis} WHERE nid = '%d'\", $nid);\n $users = array();\n while( $u = db_fetch_object($usrs) ) {\n $users[$u->uid] = $u->assess_ability;\n }\n \n // Formula: (Wxq\"*Axq+Wyq\"*Ayq ... )/(Axq+Ayq...)\n $ability_total = 0;\n foreach($users as $auid=>$ability){\n $ability_total += $ability;\n $weight += ( _fourD_analysis_calculate_project_weight_internal( $nid, $auid, $getsubtotal, true ) * $ability );\n }\n \n if( $ability_total > 0 ){\n $weight = $weight/$ability_total;\n }\n// }\n }\n \n return $weight;\n}", "function getResult($resultUser1, $resultUser2, $resultAdmin1, $resultAdmin2, $result)\n{\n $scoreTotal = 0;\n global $puntaje_resultado;\n global $puntaje_empate;\n global $puntaje_ganar;\n global $puntaje_perder;\n\n //verificamos si es el resultado exacto\n if ($resultUser1 == $resultAdmin1 && $resultUser2 == $resultAdmin2)\n $scoreTotal += $puntaje_resultado;\n //verificamos si hay empate\n if ($resultUser1 == $resultUser2 && $resultAdmin1 == $resultAdmin2)\n $scoreTotal += $puntaje_empate;\n //verificamos si gano el equipo uno gano o perdio\n $scoreTotal += ($resultUser1 > $resultUser2 && $resultAdmin1 > $resultAdmin2) ? $puntaje_ganar : $puntaje_perder;;\n //verificamos si gano el equipo dos gano o perdio\n $scoreTotal += ($resultUser1 < $resultUser2 && $resultAdmin1 < $resultAdmin2) ? $puntaje_ganar : $puntaje_perder;\n\n if ($result == \"C\" || $result == \"S\")\n $scoreTotal = 0;\n\n return $scoreTotal;\n}", "function cariPosisi($batas){\nif(empty($_GET[halprofile])){\n\t$posisi=0;\n\t$_GET[halprofile]=1;\n}\nelse{\n\t$posisi = ($_GET[halprofile]-1) * $batas;\n}\nreturn $posisi;\n}", "abstract public function getWeights($visits, $conversions, $xSales, $revenue, $sumSqRev);", "function protein_charge($pK,$aminoacid_content,$pH){\r\n $charge = partial_charge($pK[\"N_terminus\"],$pH);\r\n $charge+= partial_charge($pK[\"K\"],$pH)*$aminoacid_content[\"K\"];\r\n $charge+= partial_charge($pK[\"R\"],$pH)*$aminoacid_content[\"R\"];\r\n $charge+= partial_charge($pK[\"H\"],$pH)*$aminoacid_content[\"H\"];\r\n $charge-= partial_charge($pH,$pK[\"D\"])*$aminoacid_content[\"D\"];\r\n $charge-= partial_charge($pH,$pK[\"E\"])*$aminoacid_content[\"E\"];\r\n $charge-= partial_charge($pH,$pK[\"C\"])*$aminoacid_content[\"C\"];\r\n $charge-= partial_charge($pH,$pK[\"Y\"])*$aminoacid_content[\"Y\"];\r\n $charge-= partial_charge($pH,$pK[\"C_terminus\"]);\r\n return $charge;\r\n}", "function findRoute()\r\n{\r\n\t// --------- GLOBALIZE ---------\r\n\tglobal $route;\r\n\t// ------ CONVERT TO INTEGER ------\r\n\t$P1 = intval(GET_INC('p1'));\r\n\t$P2 = intval(GET_INC('p2'));\r\n\t$P2n = GET_INC('p2name');\r\n\t$city = GET_INC('city');\r\n\t// ------- FIND ROUTE -------\r\n\t$route->findRoute($P1,$P2,$city);\r\n\t$route->nature($P2n);\r\n\t// ------- OUTPUT RESULT -------\r\n\tfor ( $i=1;$i<=$route->num;$i++ )\r\n\t{\r\n\t\t// Split with Dollar Sign\r\n\t\tif ( $i != 1 )\r\n\t\t\techo '$$$';\r\n\t\techo $route->nat[$i];\r\n\t}\r\n}", "function show_position($userComparison) \n{\n\t$allTotals = array();\n\n\t$smallestValue = -1.0;\n\n\t$rightRoom = \"default\";\n\n\t$rightCoordinates = \"default\";\n\n\tforeach($userComparison as $value) {\n\t\n\n\t\t$local_relations = $value->get_relations();\n\n\t\t$temp_sum = 0.0;\n\n\t\t$n = 0;\n\n\t\tforeach($local_relations as $value_2) {\t\n\t\t\t$temp_sum = $temp_sum + $value_2;\n\t\t\t$n = $n + 1;\t\n\t\t\t}\n\t\n\t\tif ( $n >= 3) {\n\n\t\t\t$relative_sum = $temp_sum / (double)($n);\n\n\t\t\tif ($smallestValue == -1.0) {\n\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\n\t\t\t\t}\n\t\t\telseif ($smallestValue > $relative_sum) {\n\t\t\t\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\t\t\t\n\t\t\t\t}\n\n\n\t\t\t$totalDifference = new FprintDifference($value->get_room(), $value->get_position(), $relative_sum);\n\t\t\tarray_push($allTotals, $totalDifference);\n\t\t\t}\n\n\t}\n\n\n\techo $rightRoom . \": \" . $rightCoordinates . \", relative distance was:\" . $smallestValue;\n\n\n\treturn $allTotals;\n\n\n}", "public function similarity($id_lbb_aktif = 3) // $id_lbb_aktif adalah lbb yang sedang dilihat dan dicari nilai kemiripan terhapat lbb lain\n {\n $tabel_tf_idf_balik = $this->tabel_tf_idf_balik();\n $rata_term = $this->rata_term();\n $similarity = [];\n\n\n foreach ($tabel_tf_idf_balik as $id_lbb => $row){\n $sim_atas = 0;\n $bawah1 = 0;\n $bawah2 = 0;\n $sim_bawah = 0;\n\n if ($id_lbb == $id_lbb_aktif){ // $id_lbb_aktif adalah LBB yang dicari kemiripannya dengan LBB lain\n continue;\n }\n\n foreach ($row as $term_aktivitas => $tf_idf){\n//\n if ($tf_idf == 0 || $tabel_tf_idf_balik[$id_lbb_aktif][$term_aktivitas] == 0){\n continue;\n }\n\n $sim_atas = $sim_atas + (($tf_idf-$rata_term[$term_aktivitas])*($tabel_tf_idf_balik[$id_lbb_aktif][$term_aktivitas]-$rata_term[$term_aktivitas]));\n $bawah1 = $bawah1 + (pow($tf_idf-$rata_term[$term_aktivitas],2));\n $bawah2 = $bawah2 + (pow($tabel_tf_idf_balik[$id_lbb_aktif][$term_aktivitas]-$rata_term[$term_aktivitas], 2));\n $sim_bawah = sqrt($bawah1)*sqrt($bawah2);\n }\n////\n if ($sim_bawah == 0){ //similarity bawah bernilai 0 terjadi karena tidak ada bisa dicari nilai kemiripan lbb aktif dengan lbb n lainnya\n continue;\n }\n\n $similarity [$id_lbb] = $sim_atas / $sim_bawah;\n }\n// arsort($similarity);\n return $similarity;\n }", "public abstract function get_pairwise(string $their_did): ?array;", "function _fourD_analysis_calculate_project_prerequisite_weight( $nid, $uid=0, $project=false ) {\n\n //$goals = _fourD_analysis_get_goals();\n if( !$project ) {\n $project = fourD_analysis_project_entry_get($nid, $uid);\n }\n \n if( !$project ){\n return 0.0;\n }\n \n $weight = 0;\n if( isset($project['project_prereq']) ){\n foreach( $project['project_prereq'] as $pid=>$pre){\n $weight += $pre['rating'];\n //fourD_analysis_debug('calculate_project_prerequisite_weight; pid: '. $pid.'; Weight: '.$pre['rating'].'; Cumlative: '.$weight );\n }\n }\n \n return $weight;\n \n}", "function checkSimilarity ($nutrient){\n\t//list of nutrients\n\t$nutrientList = array(\"Energy\",\"Protein\",\"Fat\",\"Carbohydrate\",\"Sugars\",\"Sodium\",\"Vitamin E\",\"Vitamin K\",\"Vitamin C\", \"Vitamin A\",\"Vitamin D\",\"Vitamin B6\",\"Biotin\",\"Thiamin\",\"Riboflavin\",\"Niacin\",\"Folic Acid\",\"Vitamin B12\",\"Calcium\",\"Iron\",\"Zinc\",\"Pantothenic Acid\",\"Folate\",\"Phosphorus\",\"Iodine\",\"Magnesium\",\"Selenium\",\"Copper\",\"Manganese\",\"Chromium\",\"Molybdenum\",\"Chloride\");\n\t$test=str_replace(' ', '', $nutrient);\n\tfor ($x=0;$x<count($nutrientList);$x++)\n\t{\n\t\t$test2=str_replace(' ', '', $nutrientList[$x]);\n\t\t//$sim = similar_text(strtolower($nutrient), strtolower($nutrientList[$x]), $perc);\n\t\t$sim = similar_text(strtolower($test), strtolower($test2), $perc);\n\t\tif ($perc>70 && abs(strlen($test)-strlen($test2)<2))\n\t\t{\n\t\t\t//if (strcmp(substr(strtolower($nutrient,0,7))),\"vitamin\")===0){\n\t\t\t//check if it is a vitamin\n\t\t\tif (strcmp(substr(strtolower($test2),0,7),\"vitamin\")===0){\n\t\t\t\tif ($perc>90) return $nutrientList[$x];\n\t\t\t\telse continue;\n\t\t\t}\n\t\t\t//else return strtoupper(substr($nutrient,0,1)).strtolower(substr($nutrient,1));\n\t\t\telse return $nutrientList[$x];\n\t\t}\n\t}\n\treturn \"INVALID\";\n}", "function displayResults($arrayName) \n{\n //Display Non-aggregated results: \n //(Non-Aggregated Arrays have the following elements:\n //value[0]Trimmed URL, value[1] Title, value[2] Snippet, value[3] Score, \n //value[4] Y/N Seen, value[5] Original URL, value[6] Cleaned Snippet placeholder)\n if ($_POST['result_type']==='Non-Aggregated' ) {\n //Loop through Array and check that values have been stored in it:\n foreach ($arrayName as $key => $value) {\n echo \"<p style=\\\"text-align:justify\\\">\n <a href=\\\"$value[5]\\\">$value[1]</a><br />\" \n . $value[2] //snippet\n . \"<br />Score: <strong>\" \n . number_format($value[3], 2, '.', '') //score\n . \"</strong>\" \n . \"<br /><a href=\\\"#top\\\"><small>new search</small></a></p>\";\n }\n } else if ($_POST['result_type']==='Aggregated'\n || $_POST['result_type']==='Weighted'\n ) {\n //Display Aggregated or Weighted results:\n //(Aggregated Arrays have the following elements:\n //value[0]Trimmed URL, value[1] Title, value[2] Snippet, value[3] Score, \n //value[4] Y/N Seen, value[5] Original URL, \n //value[6] Cleaned Snippet placeholder, value[7] coordinate placeholder)\n foreach ($arrayName as $key => $value) {\n echo \"<p class=\\\"text-center\\\">\n <a href=\\\"$value[4]\\\">$value[1]</a><br />\"\n . $value[2] //snippet\n . \"<br />Score: <strong>\" . number_format($value[3], 2, '.', '') \n . \"</strong>\"\n . \"<br /><a href=\\\"#top\\\"><small>new search</small></a></p>\";\n }\n } else {\n //Display Clustered Results\n //(Clustered Arrays have the following elements:\n //value[0]Trimmed URL, value[1] Title, value[2] Snippet, value[3] Score, \n //value[4] Original URL, value[5] Cleaned Snippet, \n //value[6] Coordinate)\n foreach ($arrayName as $key => $value) {\n echo \"<p style=\\\"text-align:justify\\\">\n <a href=\\\"$value[4]\\\">$value[1]</a><br />\"\n . $value[2] //snippet\n . \"<br />Score: <strong>\" . number_format($value[3], 2, '.', '') \n . \"</strong>\"\n . \"<br /><a href=\\\"#top\\\"><small>new search</small></a></p>\";\n }\n }\n}", "function calculateTermQualityPoints($clid,$semester,$year){\n //Initialize the temporary variables\n $totalhours=0;\n //Query to return the student's grades and credit hours\n $result = mysql_query(\"Select grade, sum(credit_hours) FROM(( Select grade, credit_hours FROM take T, class Cl WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade <> 'CR' and T.grade <> 'NC' and T.grade <> 'W' and T.clid = '$clid' and Cl.section_num = T.section_num and Cl.semester = T.semester and Cl.year = T.year and Cl.course_num = T.course_num and Cl.course_dept = T.course_dept and Cl.credit_hours IS NOT NULL and T.semester='$semester' and T.year='$year') UNION ALL (Select T.grade,Co.credit_hours FROM take T,course Co WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade <> 'NC' and T.grade <> 'W' and T.grade <> 'CR' and T.clid = '$clid' and T.course_dept = Co.course_dept and T.course_num = Co.course_num and T.semester='$semester' and T.year='$year' and NOT EXISTS(select * from class Cl WHERE Cl.course_dept = Co.course_dept and Cl.course_num = Co.course_num and Cl.credit_hours IS NOT NULL))) AS result GROUP BY grade;\") or die(mysql_error());\n //Find the quality points per class\n while($row = mysql_fetch_array($result)){\n //Is the grade an A?\n if($row['grade'] == 'A')\n //If so, increment totalhours by four times the sum of the credit hours\n $totalhours+=4*$row['sum(credit_hours)'];\n //Is the grade a B?\n else if ($row['grade']=='B')\n //If so, increment totalhours by 3 times the sum of the credit hours\n $totalhours+=3*$row['sum(credit_hours)'];\n //Is the grade a C?\n else if ($row['grade']=='C')\n //If so, increment totalhours by 2 times the sum of the credit hours\n $totalhours+=2*$row['sum(credit_hours)'];\n //Is the grade a D?\n else if ($row['grade']=='D')\n //If so, increment totalhours by the sum of the credit hours\n $totalhours+=1*$row['sum(credit_hours)'];\n }\n return $totalhours;\n}", "function fiftyone_degrees_evaluate_signature(\n $matched_nodes,\n $signature_index,\n $useragent_bytes,\n $last_node_character,\n &$lowest_score,\n $is_closest,\n &$debug_info,\n $headers) {\n $signature = fiftyone_degrees_read_signature($signature_index, $headers);\n\n $debug_info['signatures_compared']++;\n\n $score = fiftyone_degrees_get_signature_score (\n $signature,\n $matched_nodes,\n $useragent_bytes,\n $lowest_score,\n $last_node_character,\n $is_closest,\n $headers);\n\n if ($score < $lowest_score) {\n $lowest_score = $score;\n return TRUE;\n }\n else {\n return FALSE;\n }\n}", "function countScores($graph, $node, $nodesArray, $finish)\n{\n\tglobal $successArray;\n\n\tforeach ($graph[$node] as $key => $value) {\n\t\t\n\t\t$key1 = array_search($key, $nodesArray['node']);\n\n\t\tif ($nodesArray[$key1]['score'] == 100000) {\n\t\t\t$nodesArray[$key1]['score'] = 0;\n\t\t}\n\n\t\t$nodesArray[$key1]['score'] += $value; // this wont do in cases of the shorter routes \n\t\t$nodesArray[$key1]['route'] .= \"->\" . $node . \"->\" . $key;\n\n\t\tif ($key == $finish) {\n\t\t\tarray_push($successArray, $nodesArray[$key1]); // check this\n\t\t}\n\t}\n\n\treturn $nodesArray;\n}", "function getLamCost ($totalSheets, &$rawCost, &$labor, $quantity, $Nup) {\n\tif ($_POST[\"lam\"] == \"lam\") {\n\t\t$lamCost = 0;\n\t\t$lamCost += ($totalSheets * LAMCOST);\n\t}\n\telse {\n\t\t$lamCost = 0;\n\t\t}\n$rawCost += $lamCost;\n\n\n// if booklet + lam\n\tif ($_POST[\"lamcover\"] == \"lamcover\") {\n\t\t$lamCoverLabor = 0;\n\t\t$lamCoverLabor += (( $quantity / $Nup ) * LAMTIME * HOUR );\n\t\t$lamCoverCost = 0;\n\t\t$lamCoverCost += ($quantity * LAMCOST);\n\t}\n\telse {\n\t\t$lamCoverLabor = 0;\n\t\t$lamCoverCost = 0;\n\t}\n$labor += $lamCoverLabor;\n$rawCost += $lamCoverCost;\n\n\n//Determine Lam Labor\n\tif ($_POST[\"lam\"] == \"lam\") {\n\t\t$lamLabor = 0;\n\t\t$lamLabor += ((($totalSheets/4) * LAMTIME) * HOUR);\n\t}\n\telse {\n\t\t$lamLabor = 0;\n\t}\n$labor += $lamLabor;\n}", "function arrayManipulation($number, $queries) {\n\n $array=[];\n for ($index = 0; $index < count($queries); $index++)\n {\n $array[$queries[$index][0]-1]=0;\n $array[$queries[$index][1]]=0;\n }\n for ($index = 0; $index < count($queries); $index++)\n {\n $a= $queries[$index][0];\n $b= $queries[$index][1];\n $k= $queries[$index][2];\n $array[$a-1] += $k;\n $array[$b] -= $k;\n }\n\n $sum=0;\n $max=0;\n for ($index = 0; $index < $number; $index++)\n {\n @$sum += $array[$index];\n if ($sum > $max)\n $max = $sum;\n }\n return $max;\n}", "function get_points($desired_answers_array, $given_answers, $importance_item) {\n global $importance;\n if(is_array($desired_answers_array)) {\n return (in_array($given_answers, $desired_answers_array)) ? ($importance[$importance_item]) : 0;\n }\n else return ($desired_answers_array == $given_answers) ? $importance[$importance_item] : 0;\n }", "function MontantGlobal()\n{\n\t\n\t \nif (isset($_SESSION['panier']))\n\t {\n $total=0;\n for($i = 0; $i < count($_SESSION['panier']['id_produit']); $i++)\n {\n $total += $_SESSION['panier']['qte_produit'][$i] * $_SESSION['panier']['prix_produit'][$i];\n }\n return $total;\n\t }\n\t else\n\t\t return 0;\n}", "public function totalq1($modalite)\r\n\t{\r\n\t$conge = new Default_Model_Conge();\r\n\t$debut_mois = $this->getAnnee_reference().'-01-01';\r\n\t$fin_mois = $this->getAnnee_reference().'-12-31'; // il faut la remplacer par l'annee de reference\r\n\t\r\n\t\r\n\t$jours_ouvres_de_annee_ref = $conge->joursOuvresDuMois($debut_mois,$fin_mois);\r\n\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t$personne = new Default_Model_Personne();\r\n\t$id_entite =1; // MBA : pourquoi entite 1 pour personne? \r\n\t$personne = $personne->fetchall('id_entite ='.$id_entite. '&&'. 'id ='.$this->getPersonne()->getId());\r\n\t//var_dump($personne);\r\n\tif (null!==$personne)\r\n\t\r\n\t{\r\n\t\tif ($modalite == 4)\r\n\t\t{\r\n\t\t\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t\t\tif($nbr_heurs_ouvrees_annee >1607)\r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t\telseif($nbr_heurs_ouvrees_annee <1607.5)\r\n\t\t\t{\r\n\t\t\t\treturn 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 5 ||$modalite == 6 )\r\n\t\t{\r\n\t\t\t$nbr_jours_ouvrees_annee = $jours_ouvres_de_annee_ref-243;\r\n\t\t\tif($nbr_jours_ouvrees_annee < 10)\r\n\t\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t\t}\r\n\t\t\telseif($nbr_jours_ouvrees_annee >10)\r\n\t\t\t{\r\n\t\t\t\treturn $nbr_jours_ouvrees_annee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 1 ||$modalite == 2 ||$modalite == 3)\r\n\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\telse return 0;\r\n\t\r\n\t}", "function fiftyone_degrees_get_signature(\n &$matched_node_indexs,\n $useragent_bytes,\n &$method,\n &$timings,\n &$debug_info,\n &$headers) {\n\n $matched_signature = fiftyone_degrees_signature_binary_seach(\n $matched_node_indexs,\n $debug_info,\n $headers);\n\n if ($matched_signature < 0) {\n $timings['numeric_match_time'] = microtime(TRUE);\n // No. So find any other nodes that match if numeric differences\n // are considered.\n $lowest_score = NULL;\n $matched_numeric_nodes = fiftyone_degrees_evaluate_numeric_nodes(\n $useragent_bytes,\n $matched_node_indexs,\n $lowest_score,\n $debug_info,\n $headers);\n\n // Can a precise match be found based on the nodes?\n $matched_signature = fiftyone_degrees_signature_binary_seach(\n $matched_numeric_nodes,\n $debug_info,\n $headers);\n\n $timings['numeric_match_time'] = microtime(TRUE) - $timings['numeric_match_time'];\n\n if ($matched_signature >= 0) {\n // Yes a precise match was found.\n $method = 'numeric';\n return $matched_signature;\n }\n $timings['get_closest_sigs_time'] = microtime(TRUE);;\n if (count($matched_node_indexs) > 0) {\n $sig_indexs = fiftyone_degrees_get_closest_signature_indexs(\n $matched_node_indexs,\n $timings,\n $debug_info,\n $headers);\n $ranked_sig_indexs = array_splice($sig_indexs, 0, $headers['info']['max_signatures']);\n $timings['get_closest_sigs_time'] = microtime(TRUE) - $timings['get_closest_sigs_time'];\n $timings['get_sig_from_rank_time'] = microtime(TRUE);\n $signatures = array();\n foreach($ranked_sig_indexs as $s) {\n $signatures[] = fiftyone_degrees_get_ranked_signature_related_offset($s, $headers);\n }\n $timings['get_sig_from_rank_time'] = microtime(TRUE) - $timings['get_sig_from_rank_time'];\n \n // Store the score that we've got from the numeric difference\n // calculations.\n $starting_score = $lowest_score;\n $timings['eval_nearest_sigs_time'] = microtime(TRUE);\n $matched_signature = fiftyone_degrees_evaluate_signatures(\n $matched_numeric_nodes,\n $signatures,\n FALSE,\n $useragent_bytes,\n $timings,\n $debug_info,\n $headers);\n\n $method = 'nearest';\n $timings['eval_nearest_sigs_time'] = microtime(TRUE) - $timings['eval_nearest_sigs_time'];\n if($matched_signature === NULL) {\n $method = 'closest';\n $timings['eval_closest_sigs_time'] = microtime(TRUE);\n $matched_signature = fiftyone_degrees_evaluate_signatures(\n $matched_numeric_nodes,\n $signatures,\n TRUE,\n $useragent_bytes,\n $timings,\n $debug_info,\n $headers);\n // Increase the lowest score by the starting value.\n $lowest_score += $starting_score;\n $debug_info['difference'] = $lowest_score;\n $timings['eval_closest_sigs_time'] = microtime(TRUE) - $timings['eval_closest_sigs_time'];\n }\n }\n }\n else {\n $method = 'exact';\n }\n return $matched_signature;\n}", "private function calcTraitScores() {\n # scale trait scores based on trip purpose\n $traitScore = ($this->purposeForTravel == 'Vacation') ? self::TRAIT_SCORE \n : self::TRAIT_SCORE*.75; \n \n foreach ($this->cities as $city){\n $score = 0; \n foreach($this->perfectCity as $desiredCityTrait) {\n if (in_array($desiredCityTrait, $city['Vacation'])) {\n $score += $traitScore; \n }\n }\n if($this->purposeForTravel == 'Permanent') {\n foreach($this->perfectCity as $desiredCityTrait) {\n if(in_array($desiredCityTrait, $city['Permanent']))\n $score += $traitScore; \n }\n }\n $this->traitScores[] = $score; \t\n }\n }", "function calculateAct($clid){\n //Query to get the student's individual ACT scores\n $result = mysql_query(\"Select S.act_english, S.act_reading, S.act_math, S.act_science\n FROM student S\n WHERE S.clid = '$clid';\") or die(mysql_error());\n $row = mysql_fetch_array($result);\n //Add the results of the query and divide by 4\n $tempcomp = ($row['act_english'] + $row['act_reading'] + $row['act_math'] + $row['act_science'])/4.0;\n //Round to the nearest integer\n $tempcomp = round($tempcomp);\n return $tempcomp;\n \n}", "private function score_biometric_data(){\t\t\r\n\t\t$data = $this->data['biometric_data'];\r\n\t\t$bp_systolic = $data['bp_systolic'];\r\n\t\tif ($bp_systolic > 140) $bp_systolic = 1;\r\n\t\telse if ($bp_systolic > 120) $bp_systolic = 3;\r\n\t\telse if ($bp_systolic == 0) $bp_systolic = 0;\r\n\t\telse $bp_systolic = 5;\r\n\t\t\t\r\n\t\tif ($data['bp_diastolic'] > 90) $bp_diastolic = 1;\r\n\t\telse if ($data['bp_diastolic'] > 80) $bp_diastolic = 3;\r\n\t\telse if ($data['bp_diastolic'] == 0) $bp_diastolic = 0;\r\n\t\telse $bp_diastolic = 5;\r\n\t\t\r\n\t\t$body_fat = 5;\r\n\t\tif ($this->demographics['gender'] == \"M\") {\r\n\t\t\tif ($this->demographics['age'] >= 60){\r\n\t\t\t\tif ($data['body_fat'] > 24.1) $body_fat = 1;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\r\n\t\t\t}else if ($this->demographics['age'] >= 40) {\r\n\t\t\t\tif ($data['body_fat'] > 24.1) $body_fat = 1;\r\n\t\t\t\tif ($data['body_fat'] > 23.4) $body_fat = 3;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\r\n\t\t\t}else{\r\n\t\t\t\tif ($data['body_fat'] > 23.5) $body_fat = 1;\r\n\t\t\t\tif ($data['body_fat'] > 19.4) $body_fat = 3;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif ($this->demographics['age'] >= 60) {\r\n\t\t\t\tif ($data['body_fat'] > 31.5) $body_fat = 1;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\r\n\t\t\t}else if ($this->demographics['age'] >= 40) {\r\n\t\t\t\tif ($data['body_fat'] > 31.5) $body_fat = 1;\r\n\t\t\t\tif ($data['body_fat'] > 30.4) $body_fat = 3;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\r\n\t\t\t}else{\r\n\t\t\t\tif ($data['body_fat'] > 30.5) $body_fat = 1;\r\n\t\t\t\tif ($data['body_fat'] > 23.4) $body_fat = 3;\r\n\t\t\t\telse if ($data['body_fat'] == 0) $body_fat = 0;\t\t\t\t\t\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\r\n\t\t$waist = 5;\r\n\t\tif ($this->demographics['gender'] == 'M') {\r\n\t\t\tif ($data['waist'] > 40) {\r\n\t\t\t\t$waist = 1;\r\n\t\t\t}\r\n\t\t\telse if ($data['waist'] == 0) {\r\n\t\t\t\t$waist = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ($data['waist'] > 35) {\r\n\t\t\t\t$waist = 1;\r\n\t\t\t}\r\n\t\t\telse if ($data['waist'] == 0) {\r\n\t\t\t\t$waist = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$bmi = 3;\r\n\t\tif ($data['bmi'] > 30) $bmi = 1;\r\n\t\telse if ($data['bmi'] > 25) $bmi = 3;\r\n\t\telse if ($data['bmi'] > 18) $bmi = 5;\r\n\t\telse if ($data['bmi'] == 0) $bmi = 0;\r\n\t\t$data['bmi'] = sprintf(\"%.1f\", $data['bmi']);\r\n\r\n\t\t$blood_glucose = 5;\r\n\t\tif ($data['blood_glucose'] > 200) $blood_glucose = 1;\r\n\t\telse if ($data['blood_glucose'] > 129) $blood_glucose = 3;\t\t\t\r\n\t\telse if ($data['blood_glucose'] == 0) $blood_glucose = 0;\r\n\t\t\r\n\t\t$cholesterol = 5;\r\n\t\tif ($data['cholesterol'] > 239) $cholesterol = 1;\r\n\t\telse if ($data['cholesterol'] > 199) $cholesterol = 3;\t\t\t\r\n\t\telse if ($data['cholesterol'] == 0) $cholesterol = 0;\r\n\t\t\t\t\t\r\n\t\t$triglycerides = 5;\r\n\t\tif ($data['triglycerides'] > 200) $triglycerides = 1;\r\n\t\telse if ($data['triglycerides'] > 149) $triglycerides = 3;\t\t\t\r\n\t\telse if ($data['triglycerides'] == 0) $triglycerides = 0;\r\n\t\t\t\t\t\r\n\t\t$hdl = 1;\r\n\t\tif ($this->demographics['gender'] == 'F') {\r\n\t\t\tif ($data['hdl'] > 40) $hdl = 5;\r\n\t\t\telse if ($data['hdl'] > 30) $hdl = 3;\r\n\t\t\telse if ($data['hdl'] == 0) $hdl = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ($data['hdl'] > 50) $hdl = 5;\r\n\t\t\telse if ($data['hdl'] > 35) $hdl = 3;\r\n\t\t\telse if ($data['hdl'] == 0) $hdl = 0;\r\n\t\t}\r\n\r\n//\t\tif($data['hdl']>59) $hdl=5;\r\n//\t\telse if($data['hdl']>40) $hdl=3;\r\n//\t\telse if($data['hdl']==0) $hdl=0;\r\n\r\n\t\t$ldl = 5;\r\n\t\tif ($data['ldl'] > 140) $ldl = 1;\r\n\t\telse if ($data['ldl'] > 100) $ldl = 3;\r\n\t\telse if ($data['ldl'] == 0) $ldl = 0;\r\n\r\n\t\tif($data['hdl'] > 0 && $data['cholesterol'] > 0)\r\n\t\t\t$ratio = $data['cholesterol'] / $data['hdl'];\r\n\t\telse\r\n\t\t\t$ratio = 0;\r\n\t\t\r\n\t\t$ratio = sprintf(\"%.1f\", $ratio);\r\n\r\n\t\t$tc_hdl = 5;\r\n\t\tif ($ratio > 4.5) $tc_hdl = 1;\r\n\t\telse if ($ratio == 0) $tc_hdl = 0;\r\n\r\n\r\n\t\t$hemoglobin = 5;\r\n\t\tif ($data['hemoglobin'] == 0)\r\n\t\t\t$hemoglobin = 0;\r\n\t\telse if (($data['hemoglobin'] < 4.0) || ($data['hemoglobin'] > 6.0)) {\r\n\t\t\t$hemoglobin = 1;\r\n\t\t}\r\n\r\n\t\t$cotinine = 5;\r\n\t\tif ($data['cotinine'] > 0) {\r\n\t\t\t$cotinine = 1;\r\n\t\t}\r\n\r\n\t\t$ob = new stdClass();\r\n\t\t$ob->total = 0;\r\n\t\t$ob->data = array('bp_systolic' => array($bp_systolic,.0625, 0.0, $data['bp_systolic']),\r\n\t\t\t\t\t\t'bp_diastolic' => array($bp_diastolic,.0625, 0.0, $data['bp_diastolic']),\r\n\t\t\t\t\t\t'body_fat' => array($body_fat,.125, 0.0, $data['body_fat']),\r\n\t\t\t\t\t\t'bmi' => array($bmi,.0625, 0.0, $data['bmi']),\r\n\t\t\t\t\t\t'waist' => array($waist, .0625, 0.0, $data['waist']),\r\n\t\t\t\t\t\t'blood_glucose' => array($blood_glucose,.0417, 0.0, $data['blood_glucose']),\r\n\t\t\t\t\t\t'hemoglobin' => array($hemoglobin,.0417, 0.0, $data['hemoglobin']),\r\n\t\t\t\t\t\t'cotinine' => array($cotinine,.0416, 0.0, $data['cotinine']),\r\n\t\t\t\t\t\t'cholesterol' => array($cholesterol,.1, 0.0, $data['cholesterol']),\r\n\t\t\t\t\t\t'triglycerides' => array($triglycerides,.1, 0.0, $data['triglycerides']),\r\n\t\t\t\t\t\t'hdl' => array($hdl,.1, 0.0, $data['hdl']),\r\n\t\t\t\t\t\t'ldl' => array($ldl,.1, 0.0, $data['ldl']),\r\n\t\t\t\t\t\t'tc_hdl' => array($tc_hdl,.1, 0.0, $ratio));\r\n\t\tforeach($ob->data as &$rec){\r\n\t\t\t$rec[2] = $rec[0] * $rec[1];\r\n\t\t\t$ob->total += $rec[2];\r\n\t\t}\r\n\t\treturn $ob;\r\n\t}", "function getParamsArray($_query,$_objectSup1){\n\tswitch ($_query) {\n\t\tcase \"addAdherent\":\n\t\t\t$_numlicence = date('Y').str_pad(checkParam('club'),3,'0',STR_PAD_LEFT).str_pad(getAdherentsAI(),5,'0',STR_PAD_LEFT);\n\t\t\t$_datenaissance = explode('/',checkParam('datenaissance'));\n\t\t\t$__datenaissance = $_datenaissance[2].'-'.$_datenaissance[1].'-'.$_datenaissance[0];\n\t\t\treturn array(\n\t\t\t\t'numlicence'=>$_numlicence,\n\t\t\t\t'nom'=>checkParam('nomadh'),\n\t\t\t\t'prenom'=>checkParam('prenom'),\n\t\t\t\t'datenaissance'=>$__datenaissance,\n\t\t\t\t'adrvoie'=>checkParam('adrvoie'),\n\t\t\t\t'adrcp'=>checkParam('adrcp'),\n\t\t\t\t'adrville'=>checkParam('adrville'),\n\t\t\t\t'mail'=>checkParam('mailadh'),\n\t\t\t\t'telfixe'=>checkParam('telfixe'),\n\t\t\t\t'telport'=>checkParam('telport'),\n\t\t\t\t'grade'=>checkParam('grade'),\n\t\t\t\t'categorie'=>checkParam('categorie'));\n\t\t\tbreak;\n\t\tcase \"addStatut\":\n\t\t\treturn array(\n\t\t\t\t'adherent'=>checkParam('adherent'),\n\t\t\t\t'club'=>checkParam('club'),\n\t\t\t\t'statut'=>checkParam('statut')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"addStatutSaison\":\n\t\t\treturn array(\n\t\t\t\t'adherent'=>checkParam('adherent'),\n\t\t\t\t'club'=>checkParam('club'),\n\t\t\t\t'statut'=>checkParam('statut'),\n\t\t\t\t'saison'=>checkParam('saison')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"addSaison\":\n\t\t\t$_debut = explode('/',checkParam('debut'));\n\t\t\t$__debut = $_debut[2].'-'.$_debut[1].'-'.$_debut[0];\n\t\t\t$_fin = explode('/',checkParam('fin'));\n\t\t\t$__fin = $_fin[2].'-'.$_fin[1].'-'.$_fin[0];\n\t\t\treturn array(\n\t\t\t\t'nom'=>checkParam('nom'),\n\t\t\t\t'debut'=>$__debut,\n\t\t\t\t'fin'=>$__fin);\t\t\t\t\n\t\t\tbreak;\n\t\tcase \"getSingleAdherent\":\n\t\t\treturn array(\n\t\t\t\t'idbdd'=>$_objectSup1\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getSingleAdherentByNumLicence\":\n\t\t\treturn array(\n\t\t\t\t'numlicence'=>checkParam('numlicence')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getSingleStatut\":\n\t\t\terror_log(\"getSingleStatut >>> \".$_objectSup1);\n\t\t\treturn array(\n\t\t\t\t'idstatut'=>$_objectSup1\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getSingleSaison\":\n\t\t\treturn array(\n\t\t\t\t'numsaison'=>$_objectSup1\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getAdherentsFull\":\n\t\t\treturn null;\n\t\t\tbreak;\n\t\tcase \"getAdherentsFilter\":\n\t\t\treturn array(\n\t\t\t\t'typefilter'=>checkParam('typefilter')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getAdherentsClubFull\":\n\t\t\treturn array(\n\t\t\t\t'club'=>checkParam('viewclub')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getAdherentsClubFilter\":\n\t\t\treturn array(\n\t\t\t\t'club'=>checkParam('viewclub'),\n\t\t\t\t'typefilter'=>checkParam('typefilter')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getAdherentStatuts\":\n\t\t\treturn array(\n\t\t\t\t'adherent'=>checkParam('adherent')\n\t\t\t\t);\n\t\t\tbreak;\n\t\tcase \"getAdherentGrades\":\n\t\t\treturn array(\n\t\t\t\t'adherent'=>checkParam('adherent')\n\t\t\t\t);\n\t\t\tbreak;\n\t}\n}", "function deck_calculate_stats_value(array $base, array $bond, int $user_leader_skill, int $guest_leader_skill = 0): array\r\n{\r\n\t$lsk = [$user_leader_skill, $guest_leader_skill];\r\n\t$add = [0.0, 0.0, 0.0];\r\n\t\r\n\tforeach($lsk as $skill)\r\n\t{\r\n\t\tif($skill == 0)\r\n\t\t\tcontinue;\r\n\t\t\r\n\t\tif($skill >= 1 && $skill <= 9)\r\n\t\t{\r\n\t\t\t/* Non-cross attribute */\r\n\t\t\t$i = intdiv($skill - 1, 3);\r\n\t\t\t$add[$i] += (float)$base[$i] * 0.03 * ((($skill - 1) % 3) + 1);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tswitch($skill)\r\n\t\t\t{\r\n\t\t\t\tcase 31:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Angel */\r\n\t\t\t\t\t$add[0] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 32:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Empress */\r\n\t\t\t\t\t$add[0] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 33:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Princess */\r\n\t\t\t\t\t$add[1] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 34:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Empress */\r\n\t\t\t\t\t$add[1] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 35:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Princess */\r\n\t\t\t\t\t$add[2] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 36:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Angel */\r\n\t\t\t\t\t$add[2] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t$out = [];\r\n\t\r\n\tfor($i = 0; $i < 3; $i++)\r\n\t\t$out[$i] = $base[$i] + $bond[$i] + (int)round($add[$i]);\r\n\t\r\n\treturn $out;\r\n}", "function prepare_pdb($query, $maxatoms, &$result)\n{\n# + preg_match_all( \"/^HETATM.*/m\", $query, $out2);\n\n# $lines = implode(\"\\n\", $out1[0]);//array_merge($out1[0], $out2[0]));\n\n $lines = explode(\"\\n\", $query);\n $na = 0;\n $nh = 0;\n foreach ($lines as $line) {\n if (stripos($line, \"ATOM \") === 0) {\n $na += 1;\n\t $atoms[] = $line;\n } else if (stripos($line, \"HETATM\") === 0) {\n $nh += 1;\n\t $atoms[] = $line;\n }\n }\n\n $qsize = $na + $nh;\n\n if ($qsize > $maxatoms) {\n\t$result = sprintf(\"Too many atoms. Limit is %d atoms.\", $maxatoms);\n\treturn 0;\n } \n if ($qsize < 3) {\n\t$result = sprintf(\"At least 3 atoms are required, %d atoms provided (%d).\", $qsize, strlen($query));\n\treturn 0;\n }\n\n $result = implode(\"\\n\", $atoms);\n return 1;\n}", "function get_numpage($nb_actualites, $nbapp){\r\n //definition d'une valeur par defaut\r\n $numpage = 0;\r\n if(isset($_GET['numpage'])){//si une valeur est specifiee\r\n //adaptation de la valeur\r\n $numpage = (int) $_GET['numpage'];\r\n if($nb_actualites <= $numpage * $nbapp){\r\n $numpage = 0;\r\n }\r\n }\r\n return $numpage;\r\n}", "function getUVFloodCost (&$rawCost, $totalSheets) {\n\tif ($_POST[\"uvFlood\"] == \"uvFlood\") {\n\t\t$itemUVFlood = 1;\n\t\t$uvFloodCost = UVFLOODSETUP;\n\t\t$uvFloodCost += ($totalSheets * UVFLOODCOST);\n\t}\nelse {\n\t$uvFloodCost = 0;\n\t}\n\n$rawCost += $uvFloodCost;\n}", "public function temperatureScore();" ]
[ "0.61645085", "0.51042414", "0.51036465", "0.50581944", "0.49472237", "0.4887124", "0.48491582", "0.4835526", "0.48137143", "0.48050368", "0.47986183", "0.4618553", "0.46162587", "0.45589066", "0.45555937", "0.45544058", "0.4539949", "0.4525036", "0.4499143", "0.44935155", "0.44894746", "0.44879255", "0.44796902", "0.4429223", "0.44064167", "0.44040242", "0.44030076", "0.44011477", "0.4393333", "0.43918028", "0.43851247", "0.4380126", "0.43764603", "0.43663147", "0.4366115", "0.4362775", "0.43619454", "0.43559486", "0.43529168", "0.43501037", "0.43409288", "0.4335423", "0.43284547", "0.43278036", "0.4321721", "0.43105045", "0.4310425", "0.43009633", "0.4298118", "0.42927173", "0.4291015", "0.4285675", "0.42754447", "0.42746788", "0.42740723", "0.4271377", "0.42670992", "0.4259836", "0.4256265", "0.42444313", "0.42384833", "0.42382455", "0.42348313", "0.4233775", "0.42277935", "0.422454", "0.42094487", "0.4207886", "0.4204485", "0.4199416", "0.41974148", "0.41900522", "0.4189549", "0.41743422", "0.4173297", "0.41653955", "0.41565943", "0.4154072", "0.41528565", "0.4149323", "0.4147551", "0.4147423", "0.41468394", "0.41406104", "0.41328627", "0.4123807", "0.41180006", "0.4115725", "0.41072455", "0.41057605", "0.40994218", "0.40985453", "0.40978354", "0.40950018", "0.4092324", "0.40883806", "0.40864182", "0.40847367", "0.40821418", "0.40787855" ]
0.71615887
0
Parse the given SimpleXmlElement to a Store entity.
Парсить заданный SimpleXmlElement в сущность Store.
public function parse(SimpleXMLElement $payload) { $store = (new Entities\Store()) ->setIdentifiers(new Collection([ 'ap21_id' => (integer) $payload->StoreId, 'ap21_code' => (string) $payload->Code, 'store_number' => (integer) $payload->StoreNo ])) ->setName((string) $payload->Name) ->setLine1((string) $payload->Address1) ->setLine2((string) $payload->Address2) ->setCity((string) $payload->City) ->setState((string) $payload->State) ->setPostcode((string) $payload->Postcode) ->setCountry((string) $payload->Country) ->setEmail((string) $payload->Email); return $store; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStoreId($store);", "public function parseEntity(XTemplate $xtpl, $oProduct) {\n\n }", "public function parse($model)\n\t{\n\t\t$parser = Mage::getModel($this->getParserModel(), $model);\n\t\tif ($this->getStoreId()) {\n\t\t\t$parser->setMageStoreId($this->getStoreId());\n\t\t}\n\t\t$parser->setDataSource($this->getDataSource());\n\t\tif($this->_delete) {\n\t\t\t$parser->setIsDeleted(true);\n\t\t}\n\n\t\treturn $parser->getData();\n\t}", "private function store(array $parsedXmlData){ \n\t\t$storage = new App_Rates_Storage();\n\t\tforeach($parsedXmlData as $data){ \n\t\t\t$storage->save((array)$data);\n\t\t}\n\t\t\n\t\t\n\t\tif (IS_MEMCACHE){\n\t\t\tCache::getInstance()->set('rates',$parsedXmlData,false,self::CACHE_TTL);\n\t\t}\n\t}", "public function setStoreName($storeName);", "public function getStore();", "public function getStore();", "private function store()\n {\n return empty($this->tags) ? $this->store : $this->store->tags($this->tags);\n }", "public function load(ObjectManager $manager)\n {\n $store = new StoreEntity();\n $store->setStoreLabel('My Test Store');\n $store->setSyncProducts(1);\n $store->setShopifyAccessToken('06ccecd6867cc78d4423e4bb8058a984');\n $store->setShopifyStoreUrl('erpapitest.myshopify.com');\n $store->setErpUrl('http://robots.lapineinc.com');\n $store->setErpUsername('CSGTEST');\n $store->setErpPassword('yG9uFFrLeHZ56LL4');\n $store->setShopifySecretToken('MySecretToken');\n $store->setShopifyHandlingFeeProductId(1);\n\n $manager->persist($store);\n $manager->flush();\n }", "protected function setupStore()\n\t{\n\t\t$store = new Store();\n\t\t$store->setName('Apple Store');\n\n\t\treturn $store;\n\t}", "public function setStoreId($storeId);", "public function setStoreId($storeId);", "public function get_store_info() : array {\n\t\t$store_element = $this->dom->find( '.shop-name' );\n\t\tif ( ! $store_element ) {\n\t\t\treturn [ 'store' => [] ];\n\t\t}\n\n\t\t$anchor = $store_element[0]->find( 'a' );\n\t\t$url = $anchor[0]->getAttribute( 'href' );\n\t\tif ( 0 === stripos( $url, '//' ) ) {\n\t\t\t$url = 'https:' . $url;\n\t\t}\n\n\t\treturn [\n\t\t\t'store' => [\n\t\t\t\t'name' => sanitize_text_field( $anchor[0]->text() ),\n\t\t\t\t'url' => esc_url_raw( $url ),\n\t\t\t],\n\t\t];\n\t}", "public function setStoreId($id);", "function buildObjects($sortedData) {\n $stores = array();\n foreach($sortedData as $store) {\n // values come in as SimpleXMLElement objects, hence the casting\n $newStore = new Store((string)$store[0], (string)$store[1][0], (string)$store[2][0], floatval($store[3][0][0]), floatval($store[3][1][0]));\n array_push($stores, $newStore);\n }\n return $stores;\n}", "protected function getEntityFromStorage() {\n $entity_type = $this->store->get('entity_type');\n $entity_id = $this->store->get('entity_id');\n\n /** @var \\Drupal\\Core\\Entity\\EntityInterface $entity */\n $entity = $this->entityTypeManager()->getStorage($entity_type)\n ->load($entity_id);\n\n return $entity;\n }", "public function getEntity()\n {\n if (empty($this->_data['entity'])) {\n Mage::throwException(Mage::helper('storelocator')->__('Entity is unknown'));\n }\n\n return $this->_data['entity'];\n }", "public function parse_inventory_from_web() {\n require_once BASEPATH . 'phpQuery/phpQuery.php';\n log_message('debug', 'START parse_inventory_from_web');\n\n $dayAgo = date(DOCTRINE_DATE_FORMAT, (time() - (3600 * 12)));\n $settings = ManagerHolder::get('StoreInventoryParserSetting')->getAllWhere(array('last_parse_at<' => $dayAgo, 'url<>' => ''), 'e.*,store.*', 200);\n\n foreach ($settings as $setting) {\n $webPage = $this->getWebPage($setting['url']);\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_http_code', $webPage['header']['http_code']);\n\n $markup = $webPage['result'];\n\n if ($setting['store']['code'] == 'Magbaby') {\n if (strpos($markup, '<span class=\"b-product__state b-product__state_type_available\">В наличии</span>') !== FALSE) {\n $qty = 10;\n } else {\n $qty = 0;\n }\n if (!empty($setting['product_group_id'])) {\n $productGroup = ManagerHolder::get('ParameterGroup')->getById($setting['product_group_id'], 'bar_code');\n $barCode = $productGroup['bar_code'];\n } else {\n $product = ManagerHolder::get('Product')->getById($setting['product_id'], 'bar_code');\n $barCode = $product['bar_code'];\n }\n\n $where = array('product_id' => $setting['product_id'], 'bar_code' => $barCode, 'store_id' => $setting['store_id']);\n $exists = ManagerHolder::get('StoreInventory')->existsWhere($where);\n $entity = array();\n $entity['qty'] = $qty;\n if (!empty($setting['product_group_id'])) {\n $entity['product_group_id'] = $productGroup['id'];\n }\n $entity['update_by_admin_id'] = '';\n $entity['update_source'] = 'web';\n $entity['updated_at'] = date(DOCTRINE_DATE_FORMAT);\n if ($exists) {\n ManagerHolder::get('StoreInventory')->updateAllWhere($where, $entity);\n } else {\n $entity = array_merge($entity, $where);\n ManagerHolder::get('StoreInventory')->insert($entity);\n }\n\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_parse_at', date(DOCTRINE_DATE_FORMAT));\n }\n\n if ($setting['store']['code'] == 'i-love-mum') {\n $markup = file_get_contents($setting['url']);\n\n $params = array();\n if (strpos($markup, '<li>Доступность: На складе</li>') !== FALSE) {\n @phpQuery::newDocumentHTML($markup);\n\n foreach(pq('h3:contains(Доступные опции)')->next('div')->find('div:first > div') as $item) {\n // print pq($item)->html();\n // print \"\\n\";\n\n $param = pq($item)->find('label')->text();\n $param = trim($param);\n $param = ManagerHolder::get('ParameterValue')->getOneWhere(array('name' => $param), 'e.*');\n\n $value = pq($item)->find('label')->attr('title');\n $value = trim($value);\n if ($value == 'нет в наличии') {\n $qty = 0;\n } else {\n preg_match(\"/в наличии ([0-9]*) шт./\", $value, $mch);\n $qty = $mch[1];\n }\n\n $params[$param['id']] = $qty;\n }\n } else {\n $productGroups = ManagerHolder::get('ParameterGroup')->getAllWhere(array('product_id' => $setting['product_id']), 'main_parameter_value_id');\n foreach ($productGroups as $pg) {\n $params[$pg['main_parameter_value_id']] = 0;\n }\n }\n\n ManagerHolder::get('StoreInventory')->updateAllWhere(array('product_id' => $setting['product_id'], 'store_id' => $setting['store_id']), array('qty' => 0));\n foreach ($params as $paramId => $qty) {\n $productGroup = ManagerHolder::get('ParameterGroup')->getOneWhere(array('product_id' => $setting['product_id'], 'main_parameter_value_id' => $paramId), 'bar_code');\n if (!$productGroup) {\n continue;\n }\n\n $where = array('product_id' => $setting['product_id'], 'bar_code' => $productGroup['bar_code'], 'store_id' => $setting['store_id']);\n $exists = ManagerHolder::get('StoreInventory')->existsWhere($where);\n $entity = array();\n $entity['qty'] = $qty;\n $entity['product_group_id'] = $productGroup['id'];\n $entity['update_by_admin_id'] = '';\n $entity['update_source'] = 'web';\n $entity['updated_at'] = date(DOCTRINE_DATE_FORMAT);\n if ($exists) {\n ManagerHolder::get('StoreInventory')->updateAllWhere($where, $entity);\n } else {\n $entity = array_merge($entity, $where);\n ManagerHolder::get('StoreInventory')->insert($entity);\n }\n\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_parse_at', date(DOCTRINE_DATE_FORMAT));\n }\n }\n sleep(rand(1,3));\n }\n\n ManagerHolder::get('StoreInventory')->updateProductStatuses();\n log_message('debug', 'FINISH parse_inventory_from_web');\n }", "protected function parseAssignElement(\\SimpleXMLElement $node) {\n\t\t\t$attributes = $node->attributes();\n\t\t\tif (!isset($attributes['location'])) {\n\t\t\t\tthrow new Throwable\\Instantiation\\Exception('Unable to initial class.');\n\t\t\t}\n\t\t\t$segments = explode('.', $this->__valueOf($attributes['location']));\n\t\t\tif (count($segments) > 0) {\n\t\t\t\t$value = Core\\Data\\Undefined::instance();\n\t\t\t\t$children = $node->children();\n\t\t\t\tif (count($children) > 0) {\n\t\t\t\t\tforeach ($children as $child) {\n\t\t\t\t\t\tswitch ($child->getName()) {\n\t\t\t\t\t\t\tcase 'array':\n\t\t\t\t\t\t\t\t$value = $this->parseArrayElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'dictionary':\n\t\t\t\t\t\t\t\t$value = $this->parseDictionaryElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'expression':\n\t\t\t\t\t\t\t\t$value = $this->parseExpressionElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'null':\n\t\t\t\t\t\t\t\t$value = $this->parseNullElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'undefined':\n\t\t\t\t\t\t\t\t$value = $this->parseUndefinedElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'value':\n\t\t\t\t\t\t\t\t$value = $this->parseValueElement($child);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new Throwable\\Instantiation\\Exception('Unable to initial class.');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (isset($attributes['value'])) {\n\t\t\t\t\t$value = $this->__valueOf($attributes['value']);\n\t\t\t\t\tif (isset($attributes['type'])) {\n\t\t\t\t\t\t$type = $this->__valueOf($attributes['type']);\n\t\t\t\t\t\tif (!Spring\\Data\\XML\\Syntax::isPrimitiveType($type)) {\n\t\t\t\t\t\t\tthrow new Throwable\\Instantiation\\Exception('Unable to initial class.');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$value = Core\\Convert::changeType($value, $type);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new Throwable\\Instantiation\\Exception('Unable to initial class.');\n\t\t\t\t}\n\t\t\t\t$property = $this->models;\n\t\t\t\tforeach ($segments as $segment) {\n\t\t\t\t\tif (!Spring\\Data\\XML\\Syntax::isPropertyName($segment)) {\n\t\t\t\t\t\tthrow new Throwable\\Instantiation\\Exception('Unable to initial class.');\n\t\t\t\t\t}\n\t\t\t\t\t$property = &$property->$segment;\n\t\t\t\t}\n\t\t\t\t$property = $value;\n\t\t\t}\n\t\t}", "private function getStore() {\n if (NULL === $this->obj_store) {\n $this->obj_store = new Store($this->makeSchema());\n }\n return $this->obj_store;\n }", "public function parseFromXml($strXml)\n {\n throw new OssException(\"Not implemented.\");\n }", "public function getStore() { return $this->_store; }", "public static function StoreById($entity)\n {\n if(!isset(StorageManager::$entities[$entity->Alias]))\n {\n StorageManager::$entities[$entity->Alias] = array();\n }\n\n StorageManager::$entities[$entity->Alias][$entity->IdEntite] = $entity;\n }", "public function parse()\n {\n $parserResolver = new ParserResolver();\n $parserResolver->setXMLElement(new \\SimpleXMLElement($this->xmlString));\n \n $parser = $parserResolver->getParser();\n \n return $parser->parse();\n }", "public function getStore(): Store|null;", "public function import()\n {\n //then by the element set name\n if(!$this->record) {\n $this->record = $this->db->getTable('ElementSet')->findByName($this->responseData['name']);\n }\n\n if(!$this->record) {\n $this->record = new ElementSet;\n }\n //set new value if element set exists and override is set, or if it is brand new\n if( ($this->record->exists() && get_option('omeka_api_import_override_element_set_data')) || !$this->record->exists()) {\n $this->record->description = $this->responseData['description'];\n $this->record->name = $this->responseData['name'];\n $this->record->record_type = $this->responseData['record_type'];\n }\n\n try {\n $this->record->save(true);\n $this->addOmekaApiImportRecordIdMap();\n } catch(Exception $e) {\n _log($e);\n }\n }", "public function parse($payload)\n {\n return new SimpleXMLElement($payload);\n }", "public static function importFromEndpoint () {\n\n\t\t// Get data from spaql endpoint\n\t\t$sThesaurusEndpoint = empty($_POST['thesaurusEndpoint']) ? PP_THESAURUS_ENDPOINT : $_POST['thesaurusEndpoint'];\n\t\tif (empty($sThesaurusEndpoint)) {\n\t\t\tthrow new Exception (__('No SPARQL endpoint has been indicated.', self::SLUG));\n\t\t}\n\n\t\t// Load the remote sparql endpiont\n\t\t$aConfig = array(\n\t\t\t'remote_store_endpoint'\t=> $sThesaurusEndpoint,\n\t\t\t'remote_store_timeout'\t=> 2\n\t\t);\n\t\t$oEPStore = ARC2::getRemoteStore($aConfig);\n\n\t\t// Create the tables for the triple store\n\t\t$oARCStore = ARC2::getStore(self::getStoreConfig());\n\t\t$oARCStore->setUp();\n\n\t\t// All tables are emptied\n\t\t$oARCStore->reset();\n\n\t\t// Save data into ARC store\n\t\tself::importFromEndpointLoop($oEPStore, $oARCStore);\n\t}", "public function getStore()\n {\n if (is_null($this->store)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_STORE);\n if (is_null($data)) {\n return null;\n }\n\n $this->store = StoreResourceIdentifierModel::of($data);\n }\n\n return $this->store;\n }", "protected function parseXML($xml)\n {\n if (! $xml || ! $xml->Shipment) {\n return false;\n }\n $d = $xml->Shipment;\n $this->data['ShipmentId'] = (string) $d->ShipmentId;\n $this->data['AmazonOrderId'] = (string) $d->AmazonOrderId;\n if (isset($d->SellerOrderId)) {\n $this->data['SellerOrderId'] = (string) $d->SellerOrderId;\n }\n $this->data['Status'] = (string) $d->Status;\n if (isset($d->TrackingId)) {\n $this->data['TrackingId'] = (string) $d->TrackingId;\n }\n $this->data['CreatedDate'] = (string) $d->CreatedDate;\n if (isset($d->LastUpdatedDate)) {\n $this->data['LastUpdatedDate'] = (string) $d->LastUpdatedDate;\n }\n $this->data['Weight']['Value'] = (string) $d->Weight->Value;\n $this->data['Weight']['Unit'] = (string) $d->Weight->Unit;\n $this->data['Insurance']['Amount'] = (string) $d->Insurance->Amount;\n $this->data['Insurance']['CurrencyCode'] = (string) $d->Insurance->CurrencyCode;\n if (isset($d->Label)) {\n $this->data['Label']['Dimensions']['Length'] = (string) $d->Label->Dimensions->Length;\n $this->data['Label']['Dimensions']['Width'] = (string) $d->Label->Dimensions->Width;\n $this->data['Label']['Dimensions']['Unit'] = (string) $d->Label->Dimensions->Unit;\n $this->data['Label']['FileContents']['Contents'] = (string) $d->Label->FileContents->Contents;\n $this->data['Label']['FileContents']['FileType'] = (string) $d->Label->FileContents->FileType;\n $this->data['Label']['FileContents']['Checksum'] = (string) $d->Label->FileContents->Checksum;\n if (isset($d->Label->CustomTextForLabel)) {\n $this->data['Label']['CustomTextForLabel'] = (string) $d->Label->CustomTextForLabel;\n }\n if (isset($d->Label->LabelFormat)) {\n $this->data['Label']['LabelFormat'] = (string) $d->Label->LabelFormat;\n }\n if (isset($d->Label->StandardIdForLabel)) {\n $this->data['Label']['StandardIdForLabel'] = (string) $d->Label->StandardIdForLabel;\n }\n }\n\n $this->data['ItemList'] = [];\n foreach ($d->ItemList->children() as $x) {\n $temp = [];\n $temp['OrderItemId'] = (string) $x->OrderItemId;\n $temp['Quantity'] = (string) $x->Quantity;\n $this->data['ItemList'][] = $temp;\n }\n if (isset($d->PackageDimensions->Length)) {\n $this->data['PackageDimensions']['Length'] = (string) $d->PackageDimensions->Length;\n $this->data['PackageDimensions']['Width'] = (string) $d->PackageDimensions->Width;\n $this->data['PackageDimensions']['Height'] = (string) $d->PackageDimensions->Height;\n $this->data['PackageDimensions']['Unit'] = (string) $d->PackageDimensions->Unit;\n }\n if (isset($d->PackageDimensions->PredefinedPackageDimensions)) {\n $this->data['PackageDimensions']['PredefinedPackageDimensions'] = (string) $d->PackageDimensions->PredefinedPackageDimensions;\n }\n\n //Ship From Address\n $this->data['ShipFromAddress']['Name'] = (string) $d->ShipFromAddress->Name;\n $this->data['ShipFromAddress']['AddressLine1'] = (string) $d->ShipFromAddress->AddressLine1;\n if (isset($d->ShipFromAddress->AddressLine3)) {\n $this->data['ShipFromAddress']['AddressLine2'] = (string) $d->ShipFromAddress->AddressLine2;\n }\n if (isset($d->ShipFromAddress->AddressLine3)) {\n $this->data['ShipFromAddress']['AddressLine2'] = (string) $d->ShipFromAddress->AddressLine3;\n }\n if (isset($d->ShipFromAddress->DistrictOrCounty)) {\n $this->data['ShipFromAddress']['DistrictOrCounty'] = (string) $d->ShipFromAddress->DistrictOrCounty;\n }\n $this->data['ShipFromAddress']['Email'] = (string) $d->ShipFromAddress->Email;\n $this->data['ShipFromAddress']['City'] = (string) $d->ShipFromAddress->City;\n if (isset($d->ShipFromAddress->StateOrProvinceCode)) {\n $this->data['ShipFromAddress']['StateOrProvinceCode'] = (string) $d->ShipFromAddress->StateOrProvinceCode;\n }\n $this->data['ShipFromAddress']['PostalCode'] = (string) $d->ShipFromAddress->PostalCode;\n $this->data['ShipFromAddress']['CountryCode'] = (string) $d->ShipFromAddress->CountryCode;\n $this->data['ShipFromAddress']['Phone'] = (string) $d->ShipFromAddress->Phone;\n\n //Ship To Address\n $this->data['ShipToAddress']['Name'] = (string) $d->ShipToAddress->Name;\n $this->data['ShipToAddress']['AddressLine1'] = (string) $d->ShipToAddress->AddressLine1;\n if (isset($d->ShipToAddress->AddressLine3)) {\n $this->data['ShipToAddress']['AddressLine2'] = (string) $d->ShipToAddress->AddressLine2;\n }\n if (isset($d->ShipToAddress->AddressLine3)) {\n $this->data['ShipToAddress']['AddressLine2'] = (string) $d->ShipToAddress->AddressLine3;\n }\n if (isset($d->ShipToAddress->DistrictOrCounty)) {\n $this->data['ShipToAddress']['DistrictOrCounty'] = (string) $d->ShipToAddress->DistrictOrCounty;\n }\n $this->data['ShipToAddress']['Email'] = (string) $d->ShipToAddress->Email;\n $this->data['ShipToAddress']['City'] = (string) $d->ShipToAddress->City;\n if (isset($d->ShipToAddress->StateOrProvinceCode)) {\n $this->data['ShipToAddress']['StateOrProvinceCode'] = (string) $d->ShipToAddress->StateOrProvinceCode;\n }\n $this->data['ShipToAddress']['PostalCode'] = (string) $d->ShipToAddress->PostalCode;\n $this->data['ShipToAddress']['CountryCode'] = (string) $d->ShipToAddress->CountryCode;\n $this->data['ShipToAddress']['Phone'] = (string) $d->ShipToAddress->Phone;\n\n //Service\n $this->data['ShippingService']['ShippingServiceName'] = (string) $d->ShippingService->ShippingServiceName;\n $this->data['ShippingService']['CarrierName'] = (string) $d->ShippingService->CarrierName;\n $this->data['ShippingService']['ShippingServiceId'] = (string) $d->ShippingService->ShippingServiceId;\n $this->data['ShippingService']['ShippingServiceOfferId'] = (string) $d->ShippingService->ShippingServiceOfferId;\n $this->data['ShippingService']['ShipDate'] = (string) $d->ShippingService->ShipDate;\n if (isset($d->ShippingService->EarliestEstimatedDeliveryDate)) {\n $this->data['ShippingService']['EarliestEstimatedDeliveryDate'] = (string) $d->ShippingService->EarliestEstimatedDeliveryDate;\n }\n if (isset($d->ShippingService->LatestEstimatedDeliveryDate)) {\n $this->data['ShippingService']['LatestEstimatedDeliveryDate'] = (string) $d->ShippingService->LatestEstimatedDeliveryDate;\n }\n $this->data['ShippingService']['Rate']['Amount'] = (string) $d->ShippingService->Rate->Amount;\n $this->data['ShippingService']['Rate']['CurrencyCode'] = (string) $d->ShippingService->Rate->CurrencyCode;\n $this->data['ShippingService']['DeliveryExperience'] = (string) $d->ShippingService->ShippingServiceOptions->DeliveryExperience;\n $this->data['ShippingService']['CarrierWillPickUp'] = (string) $d->ShippingService->ShippingServiceOptions->CarrierWillPickUp;\n if (isset($d->ShippingService->ShippingServiceOptions->DeclaredValue)) {\n $this->data['ShippingService']['DeclaredValue']['Amount'] = (string) $d->ShippingService->ShippingServiceOptions->DeclaredValue->Amount;\n $this->data['ShippingService']['DeclaredValue']['CurrencyCode'] = (string) $d->ShippingService->ShippingServiceOptions->DeclaredValue->CurrencyCode;\n }\n }", "public static function get_store($store_name)\n {\n }", "public static function get_store($store_name = 'default')\n {\n }", "public function store()\n\t{\n\t\t$xml = Input::get('xml');\n\t\t$this->importer->storeXML($xml);\n\t\t$this->importer->import($xml);\n\t\treturn redirect()->route('admin.index');\n\t}", "public function getStore(): Store {\n return $this->store;\n }", "protected function configureStore()\n {\n /** @var $storeConfigurator Ess_M2ePro_Model_Magento_Quote_Store_Configurator */\n $storeConfigurator = Mage::getModel('M2ePro/Magento_Quote_Store_Configurator');\n $storeConfigurator->init($this->_quote, $this->_proxyOrder);\n\n $this->_originalStoreConfig = $storeConfigurator->getOriginalStoreConfig();\n\n $storeConfigurator->prepareStoreConfigForOrder();\n }", "abstract public function store(Entity $oMappedEntity);", "protected function selectStore(PurchasableEntityInterface $entity) {\n $stores = $entity->getStores();\n if (count($stores) === 1) {\n $store = reset($stores);\n }\n elseif (count($stores) === 0) {\n // Malformed entity.\n throw new \\Exception('The given entity is not assigned to any store.');\n }\n else {\n $store = $this->currentStore->getStore();\n if (!in_array($store, $stores)) {\n // Indicates that the site listings are not filtered properly.\n throw new \\Exception(\"The given entity can't be purchased from the current store.\");\n }\n }\n\n return $store;\n }", "public function testEditStore() {\n $store = $this->createStore('Test');\n $this->drupalGet($store->toUrl('edit-form'));\n $edit = [\n 'name[0][value]' => 'Test!',\n ];\n $this->submitForm($edit, 'Save');\n $this->assertSession()->pageTextContains(\"Saved the Test! store.\");\n\n $store = $this->reloadEntity($store);\n $this->assertEquals('Test!', $store->label());\n }", "private function setStore(Store $store) {\n $this->store = $store;\n }", "public function store() {\n\t\t# One-to-many relationship between stores and users:\n\t\treturn $this->belongsTo('Store');\n\n\t}", "public function convertStorageToEntity($in);", "public function __construct(Store $store)\n {\n $this->store = $store;\n }", "public function __construct(Store $store)\n {\n $this->store = $store;\n }", "public function store()\n {\n $this->makeSitemap();\n\n return $this->sitemap->store('xml', 'sitemap');\n }", "private function parsePerson( $element, DOMElement $xml, $type )\n {\n foreach ( $xml->childNodes as $itemChild )\n {\n if ( $itemChild->nodeType === XML_ELEMENT_NODE )\n {\n $tagName = $itemChild->tagName;\n\n switch ( $tagName )\n {\n case 'name':\n case 'email':\n case 'uri':\n $element->$tagName = $itemChild->textContent;\n break;\n }\n }\n }\n }", "function parse_into_struct($xml, $case = FALSE)\n\t{\n\t\t// use an empty string to trick PHP into doing what it's supposed to do and auto-detect the encoding\n\t\t$parser = ($this->encoding == '') ? xml_parser_create('') : xml_parser_create($this->encoding);\n\t\tif ($case === FALSE)\n\t\t\txml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);\n\t\txml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);\n\n\t\t$entities = $this->fetch_entity_definitions($xml);\n\t\t$xml = ($entities === FALSE) ? $xml : $this->replace_entities($xml, $entities);\n\n\t\tif (xml_parse_into_struct($parser, $xml, $this->tagdata, $this->index) === 0)\n\t\t{\n\t\t\txml_parser_free($parser);\n\t\t\treturn FALSE;\n\t\t}\n\n\t\txml_parser_free($parser);\n\t\treturn TRUE;\n\t}", "public function store(Store $store, Request $request)\n {\n $data = $this->validate($request, $this->validateRules());\n $store->articles()->create($data);\n\n return redirect()->route('stores.show', $store);\n }", "public function storeXML()\n {\n $service = new ExpressionService();\n\n foreach ($service->processFile($_FILES[\"expressions_xml\"]) as $expression) {\n $service->addToDatabase('expressions', $expression);\n }\n\n return redirect('api/expressions');\n }", "protected function fromXml(DOMElement $node)\n {\n $this->name = $node->getAttribute('name');\n $this->isAbstract = Helper::getBoolAttribute($node, 'isAbstract');\n $this->isMixin = Helper::getBoolAttribute($node, 'isMixin');\n $this->isQueryable = Helper::getBoolAttribute($node, 'isQueryable');\n $this->hasOrderableChildNodes = Helper::getBoolAttribute($node, 'hasOrderableChildNodes');\n\n $this->primaryItemName = $node->getAttribute('primaryItemName');\n if (empty($this->primaryItemName)) {\n $this->primaryItemName = null;\n }\n\n $this->declaredSuperTypeNames = array();\n $xp = new DOMXPath($node->ownerDocument);\n $supertypes = $xp->query('supertypes/supertype', $node);\n foreach ($supertypes as $supertype) {\n $this->declaredSuperTypeNames[] = $supertype->nodeValue;\n }\n\n $this->declaredPropertyDefinitions = new ArrayObject();\n $properties = $xp->query('propertyDefinition', $node);\n foreach ($properties as $property) {\n $this->declaredPropertyDefinitions[] = $this->factory->get(\n 'NodeType\\PropertyDefinition',\n array($property, $this->nodeTypeManager)\n );\n }\n\n $this->declaredNodeDefinitions = new ArrayObject();\n $declaredNodeDefinitions = $xp->query('childNodeDefinition', $node);\n foreach ($declaredNodeDefinitions as $nodeDefinition) {\n $this->declaredNodeDefinitions[] = $this->factory->get(\n 'NodeType\\NodeDefinition',\n array($nodeDefinition, $this->nodeTypeManager)\n );\n }\n }", "public function getStore () {\n\t\treturn $this->oStore;\n\t}", "public function setStore($store)\n {\n $this->setData('store', $store);\n $this->setData('store_id', $store->getId());\n return $this;\n }", "public function add_store($store)\n {\n }", "private function _populateCompanyFromXmlElement(\n SimpleXMLElement $xmlElement,\n Kohana_Company $company = null\n )\n {\n if (null === $company) {\n $company = new Kohana_Company();\n }\n $company\n ->setId($xmlElement->id)\n ->setFirstName($xmlElement->first_name)\n ->setLastName($xmlElement->last_name)\n ->setTitle($xmlElement->title)\n ->setCompany($xmlElement->company)\n ->setNotes($xmlElement->notes) \n ;\n\n\n $locations = array(); \n $tags = array(); \n\n \n\n foreach( $xmlElement->tags->tag as $xmlTag ) { \n $tag = new Kohana_Tag();\n $tag->setName( $xmlTag['name'] )\n ; \n\n array_push( $tags,$tag); \n } \n \n foreach( $xmlElement->locations->location as $xmlLocation ) {\n \n\n $location = new Kohana_Location();\n $location\n ->setId( $xmlLocation->id )\n ->setLabel( $xmlLocation->label )\n ->setEmail( $xmlLocation->email )\n ->setWebsite( $xmlLocation->website )\n ->setPhone( $xmlLocation->phone )\n ->setCell( $xmlLocation->cell )\n ->setFax( $xmlLocation->fax )\n ->setStreet1( $xmlLocation->street_1 )\n ->setStreet2( $xmlLocation->street_2 )\n ->setCity( $xmlLocation->city )\n ->setState( $xmlLocation->state )\n ->setPostalCode( $xmlLocation->postal_code )\n ->setCountry( $xmlLocation->country )\n ; \n\n array_push( $locations,$location); \n } \n \n $company->setLocations( $locations ); \n $company->setTags( $tags ); \n\n return $company;\n }", "function parseXml($inXml){\n\t$tidy = tidy_parse_string($inXml, array(\"output-xml\" => true,\"input-xml\" => true));\n\t$tidy->cleanRepair();\n\t\n\t//create simpleXML object from data\n\t$result = new SimpleXMLElement($tidy);\n\treturn $result;\n}", "public function parse(DOMElement $node);", "abstract function getStore(string $storeKey);", "public function store()\n {\n return $this->belongsTo('App\\Store');\n }", "public function execute($entity, $arguments = [])\n {\n if ($entity->getCategoryId()) {\n $entity->setData('store_ids', $this->lookupStoreIds((int)$entity->getCategoryId()));\n }\n\n return $entity;\n }", "public function testStore()\n {\n $model = (new SubscriptionModel())->setProjectId(1);\n\n $service = new StoreSubscriptionService($this->subscriptionRepository, $this->projectService, $this->subscriptionHistory);\n $result = $service->store($model);\n\n $this->assertInstanceOf(SubscriptionModel::class, $result);\n }", "public function getStore()\n\t{\n\t\t//\n\t}", "private function parseProducts($xml){\n $catalogue = $xml->shop->offers;\n $productData = array();\n foreach ($catalogue as $offers) {\n foreach ($offers as $product) {\n foreach ($product->attributes() as $key => $value) {\n if ($key == 'id') $productData['id_prom'] = $value;\n }\n $productData['model'] = $product->vendorCode;\n $productData['id_group_prom'] = $product->categoryId;\n $this->addProduct($productData);\n }\n }\n }", "public function store()\n {\n return $this->belongsTo('Store');\n }", "public function store()\n {\n return $this->belongsTo('Store');\n }", "public function convertEntityToStorage($in);", "private function load(){\n\n $xml = simplexml_load_string($this->response);\n if($xml){\n if(!$this->isResponseSuccessFull($xml)) {\n\n $item = $xml->Items->Item;\n\n $this->data['title'] = $item->ItemAttributes->Title->__toString();\n $this->data['ean'] = $item->ItemAttributes->EAN->__toString();\n $this->data['brand'] = $item->ItemAttributes->Brand->__toString();\n $this->data['picture'] = $item->SmallImage->URL->__toString();\n $this->data['asin'] = $item->ASIN->__toString();\n $this->data['price'] = round(((int)$item->ItemAttributes->ListPrice->Amount->__toString()) / 100,2);\n }\n }else{\n $this->errorMessage[] = 'can not load xml.';\n }\n }", "public function getMagentoStores();", "public function getStore(): Interfaces\\Store\n {\n return $this->store;\n }", "public function parseStringForCmsElementInfo($string);", "public function store() {\n return $this->belongsTo('store');\n }", "public function getByUuid(string $storeUuid): StoreIntegrationInterface;", "public function setStore(StoreInterface $store)\n {\n $this->store = $store;\n return $this;\n }", "public function getStore()\n {\n if (is_null($this->_store)) {\n $this->setStore(Mage::app()->getStore());\n }\n return $this->_store;\n }", "public function parseEntity($entityUri)\n {\n $entity = new Entity($entityUri);\n $modelArray = $this->model->toRdfPhp();\n \n $entityProperties = $modelArray[$entityUri];\n foreach ($entityProperties as $property => $arrayValues) {\n foreach ($arrayValues as $propertyArrayValue) {\n /*\n * $propertyArrayValue is in the form of:\n * array(\n * 'type' => uri|literal,\n * 'value' => THE_VALUE,\n * 'lang' => LANGUAGE (optional),\n * 'datatype' => DATATYPE (optional)\n * );\n *\n */\n $lang = isset($propertyArrayValue['lang']) ? $propertyArrayValue['lang'] : null;\n $entity->addPropertyValue($property, $propertyArrayValue['value'], $lang);\n }\n }\n\n return $entity;\n }", "public function addToAllStore()\n\t{\n\t\t$store = new Store();\n\t\t$store->setId(0);\n\t\t$this->addInfo(ProductInfoType::get(ProductInfoType::ID_STORE), $store, 0, true);\n\t\treturn $this;\n\t}", "public function testParseProcessSimpleTypeElement(): void\n {\n $sch = $this->sut->parse($this->getXs('simpletype_0002.xsd'));\n \n self::assertElementNamespaceDeclarations(\n [\n 'xs' => 'http://www.w3.org/2001/XMLSchema', \n ], \n $sch\n );\n self::assertSchemaElementHasNoAttribute($sch);\n self::assertCount(1, $sch->getElements());\n \n $attr = $sch->getAttributeElements()[0];\n self::assertElementNamespaceDeclarations([], $attr);\n self::assertAttributeElementHasNoAttribute($attr);\n self::assertCount(1, $attr->getElements());\n \n $st = $attr->getSimpleTypeElement();\n self::assertElementNamespaceDeclarations([], $st);\n self::assertSimpleTypeElementHasNoAttribute($st);\n self::assertCount(1, $st->getElements());\n \n $res = $st->getDerivationElement();\n self::assertElementNamespaceDeclarations([], $res);\n self::assertSimpleTypeRestrictionElementHasNoAttribute($res);\n self::assertSame([], $res->getElements());\n }", "public function testCreateStore() {\n $this->drupalGet('admin/commerce/config/stores');\n $this->getSession()->getPage()->clickLink('Add store');\n\n // Check the integrity of the form.\n $this->assertSession()->fieldExists('name[0][value]');\n $this->assertSession()->fieldExists('mail[0][value]');\n $this->assertSession()->fieldExists('address[0][address][country_code]');\n $this->assertSession()->fieldExists('billing_countries[]');\n $this->assertSession()->fieldExists('is_default[value]');\n\n $this->getSession()->getPage()->fillField('address[0][address][country_code]', 'US');\n $this->getSession()->wait(4000, 'jQuery(\\'select[name=\"address[0][address][administrative_area]\"]\\').length > 0 && jQuery.active == 0;');\n\n $name = $this->randomMachineName(8);\n $edit = [\n 'name[0][value]' => $name,\n 'mail[0][value]' => \\Drupal::currentUser()->getEmail(),\n 'default_currency' => 'USD',\n 'timezone' => 'UTC',\n ];\n $address = [\n 'address_line1' => '1098 Alta Ave',\n 'locality' => 'Mountain View',\n 'administrative_area' => 'CA',\n 'postal_code' => '94043',\n ];\n foreach ($address as $property => $value) {\n $path = 'address[0][address][' . $property . ']';\n $edit[$path] = $value;\n }\n $this->submitForm($edit, t('Save'));\n $this->assertSession()->pageTextContains(\"Saved the $name store.\");\n }", "public function testDuplicateStore() {\n $store = $this->createStore('Test');\n $this->drupalGet($store->toUrl('duplicate-form'));\n $edit = [\n 'name[0][value]' => 'Test2',\n ];\n $this->submitForm($edit, 'Save');\n $this->assertSession()->pageTextContains('Saved the Test2 store.');\n\n // Confirm that the original store is unchanged.\n $store = $this->reloadEntity($store);\n $this->assertEquals('Test', $store->label());\n\n // Confirm that the new store type has the expected data.\n $store = Store::load($store->id() + 1);\n $this->assertNotEmpty($store);\n $this->assertEquals('Test2', $store->label());\n }", "public function getStoreId()\n {\n return $this->store_id;\n }", "public function getStoreId()\n {\n return $this->store_id;\n }", "public function getStoreId()\n {\n return $this->store_id;\n }", "public function getStoreId()\n {\n return $this->store_id;\n }", "function Parse()\n {\n //Create the parser resource\n $this->parser = xml_parser_create(\"UTF-8\");\n \n //Set the handlers\n xml_set_object($this->parser, $this);\n xml_set_element_handler($this->parser, 'StartElement', 'EndElement');\n xml_set_character_data_handler($this->parser, 'CharacterData');\n\n //Error handling\n if (!xml_parse($this->parser, $this->xml))\n $this->HandleError(xml_get_error_code($this->parser), xml_get_current_line_number($this->parser), xml_get_current_column_number($this->parser));\n\n //Free the parser\n xml_parser_free($this->parser);\n }", "protected function convertToEntity($product) {\n if ($product instanceof Meal) {\n $product = [\n 'id' => $product->id,\n 'name' => $product->meal,\n 'img' => $product->mealThumb,\n ];\n }\n elseif ($product instanceof Beer) {\n $product = [\n 'id' => $product->id,\n 'name' => $product->name,\n 'img' => $product->image_url,\n ];\n }\n elseif ($product instanceof NodeInterface) {\n $product = [\n 'id' => $product->id(),\n 'name' => $product->get('field_name')->getValue()[0]['value'],\n 'img' => '',\n ];\n }\n\n $entity = Product::create($product);\n\n return $entity;\n }", "public function getStore()\n {\n return $this->store;\n }", "public function getStore()\n {\n return $this->store;\n }", "public function getStore()\n {\n return $this->store;\n }", "public function getStore()\n {\n return $this->store;\n }", "public function persistAndFlush($element)\n {\n $this->manager->getManager()->persist($element);\n $this->manager->getManager()->flush();\n }", "public function loadData(Mage_Core_Model_Store $store)\n {\n /* @var Nosto_Tagging_Helper_Data $helper */\n $helper = Mage::helper('nosto_tagging');\n /* @var Nosto_Tagging_Helper_Url $helperUrl */\n $helperUrl = Mage::helper('nosto_tagging/url');\n $this->_title = $helper->cleanUpAccountTitle(\n $store->getWebsite()->getName()\n . ' - '\n . $store->getGroup()->getName()\n . ' - '\n . $store->getName()\n );\n $this->_name = substr(sha1(rand()), 0, 8);\n $this->_frontPageUrl = $helperUrl->getFrontPageUrl($store);\n $this->_currencyCode = $store->getBaseCurrencyCode();\n $this->_languageCode = substr(\n $store->getConfig('general/locale/code'), 0, 2\n );\n $this->_ownerLanguageCode = substr(\n Mage::app()->getLocale()->getLocaleCode(), 0, 2\n );\n\n /** @var Nosto_Tagging_Model_Meta_Account_Owner $owner */\n $owner = Mage::getModel('nosto_tagging/meta_account_owner');\n $owner->loadData();\n $this->_owner = $owner;\n\n /** @var Nosto_Tagging_Model_Meta_Account_Billing $billing */\n $billing = Mage::getModel('nosto_tagging/meta_account_billing');\n $billing->loadData($store);\n $this->_billing = $billing;\n\n $this->_useCurrencyExchangeRates = !$helper->multiCurrencyDisabled($store);\n if (!$helper->multiCurrencyDisabled($store)) {\n $this->_defaultPriceVariationId = $store->getBaseCurrencyCode();\n } else {\n $this->_defaultPriceVariationId = \"\";\n }\n\n $storeLocale = $store->getConfig('general/locale/code');\n $currencyCodes = $store->getAvailableCurrencyCodes(true);\n if (is_array($currencyCodes) && count($currencyCodes) > 0) {\n /** @var Nosto_Tagging_Helper_Currency $currencyHelper */\n $currencyHelper = Mage::helper('nosto_tagging/currency');\n foreach ($currencyCodes as $currencyCode) {\n $this->_currencies[$currencyCode] = $currencyHelper\n ->getCurrencyObject($storeLocale, $currencyCode);\n }\n }\n }", "public function employ(Store $store){\n $this->setStore($store);\n $connection = new Connection();\n $link = $connection->connect();\n $result = $link->query(\"SELECT * FROM staff WHERE user_id = '$this->id'\");\n if(!$record = $result->fetch()){\n $link->exec(\"INSERT INTO staff (user_id, store_id) VALUES ('$this->id','\" . $this->getStore()->getId() . \"')\");\n $this->setStaffId($link->lastInsertId());\n }\n else{\n $this->setStaffId($record['id']);\n $link->exec(\"UPDATE staff SET store_id = '\" . $this->getStore()->getId() . \"' WHERE id = '$this->staffId'\");\n }\n $connection = null;\n }", "public function getStore()\r\n {\r\n return $this;\r\n }", "protected function _getStore() {\r\n $storeId = (int) $this->getRequest()->getParam('store', 0);\r\n return Mage::app()->getStore($storeId);\r\n }", "public function store();", "public function store();", "public function store();", "protected function getStoreById($id)\n {\n $store = null;\n $stores = $this->getStores();\n foreach ($stores as $_store) { \n if ($id == $_store->getId()) { \n $store = $_store; \n break; \n } \n }\n return $store;\n }", "private function parseXML($string)\r\n {\r\n $object = simplexml_load_string($string);\r\n return $object;\r\n }", "function getStoreIDs($xmlObj) {\n $storeIDs = $xmlObj->xpath('//*[@id=\"main_container\"]/div[4]/div/div[2]/span[2]/text()');\n $cleanIDs = array_map(function($x) {return trim($x);}, $storeIDs);\n return $cleanIDs;\n}", "public function storeRecord(&$record)\n {\n $atkstoretype = '';\n $sessionmanager = SessionManager::getInstance();\n if ($sessionmanager) {\n $atkstoretype = $sessionmanager->stackVar('atkstore');\n }\n switch ($atkstoretype) {\n case 'session':\n return $this->storeRecordInSession($record);\n default:\n return $this->storeRecordInDb($record);\n }\n }", "private function parseXml()\n\t{\n\t\t$this->raw = new SimpleXMLElement( $this->content, LIBXML_NOCDATA );\n\t\treturn $this;\n\t}" ]
[ "0.46587682", "0.46546042", "0.46254456", "0.46002588", "0.45970342", "0.4570146", "0.4570146", "0.45219913", "0.45195553", "0.4502184", "0.44990957", "0.44990957", "0.4487101", "0.44703007", "0.4409867", "0.43909898", "0.4382788", "0.43656608", "0.43631285", "0.43587038", "0.43043265", "0.43012637", "0.42878193", "0.42835695", "0.4282105", "0.42755276", "0.4263847", "0.4263734", "0.42502657", "0.4218551", "0.42175895", "0.42161503", "0.42115366", "0.4204978", "0.419982", "0.41817352", "0.4178594", "0.417777", "0.41758096", "0.4165535", "0.41585764", "0.4150642", "0.4150642", "0.41446567", "0.41385782", "0.4126609", "0.41117403", "0.4104037", "0.41025883", "0.40985772", "0.40945172", "0.40914747", "0.4090599", "0.40860128", "0.40768903", "0.40761888", "0.40685442", "0.40679267", "0.40605688", "0.40592617", "0.40512577", "0.40464702", "0.40464702", "0.40411198", "0.40402478", "0.40377614", "0.40224707", "0.4022213", "0.4022195", "0.40043488", "0.40014327", "0.40012258", "0.39968404", "0.39966816", "0.39957047", "0.39924896", "0.3990401", "0.39857823", "0.39857823", "0.39857823", "0.39857823", "0.39836627", "0.39827013", "0.39793402", "0.39793402", "0.39793402", "0.39793402", "0.39727584", "0.39702445", "0.39683786", "0.39665288", "0.39645895", "0.39643213", "0.39643213", "0.39643213", "0.39557725", "0.39557096", "0.3940979", "0.3939642", "0.3939598" ]
0.72746474
0
Returns the wordpress database.
Возвращает базу данных WordPress.
public function getWordpressDatabase(): wpdb { return $this->wpDatabase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWPDB()\n\t{\n\t\tglobal $wpdb;\n\t\treturn $wpdb;\n\t}", "function getDatabase();", "private function getStagingDb()\n {\n return new \\wpdb($this->clone->databaseUser, $this->clone->databasePassword, $this->clone->databaseDatabase, $this->clone->databaseServer);\n }", "public function get_db_object() {\n\t\treturn $this->wpdb_obj;\n\t}", "function require_wp_db()\n {\n }", "public function getDatabase(){\n $url = $this->urlWrapper() . URLResources::DATABASE;\n return $this->makeRequest($url, \"GET\", 2);\n }", "protected function getDatabase() {}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}", "public function getDb();", "public function get_database(){\n return $this->database;\n }", "function _wpdb()\n {\n global $wpdb;\n return $wpdb;\n }", "function _wpdb()\n {\n global $wpdb;\n return $wpdb;\n }", "public static function db()\n\t{\n\t\treturn self::$db;\n\t}", "function db(){\n\treturn Database::getInstance();\n}", "static public function getDatabase()\n {\n return self::$database;\n }", "public static function wordpress() {\n\t\t\treturn self::$wordpress;\n\t\t}", "public function getDb()\n {\n return $this->get('db');\n }", "public function admin_get_dbs() {}", "public function getDatabase() {\n \t\n \t// Return our database object\n \treturn $this->oDatabase;\n }", "public function getDatabase()\r\n {\r\n return $this->db;\r\n }", "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 }", "public function getDatabase()\r\n\t{\r\n\t\treturn $this->database;\r\n\t}", "public static function getDB() {\n\t\treturn static::$db;\n\t}", "public function getDatabase()\n\t{\n\t\treturn $this->database;\n\t}", "public function getDatabase() {\n return $this->getConfig('database', $this->defaults['database']);\n }", "public function getDatabase(){\n\t\treturn $this->database;\n\t}", "public function getDB()\n\t{\n\t\treturn $this->db;\n\t}", "public static function getDB()\r\n {\r\n return self::$db;\r\n }", "static function getDatabase() {\n if (!self::$db) {\n self::$db = new Database();\n }\n return self::$db;\n }", "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 function getDatabase()\n {\n return $this->database;\n }", "public function getDatabase()\n {\n return $this->database;\n }", "public function getDatabase()\n {\n return $this->database;\n }", "public function getDatabase()\n {\n return $this->database;\n }", "public function getDatabase()\n {\n return $this->database;\n }", "public function getDatabase()\n {\n return $this->database;\n }", "public function getDB() {\n\t\treturn $this->db;\n\t}", "public function database()\n {\n return $this->database;\n }", "public function module_db() {\n\t\treturn ( isset( $this->module_db ) && ! empty( $this->module_db ) ) ? $this->module_db : $this->module();\n\t}", "public function getDb()\n\t{\n\t\t$this->getPDO();\n\t\treturn $this->db;\n\t}", "public function database();", "public function db()\n {\n return $this->db;\n }", "function create_db3 () {\n\t\tglobal $wpdb;\n\t\t$create_query = 'CREATE TABLE `duotive_sidebars` (\n\t\t\t\t\t\t\t`ID` INT NOT NULL AUTO_INCREMENT ,\n\t\t\t\t\t\t\t`NAME` TEXT NOT NULL ,\n\t\t\t\t\t\t\t`DESCRIPTION` TEXT NOT NULL,\n\t\t\t\t\t\t\tPRIMARY KEY ( `ID` )\n\t\t\t\t\t\t) ENGINE = MYISAM ;\n\t\t\t\t\t\t';\n\t\t$create = $wpdb->get_results($create_query);\n\t}", "static public function get_db_object()\n {\n return new Database(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n }", "public function getDatabase()\r\n {\r\n return $this->connector->getBusinessDatabase();\r\n }", "function getDatabase() {\n//override these params\n\t$host = \"localhost\";\n\t$user = \"sistemasmysql\";\n\t$password = \"17sistemassql06\";\n\t$database_name = \"reservas_disilab\";\n\t\n\t\n\treturn new MySqlDB($host, $user, $password, $database_name);\n}", "public function getDatabaseAdaper()\n {\n return $this->oDatabase;\n }", "protected function getDB() {\n\t\tif ( is_null( $this->mDb ) ) {\n\t\t\tglobal $wgMetricsDBserver, $wgMetricsDBname, $wgMetricsDBuser,\n\t\t\t\t$wgMetricsDBpassword, $wgMetricsDBtype, $wgMetricsDBprefix,\n\t\t\t\t$wgDebugDumpSql;\n\t\t\t$this->mDb = DatabaseBase::factory( $wgMetricsDBtype,\n\t\t\t\tarray(\n\t\t\t\t\t'host' => $wgMetricsDBserver,\n\t\t\t\t\t'user' => $wgMetricsDBuser,\n\t\t\t\t\t'password' => $wgMetricsDBpassword,\n\t\t\t\t\t'dbname' => $wgMetricsDBname,\n\t\t\t\t\t'tablePrefix' => $wgMetricsDBprefix,\n\t\t\t\t\t'flags' => ( $wgDebugDumpSql ? DBO_DEBUG : 0 ) | DBO_DEFAULT,\n\t\t\t\t)\n\t\t\t);\n\t\t\t//$this->mDb->query( \"SET names utf8\" );\n\t\t}\n\t\treturn $this->mDb;\n\t}", "public function getDb()\n {\n if ($this->db === null) {\n $this->db = \\Dit\\Database::instance();\n }\n return $this->db;\n }", "public function updraftplus_get_database_handle() {\n\t\treturn $this->dbh;\n\t}", "public static function db() {\n return static::model()->db;\n }", "function wp_get_db_schema($scope = 'all', $blog_id = \\null)\n {\n }", "public static function getDatabaseSettings()\n\t\t{\n\t\t\t$aSettings['db_prefix'] = 'wp_';\n\t\t\t$sConfigData = self::getConfigData();\n\n\t\t\tif(!empty($sConfigData))\n\t\t\t{\n\t\t\t\t$aSettings['db_host'] = parcelcheckout_getFileValue($sConfigData, '/define\\(\\'DB_HOST\\', \\'([^\\']+)\\'\\);/');\n\t\t\t\t$aSettings['db_user'] = parcelcheckout_getFileValue($sConfigData, '/define\\(\\'DB_USER\\', \\'([^\\']+)\\'\\);/');\n\t\t\t\t$aSettings['db_pass'] = parcelcheckout_getFileValue($sConfigData, '/define\\(\\'DB_PASSWORD\\', \\'([^\\']+)\\'\\);/');\n\t\t\t\t$aSettings['db_name'] = parcelcheckout_getFileValue($sConfigData, '/define\\(\\'DB_NAME\\', \\'([^\\']+)\\'\\);/');\n\t\t\t\t$aSettings['db_prefix'] = parcelcheckout_getFileValue($sConfigData, '/\\$table_prefix ? = \\'([^\\']+)\\';/');\n\t\t\t\t$aSettings['db_type'] = (version_compare(PHP_VERSION, '5.3', '>') ? 'mysqli' : 'mysql');\n\t\t\t}\n\n\t\t\treturn $aSettings;\n\t\t}", "public function getDb() {\r\n\t\tif (!$this->db) {\r\n\t\t\t$this->setDb();\r\n\t\t}\r\n\t\treturn $this->db;\r\n\t}", "final protected function getDB()\n {\n return $this->db;\n }", "protected function db()\n {\n $this->loadDb();\n\n return $this->resource;\n }", "function MetaDatabases() {}", "function getDatabase() {\n\t\ttry {\n\t\t\t$db = new PDO('mysql:host=' . DB_HOST .';dbname=' . DB_NAME . ';charset=utf8mb4', DB_USER, DB_PASS);\n\t\t\t$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n\t\t\treturn $db;\n\t\t} catch (Exception $e) {\n\t\t\tshowDbError('connect', $e->getMessage());\n\t\t}\n\t}", "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 getDb()\r\n {\r\n return $this->db;\r\n }", "public function getDb()\n {\n return $this->db;\n }", "public function getDb()\n {\n return $this->db;\n }", "public function getDb()\n {\n return $this->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 getDatabase(): string;", "public static function connection() {\n $wp = mysqli_connect(WP_DB_SERVER, WP_DB_USERNAME, WP_DB_PASSWORD, WP_DB_NAME);\n \n // Check connection\n if($wp === false){\n die(\"ERROR: Could not connect. \" . mysqli_connect_error());\n }\n return $wp;\n }", "public static function getInstance(){\n if(empty(static::$default_database))\n static::initDB();\n \n return static::$default_database;\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 }", "public function getDatabase()\n {\n $platform = $this->getDatabasePlatform();\n $query = $platform->getDummySelectSQL($platform->getCurrentDatabaseExpression());\n $database = $this->fetchOne($query);\n\n assert(is_string($database) || $database === null);\n\n return $database;\n }", "public function getDatabaseFromSite($site = null){\n\n //get the site we want (either live or the passed site)\n if($site !== null){\n $site = FrontendManager::getSites()[$site] ?? false;\n } else {\n $site = FrontendManager::getLiveSite();\n }\n\n //we can only get and generate a database file if we have a valid site\n if($site !== false){\n //generate the database file\n $database = RestManager::getExternalSiteDetails($site['domain'], $site['key'], 'get-site-database');\n\n //if the request was successful we have a url to the database file\n if($database['response']['success']){\n\n //get and store the new database file\n file_put_contents(\n SITE_VERSION_CONTROL_ENTRY . DIRECTORY_SEPARATOR . '_temp.sql',\n file_get_contents($site['domain'] . $database['response']['data']['path'])\n );\n\n //assuming wp-cli is installed locally / on staging as you should only be importing on these environments\n //and we control both with our staging servers or local environments but clients can host live themselves\n //so I can't assume wp-cli is installed\n\n $localDomain = get_option('siteurl');\n\n //empty current database\n $resetResponse = exec(\"wp db reset --yes\");\n\n //import the new database\n $importResponse = exec(\"wp db import \" . SITE_VERSION_CONTROL_ENTRY . DIRECTORY_SEPARATOR . '_temp.sql');\n\n //TODO: MUTLISITE SUPPORT https://developer.wordpress.org/cli/commands/search-replace/\n\n //replace the url\n exec(\"wp search-replace '{$site['domain']}' '{$localDomain}' --all-tables\");\n\n //we've replaced the domain we've setup but wordpress may contain both https and http urls\n //so we'll replace both with the `siteurl`\n $secondaryReplacement = strpos($site['domain'], 'https://') !== false\n ? str_replace('https://', 'http://', $site['domain'])\n : str_replace('http://', 'https://', $site['domain']);\n\n exec(\"wp search-replace '{$secondaryReplacement}' '{$localDomain}' --all-tables\");\n //exec(\"wp search-replace '{$live['domain']}' '{$localDomain}' --all-tables --log=\" . SITE_VERSION_CONTROL_ENTRY . DIRECTORY_SEPARATOR . 'database_replace_log.txt');\n\n //delete the temporary file we created to handle the import\n unlink(SITE_VERSION_CONTROL_ENTRY . DIRECTORY_SEPARATOR . '_temp.sql');\n\n //TODO: Considering adding endpoint to delete the temp db file\n RestManager::getExternalSiteDetails(\n $site['domain'],\n $site['key'],\n 'delete-saved-database',\n [\n 'database' => $database['response']['data']['path']\n ]\n );\n\n return true;\n }\n }\n\n //we haven't successfully imported a new db file so return false\n return false;\n }", "public function db()\n {\n return $this->databaseConfig;\n }", "public function getDatabase()\n {\n\n $this->checkConnection();\n return $this->database;\n }", "public function get_databases()\n\t{\n\t\treturn $this->databases;\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}", "function get_database_name()\n\t{\n\t\treturn ($this -> database_name);\n\t}", "function getDb() {\n return $this->db;\n }", "function getDb()\n {\n return $this->db;\n }", "function get_database() {\n $db = new Database();\n return ($db->connect());\n}", "public function getDatabaseHandler();", "public function getBlogsTable(): string\n {\n return $this->wpDatabase->blogs;\n }", "public function getDatabase() {\n\t\t\t$this->_pdo = Database::getMysqlConncetion(\n\t\t\t\t\t$this->config->dbHost,\n\t\t\t\t\t$this->config->dbUsername,\n\t\t\t\t\t$this->config->dbPassword,\n\t\t\t\t\t$this->config->dbSchema\n\t\t\t\t);\n\t\t}", "protected function getDatabase()\n {\n if(!self::$_database)\n {\n self::connect();\n }\n return self::$_database;\n }", "protected function getDb()\n\t{\n\t\treturn (new League)->getConnection();\n\t}", "function getDb() {\n\n/******* PQDEV\n\t$uname=\"pesar2_pqdev\";\n\t$udb=\"pesar2_pqdev\";\n\n/******* PQ & localhost*/\n\t$uname=\"pesar2_pq\";\n\t$udb=\"pesar2_pq\";\n\n\t$upasswd=\"ollyship02\";\n\n\n\t$db = mysql_connect(\"localhost\",$uname,$upasswd);\n\n\tif (!mysql_select_db($udb,$db)) {\n\t\tdie(\"Connection failed: \".mysql_error($db).\"<br>\");\n\t}\n\n\treturn $db;\n}", "public function db()\n {\n return $this->getConnection();\n }", "protected function db() {\n return $this->app['db'];\n }", "public function db()\n {\n if ($this->db!=='_' && $this->db!=='default')\n {\n\n if (!$this->_def_cnf)\n {\n// $this->_def_cnf=Mongo_Database::instance('default')->config();\n// $this->_def_cnf['database']=$this->db;\n\n }\n return engine::mongo($this->db);\n// return Mongo_Database::instance($this->db,$this->_def_cnf);\n }\n return engine::mongo($this->db);\n }", "function wp_migrate_db() {\n\tglobal $wpmdb;\n\n\tif ( ! is_null( $wpmdb ) ) {\n\t\treturn $wpmdb;\n\t}\n\n\t$abspath = dirname( __FILE__ );\n\n\trequire_once $abspath . '/class/wpmdb-base.php';\n\trequire_once $abspath . '/class/wpmdb.php';\n\trequire_once $abspath . '/class/wpmdb-replace.php';\n\trequire_once $abspath . '/class/wpmdb-migration-state.php';\n\trequire_once $abspath . '/class/wpmdb-sanitize.php';\n\trequire_once $abspath . '/class/wpmdb-filesystem.php';\n\trequire_once $abspath . '/class/wpmdb-compatibility-plugin-manager.php';\n\n\t$wpmdb = new WPMDB( __FILE__ );\n\n\t// Remove the compatibility plugin when the plugin is deactivated\n\tregister_deactivation_hook( __FILE__, 'wpmdb_remove_mu_plugin' );\n\n\treturn $wpmdb;\n}", "public function getDatabaseInfo();", "function get_db_schema() {\n\n\t//LEFT SIDE = VARIABLE NAMES\n\t// RIGHT SIDE = DB FIELD NAMES\n\t\n\t$dbSchema = array( \n\t\t'blogsUri' => 'blogsEntry',\n\t\t'wpUri' => 'fullUri' ,\n\t\t'wpPath' => 'fullPath', \n\t\t'integrateLogin' => 'wpLogin', \n\t\t'permList' => 'permMapping',\n\t\t'showHdrFtr' => 'showInside',\n\t\t'cssFirst' => 'cssFirst',\n\t\t'wpSimpleHdr' => 'wpHdrSimple',\n\t\t'dtdSwitch' => 'dtdChange',\n\t\t'installLevel' => 'installStage',\n\t\t'usersOwnBlogs' => 'ownBlogs',\n\t\t'buttonsProfile' => 'profileBtn',\n\t\t'buttonsPost' => 'postBtn',\n\t\t'allowStyleSwitch' => 'styleSwitch',\n\t\t'useBlogHome' => 'blogHomePage',\n\t\t'blogListHead' => 'blogHomeTitle',\n\t\t'blogIntro' => 'blogIntro',\n\t\t'blogsPerPage' => 'numBlogsPerPage',\n\t\t'blUseCSS' => 'wpublStyles',\n\t\t'charEncoding' => 'encoding',\n\t\t'phpbbCensor' => 'censorPosts',\n\t\t'wpuVersion' => 'wpuVer',\n\t\t'wpPageName' => 'wpPage',\n\t\t'phpbbPadding' => 'pPadding',\n\t\t'mustLogin' => 'mustLogin',\n\t\t'upgradeRun' => 'ugRun',\n\t\t'xposting' => 'xposting',\n\t\t// Added in v0.7.0\n\t\t'phpbbSmilies' => 'phpbbSmilies',\n\t\t'fixHeader' => 'fixHeader',\n\t\t// Added in 0.7.1\n\t\t'xpostautolink' => 'xpostautolink'\n\t);\n\t\n\treturn $dbSchema;\n}", "public function getPostsTable(): string\n {\n return $this->wpDatabase->posts;\n }", "function database_list(){\n\t\treturn($this->q2obj(\"show databases\"));\n\t}" ]
[ "0.7859304", "0.70852995", "0.7077932", "0.6968717", "0.6891741", "0.68723726", "0.68605936", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68001145", "0.67180413", "0.6708635", "0.6708635", "0.6686446", "0.66838235", "0.6621977", "0.6621757", "0.6619426", "0.6614736", "0.6610308", "0.66083735", "0.65527356", "0.65357584", "0.6527485", "0.651938", "0.6503029", "0.6478342", "0.6468924", "0.6462037", "0.6454388", "0.64481527", "0.643876", "0.643876", "0.643876", "0.643876", "0.643876", "0.643876", "0.6435565", "0.6433453", "0.64206517", "0.6409967", "0.6408923", "0.6406769", "0.6405543", "0.6370707", "0.63686556", "0.6362853", "0.6331711", "0.6322077", "0.6304698", "0.629983", "0.62965065", "0.6284043", "0.6271772", "0.62666464", "0.626648", "0.6265251", "0.6260962", "0.6255664", "0.62474614", "0.6235373", "0.6231666", "0.6231666", "0.6231666", "0.62220556", "0.6221343", "0.6215112", "0.62144834", "0.620216", "0.620216", "0.6192941", "0.6190858", "0.6188822", "0.61834216", "0.6180927", "0.6172109", "0.61713797", "0.6167907", "0.61672026", "0.6166775", "0.6165945", "0.6161304", "0.61579466", "0.61574274", "0.61244833", "0.6118467", "0.6118264", "0.6117719", "0.6117604", "0.61168444", "0.6115745", "0.6115141", "0.6108036", "0.6103021" ]
0.8324789
0
Returns the user group table name.
Возвращает имя таблицы пользовательской группы.
public function getUserGroupTable(): string { return $this->wpDatabase->prefix . self::USER_GROUP_TABLE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUsergroupsTable() : string\n\t{\n\t\treturn static::$usergroups_table;\n\t}", "protected function getRuleGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_rule_group')\n ->getMetaData()\n ->getName();\n \n }", "protected function getScoreGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_score_group')\n ->getMetaData()\n ->getName(); \n \n }", "public function getUserGroupToObjectTable(): string\n {\n return $this->wpDatabase->prefix . self::USER_GROUP_TO_OBJECT_TABLE_NAME;\n }", "public function getUserGroupTable()\n {\n if (!$this->userGroupTable) {\n $sm = $this->getServiceLocator();\n\t\t\t$this->userGroupTable = $sm->get('Group\\Model\\UserGroupTable');\n }\n return $this->userGroupTable;\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_sonet_user2group';\n\t}", "protected function getTransactionAdjGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_transaction_group')\n ->getMetaData()\n ->getName();\n\n }", "public function tableName() {\n\t\treturn \"usergroups\";\n\t}", "public function tableName()\n {\n return '{{user_groups}}';\n }", "public function getGroupTable()\n {\n if (!$this->groupTable) {\n $sm = $this->getServiceLocator();\n\t\t\t$this->groupTable = $sm->get('Group\\Model\\GroupTable');\n }\n return $this->groupTable;\n }", "protected function getGroupName() {\n\t\treturn 'users';\n\t}", "public static function tableName()\n {\n return '{{%globalsnippets_groups}}';\n }", "public function getGroupName(){\n\n\t global $db;\n\n\t #see if user is guest, if so, set gorpu name as simply guest.\n\t\tif($this->user == \"guest\"){\n\t\t\t$getGroupName = 'guest';\n\n\t\t\treturn($getGroupName);\n\t\t}else{\n\t \t$db->SQL = \"SELECT Name FROM ebb_groups where id='\".$this->gid.\"' LIMIT 1\";\n\t\t\t$getGroupName = $db->fetchResults();\n\n\t\t\treturn($getGroupName['Name']);\n\t\t}\n\t}", "public function get_table_name(){\n return $this->table_name();\n }", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public function name() {\n\t\treturn $this->Session->read('Authorization.UserGroup.name');\n\t}", "public static function tableName()\n {\n return '{{%characteristic_groups}}';\n }", "protected function usersTableName()\n {\n $userModel = config('blockable.user');\n\n return (new $userModel)->getTable();\n }", "public function roleableTableName() {\n return '{{%user}}';\n }", "protected function getTable()\n {\n return 'kort.user';\n }", "private function usersTableName()\n {\n $userModel = config('follow.user');\n\n return (new $userModel)->getTable();\n }", "protected function table () : string {\n return $this->guessName();\n }", "protected function getUsersTableName()\n {\n $usersTableName = $this->grabPrefixedTableNameFor('users');\n return $usersTableName;\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getGroupName() {\n\t\treturn $this->Session->read('UserAuth.UserGroup.alias_name');\n\t}", "public function getFrontEndUserGroupColumnName() {}", "protected function getTable()\n {\n return Resource::db()->groupPlace()->getTable();\n }", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "protected function table(): string\n {\n return $this->tableName;\n }", "public function getUsersTable(): string\n {\n return $this->wpDatabase->users;\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "public function getTableName()\n\t{\n\t\treturn 'stat_unique';\n\t}", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public static function tablename() {\n return self::TABLE;\n }", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "protected static function get_table_name() {\n return null;\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public function getGroupTables($table_name)\n {\n return $this->renderView(\n __DIR__ . DIRECTORY_SEPARATOR . 'views/group_table.php',\n [\n 'center_id' => $this->centerID,\n 'token' => $this->token,\n 'station_group_tables' => $this->tableBaseUrl,\n 'station_group_tables_config' => $this->groupTablesConfig[$table_name],\n 'group_table_name' => $table_name\n ]\n );\n }", "protected function getRootTableRegistryName(): string\n {\n return 'Users';\n }", "public function getTable(): string\n {\n return $this->_table;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public function getUserGroupRequestTable()\n {\n if (!$this->userGroupRequestTable) {\n $sm = $this->getServiceLocator();\n $this->userGroupRequestTable = $sm->get('Group\\Model\\UserGroupRequestTable');\n }\n return $this->userGroupRequestTable;\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "public function getUsergroup() {}", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public static function getGroupName($_id) {\n global $lC_Database;\n\n $Qgroup = $lC_Database->query('select name from :table_administrators_groups where id = :id');\n $Qgroup->bindTable(':table_administrators_groups', TABLE_ADMINISTRATORS_GROUPS);\n $Qgroup->bindInt(':id', $_id);\n $Qgroup->execute();\n\n $data = $Qgroup->toArray();\n\n $Qgroup->freeResult();\n\n return $data['name'];\n }", "public static function getTableName()\n\t{\n\t\t//called from users, keyword self:: returns model\n\t\t// return self::$table;\n\t\t//called from users, keyword static:: returns users\n\t\treturn static::$table;\n\t}", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function getGroupName()\n {\n return $this->groupname;\n }", "public static function tableName(){\n return Yii::$app->params['tablePrefix'].'user';\n }", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "public function get_contexts_table_name() {\n\t\treturn $this::$dbtable_contexts;\n\t}", "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "function getGroupName($gid = null)\n\t{\n\t\t$id = ($gid == null) ? $this->user_getgroup() : $gid;\n\t\t$perms = $this->DB->database_select('groups', 'name', array('gid' => $id), 1);\n\t\treturn ($perms === false) ? false : $perms['name'];\n\t}", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "public function getGroupName() : string\n {\n return $this->groupName;\n }", "public function getTableName() {\n return $this->table;\n }", "protected function getSystemTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_system')\n ->getMetaData()\n ->getName(); \n \n }", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "protected function groupName($group=null) {\n\t\t$group = is_string($group) ? $group : $this->options['group']; \n\t\treturn $this->sanitize($group); \n\t}", "public function getGroupName()\n {\n switch($this->group) {\n case \"lower_secondary\":\n return \"Lower Secondary\";\n case \"upper_secondary\":\n return \"Upper Secondary\";\n case \"undergraduate\":\n return \"Undergraduate\";\n default:\n return \"Unknown\";\n }\n }", "public function getNameGroup(){\n return $this->nameGroup;\n }", "public static function getTableName()\n {\n return 'vbch_bonus_socialpush';\n }", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function getTableName() \n\t{\n\t\t$success = false;\n\t\t$phplist_prefix = PhplistHelperPhplist::getPrefix();\n\t\t$success = \"{$phplist_prefix}_user_attribute\";\n\t\treturn $success;\n\t}", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "public static function tableName(): string;", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "function getGroupName($gid)\n {\n return '';\n }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }" ]
[ "0.8697231", "0.7652109", "0.76379627", "0.752937", "0.74989116", "0.73160106", "0.7293503", "0.7084742", "0.70235115", "0.6982417", "0.6980866", "0.691531", "0.66813916", "0.66658306", "0.66650236", "0.6625764", "0.6617906", "0.6614103", "0.6558976", "0.65094286", "0.65042365", "0.6502232", "0.6463626", "0.6433961", "0.64309365", "0.6424786", "0.64145184", "0.6401039", "0.63602555", "0.6359326", "0.63345474", "0.6333177", "0.62985307", "0.629305", "0.6292192", "0.62856954", "0.62764686", "0.62742", "0.6262074", "0.62491167", "0.6236612", "0.62336034", "0.6233185", "0.62313807", "0.6230067", "0.6230067", "0.6230067", "0.62115556", "0.6205841", "0.6193602", "0.6169451", "0.6161904", "0.61426413", "0.6142378", "0.6139037", "0.6136969", "0.6126003", "0.6113473", "0.6107688", "0.6107688", "0.6107688", "0.6093852", "0.6093852", "0.60924435", "0.6080009", "0.6074616", "0.607415", "0.6067988", "0.60632706", "0.60613847", "0.6055704", "0.60539055", "0.60530734", "0.6052102", "0.6042761", "0.6042755", "0.603808", "0.60217994", "0.60191965", "0.6017612", "0.60080385", "0.5978497", "0.597514", "0.59706223", "0.5969042", "0.5965163", "0.5962203", "0.59610003", "0.5957764", "0.5954724", "0.59540856", "0.59535867", "0.5952619", "0.5943439", "0.5942974", "0.5936414", "0.5934276", "0.593276", "0.5924159", "0.59176064" ]
0.8728481
0
Returns the current blog id.
Возвращает текущий идентификатор блога.
public function getCurrentBlogId() { return $this->wpDatabase->blogid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_current_blog_id()\n {\n }", "function config_get_curr_blog_id () {\n\n\t\t global $current_blog;\n\n\t\t if ( isset( $current_blog ) ) {\n\n\t\t\t return $current_blog->blog_id;\n\t\t }\n\t\t else {\n\n\t\t\t return 1;\n\t\t }\n\t}", "public static function getSiteId()\n {\n return get_current_blog_id();\n }", "public function getblogId(): Uuid {\n\t\treturn ($this->blogId);\n\t}", "function fiorello_mikado_get_multisite_blog_id() {\n\t\tif ( is_multisite() ) {\n\t\t\treturn get_blog_details()->blog_id;\n\t\t}\n\t}", "public function getBloggerId()\r\n\t\t{\r\n\t\t\treturn $this->_blogger_id;\r\n\t\t}", "function ajan_get_root_blog_id() {\n\treturn (int) apply_filters( 'ajan_get_root_blog_id', (int) activitynotifications()->root_blog_id );\n}", "static public function getBlogPid(){\n\t\tstatic $cachedPid = 0;\n\n\t\tif (isset($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_t3blog_pi1.']['blogPid']) &&\n\t\t\t\tt3blog_div::testInt($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_t3blog_pi1.']['blogPid'])) {\n\t\t\treturn $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_t3blog_pi1.']['blogPid'];\n\t\t}\n\n\t\t// get pid\n\t\tif (isset($GLOBALS['alternativeBlogPid']) && $GLOBALS['alternativeBlogPid'] > 0) {\n\t\t\treturn intval($GLOBALS['alternativeBlogPid']);\n\t\t}\n\n\t\tif ($cachedPid != 0) {\n\t\t\t$pid = $cachedPid;\n\t\t}\n\t\telse {\n\t\t\t// get the Rootline\n\t\t\t$rootline = array_reverse($GLOBALS['TSFE']->tmpl->rootLine);\n\n\t\t\t// go through rootline until a blogPid is found\n\t\t\t$pidList = array();\n\t\t\tforeach ($rootline as $page) {\n\t\t\t\t$pidList[] = $page['uid'];\n\t\t\t}\n\t\t\t$pidString = implode(',', $pidList);\n\t\t\tlist($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid', 'pages',\n\t\t\t\t'uid IN (' . $pidString . ') AND module=\\'t3blog\\'' .\n\t\t\t\t$GLOBALS['TSFE']->sys_page->enableFields('pages'),\n\t\t\t\t'', 'FIELD(uid,' . $pidString . ')', 1);\n\t\t\tif (is_array($row)) {\n\t\t\t\t$pid = $row['uid'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$pid = $GLOBALS['TSFE']->id;\n\t\t\t}\n\t\t\t$cachedPid = $pid;\n\t\t}\n\t\treturn intval($pid);\n\t}", "function getBloggerId()\r\n {\r\n return $this->bloggerId;\r\n }", "function get_id_from_blogname($slug)\n {\n }", "public function get_id() {\n\t\treturn $this->_post->ID;\n\t}", "private function get_current_id() {\n\n\t\tstatic $id = null;\n\n\t\treturn $id ?: $id = \\get_queried_object_id();\n\t}", "private function getCurrentWebsiteId()\n {\n return $this->storeManager->getWebsite()->getId();\n }", "public function getblogProfileId(): Uuid {\n\t\treturn ($this->blogProfileId);\n\t}", "function get_blog_id_from_url($domain, $path = '/')\n {\n }", "function get_id_from_blogname( $slug ) {\n\t$current_network = get_network();\n\t$slug = trim( $slug, '/' );\n\n\tif ( is_subdomain_install() ) {\n\t\t$domain = $slug . '.' . preg_replace( '|^www\\.|', '', $current_network->domain );\n\t\t$path = $current_network->path;\n\t} else {\n\t\t$domain = $current_network->domain;\n\t\t$path = $current_network->path . $slug . '/';\n\t}\n\n\t$site_ids = get_sites( array(\n\t\t'number' => 1,\n\t\t'fields' => 'ids',\n\t\t'domain' => $domain,\n\t\t'path' => $path,\n\t) );\n\n\tif ( empty( $site_ids ) ) {\n\t\treturn null;\n\t}\n\n\treturn array_shift( $site_ids );\n}", "public static function id()\n {\n // can't use facades to access properties unfortunately!\n return query()->post->ID ?? null;\n }", "public function getPostId() {\n\t\treturn ($this->postId);\n\t}", "function get_post_ID() {\n\t\treturn $this->get_data( 'comment_post_ID' );\n\t}", "public function getBlogKey();", "public function show($blogid, $id)\n {\n return $id;\n }", "public function get_blog_ids()\n\t{\n\t\tglobal $wpdb;\n\t\treturn $wpdb->get_col( 'SELECT blog_id FROM '.$wpdb->blogs );\n\t}", "public function getPostId() {\n\t\treturn $this->post_id;\n\t}", "public function getPostId() {\n\n\t\treturn $this->postId;\n\t}", "protected function getCurrentPageIdFromCurrentSiteRoot() {}", "public function getPostId()\n {\n return $this->postId;\n }", "public function getPostId()\n {\n return $this->postId;\n }", "public function id() { return $this->post->ID; }", "public function get_id_from_blogname() {\n global $json_api;\n\n $this->_verify_admin();\n\n extract( $_REQUEST );\n\n if(!isset($blogname))\n $json_api->error(__(\"You must send the 'blogname' parameter.\"));\n\n $blog_id = get_id_from_blogname( $blogname );\n\n return array( \"blog_id\" => $blog_id );\n }", "public function getPostId()\n {\n return $this->post_id;\n }", "public function getCurrentSiteId()\n {\n if (empty($this->currentSiteId)) {\n $this->currentSiteId = $this->getCurrentSiteIdFromDomain();\n }\n\n return $this->currentSiteId;\n }", "public function getId() {\n \n $contact = $this->registry->registry('news');\n return $contact ? $contact->getId() : null;\n \n }", "public function column_id($blog)\n {\n }", "function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "public function getID(){\r\n\t\t\treturn $this->id_post;\r\n\t\t}", "function GetId ()\n {\n $this->username = isset( $_SESSION [ \"username\" ] ) ? sanitize_string( $_SESSION [ \"username\" ] ) : null;\n if ( !$this->username ) {\n $this->username = isset( $_COOKIE [ \"username\" ] ) ? sanitize_string( $_COOKIE [ \"username\" ] ) : null;\n }\n $this->mongo->setCollection( COLLECTION_ADMINS );\n $data = $this->mongo->dataFindOne( array( \"username\" => $this->username ) );\n return isset( $data[ \"_id\" ] ) ? $data[ \"_id\" ] : 0;\n }", "public function getPostId()\n {\n return $this->postId;\n }", "public function getPostID()\n {\n return $this->postID;\n }", "public function get_post_ID() {\n\t\treturn $this->post_id;\n\t}", "public function getPost_id()\n {\n return $this->post_id;\n }", "public function getPostID(): string\n {\n return $this->_postID;\n }", "public function getSiteId();", "public function get_site_id()\n {\n if ( ! $this->_site_id)\n {\n $this->_site_id = intval($this->EE->config->item('site_id'));\n }\n\n return $this->_site_id;\n }", "public function getIdPost()\n {\n return $this->idPost;\n }", "public static function id ()\n {\n return self::user()->getId();\n }", "public function getPostId(): Uuid {\n\t\treturn ($this->postId);\n\t}", "public function get_blog_id_from_url() {\n global $json_api;\n\n $this->_verify_admin();\n\n extract($_REQUEST);\n\n if(!isset($domain))\n $json_api->error(__(\"You must send the 'domain' parameter.\"));\n\n if(!isset($path))\n $path = '/';\n\n if( $blog_id = get_blog_id_from_url( $domain, $path ) )\n return array( \"blog_id\" => $blog_id );\n else\n $json_api->error(__(\"No blogs were found for this user.\"));\n }", "function aquamin_id() {\n\n\t$the_id = $GLOBALS[ 'aquamin_current_id' ] ?? null;\n\n\tif ( ! $the_id ) {\n\n\t\t// start with a default\n\t\t$the_id = get_the_id();\n\n\t\t// use page set as the \"posts page\" for blog-like templates\n\t\tif ( get_option( 'page_for_posts' )\n\t\t\t&& ( is_singular( 'post' )\n\t\t\t\t|| is_post_type_archive( 'post' )\n\t\t\t\t|| is_category()\n\t\t\t\t|| is_tag()\n\t\t\t\t|| is_home()\n\t\t\t)\n\t\t) {\n\t\t\t$the_id = get_option( 'page_for_posts' );\n\t\t// use a page with slug \"404-page\" for the 404 page id\n\t\t} elseif ( is_404() ) {\n\t\t\tif ( $post = get_page_by_path( '404-page', OBJECT, 'page' ) ) {\n\t\t\t\t$the_id = $post->ID;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS[ 'aquamin_current_id' ] = $the_id;\n\n\t}\n\n\treturn $the_id;\n}", "public function getBiblioId()\n {\n return $this->biblio_id;\n }", "public function id()\n\t{\n\t\t// @todo: _id should not be hard-coded (mongo-specific)\n\t\treturn $this->get('_id');\n\t}", "function getSiteId() {\n\t\treturn $this->getData('siteId');\n\t}", "public function getIdPost(): int\n {\n return $this->id_post;\n }", "private function getCurrentPageId()\n\t{\n\t // (get_option('page_for_posts') && is_archive() && !is_post_type_archive())) {\n\t // $page_id = get_option('page_for_posts');\n\t // } else {\n\t // $page_id = $this->post->ID;\n\n\t // if(class_exists('Woocommerce')) {\n\t // if(is_shop()) {\n\t // $page_id = get_option('woocommerce_shop_page_id');\n\t // }\n\t // }\n\t // }\n\n\t // return $page_id;\n\t}", "public function getPostId()\n {\n return $this->postId;\n }", "public function getIdPost()\n {\n return $this->id_post;\n }", "public function get_post_id() {\n\t\tglobal $post;\n\n\t\tif ( isset( $post ) && is_object( $post ) ) {\n\t\t\treturn $post->ID;\n\t\t}\n\n\t\tif ( ! empty( $_GET['post'] ) ) {\n\t\t\treturn absint( $_GET['post'] );\n\t\t}\n\n\t\tif ( ! empty( $_POST['ID'] ) ) {\n\t\t\treturn absint( $_POST['ID'] );\n\t\t}\n\n\t\tif ( ! empty( $_POST['post_ID'] ) ) {\n\t\t\treturn absint( $_POST['post_ID'] );\n\t\t}\n\n\t\treturn 0;\n\t}", "public function get_page_id() {\n\t\t\treturn $this->current_page_id;\n\t\t}", "public function for_blog($blog_id = '')\n {\n }", "private function _get_blog_path()\n\t{\n\t\tif (!self::is_multisite())\n\t\t\treturn '';\n\n\t\tif ($this->blog_path)\n\t\t\treturn $this->blog_path;\n\n\t\tglobal $current_blog;\n\t\t$blog_path = isset($current_blog->path) && '/' != $current_blog->path\n\t\t\t? $current_blog->path\n\t\t\t: '';\n\n\t\t// because `$blog_path` also contains the base, we need to remove the\n\t\t// base from it so we can process media source correctly later on\n\t\tif (!empty($this->base) && 0 === strpos($blog_path, '/' . $this->base . '/'))\n\t\t\t$blog_path = preg_replace('#/[^/]+#ui', '', $blog_path, 1);\n\n\t\t$this->blog_path = $blog_path;\n\t\treturn $blog_path;\n\t}", "public static function id()\n {\n return self::$id;\n }", "public function getPostID(){\n return $this->POST_ID;\n }", "public function getId()\n {\n return $this->currentId;\n }", "function az_get_ID() {\n\n global $post;\n\n $post_id = '';\n if ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) {\n\n if ( is_shop() || is_product_category() || is_product_tag() ) {\n $post_id = wc_get_page_id( 'shop' );\n } else {\n global $wp_query;\n $post_id = $wp_query->post->ID;\n }\n\n } else {\n\n if ( is_home() || is_archive() || is_search() || is_404() ) {\n\n if ( get_option( 'page_for_posts' ) ) {\n $post_id = get_option( 'page_for_posts' );\n } else if ( get_option( 'page_on_front' ) ) {\n $post_id = get_option( 'page_on_front' );\n } else {\n $post_id = get_current_blog_id();\n }\n\n } else {\n $post_id = $post->ID;\n }\n\n }\n\n return $post_id;\n\n}", "public function id()\n {\n return $this->_getAuthId();\n }", "private static function get_blog_ids() {\n\n\t\tglobal $wpdb;\n\n\t\t// get an array of blog ids\n\t\t$sql = \"SELECT blog_id FROM $wpdb->blogs\n\t\t\tWHERE archived = '0' AND spam = '0'\n\t\t\tAND deleted = '0'\";\n\n\t\treturn $wpdb->get_col( $sql );\n\n\t}", "private static function get_blog_ids() {\n\n\t\tglobal $wpdb;\n\n\t\t// get an array of blog ids\n\t\t$sql = \"SELECT blog_id FROM $wpdb->blogs\n\t\t\tWHERE archived = '0' AND spam = '0'\n\t\t\tAND deleted = '0'\";\n\n\t\treturn $wpdb->get_col( $sql );\n\n\t}", "public static function returnCategoryID($blog_id)\n\t{\n\t\treturn Blog::find($blog_id)->category_id;\n\t}", "function yt_get_post_id(){\n\n\tglobal $post, $wp_query;\n\n\t$post_id = isset( $post->ID ) ? $post->ID : 0;\n\n\tif( $wp_query->is_home && get_option('page_for_posts' ) )\n\t\t$post_id = get_option('page_for_posts' );\n\n\tif( yt_is_woocommerce() && wc_get_page_id('shop') )\n\t\t$post_id = wc_get_page_id('shop');\n\n\treturn $post_id;\n\n}", "function getPageID() {\n \tglobal $post;\n \t$postid = $post->ID;\n \t$queried_object = get_queried_object();\n \tif(is_home() && get_option('page_for_posts')) {\n\t\t$postid = get_option('page_for_posts');\n \t}\n \telse if (is_front_page()) {\n \t\t$postid = get_option( 'page_on_front' );\n \t}\n \telse if (is_archive()) {\n \t\t$postid = get_queried_object();\n \t}\n \telse if ( $queried_object ) {\n \t$postid = $queried_object->ID;\n \t}\n\n \treturn $postid;\n}", "protected function getLastPostId() {\n $this->lastPostId = Post::select('habr_id')->orderBy('unix_time','desc')->first()->habr_id;\n }", "public function getIdentifier()\n {\n return $this->slug ?: $this->id;\n }", "static function id()\n\t{\n\t\treturn self::data('id');\n\t}", "public function getID()\n {\n return $this->banner_campaign_id;\n }", "public function get_id () {\r\n\t\treturn $this->id;\r\n\t}", "static public function get_current_blog_data() {\n\t\t$host = Util_Environment::host();\n\n\t\t// subdomain\n\t\tif ( Util_Environment::is_wpmu_subdomain() ) {\n\t\t\t$blog_data = Util_WpmuBlogmap::try_get_current_blog_data( $host );\n\t\t\tif ( is_null( $blog_data ) )\n\t\t\t\t$GLOBALS['w3tc_blogmap_register_new_item'] = $host;\n\n\t\t\treturn $blog_data;\n\t\t} else {\n\t\t\t// try subdir blog\n\t\t\t$url = $host . $_SERVER['REQUEST_URI'];\n\t\t\t$pos = strpos( $url, '?' );\n\t\t\tif ( $pos !== false )\n\t\t\t\t$url = substr( $url, 0, $pos );\n\n\t\t\t$url = rtrim( $url, '/' );\n\t\t\t$start_url = $url;\n\n\t\t\tfor ( ;; ) {\n\t\t\t\t$blog_data = Util_WpmuBlogmap::try_get_current_blog_data( $url );\n\t\t\t\tif ( !is_null( $blog_data ) )\n\t\t\t\t\treturn $blog_data;\n\t\t\t\t$pos = strrpos( $url, '/' );\n\t\t\t\tif ( $pos === false )\n\t\t\t\t\tbreak;\n\n\t\t\t\t$url = rtrim( substr( $url, 0, $pos ), '/' );\n\t\t\t}\n\n\t\t\t$GLOBALS['w3tc_blogmap_register_new_item'] = $start_url;\n\t\t\treturn null;\n\t\t}\n\t}", "function refresh_blog_details( $blog_id = 0 ) {\n\t$blog_id = (int) $blog_id;\n\tif ( ! $blog_id ) {\n\t\t$blog_id = get_current_blog_id();\n\t}\n\n\tclean_blog_cache( $blog_id );\n}", "public function get_id();", "public function get_id();", "function getArticleId() {\r\n\t\tif (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');\r\n\t\treturn $this->getSubmissionId();\r\n\t}", "public function getLeadId() {\n\t\treturn $this->container['lead_id'];\n\t}", "public function getId() {\n return $this->get('id', 'news');\n }", "public function id() {\r\n return $this->orm->id();\r\n }", "public function get_id() {\n\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\n\t\treturn $this->id;\n\t}", "public function get_site_id()\n {\n }", "public function get_site_id()\n {\n }", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public static function getActualId()\n {\n if (self::$context->getName() == 'citation'\n && self::getCitationItem()!== false) {\n return self::getCitationItem()->get('id');\n }\n\n return self::getData()->getVariable('id');\n }", "public static function getID()\n {\n return self::getInstance()->_getID();\n }", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "public function getBlog()\n {\n return $this->hasOne(Post::className(), ['id' => 'blogId']);\n }", "public static function getSiteId(){\n return 1;\n\n }", "function getSiteId()\n {\n return $this->_props['SiteId'];\n }", "public function get_id() {\n return $this->id;\n }" ]
[ "0.8948581", "0.8301314", "0.8203324", "0.79924566", "0.7289102", "0.7280569", "0.7257452", "0.7106511", "0.7058306", "0.6932647", "0.68679166", "0.6647498", "0.66309077", "0.6602271", "0.659435", "0.6576548", "0.65586424", "0.6540486", "0.6509589", "0.64931023", "0.64872694", "0.64685225", "0.64564264", "0.64558625", "0.64515007", "0.6447942", "0.6447942", "0.6442191", "0.6435979", "0.6426339", "0.6370664", "0.63414073", "0.63375294", "0.6321993", "0.6291119", "0.6286992", "0.62848145", "0.6265463", "0.62643975", "0.6262924", "0.6247465", "0.62385714", "0.62256163", "0.6223178", "0.6213685", "0.62016577", "0.61986923", "0.6195564", "0.61937267", "0.6185288", "0.618495", "0.6181554", "0.6171314", "0.6165625", "0.6100533", "0.6083386", "0.6074649", "0.60742754", "0.60686976", "0.60473466", "0.6017238", "0.60143375", "0.60078377", "0.6003647", "0.59987646", "0.59987646", "0.599798", "0.5994249", "0.59941036", "0.5990574", "0.5985058", "0.59805936", "0.5975615", "0.5962745", "0.59620786", "0.5959239", "0.5951987", "0.5951987", "0.5951768", "0.59496695", "0.59434325", "0.59398824", "0.5939704", "0.5939704", "0.5937256", "0.5937256", "0.59370667", "0.59370667", "0.59370667", "0.59370667", "0.59351885", "0.59290683", "0.5925596", "0.59244025", "0.59244025", "0.59244025", "0.5920003", "0.5917822", "0.59169954", "0.5914628" ]
0.9044852
0
Returns the blogs table name.
Возвращает имя таблицы blogs.
public function getBlogsTable(): string { return $this->wpDatabase->blogs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "public function get_table_name(){\n return $this->table_name();\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_forum2site';\n\t}", "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public function getTableName() {\n\t\treturn 'wcf'.WCF_N.'_linklist_link';\n\t}", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "protected function table () : string {\n return $this->guessName();\n }", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "public static function getTableName()\n\t{\n\t\treturn 'b_replica_log';\n\t}", "static function tableName() {\n global $wpdb;\n return sprintf( '%s%s', $wpdb->prefix, WPXSMARTSHOP_DB_TABLENAME_STATS );\n }", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "private function getTableName()\n {\n $class = get_class($this);\n\n $mem = new Cache();\n if ($tableName = $mem->get($class . '-table-name')) {\n return $tableName;\n }\n\n $break = explode('\\\\', $class);\n $ObjectName = end($break);\n $className = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $ObjectName));\n $tableName = Inflect::pluralize($className);\n\n $mem->add($class . '-table-name', $tableName, 1440);\n\n return $tableName;\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public static function getTableName()\n {\n return 'Books';\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public static function getTableName()\n\t{\n\t\treturn 'mls_listbooks_book';\n\t}", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_im_last_search';\n\t}", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "public function getTableName()\n {\n return $this->table_name;\n }", "public static function tablename() {\n return self::TABLE;\n }", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public static function table_name() {\n $table_name = strtolower(get_called_class());\n\n if (!in_array($table_name, ApplicationSql::tablenames()))\n throw new TableNotFoundException(\"Veritabanında böyle bir tablo mevcut değil\", $table_name);\n\n return $table_name;\n }", "public static function getTableName()\n {\n return 'b_report_visual_report_widget';\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public function getTable(): string\n {\n return config('checklists.scaffolding.db_table');\n }", "static function get_table_name()\r\n {\n return 'category';\r\n }", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "public function getTableName();", "public function getTableName();", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "public function detailTableName() : string\n {\n return $this->detailTableName;\n }", "function getTableName(): string;", "public static function tablename() {\n\t\t$name = get_called_class();\n\t\t$pos = strrpos($name, '\\\\');\n\t\tif ($pos === false) {\n\t\t\treturn $name;\n\t\t}\n\t\treturn substr($name, $pos + 1);\n\t}", "function get_table_name($table_name)\n{\n\tglobal $project_vars;\n\treturn $project_vars['mysql_table_prefix'] . $table_name;\n}", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public function getTableName() ;", "public function getTable(): string\n {\n return config('nova-blog.tables.comments', parent::getTable());\n }", "protected function table(): string\n {\n return $this->tableName;\n }", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "function simple_lineup__get_db_table_name($wpdb=null){\n\tif($wpdb === null){\n\t\tglobal $wpdb;\n\t}\n\n\treturn $wpdb->prefix . SIMPLE_LINEUP__DB_TABLE_NAME;\n}", "public function getTable() {\n if ( isset( $this->table ) ) {\n return $this->table;\n }\n\n $table = str_replace( '\\\\', '', snake_case( str_plural( class_basename( $this ) ) ) );\n\n return $this->getConnection()->db->prefix . $table ;\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_timeman_monitor_comment';\n\t}", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace(\n '\\\\',\n '',\n Str::snake(Str::plural(class_basename(self::class)))\n );\n }\n\n return $this->table;\n }", "public function table_name($name=NULL){\n $table_name = $this->config->item('db_table_prefix').$this->table_name;\n if(NULL!=$name){\n $table_name = $this->config->item('db_table_prefix').$name;\n }\n return $table_name;\n }", "public function getTblName()\n {\n return $this->tbl_name;\n }", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName() {}", "public function getTableName() {}", "public function getTableName()\r\n {\r\n return $this->tableName;\r\n }", "public static function tableName(): string;", "public function getDrupalTableName(string $drupal_default_prefix, string $db_table_name): string;", "public function getPostsTable(): string\n {\n return $this->wpDatabase->posts;\n }", "public function getDbTableName(string $drupal_prefix, string $drupal_table_name): string;", "public function getTableName() {\n return $this->table;\n }", "public static function getTableName() {\n return self::$tableName;\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}" ]
[ "0.77284396", "0.75868684", "0.7393831", "0.73450106", "0.732149", "0.73079574", "0.73074603", "0.72429895", "0.7208636", "0.7201507", "0.72009945", "0.71834207", "0.71639514", "0.7162835", "0.71408516", "0.7114206", "0.71066123", "0.70922893", "0.70774376", "0.7065394", "0.7060857", "0.7057276", "0.7054321", "0.704946", "0.7045254", "0.7023308", "0.70155984", "0.7012967", "0.7004759", "0.7000781", "0.7000294", "0.6997727", "0.6997727", "0.6997727", "0.6996051", "0.69887465", "0.6986299", "0.696882", "0.69456446", "0.6934029", "0.6924035", "0.6921902", "0.6920575", "0.69188744", "0.69168794", "0.6912211", "0.69103086", "0.69092536", "0.69057834", "0.69034994", "0.68973035", "0.68816835", "0.6868445", "0.685049", "0.68343437", "0.68248034", "0.6823686", "0.6803448", "0.6803448", "0.6801404", "0.6791919", "0.67911327", "0.6790734", "0.6790592", "0.6788948", "0.6788496", "0.67781264", "0.67729044", "0.67639697", "0.6759571", "0.675318", "0.6749499", "0.67339534", "0.6726012", "0.67228436", "0.6717955", "0.67164844", "0.67161316", "0.6709826", "0.6705963", "0.66970634", "0.66970634", "0.66970634", "0.66970634", "0.6693696", "0.6693599", "0.6693599", "0.6693599", "0.6690211", "0.668589", "0.668589", "0.66823405", "0.66786575", "0.66752267", "0.666822", "0.6660402", "0.666005", "0.66594696", "0.66538143", "0.66504097" ]
0.8447861
0
Returns the posts table name.
Возвращает имя таблицы posts.
public function getPostsTable(): string { return $this->wpDatabase->posts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public function get_table_name(){\n return $this->table_name();\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "protected function table () : string {\n return $this->guessName();\n }", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getBlogsTable(): string\n {\n return $this->wpDatabase->blogs;\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "protected function table(): string\n {\n return $this->tableName;\n }", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public static function tablename() {\n return self::TABLE;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getName() {\n\t\treturn 'posts';\n\t}", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "protected static function get_table_name() {\n return null;\n }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "public function detailTableName() : string\n {\n return $this->detailTableName;\n }", "static function tableName() {\n global $wpdb;\n return sprintf( '%s%s', $wpdb->prefix, WPXSMARTSHOP_DB_TABLENAME_STATS );\n }", "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTableName() {\n return $this->table;\n }", "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "function simple_lineup__get_db_table_name($wpdb=null){\n\tif($wpdb === null){\n\t\tglobal $wpdb;\n\t}\n\n\treturn $wpdb->prefix . SIMPLE_LINEUP__DB_TABLE_NAME;\n}", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function Get_Notes_Table() {\n\t\tglobal $wpdb; \n // Submission table name (including wp prefix)\n return $wpdb->prefix.VCFF_REPORTS_SQL_NOTES_TBL; \n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public function\n\t\tget_table_name()\n\t{\n\t\tif (!isset($this->table_name)) {\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\t$this->table_name = (string)$sxe->table['name'];\n\t\t}\n\t\t\n\t\treturn $this->table_name;\n\t}", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "public function getTableName() {\n return $this->mapping['table'];\n }", "public static function getTableName() {\n return self::$tableName;\n }", "private static function getQueueTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_QUEUE_TABLE_NAME;\n }", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "public function getTableName()\r\n {\r\n return $this->tableName;\r\n }", "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "public function getTableName()\n {\n return $this->_tableName;\n }", "public function get_events_table_name() {\n\t\treturn $this::$dbtable;\n\t}", "public static function name()\n {\n return with(new static)->getTable();\n }", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "static function get_table_name()\r\n {\n return 'category';\r\n }", "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public static function getTableName(string $language) : string\n {\n global $wpdb;\n return strtolower($wpdb->posts . '_' . $language);\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "public function tableName() \n {\n return $this->tableName;\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public function getTableName(){\n\t\treturn $this->tableName;\n\t}", "public function getTableSingular()\n {\n if (($table = Str::snake(class_basename($this))) == 'model' && $this->table) {\n $table = Str::singular($this->table);\n }\n\n return $table;\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "function getTableName() {\n return $this->tableName;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return config('nova-blog.tables.comments', parent::getTable());\n }", "public function getTable(): string\n {\n return $this->_table;\n }", "public static function getTableName()\n {\n return static::getConfig()[self::CONFIG_TABLE_NAME];\n }", "public function getTableName(){\n return $this->tableName;\n }", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public static function getTableName()\n\t{\n\t\treturn 'b_forum2site';\n\t}", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "function get_table_name($table_name)\n{\n\tglobal $project_vars;\n\treturn $project_vars['mysql_table_prefix'] . $table_name;\n}", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }" ]
[ "0.8391971", "0.76689917", "0.75244534", "0.7472105", "0.73997366", "0.73837143", "0.73707664", "0.736646", "0.7357786", "0.73309463", "0.72773397", "0.7262333", "0.7258643", "0.7247659", "0.72397393", "0.72073734", "0.7192338", "0.71497434", "0.71406394", "0.7041003", "0.70130974", "0.70130974", "0.70130974", "0.6995565", "0.69598645", "0.6956827", "0.6950484", "0.69381654", "0.69349265", "0.69349134", "0.6932119", "0.6918026", "0.68734205", "0.68724215", "0.68553376", "0.68553376", "0.68553376", "0.6854454", "0.68469656", "0.6843882", "0.6824961", "0.68121725", "0.68046874", "0.6799405", "0.6799035", "0.67788666", "0.67655057", "0.67455935", "0.6729653", "0.6728559", "0.66968673", "0.66921496", "0.66885036", "0.6688118", "0.6688118", "0.6688118", "0.6688118", "0.6686315", "0.6675334", "0.66743433", "0.66721445", "0.66691494", "0.66548264", "0.66526204", "0.6649836", "0.6640417", "0.66395986", "0.66324735", "0.6626728", "0.6619001", "0.66094196", "0.6606324", "0.66058034", "0.6601572", "0.6601572", "0.6596864", "0.6586465", "0.6582658", "0.6579569", "0.6575263", "0.6572443", "0.656843", "0.65621716", "0.65459", "0.6544019", "0.6538422", "0.65381336", "0.65306664", "0.65250146", "0.65250146", "0.65236074", "0.6515069", "0.6511901", "0.6504823", "0.650275", "0.64938295", "0.64912224", "0.6490878", "0.648928", "0.6484245" ]
0.8467165
0
Returns the term_relationships table name.
Возвращает имя таблицы term_relationships.
public function getTermRelationshipsTable(): string { return $this->wpDatabase->term_relationships; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermTaxonomyTable(): string\n {\n return $this->wpDatabase->term_taxonomy;\n }", "public function getRelatedTableName()\n\t{\n\t\tif ($this->related) {\n\t\t\tif (\\App\\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {\n\t\t\t\treturn [$this->fieldModel->getTableName() . $this->related['sourceField'] . '.' . $this->fieldModel->getColumnName()];\n\t\t\t}\n\t\t\t$relatedModuleModel = \\Vtiger_Module_Model::getInstance($this->related['relatedModule']);\n\t\t\t$fieldModel = $relatedModuleModel->getField($this->related['relatedField']);\n\t\t\treturn $this->getRelatedTables($fieldModel->getReferenceList(), $this->related['relatedField']);\n\t\t}\n\t\treturn $this->getRelatedTables($this->getTables(), $this->fieldModel->getName());\n\t}", "private function relationshipsTableName()\n {\n return config('follow.table_name');\n }", "protected function relationshipsTableName()\n {\n return config('blockable.table_name', 'block_relationships');\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "public function getRelationTableName()\n {\n if (!empty($this->relationTableName)) {\n return $this->relationTableName;\n }\n $relationTableName = 'tx_' . str_replace('_', '', $this->domainObject->getExtension()->getExtensionKey()) . '_';\n $relationTableName .= strtolower($this->domainObject->getName());\n\n if ($this->useExtendedRelationTableName) {\n $relationTableName .= '_' . strtolower($this->getName());\n }\n $relationTableName .= '_' . strtolower($this->getForeignModelName()) . '_mm';\n\n return $relationTableName;\n }", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "protected function getJoinTable(): string\n {\n return \"{$this->define(SchemaInterface::TABLE)} AS {$this->getAlias()}\";\n }", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function _get_relationship_table($prefix, $table, $model)\r\n\t{\r\n\t\t$relationship_table = '';\r\n\r\n\t\t// Check if self referencing\r\n\t\tif ($this->table == $table)\r\n\t\t{\r\n\t\t\t$relationship_table = (plural($this->model) < plural($model)) ? plural($this->model) . '_' . plural($model) : plural($model) . '_' . plural($this->model);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$relationship_table = ($this->table < $table) ? $this->table . '_' . $table : $table . '_' . $this->table;\r\n\t\t}\r\n\r\n\t\t// Remove all occurances of the prefix from the relationship table\r\n\t\t$relationship_table = str_replace($prefix, '', str_replace($this->prefix, '', $relationship_table));\r\n\r\n\t\t// So we can prefix the beginning, using the join prefix instead, if it is set\r\n\t\t$relationship_table = (empty($this->join_prefix)) ? $this->prefix . $relationship_table : $this->join_prefix . $relationship_table;\r\n\r\n\t\treturn $relationship_table;\r\n\t}", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "protected function getRelationTable(string $relation) : string\n {\n return $this->builder\n ->getModel()\n ->{$relation}()\n ->getRelated()\n ->getTable();\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public function get_table_name(){\n return $this->table_name();\n }", "function getTableFullName()\n {\n return implode(' ', [$this->table_prefix . $this->table_name, $this->table_alias]);\n }", "protected function getChainTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_rule_chain')\n ->getMetaData()\n ->getName();\n \n }", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_documentgenerator_region_phrase';\n\t}", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public function getTableName() {\n\t\treturn 'wcf'.WCF_N.'_linklist_link';\n\t}", "public function getRelationTableForJoin($fullName) {\n if (!$this->tableName) {\n $class = $this->model;\n $this->tableName = $class::getTableName();\n }\n return \"`\" . $this->tableName . \"` as `\" . ($this->tableAlias = str_replace('.', '_', $fullName)) . \"`\";\n }", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "public function getTablesNames()\n {\n return [\n 'users',\n 'roles',\n 'role_user',\n 'permissions',\n 'permission_role',\n 'permission_user',\n ];\n }", "public function getTableNames()\n {\n $query = \"\n SELECT DISTINCT\n TABLE_NAME\n FROM INFORMATION_SCHEMA.TABLES\n WHERE\n TABLE_TYPE='BASE TABLE' AND\n TABLE_SCHEMA = ?\n ORDER BY TABLE_NAME\n \";\n\n $query = \"\n select\n RDB$RELATION_NAME as TABLE_NAME\n from RDB$RELATIONS\n where\n ((RDB$RELATION_TYPE = 0) or\n (RDB$RELATION_TYPE is null)) and\n (RDB$SYSTEM_FLAG = 0)\n order by (RDB$RELATION_NAME)\n \";\n\n\n $statement = $this->pdo->prepare($query);\n $statement->execute(array($this->getSchema()));\n\n $tableNames = array();\n while ($tableName = $statement->fetchColumn(0)) {\n $tableNames[] = $tableName;\n }\n\n return $tableNames;\n }", "protected function table () : string {\n return $this->guessName();\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public function getRelationshipName() {\n\t\treturn self::RelationshipNamePrefix . $this->getToName() . self::RelationshipNameSuffix;\n\t}", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace(\n '\\\\',\n '',\n Str::snake(Str::plural(class_basename(self::class)))\n );\n }\n\n return $this->table;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public static function getAnalyticsRelationTable(): string\n {\n return config('laravel-server-analytics.analytics_relation_table');\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "protected function getRuleTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_rule')\n ->getMetaData()\n ->getName();\n \n }", "public function getDbTableName(string $drupal_prefix, string $drupal_table_name): string;", "public function getDrupalTableName(string $drupal_default_prefix, string $db_table_name): string;", "public static function getTablePrefix()\n {\n return 'prefix_';\n }", "function getAdditionalTableName()\n\t{\n\t\treturn self::ADDITIONAL_TBL_NAME;\n\t}", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "protected function get_join_table_name($first_table, $second_table) {\n\t\t\tif (is_array($this->has_and_belongs_to_many[$second_table])\n\t\t\t\t&& array_key_exists('join_table', $this->has_and_belongs_to_many[$second_table]))\n\t\t\t{\n\t\t\t\treturn Config()->DB_PREFIX . $this->has_and_belongs_to_many[$second_table]['join_table'];\n\t\t\t} else {\n\t\t\t\t$tables = array();\n\t\t\t\t$tables[\"one\"] = str_replace(Config()->DB_PREFIX, \"\", $first_table);\n\t\t\t\t$tables[\"many\"] = str_replace(Config()->DB_PREFIX, \"\", $second_table);\n\t\t\t\t@asort($tables);\n\t\t\t\treturn Config()->DB_PREFIX . @implode(\"_\", $tables);\n\t\t\t}\n\t\t}", "protected function getTransactionAdjRuleTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_transaction_rule')\n ->getMetaData()\n ->getName();\n\n }", "public static function getTableName()\n {\n return 'b_disk_right';\n }", "public function detailTableName() : string\n {\n return $this->detailTableName;\n }", "public function getTable() {\n if ( isset( $this->table ) ) {\n return $this->table;\n }\n\n $table = str_replace( '\\\\', '', snake_case( str_plural( class_basename( $this ) ) ) );\n\n return $this->getConnection()->db->prefix . $table ;\n }", "private static function getFullyQualifiedTableName() {\n $database_name = static::getDatabaseName();\n $table_name = static::getTableName();\n return static::genFullyQualifiedTableName($database_name, $table_name);\n }", "public function getRelationshipName();", "public function getTableName( )\n {\n return $this->table_name;\n }", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "public function getTable() {\n\t\tif (!is_object($this->obj) && class_exists($this->obj) && \\System\\Library\\StdLib::is_interface_of($this->obj, \"\\Library\\Database\\LinqObject\")) {\n\t\t\t$o = $this->obj;\n\t\t\treturn \"`\".$o::getTable(true).\"`\";\n\t\t} else {\n\t\t\treturn \"`\".$this->name.\"`\";\n\t\t}\n\t}", "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "private function getTableNames()\n {\n $this->tableNames = [\n 'eav_attribute' => $this->resource->getTableName('eav_attribute'),\n 'EnitureModules' => $this->resource->getTableName('EnitureModules'),\n ];\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "static function get_table_name()\r\n {\n return 'category';\r\n }", "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "public function getTablePrefix();", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function getTablesName()\n {\n return array_keys($this->tables);\n }", "static function tableName() {\n global $wpdb;\n return sprintf( '%s%s', $wpdb->prefix, WPXSMARTSHOP_DB_TABLENAME_STATS );\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "public function getTableName()\n {\n return $this->parentTable->getName();\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "protected static function get_table_name() {\n return null;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public function getTable()\n {\n if (isset($this->tableWithPrefix)) {\n return $this->tableWithPrefix;\n }\n\n if ($this instanceof Pivot && ! isset($this->table)) {\n $this->setTable($this->getPrefix() . str_replace(\n '\\\\',\n '',\n Str::snake(Str::singular(class_basename($this)))\n ));\n\n return $this->tableWithPrefix;\n }\n\n return $this->getPrefix() . Str::snake(Str::pluralStudly(class_basename($this)));\n }", "public static function tablename() {\n return self::TABLE;\n }", "protected function table(): string\n {\n return $this->tableName;\n }", "public function getProjectsCategoriesTableName():string {\n return with(new ProjectsCategories)->getTable();\n }", "public function _get_table_names() {\n // Must be overridden.\n return array();\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public function getTable() {\n return \"general_activity_has_relation_product_discount\";\n }", "public function getBlogsTable(): string\n {\n return $this->wpDatabase->blogs;\n }", "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "public function getDbFullQualifiedTableName($drupal_table_name);", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_im_last_search';\n\t}" ]
[ "0.77853", "0.70976126", "0.7044314", "0.69772583", "0.6680528", "0.6655438", "0.6631901", "0.6583348", "0.6569672", "0.6517246", "0.6428351", "0.6422322", "0.6401839", "0.6369125", "0.6318498", "0.6302701", "0.63002574", "0.6297165", "0.62906045", "0.6226295", "0.62039226", "0.6191588", "0.6157454", "0.6149455", "0.6131285", "0.6125517", "0.6124322", "0.611993", "0.6119877", "0.61020064", "0.6090788", "0.60893893", "0.60702145", "0.6068366", "0.6058448", "0.6028215", "0.6013562", "0.60044324", "0.60022813", "0.6000777", "0.59994084", "0.5983025", "0.5980722", "0.5957261", "0.5955957", "0.5949392", "0.59421426", "0.59421426", "0.59421426", "0.5940444", "0.5937638", "0.5931341", "0.59222394", "0.5919174", "0.59178805", "0.59152627", "0.59076834", "0.5889916", "0.58897245", "0.58871424", "0.5884841", "0.58829737", "0.58827335", "0.5882727", "0.5881423", "0.58774835", "0.58769673", "0.5865222", "0.5863644", "0.58633286", "0.5860175", "0.58583724", "0.58569235", "0.5854295", "0.58500534", "0.5849155", "0.5847964", "0.58469665", "0.5843489", "0.584122", "0.5838227", "0.58343965", "0.5831498", "0.58280456", "0.58221394", "0.58221394", "0.58221394", "0.58218455", "0.58208776", "0.5819427", "0.5813044", "0.581096", "0.5804578", "0.5788632", "0.5760988", "0.57601404", "0.5758416", "0.5756292", "0.57542396", "0.574603" ]
0.8608707
0
Returns the term_taxonomy table name.
Возвращает имя таблицы term_taxonomy.
public function getTermTaxonomyTable(): string { return $this->wpDatabase->term_taxonomy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermRelationshipsTable(): string\n {\n return $this->wpDatabase->term_relationships;\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "public function get_table_name(){\n return $this->table_name();\n }", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "static function tableName() {\n global $wpdb;\n return sprintf( '%s%s', $wpdb->prefix, WPXSMARTSHOP_DB_TABLENAME_STATS );\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "protected function table () : string {\n return $this->guessName();\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "static function get_table_name()\r\n {\n return 'category';\r\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "public function getDrupalTableName(string $drupal_default_prefix, string $db_table_name): string;", "public static function tablename() {\n return self::TABLE;\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "function getTableFullName()\n {\n return implode(' ', [$this->table_prefix . $this->table_name, $this->table_alias]);\n }", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace(\n '\\\\',\n '',\n Str::snake(Str::plural(class_basename(self::class)))\n );\n }\n\n return $this->table;\n }", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "public function taxonomy() {\n $parents = array_reverse( $this->get_all_parents( $this->id ) );\n $taxonomy = '';\n\n foreach ( $parents as $category ) {\n if ( !empty( $taxonomy ) )\n $taxonomy .= ' > ';\n\n $taxonomy .= $category->name;\n }\n\n if ( !empty( $taxonomy ) )\n $taxonomy .= ' > ';\n\n return $taxonomy . $this->name;\n }", "protected static function get_table_name() {\n return null;\n }", "public static function getTableName()\n {\n return 'b_disk_right';\n }", "public function getDbTableName(string $drupal_prefix, string $drupal_table_name): string;", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTable() {\n if ( isset( $this->table ) ) {\n return $this->table;\n }\n\n $table = str_replace( '\\\\', '', snake_case( str_plural( class_basename( $this ) ) ) );\n\n return $this->getConnection()->db->prefix . $table ;\n }", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "public function getTableName()\n\t\t{\n\t\t\treturn 'cfe_action_type';\n\t\t}", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "function simple_lineup__get_db_table_name($wpdb=null){\n\tif($wpdb === null){\n\t\tglobal $wpdb;\n\t}\n\n\treturn $wpdb->prefix . SIMPLE_LINEUP__DB_TABLE_NAME;\n}", "public function taxonomyName($taxonomy = null);", "public static function getTableName()\n\t{\n\t\treturn 'b_documentgenerator_region_phrase';\n\t}", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public static function getTablePrefix()\n {\n return 'prefix_';\n }", "public function getProjectsCategoriesTableName():string {\n return with(new ProjectsCategories)->getTable();\n }", "public function get_contexts_table_name() {\n\t\treturn $this::$dbtable_contexts;\n\t}", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "protected function table(): string\n {\n return $this->tableName;\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_catalog_discount';\n\t}", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public function getRelatedTableName()\n\t{\n\t\tif ($this->related) {\n\t\t\tif (\\App\\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {\n\t\t\t\treturn [$this->fieldModel->getTableName() . $this->related['sourceField'] . '.' . $this->fieldModel->getColumnName()];\n\t\t\t}\n\t\t\t$relatedModuleModel = \\Vtiger_Module_Model::getInstance($this->related['relatedModule']);\n\t\t\t$fieldModel = $relatedModuleModel->getField($this->related['relatedField']);\n\t\t\treturn $this->getRelatedTables($fieldModel->getReferenceList(), $this->related['relatedField']);\n\t\t}\n\t\treturn $this->getRelatedTables($this->getTables(), $this->fieldModel->getName());\n\t}", "function ajan_core_get_table_prefix() {\n\tglobal $wpdb;\n\n\treturn apply_filters( 'ajan_core_get_table_prefix', $wpdb->base_prefix );\n}", "public static function get_table() {\n\t\treturn 'antibiotics_and_how_to_use_them';\n\t}", "public function getDbFullQualifiedTableName($drupal_table_name);", "public function\n\t\tget_table_name()\n\t{\n\t\tif (!isset($this->table_name)) {\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\t$this->table_name = (string)$sxe->table['name'];\n\t\t}\n\t\t\n\t\treturn $this->table_name;\n\t}", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function tn($tab)\n {\n $db = $this->getDb();\n return $db instanceof Connection ? $db->tableName($tab) : '{{%' . $tab . '}}';\n }", "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "protected function getSystemTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_system')\n ->getMetaData()\n ->getName(); \n \n }", "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "public function getTable()\n\t{\n\t\tif (isset($this->table)) return $this->table;\n\n\t\treturn $this->table = str_replace('\\\\', '', snake_case(str_plural(class_basename($this))));\n\t}", "public function getTableName() {\n return $this->mapping['table'];\n }", "public function getTable(): string\n {\n return $this->_table;\n }", "public function getRelationTableName()\n {\n if (!empty($this->relationTableName)) {\n return $this->relationTableName;\n }\n $relationTableName = 'tx_' . str_replace('_', '', $this->domainObject->getExtension()->getExtensionKey()) . '_';\n $relationTableName .= strtolower($this->domainObject->getName());\n\n if ($this->useExtendedRelationTableName) {\n $relationTableName .= '_' . strtolower($this->getName());\n }\n $relationTableName .= '_' . strtolower($this->getForeignModelName()) . '_mm';\n\n return $relationTableName;\n }", "public function getTableName() {\n return $this->table;\n }", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "public static function tablename() {\n\t\t$name = get_called_class();\n\t\t$pos = strrpos($name, '\\\\');\n\t\tif ($pos === false) {\n\t\t\treturn $name;\n\t\t}\n\t\treturn substr($name, $pos + 1);\n\t}", "public static function getTableName()\n\t{\n\t\treturn 'b_im_last_search';\n\t}", "public function getTablesName()\n {\n return array_keys($this->tables);\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public static function tableName()\n {\n return '{{dbm002.a0001}}';\n }", "function get_table_name($table_name)\n{\n\tglobal $project_vars;\n\treturn $project_vars['mysql_table_prefix'] . $table_name;\n}" ]
[ "0.7485152", "0.73360676", "0.72402406", "0.7171547", "0.70886636", "0.70872533", "0.70712566", "0.7019449", "0.69105506", "0.69039214", "0.68900436", "0.6882208", "0.6785168", "0.67687535", "0.6744322", "0.671576", "0.6705866", "0.66886663", "0.6676103", "0.66744536", "0.665674", "0.6636679", "0.66070944", "0.66001236", "0.65714216", "0.656528", "0.6563745", "0.6555453", "0.65444076", "0.65386856", "0.6514978", "0.6513597", "0.65112144", "0.6502255", "0.65009296", "0.6499248", "0.6493294", "0.6493294", "0.6493294", "0.6489711", "0.6473972", "0.6471224", "0.6459224", "0.64461017", "0.6438576", "0.64353067", "0.6427079", "0.64238924", "0.64132917", "0.641081", "0.6410074", "0.64072734", "0.63941777", "0.639191", "0.6390735", "0.6390357", "0.6383753", "0.63784593", "0.6366822", "0.6366456", "0.6364174", "0.63633984", "0.6356679", "0.63528365", "0.6350832", "0.63238305", "0.63088995", "0.6305511", "0.62907183", "0.62903094", "0.6289914", "0.6287457", "0.62761754", "0.62679327", "0.6266862", "0.6263657", "0.62578535", "0.62577194", "0.6255873", "0.62551785", "0.62551785", "0.62551785", "0.6249099", "0.6246482", "0.6233016", "0.62271714", "0.6217888", "0.6217238", "0.62162757", "0.62075907", "0.6205307", "0.6203652", "0.61985886", "0.61980814", "0.61859435", "0.6171708", "0.6170857", "0.6170857", "0.6160796", "0.61391926" ]
0.8746074
0
Returns the capabilities table name.
Возвращает имя таблицы сCapabilities.
public function getCapabilitiesTable(): string { return $this->wpDatabase->prefix . 'capabilities'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function table () : string {\n return $this->guessName();\n }", "public function get_table_name(){\n return $this->table_name();\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "protected function table(): string\n {\n return $this->tableName;\n }", "protected function getCapability()\n\t{\n\t\treturn self::CAPABILITY;\n\t}", "public function get_contexts_table_name() {\n\t\treturn $this::$dbtable_contexts;\n\t}", "public function get_table_name() {\n return $this->table_name;\n }", "public function getTable(): string\n {\n return $this->_table;\n }", "public static function tablename() {\n return self::TABLE;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "protected function getMetricsTable()\n {\n $prefix = app(System::class)->getTablePrefix();\n\n return $prefix.'metrics';\n }", "public function toString()\n {\n return $this->table_name; // this attribute can be modified\n }", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public function getExtensionsTable() : string\n\t{\n\t\treturn static::$_extensions_table;\n\t}", "public function get_capability() {\n\t\t//Cache capability in the session so this command is not used repeatedly\n\t\tif (isset(\\GO::session()->values['GO_IMAP'][$this->server]['imap_capability'])) {\n\t\t\t$this->capability=\\GO::session()->values['GO_IMAP'][$this->server]['imap_capability'];\n\t\t}else {\n\t\t\tif(!isset($this->capability)){\n\t\t\t\t$command = \"CAPABILITY\\r\\n\";\n\t\t\t\t$this->send_command($command);\n\t\t\t\t$response = $this->get_response();\n\t\t\t\t$this->capability = implode(' ', $response);\n\t\t\t}\n\t\t\t$this->capability = \\GO::session()->values['GO_IMAP'][$this->server]['imap_capability'] = implode(' ', $response);\t\t\t\n\t\t}\n\t\treturn $this->capability;\n\t}", "public function getRequiredCapability(): string;", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public function get_capabilities() {\n\t\treturn array_keys( $this->capabilities );\n\t}", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "protected function getSystemTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_system')\n ->getMetaData()\n ->getName(); \n \n }", "public static function get_table() {\n\t\treturn 'antibiotics_and_how_to_use_them';\n\t}", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public static function getTablename() { return \"Productos_01\"; }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function getCapabilities()\n {/*{{{*/\n return $this->_capability;\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "private static function getTable(): string\n {\n return DB_TABLES[static::class];\n }", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "protected function getUsergroupsTable() : string\n\t{\n\t\treturn static::$usergroups_table;\n\t}", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "public function get_drivered_table_prefix()\n {\n global $SITE_INFO;\n return $SITE_INFO['mybb_table_prefix'];\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public static function getTableName()\n {\n return static::getConfig()[self::CONFIG_TABLE_NAME];\n }", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "public static function getDriverName()\n {\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "function getTableName() \n\t{\n\t\t$success = false;\n\t\t$phplist_prefix = PhplistHelperPhplist::getPrefix();\n\t\t$success = \"{$phplist_prefix}_user_attribute\";\n\t\treturn $success;\n\t}", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "private function getTableNames()\n {\n $this->tableNames = [\n 'eav_attribute' => $this->resource->getTableName('eav_attribute'),\n 'EnitureModules' => $this->resource->getTableName('EnitureModules'),\n ];\n }", "function getTableFullName()\n {\n return implode(' ', [$this->table_prefix . $this->table_name, $this->table_alias]);\n }", "public static function tableName()\n {\n return '{{%characteristic_groups}}';\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "protected static function get_table_name() {\n return null;\n }", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "protected function getScoreGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_score_group')\n ->getMetaData()\n ->getName(); \n \n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace(\n '\\\\',\n '',\n Str::snake(Str::plural(class_basename(self::class)))\n );\n }\n\n return $this->table;\n }", "public function getTableName() : string\n {\n if ($this->tableName !== null) {\n return $this->tableName;\n }\n\n return $this->reflectionClass->getShortName();\n }", "public static function getTableName()\n\t{\n\t\treturn 'vbch_bonus_card';\n\t}", "public function getCapabilities() {}", "public function getCapabilities() {}", "protected function getScoreTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_score')\n ->getMetaData()\n ->getName(); \n \n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public function getTable() {\n if ( isset( $this->table ) ) {\n return $this->table;\n }\n\n $table = str_replace( '\\\\', '', snake_case( str_plural( class_basename( $this ) ) ) );\n\n return $this->getConnection()->db->prefix . $table ;\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "protected static function get_table_name() {\n return 'instantquiz_criterion';\n }", "public function getTableNames();", "public function get_capability($cap) {\n\n $cap = strtoupper($cap);\n\n /*\n * Supported capability?\n */\n if (!in_array($cap, $this->imap_capabilities)) {\n /*\n * Not found!\n */\n return FALSE;\n } elseif (is_array($this->imap_capabilities[$cap]) && count($this->imap_capabilities[$cap]) > 0) {\n /*\n * Key / value pairs found: return supported capability properties\n */\n return $this->imap_capabilities[$cap];\n } else {\n /*\n * Supported\n */\n return TRUE;\n }\n }", "public function getTable(): string\n {\n return config('checklists.scaffolding.db_table');\n }", "public static function name()\n {\n return with(new static)->getTable();\n }", "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "private function getTableName()\n {\n $class = get_class($this);\n\n $mem = new Cache();\n if ($tableName = $mem->get($class . '-table-name')) {\n return $tableName;\n }\n\n $break = explode('\\\\', $class);\n $ObjectName = end($break);\n $className = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $ObjectName));\n $tableName = Inflect::pluralize($className);\n\n $mem->add($class . '-table-name', $tableName, 1440);\n\n return $tableName;\n }", "public function getDriverName()\r\n {\r\n $reflect = new \\ReflectionClass($this);\r\n $namespace = $reflect->getNamespaceName();\r\n\r\n return substr(strrchr($namespace, \"\\\\\"), 1);\r\n }", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "public function getTableSpec()\n {\n return $this->readOneof(3);\n }", "private static function tableName() {\n global $wpdb;\n return $wpdb->prefix . self::SIMPLE_LOGIN_HISTORY_TABLE_NAME;\n }", "public function getDriverName()\n\t{\n\t\treturn $this->neoeloquent->getDriverName();\n\t}", "public function dataTableName()\n {\n $tableName = 'pd2_' . Utils::normalizeString($this->product()->name)\n . '__' . Utils::normalizeString($this->name);\n return strtolower($tableName);\n }", "protected function table()\n {\n return $this->conn->table($this->table);\n }", "public function getTable()\n\t{\n\t\tif (isset($this->table)) return $this->table;\n\n\t\treturn $this->table = str_replace('\\\\', '', snake_case(str_plural(class_basename($this))));\n\t}", "public function table()\n {\n return $this->table;\n }", "public function cap()\n {\n\n return get_option('wpsearchconsole_capability');\n }", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "protected function getSystemZoneTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_system_zone')\n ->getMetaData()\n ->getName(); \n \n }", "public function get_role_caps()\n {\n }", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "static function capability_text($prow, $capType) {\n // capFormat . paperId . capType . hashPrefix\n // capFormat -- Character denoting format (currently 0).\n // paperId -- Decimal representation of paper number.\n // capType -- Capability type (e.g. \"a\" for author view).\n // To create hashPrefix, calculate a SHA-1 hash of:\n // capFormat . paperId . capType . paperCapVersion . capKey\n // where paperCapVersion is a decimal representation of the paper's\n // capability version (usually 0, but could allow conference admins\n // to disable old capabilities paper-by-paper), and capKey\n // is a random string specific to the conference, stored in Settings\n // under cap_key (created in load_settings). Then hashPrefix\n // is the base-64 encoding of the first 8 bytes of this hash, except\n // that \"+\" is re-encoded as \"-\", \"/\" is re-encoded as \"_\", and\n // trailing \"=\"s are removed.\n //\n // Any user who knows the conference's cap_key can construct any\n // capability for any paper. Longer term, one might set each paper's\n // capVersion to a random value; but the only way to get cap_key is\n // database access, which would give you all the capVersions anyway.\n\n $key = $prow->conf->setting_data(\"cap_key\");\n if (!$key) {\n $key = base64_encode(random_bytes(16));\n if (!$key || !$prow->conf->save_setting(\"cap_key\", 1, $key))\n return false;\n }\n $start = \"0\" . $prow->paperId . $capType;\n $hash = sha1($start . $prow->capVersion . $key, true);\n $suffix = str_replace(array(\"+\", \"/\", \"=\"), array(\"-\", \"_\", \"\"),\n base64_encode(substr($hash, 0, 8)));\n return $start . $suffix;\n }", "public function getTablesNames()\n {\n return [\n 'users',\n 'roles',\n 'role_user',\n 'permissions',\n 'permission_role',\n 'permission_user',\n ];\n }", "function getTableName(): string;", "protected function table()\n\t{\n\t\treturn DB::connection(Request::server('cli.db'))->table('laravel_migrations');\n\t}" ]
[ "0.6169111", "0.6114315", "0.60538644", "0.60117435", "0.60007954", "0.5954046", "0.59467447", "0.588956", "0.5870642", "0.58676094", "0.58490413", "0.58490413", "0.5840889", "0.58398116", "0.5820934", "0.5809534", "0.5802723", "0.57901794", "0.57836616", "0.5760849", "0.5745318", "0.5745168", "0.57400966", "0.5735071", "0.57302284", "0.57195586", "0.5692559", "0.5678934", "0.56665355", "0.56554335", "0.5643388", "0.5639329", "0.5635287", "0.5633855", "0.5619495", "0.5618039", "0.56143504", "0.56116796", "0.5602857", "0.55883986", "0.558239", "0.55818397", "0.55818397", "0.55818397", "0.55657375", "0.555852", "0.55564696", "0.5553292", "0.55450004", "0.55390584", "0.55385196", "0.55333614", "0.55316585", "0.55249035", "0.55232936", "0.5514671", "0.55005497", "0.55005497", "0.55005497", "0.5493009", "0.5488945", "0.5485009", "0.54835373", "0.54731184", "0.5472636", "0.54518557", "0.5443856", "0.5443856", "0.54429984", "0.54377866", "0.54376936", "0.5426726", "0.5422145", "0.54191685", "0.5413197", "0.5402991", "0.5401916", "0.5401563", "0.5397499", "0.5389163", "0.5385238", "0.5383435", "0.538039", "0.5379788", "0.5378541", "0.53748137", "0.5374326", "0.53685474", "0.53684163", "0.53638506", "0.5348807", "0.53462136", "0.53449625", "0.53445053", "0.5339839", "0.53382486", "0.5333962", "0.53287125", "0.53249544", "0.5324906" ]
0.8647794
0
Registers student in database and returns it's cookie in &$cookie variable.
Зарегистрировать студента в базе данных и вернуть его cookie в переменную &$cookie.
public function register_student(Student $student): string { $cookie = SecurityUtil::generate_token(); $stmt = $this->db->prepare('INSERT INTO students(forename, surname, email, group_id, exam_results, birth_year, is_foreign, gender, cookie) VALUES (?,?,?,?,?,?,?,?,?)'); $stmt->execute(array(strval($student->forename), strval($student->surname), strval($student->email), strval($student->group_id), intval($student->exam_results), intval($student->birth_year), intval($student->is_foreign), intval($student->gender), $cookie)); $stmt->closeCursor(); return $cookie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_student_with_cookie(string $cookie) {\n $query = $this->db->prepare('SELECT * FROM students WHERE cookie=?');\n $query->execute(array($cookie));\n if (($row = $query->fetch(\\PDO::FETCH_NUM))) {\n $query->closeCursor();\n return StudentsTableGateway::create_student_from_row($row);\n } else {\n $query->closeCursor();\n return null;\n }\n }", "function set_my_cookie($username, $password){\n global $db;\n require_once(\"db.php\");\n $id = $db->insert_id;\n setcookie(\"id\", $id,0,\"/\");\n $security = md5($username.$password.\"two_plus_two\");\n setcookie(\"security\",$security,0,\"/\");\n $db->close();\n var_dump($_COOKIE);\n}", "public function storeUser($sex, $last_name, $first_name, $pseudo, $email, $password ) {\n // $uuid = uniqid('', true);\n // $hash = $this->hashSSHA($password);\n //$encrypted_password = $password //$hash[\"encrypted\"]; // encrypted password\n // $salt = $hash[\"salt\"]; // salt\n $result = mysql_query(\"INSERT INTO users2(sex, last_name, first_name, pseudo, email, password) VALUES('$sex', '$last_name', '$first_name', '$pseudo', '$email', '$password')\");\n // check for successful store\n if ($result) {\n // get user details\n $id = mysql_insert_id(); // last inserted id\n $result = mysql_query(\"SELECT * FROM users2 WHERE id = $id\");\n // return user details\n return mysql_fetch_array($result);\n } else {\n return false;\n }\n }", "public function add(Cookie $cookie);", "public function registerStudent($newStudent)\r\n {\r\n $qry = $this->db->insert('users', $newStudent);\r\n if ($qry) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function addStudent($name, $institution, $major, $minor, $identification, $passkey, $google, $yahoo, $live, $facebook, $linkedin, $twitter){\n\n\t\t$this->connection->query(\"INSERT INTO students (stud_name, stud_inst, stud_major, stud_minor, stud_identification, stud_passkey, stud_google, stud_yahoo, stud_live, stud_facebook, stud_linkedin, stud_twitter) VALUES ('$name', '$institution', '$major', '$minor', '$identification', '$passkey', '$google', '$yahoo', '$live', '$facebook', '$linkedin', '$twitter' )\",true);\n\t\tif($_SESSION['query']){\n\t\t\treturn \"Student Successfully Added\";\n\t\t}else{\n\t\t\treturn \"Failed to add Student!\";\t\t\n\t\t}\t\n\n\t}", "function register() {\n\n // Validate user input\n $this->s_fname = testInput($this->s_fname);\n $this->s_lname = testInput($this->s_lname);\n $this->s_bdate = testInput($this->s_bdate);\n $this->s_sex = testInput($this->s_sex);\n $this->s_email = testInput($this->s_email);\n $this->s_password = testInput($this->s_password);\n\n // Check that student is not registered already\n $result = $this->conn->query(\"SELECT * FROM $this->tableName WHERE s_email LIKE '$this->s_email'\");\n \n if ($result->rowCount() === 0) {\n\n // Insert query \n $query = \"INSERT INTO $this->tableName (s_fname, s_lname, s_bdate, s_sex, s_email, s_password)\n VALUES(:firstName, :lastName, :birthday, :sex, :email, :hashedPassword)\";\n\n // Prepare insert statement\n $insert = $this->conn->prepare($query);\n\n $insert->bindParam(\":firstName\", $this->s_fname);\n $insert->bindParam(\":lastName\", $this->s_lname);\n $insert->bindParam(\":birthday\", $this->s_bdate);\n $insert->bindParam(\":sex\", $this->s_sex);\n $insert->bindParam(\":email\", $this->s_email);\n // Hash password before storing it\n $this->s_password = password_hash($this->s_password, PASSWORD_DEFAULT);\n $insert->bindParam(\":hashedPassword\", $this->s_password);\n\n // Send new user to DB\n try {\n $insert->execute();\n return true;\n }\n catch(PDOException $e) {\n echo $e;\n return false;\n }\n }\n else {\n return false;\n }\n }", "function uploadUserLogging($first_name, $last_name, $username, $password, $email, $about_me, $pet_experience) {\n //get mysql object\n $mysql = new my_mysql();\n //build query\n $query = \"INSERT INTO user_logging(register_date, f_name, l_name, username, pass, email, about_me, pet_experience)\n VALUES (now(), '$first_name', '$last_name', '$username', PASSWORD('$password'), '$email', '$about_me', '$pet_experience');\";\n $mysql->transactionQuery($query);\n $insert_id = $mysql->insert_id;\n if ($insert_id) {\n //set cookie for user_id\n $_SESSION['user_id'] = $insert_id;\n return True;\n }\n}", "function Register()\r\n\t{\r\n\t\tglobal $Site;\r\n\t\t//if all the details is valid save the user on data base\r\n\t\tif ($this->IsValid())\r\n\t\t{\r\n\t\t\t$MemberID = GetID(\"member\", \"MemberID\");//getting last MemberID +1 for adding one more user\r\n\t\t\t$DateAdded = date(\"Y-m-d H:i:s\");\r\n\t\t\t$DateUpdated = $DateAdded;\r\n\t\t\t$IsEnable = 1;\r\n\t\t\t$pass = base64_encode($this->Password);\r\n\t\t\t$SQL = \"insert into member (MemberID, ProfileType, FirstName, LastName, TelNo, Email, Password, IsActive, IsEnable, DateAdded, DateUpdated) values ($MemberID, 'user', '$this->FirstName', '$this->LastName', '$this->PhoneNumber', '$this->Email', '$pass', '1' , '$IsEnable', '$DateAdded', '$DateUpdated')\";\r\n\t\t\tGetRS($SQL);\r\n\t\t\t$_SESSION['SAWMemberID'] = $MemberID;//cookie- to not allow impersonation of another user PHP gives each customer ID\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t}", "function AddStudent($first_name, $last_name, $email, $hashed_pass, $mysqli){\n\n $date = date(\"Y-m-d\");\n $sql = \"INSERT INTO student (First_name, Last_name, Email_address, Password, Registerred_date, Validated, Banned, Number_of_reports) VALUES ('$first_name', '$last_name','$email', '$hashed_pass', '$date', FALSE, FALSE, '0')\";\n\n if($mysqli->query($sql) === TRUE){\n return $mysqli->insert_id;\n }\n else{\n return 0;\n }\n}", "function addstudent(){\n include('../../config.php'); \n $classid = $_GET['classid'];\n $studid = $_GET['studid'];\n $verify = $this->verifystudent($studid,$classid);\n if($verify){\n echo $q = \"INSERT INTO studentsubject (studid,classid) VALUES ('$studid', '$classid');\";\n mysql_query($q);\n header('location:../classstudent.php?r=success&classid='.$classid.'');\n }else{\n header('location:../classstudent.php?r=duplicate&classid='.$classid.'');\n }\n \n $tmp = mysql_query(\"select * from class where id=$classid\");\n $tmp_row = mysql_fetch_array($tmp);\n $tmp_subject = $tmp_row['subject'];\n $tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-'.$tmp_row['section'];\n \n $tmp = mysql_query(\"select * from student where id=$studid\");\n $tmp_row = mysql_fetch_array($tmp);\n $tmp_student = $tmp_row['fname'].' '.$tmp_row['lname'];\n \n $act = \"add student $tmp_student to class $tmp_class with the subject of $tmp_subject\";\n $this->logs($act);\n }", "private function storeCookie() {\n try {\n $this->cookie->store(URLDATATRACKER_ISDATAINURL, $this->checkDataInURL() ? 'TRUE' : 'FALSE');\n echo \"Successfully stored cookie.\\n\";\n } catch (Exception $e) {\n echo \"Failed to store cookie.\\n\";\n throw $e;\n }\n }", "private function createCookie()\n {\n $salt = openssl_random_pseudo_bytes(16);\n $hash = hash('sha256', $salt . $this->userId);\n\n $this->db->prepare('UPDATE `' . $this->config['authTable'] . '` SET `authSalt` = ? WHERE `' . $this->config['userColumn'] . '` = ?');\n $this->db->execute(array($salt, $this->userId), 'ss');\n\n setcookie('userid', $this->userId, time() + $this->config['cookieLifetime']);\n setcookie('auth', $hash, time() + $this->config['cookieLifetime']);\n }", "public function init_cookie(){\n\t\tglobal $con;\n\t\t\n\t\t// generate token value...\n\t\t$token = hash('sha512', (rand() . microtime()));\n\t\t\n\t\t// insert into table\n\t\tif($con->query(\"\n\t\t\t\tINSERT INTO `tokens`(token_user,token_val)\n\t\t\t\tVALUES ($this->user_id, '$token')\n\t\t\t\t\")) {\n\t\t\t\t\n\t\t\t// now set it\n\t\t\t$_COOKIE['id'] = $token;\n\t\t\tsetcookie('id', $token, time() + (60 * 60 * 24 * 30));\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function register_login_data($email, $password, $salt)\n {\n // 1. Connect to the database.\n $link = connect();\n\n // 2. protect the password using blowfish.\n $password = password_hash($salt.$password, CRYPT_BLOWFISH);\n\n // 3. Prepare the statement using mysqli\n // to take care of any potential SQL injections.\n $stmt = mysqli_prepare($link, \"\n INSERT INTO tbl_users\n (email, password, salt, creation_date)\n VALUES\n (?, ?, ?, ?)\n \");\n\n // 4. Bind the parameters so we don't have to do the work ourselves.\n // the sequence means: string string double integer double\n mysqli_stmt_bind_param($stmt, 'sssi', $email, $password, $salt, time());\n\n // 5. Execute the statement.\n mysqli_stmt_execute($stmt);\n\n // 6. Disconnect from the database.\n disconnect($link);\n\n // 7. If the query worked, we should have a new primary key ID.\n return mysqli_stmt_insert_id($stmt);\n }", "public function store()\n {\n $makeStudent = new MakeStudent();\n if (CSRF::validate() && $makeStudent->execute()) {\n return new RedirectResponse('/inloggen');\n }\n\n return $this->create();\n }", "public function update_student(string $cookie, Student $student) {\n $stmt = $this->db->prepare('UPDATE students SET forename=?, surname=?, email=?, group_id=?, exam_results=?, birth_year=?, is_foreign=?, gender=? WHERE cookie=?');\n $stmt->execute(array(strval($student->forename),\n strval($student->surname),\n strval($student->email),\n strval($student->group_id),\n intval($student->exam_results),\n intval($student->birth_year),\n intval($student->is_foreign),\n intval($student->gender),\n $cookie));\n $stmt->closeCursor();\n }", "public function registerStudent($surname, $firstname, $othername, $picture, $address, $birthdate, $admin, $class, $class_type, $class_arm, $status){\n\t\t\t$sql = \"INSERT INTO student (id, surname, firstname, othername, birth_date, address, picture, status, clazz_id, clazz_type_id, class_arm_id, admin_id, created_at, updated_at) VALUES(NULL,'$surname', '$firstname', '$othername', '$birthdate', '$address','$picture', '$status', '$class', '$class_type', '$class_arm','$admin', NULL, NULL)\";\n\t\t\t$condition_check=$this->connection()->exec($sql);\t\n\t\t\t// die($condition_check);\n\n\t\t\tif ($condition_check) {\t\t\t//this condition checks if record has been inserted into the database\n\t\t\t\t$query = $this->connection()->prepare(\"SELECT * FROM student ORDER BY id DESC\");\n\t\t\t\t$query->execute();\n\t\t\t\t$last_id_record=$query->fetch();\n\t\t\t\t$last_id=$last_id_record['id'];\t\n\t\t\t\treturn $last_id;\t//inserted record id return for a purpose\n\t\t\t}else{\n\t\t\t\tdie('record not inserted, pls contact adminitrator');\n\t\t\t}\n\t\t\t\n\t\t}", "function cookie_login($conn)\n {\n if (!isset($_SESSION['signed_in']))\n { \n if(isset($_COOKIE[\"new\"]) && isset($_COOKIE[\"pass\"]))\n {\n $email=test_input($_COOKIE[\"new\"]);\n\t $pass=$_COOKIE[\"pass\"];\n $sql= \"select email from users where email='$email' and password='$pass'\";\n $result = $conn->query($sql);\n if ($result->num_rows > 0) \n {\n\t $_SESSION['signed_in']=$email;\n }\n \n }\n\n }\n }", "function add_student(){\n\t\t\t\n\t\t\t$st_id = self::$db->quote($_POST['id']);\n\t\t\t$fname = self::$db->quote($_POST['firstname']);\n\t\t\t$lname = self::$db->quote($_POST['lastname']);\n\t\t\t$area = self::$db->quote($_POST['area']);\n\t\t\t$result = self::$admin->addStudent($st_id,$fname,$lname,$area);\n\n\t\t\tif($result == 1){\n\t\t\t\techo \"User Added Successfully....\";\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\techo \"something wrong\";\n\t\t\t}\n\t\t}", "public function registerStudent($data) {\n try{\n $this->dbh->query('INSERT INTO student_info (first_name, last_name, dob, contact_number) VALUES (:fname, :lname, :dob, :cnum)');\n //bind the params with values\n $this->dbh->bind(\":fname\", $data['fname']);\n $this->dbh->bind(\":lname\", $data['lname']);\n $this->dbh->bind(\":dob\", $data['dob']);\n $this->dbh->bind(\":cnum\", $data['phone']);\n //execute the query\n if($this->dbh->execute()) {\n $this->response = [\n \"status\"=> \"success\",\n \"message\" => \"The student has been registered.\"\n ];\n }\n return $this->response;\n\n } catch(PDOException $e) {\n $this->response = [\n \"status\"=> \"error\",\n \"message\" => \"The student could not be registered. Please try again later\"\n ];\n return $this->response;\n }\n }", "public function storeUser($name,$lastname,$sex,$email, $password,$birthdate) {\n $now_date=date(\"d/m/Y\");\n $uuid = uniqid('', true);\n $hash = $this->hashSSHA($password);\n $encrypted_password = $hash[\"encrypted\"]; // encrypted password\n $salt = $hash[\"salt\"]; // salt\n try{\n $sql=\"INSERT INTO users (unique_id, name, lastname, sex, email, encrypted_password, salt, birthdate, created_at) \n VALUES (?,?,?,?,?,?,?,?,?) \";\n $result=$this->db->prepare($sql)\n ->execute(\n array(\n $uuid,\n $name,\n $lastname,\n $sex,\n $email,\n $encrypted_password,\n $salt,\n $birthdate,\n $now_date\n )\n );\n \n } catch (Exception $e) {\n die($e->getMessage());\n }\n\n try \n {\n $stm = $this->db->prepare(\"SELECT * FROM users WHERE email = ?\");\n $stm->execute(array($email));\n // return user details\n return $stm->fetch(PDO::FETCH_OBJ);\n } catch (Exception $e) \n {\n die($e->getMessage());\n }\n }", "public function post_student() {\n $params = array(\n 'ruid' => Input::get('ruid'), \n 'net_id'=> Input::get('net_id'),\n 'passwd'=> Hash::make(Input::get('passwd')), \n 'email_addr' => Input::get('email_addr'), \n 'grad_year' => Input::get('grad_year'), \n 'major' => Input::get('major'), \n 'credits' => Input::get('credits'), \n 'gpa' => Input::get('gpa')\n );\n \n $user = User::create(array('net_id' => $params['net_id'], 'passwd' => $params['passwd']));\n $user->save();\n\n $student = new Student;\n $student->fill($params);\n $student->save();\n\n Auth::login($user);\n\n return Redirect::to('account/studentedit');\n }", "public function store(Request $request)\n {\n //to know if the course has been register\n\n $studentID = session()->get('st_id');\n $cours =DB::table('course_student')->where('student_id','=',$studentID)->where('course_id','=', $request->cou_reg[0])->first();\n if(!$cours){\n $student = Student::find($studentID);\n $student->courses()->attach($request->cou_reg);\n $notification = Alert::alertMe('Course Registered!!!', 'success');\n return redirect()->back()->with($notification);\n }else {\n $notification = Alert::alertMe('Course already registered!!!', 'info');\n return redirect()->back()->with($notification);\n }\n\n }", "function save_cookie($id, $type)\n\t{\n\t\t$cookiedata = $this->get_cookie_data();\n\t\t//mysql_query(\"INSERT INTO main.cookies (id, type, cookie_data) VALUES ('$id','$type','\".mysql_real_escape_string($this->get_cookie_data()).\"') ON DUPLICATE KEY UPDATE cookie_data='\".mysql_real_escape_string($this->get_cookie_data()).\"'\");\n\t\tif($type =='aol')\n\t\t{\n\t\t\tmysql_query(\"INSERT INTO main.cookies (id, type, cookie_data) VALUES ('$id','$type','\".mysql_real_escape_string($cookiedata).\"') ON DUPLICATE KEY UPDATE cookie_data='\".mysql_real_escape_string($cookiedata).\"'\") or die(mysql_error());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmysql_query(\"INSERT INTO $type.cookies (id, type, cookie_data) VALUES ('$id','$type','\".mysql_real_escape_string($cookiedata).\"') ON DUPLICATE KEY UPDATE cookie_data='\".mysql_real_escape_string($cookiedata).\"'\") or die(mysql_error());\n\t\t}\n\t}", "public function store(StoreStudentRequest $request)\n {\n try {\n DB::beginTransaction(); \n \n $student = Student::addStudent();\n\n DB::commit();\n\n session()->flash('success', 'Student created successfully. Password is <b>'.$student->plain_password.'</b>');\n\n } catch(\\Exception $e) {\n\n DB::rollBack();\n\n session()->flash('error', $e->getMessage());\n }\n\n return redirect()->route('student.list');\n }", "function storeInCookie($user_profile_data)\n{\n\t$context = Context::getContext();\n\t$cookie = $context->cookie;\n\t$cookie->login_radius_data = serialize($user_profile_data);\n}", "function register_student($id_no, $fname, $mname, $lname, $course) {\n global $pdo, $response;\n try {\n $query_insert_student = \"INSERT INTO students\n (id_no, fname, mname, lname, course)\n VALUES (:id_no, :fname, :mname, :lname, :course)\";\n $insert_student = $pdo->prepare($query_insert_student);\n $insert_student->bindValue(':id_no', $id_no, PDO::PARAM_STR);\n $insert_student->bindValue(':fname', $fname, PDO::PARAM_STR);\n if ($mname == null) {\n $insert_student->bindValue(':mname', null, PDO::PARAM_STR); \n } // end of if ($mname == null)\n else {\n $insert_student->bindValue(':mname', $mname, PDO::PARAM_STR);\n } // end of elseif ($mname != null)\n $insert_student->bindValue(':lname', $lname, PDO::PARAM_STR);\n $insert_student->bindValue(':course', $course, PDO::PARAM_STR);\n $is_success = $insert_student->execute();\n return $is_success;\n } // end of try\n catch(PDOException $e) {\n $response['is_success'] = false;\n $response['message'] = 'PDOException : '.$e->getMessage();\n } \n}", "public function addstudent($Xstu,$stunum,$stuname,$sex,$classname)\n\t{\n\t\t// $data['id'] = NULL;\n\t\t$data['Xstu'] = $Xstu;\n\t\t$data['stunum'] = $stunum;\n\t\t$data['stuname'] = $stuname;\n\t\t$data['sex'] = $sex;\n\t\t$data['classname']=$classname;\n\t\t$this->data($data,true)->isUpdate(false)->save();\n\t\t// $this->id=NULL;\n\t\t// $addstudent->Xstu = $Xstu;\n\t\t// $addstudent->stunum = $stunum;\n\t\t// $addstudent->stuname = $stuname;\n\t\t// $addstudent->sex = $sex;\n\t\t// $addstudent->save();\n\t\t// 获取自增ID\n\t\t// echo $this->id;\n\t}", "public function registerUser( \n $email, \n $name, \n $password, \n $surname, \n $cell_phone_number, \n $gender, \n $province, \n $type_of_study,\n $institution,\n $field_of_study\n ) {\n\n \theader( \"Access-Control-Allow-Origin: *\" ) ;\n\n $user = User::create([\n 'name' => $name,\n 'email' => $email,\n 'password' => Hash::make( $password ),\n ]);\n\n $details = new UserDetail ;\n\n $details->surname = $surname ;\n $details->age = \"0\" ;\n $details->cell_phone_number = $cell_phone_number ;\n $details->gender = $gender ;\n $details->province = $province ;\n $details->type_of_study = $type_of_study ;\n $details->institution = $institution ;\n $details->field_of_study = $field_of_study ;\n\n $details->save() ;\n\n\n $user->roles()->attach( Role::where( 'name', 'student' )->first() ) ;\n\n if ( $user ) {\n \treturn [ 'message' => 'success' ] ;\n } else {\n \treturn [ 'message' => 'failed' ] ;\n }\n\n }", "public function registerVote($uid, $id){\n\n $uid = mysqli_real_escape_string($this->MySQL, $uid);\n $id = mysqli_real_escape_string($this->MySQL, $id);\n\n $query = \"INSERT INTO voted (uid, hand_id) VALUES ('$uid','$id')\";\n $result = $this->MySQL->query($query);\n\n if ($result){\n return true;\n }\n else{\n //setcookie('register', 'true');\n return false;\n }\n }", "function add_survey_group_susi_student() {\r\n // get global user object\r\n global $user;\r\n\r\n // protect from unauthorized access\r\n if (!isset($user) or ! isset($_POST['formSurveyAddGroupSusiStudentSubmit']) or ! isset($_POST['formSurveyAddGroupSusiStudent'])) {\r\n if ($_POST['formSurveyAddGroupSusiStudent'] != 'formSurveyAddGroupSusiStudentGroup') {\r\n logout();\r\n die();\r\n }\r\n }\r\n\r\n $session_groups = unserialize($_SESSION['session_groups']);\r\n if ($_POST['formSurveyAddGroupSusiStudentGroup'][0] == '0') {\r\n $session_groups['student'] = get_susi_student_groups();\r\n } else {\r\n $session_groups['student'] = $_POST['formSurveyAddGroupSusiStudentGroup'];\r\n }\r\n\r\n $session_groups['type'] = '';\r\n\r\n $_SESSION['session_groups'] = serialize($session_groups);\r\n\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Вие добавихте анкетната група студенти!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_edit');\r\n}", "private function register()\n {\n $s = 'INSERT INTO `users` (`project`, `authService`, `authServiceID`, `vcs_login`, `email`, `anonymousIdent`, `conf`, `last_connect`) VALUES (\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\", now())';\n $params = array($this->project, $this->authService, $this->authServiceID, $this->vcsLogin, $this->email, $this->anonymousIdent, json_encode($this->defaultConf));\n\n $this->conn->query($s, $params);\n return $this->conn->insert_id();\n }", "public function createSession( $db, $uid ) {\n\n\t\t$sid = SessionManager::generateSID();\n\n\t\t// Add a row to the session table\n\t\t$query = \"INSERT INTO {$this->table} (sid, created, expires, lastactivity, active, uid) VALUES ('{$sid}', NOW(), ADDTIME(NOW(), SEC_TO_TIME(\" . self::EXPIRE . \")), NOW(), 1, {$uid});\";\n\t\tif( !$db->query($query) ) {\n\t\t\ttrigger_error($db->error, E_USER_ERROR);\n\t\t\ttrigger_error('Related query: ' . $query, E_USER_NOTICE);\n\t\t}\n\t\techo \"Tere\";\n\n\t\t// Set user cookie\n\t\tsetcookie( $this->cookie['name'], $sid, time()+self::EXPIRE, '/');//, $this->cookie['domain'] );\n\t}", "public function createStudent($firstName, $lastName, $userName, $password, $emailAddress, $studentId, $major, $address);", "public function store(CreateStudentRequest $request)\n {\n $user = User::create([\n 'first_name' => $request->f_name,\n 'last_name' => $request->l_name,\n 'email' => $request->email,\n 'phone' => $request->phone_number,\n 'password' => $request->password,\n 'department_id' => $request->department,\n 'country_id' => $request->country,\n 'address' => $request->address,\n 'birthday' => $request->birthday,\n 'status' => 'Active'\n ]);\n\n $role = \\DB::insert(\"INSERT into role_user (user_id, role_id) VALUES ('$user->id', 3)\");\n\n return redirect()->route('student.index')->withSuccess('Student created successfully');\n }", "protected function AddCookie($n,$v,$s) { setcookie($n,$v,time()+$s,'/'); }", "private static function Store($key) {\n\t\n\t\t# initial data\n\t\t$data = array(\n\t\t\t\"headers\" => $_SERVER,\n\t\t\t\"flashdata\" => array()\n\t\t);\n\t\t\n\t\t# perform insert\n\t\tdatabase()->start_query('sessions', 'INSERT')->set(array(\n\t\t\t\"key\" => $key,\n\t\t\t\"method\" => 'cookie',\n\t\t\t\"_data\" => serialize($data),\n\t\t\t\"signature\" => self::get_signature(),\n\t\t))->run();\n\t}", "public function register(Request $request)\n {\n $validator=$this->validator($request->all());\n\n if(!$validator->fails())\n {\n $user= $this->create($request->all());\n\n // Config::set('jwt.user', 'App\\Models\\student\\user_student');\n // Config::set('auth.providers.users.model', \\App\\Models\\student\\user_student::class);\n\n $token= Auth::guard('students')->attempt($request->only('s_email','password'));\n\n $minute = 60;\n // $response = new Response($user);\n // $response->withCookie(cookie('name','virat',$minute));\n\n // return $response;\n \n \n \n \n return response()->json\n ([\n // 'success' => true,\n ],200);\n }\n return response()->json([\n\n 'success' =>false,\n 'errors' => $validator->errors()\n\n ]);\n }", "function student_form_submit($form, &$form_state) {\n $st_ID = db_insert('student')\n ->fields(array(\n 'st_fnm' => check_plain($form_state['values']['st_fnm']),\n 'st_lnm' => check_plain($form_state['values']['st_lnm']),\n 'st_email' => check_plain($form_state['values']['st_email']),\n ))\n ->execute();\n drupal_set_message(t('Entry has been added.'));\n}", "public static function addNew($regno,$names,$password,$course,$year,$semester,$gender,$courselevel){\n try{\n if(self::getError()) return false;\n $cn = self::connect();\n $sql =\"INSERT INTO students(regno,names,password,course,year,sem,gender,courselevel,insession)VALUES(?,?,?,?,?,?,?,?,?)\";\n $qr = $cn->prepare($sql);\n $qr->bindParam(1,$regno);\n $insession = 1;\n $password = sha1($password);\n $qr->bindParam(2,$names);\n $qr->bindParam(3,$password);\n $qr->bindParam(4,$course);\n $qr->bindParam(5,$year);\n $qr->bindParam(6,$semester);\n $qr->bindParam(7,$gender);\n $qr->bindParam(8,$courselevel);\n $qr->bindParam(9,$insession);\n if(!$qr)return false;\n $qr->execute();\n return true;\n }catch (Exception $ex){\n //print_r($ex);\n return false;\n }\n }", "function add_cookie($name,$value,$time_litmit){\n setcookie($name,$value,time() + ($time_litmit * 86400));\n }", "function addNewUser($SHSCID,$FirstName,$LastName,$Email){\n global $mysqli;\n $result = true;\n $q = \"INSERT INTO Clinician VALUES ('$SHSCID','$FirstName','$LastName','$Email', 0)\";\n $result = $mysqli->query($q);\n \n if ($result) \n\treturn \"success\";\n\telse\n\treturn $mysqli->error;\n}", "function createPersistentSession($sid, $uid) {\n $mysqli = ConnectToDatabase();\n $sql = \"INSERT INTO active_sessions \n (id, uid, expiration)\n VALUES \n ('$sid', '$uid', DATE_ADD(CURRENT_DATE, INTERVAL 1 WEEK))\";\n $exec = $mysqli->query($sql);\n if( !empty($error = $mysqli->error) )\n {\n echo $error;\n return 0;\n }\n else if( isset($mysqli->insert_id) )\n {\n return 1;\n }\n else\n {\n return -1;\n }\n\n }", "function user_register($username, $password, $firstname, $lastname)\n{\n $salt = generate_salt();\n\n // Now encrypt the password using that salt\n $encrypted = md5(md5($password).$salt);\n\n // And lastly, store the information in the database\n $query = \"INSERT INTO tblUser (username, password, salt, firstname, lastname, created) values ('$username', '$encrypted', '$salt', '$firstname', '$lastname', NOW())\";\n mysql_query ($query) or die ('Could not create user.');\n $user_id = mysql_insert_id();\n\n return $user_id;\n //logWrite(\"New user registration: $user_id\",1);\n}", "public function register($pseudo,$prenom,$nom,$email,$password,$classe,$datedenaissance,$sexe)\n {\n try\n {\n $passwordhash = passwordhash($password);\n\n $dateinscription = date('Y-m-d', time());\n $prenomplusnom = $prenom.\" \".$nom;\n $lastco = strftime('%d %B %Y à %H:%M');\n \n $stmt = $this->db->prepare(\"INSERT INTO users(pseudo,prenom,nom,prenomplusnom,email,password,classe,datedenaissance,sexe,dateinscription,notifMailPrive,allowFindSearch,comptePrive,lastco) VALUES(:pseudo, :prenom, :nom, :prenomplusnom, :email, :password, :classe, :datedenaissance, :sexe, :dateinscription, :notifMailPrive, :allowFindSearch, :comptePrive, :lastco)\"); \n $stmt->execute(array(\n 'pseudo' => $pseudo,\n 'prenom' => $prenom,\n 'nom' => $nom,\n 'prenomplusnom' => $prenomplusnom,\n 'email' => $email,\n 'password' => $passwordhash,\n 'classe' => $classe,\n 'datedenaissance' => $datedenaissance,\n 'sexe' => $sexe,\n 'dateinscription' => $dateinscription,\n 'notifMailPrive' => 'true',\n 'allowFindSearch' => 'true',\n 'comptePrive' => 'false',\n 'lastco' => $lastco\n ));\n \n return true; \n }\n catch(PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "private function newRememberMeCookie()\n {\n // if database connection opened\n if ($this->db->isConnected()) {\n // generate 64 char random string and store it in current user data\n $random_token_string = hash('sha256', mt_rand());\n $update = $this->db->query(\n \"UPDATE users SET user_rememberme_token = :user_rememberme_token WHERE user_id = :user_id\",\n array(\n \"user_rememberme_token\"=>$random_token_string,\n \"user_id\"=>$_SESSION['user_id']\n )\n );\n\n // generate cookie string that consists of userid, randomstring and combined hash of both\n $cookie_string_first_part = $_SESSION['user_id'] . ':' . $random_token_string;\n $cookie_string_hash = hash('sha256', $cookie_string_first_part . COOKIE_SECRET_KEY);\n $cookie_string = $cookie_string_first_part . ':' . $cookie_string_hash;\n\n // set cookie\n setcookie('rememberme', $cookie_string, time() + COOKIE_RUNTIME, \"/\", COOKIE_DOMAIN);\n }\n }", "public function DB_reg_submit($data){\n\t\ttry {\n\t\t\tparent::__construct(DB_DRIVER.':dbname='.DB_NAME.';host='.DB_HOST, DB_USERNAME, DB_PASSWORD);\n\t\t\t$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); \t\n\t\t\t\n\t\t\t$query = $this->prepare('INSERT INTO '.DB_TABLE.' (email, password, first_name, last_name, date_of_birth, time_stamp) VALUES (:email, :password, :first_name, :last_name, :date_of_birth, :time_stamp)');\n\t\t\t$query->execute(array(\n\t\t\t':email' => $data['email'],\n\t\t\t':password' => $data['password'],\n\t\t\t':first_name' => $data['first_name'],\n\t\t\t':last_name' => $data['last_name'],\n\t\t\t':date_of_birth' => $data['date_of_birth'],\n\t\t\t':time_stamp' => $data['time_stamp']\n\t\t\t));\n\t\t \n\t\t\tif ($query->rowCount() === 1){\n\t\t\t\tsetcookie('user', $data['first_name'].'|'.$data['last_name'].'|'.$data['date_of_birth'].'|'.$data['time_stamp'], time()+3600, \"/reg_form/\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(PDOException $e){\n\t\t\techo 'ERROR: '.$e->getMessage();\n\t\t}\n\t}", "public function storeUser($username,$gender,$email,$phone,$password){\n\t\t$uuid = uniqid('',true);\n\t\t$hash = $this->hashSSHA($password);\n\t\t$encrypted_password = $hash[\"encrypted\"];\n\t\t$salt = $hash[\"salt\"];\n\t\t$stmt = $this->conn->prepare(\"INSERT INTO users(unique_id,username,gender,email,phone,encrypted_password,salt,created_at) VALUES (?,?,?,?,?,?,?,NOW())\");\n\t\t$stmt->bind_param(\"sssssss\",$uuid,$username,$gender,$email,$phone,$encrypted_password,$salt);\n\t\t$result = $stmt->execute();\n\t\t$stmt->close();\n\n\t\t//check if user is stored successfully\n\t\tif($result){\n\t\t\t$stmt=$this->conn->prepare(\"SELECT * FROM users WHERE email = ?\");\n\t\t\t$stmt->bind_param(\"s\",$email);\n\t\t\t$stmt->execute();\n\t\t\t$user = $stmt->get_result()->fetch_assoc();\n\t\t\t$stmt->close();\n\t\t\treturn $user;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public function saveLogin($email) {\n\t\tsetcookie(\"login-email\", $email, strtotime('+90 days'), \"/\");\n\t}", "function addUser($email, $password, $student_id, $society_id) {\r\n\t\t\t$sql = \"INSERT IGNORE INTO `users` (email, password, student_id, society_id)\r\n\t\t\t\t\tVALUES ('%s', '%s', '%s', '%s')\";\r\n\t\t\t$this->query($sql, $email, sha1($password), $student_id, $society_id);\r\n\t\t}", "function add_student($student_name, $student_grade, $letter_grade) {\n global $db;\n $query = 'INSERT INTO students\n (student_name, student_grade, letter_grade)\n VALUES\n (:student_name, :student_grade, :letter_grade)';\n $statement = $db->prepare($query);\n $statement->bindValue(':student_name', $student_name);\n $statement->bindValue(':student_grade', $student_grade);\n $statement->bindValue(':letter_grade', $letter_grade);\n $statement->execute();\n $statement->closeCursor();\n }", "private function newCookie($username, $rememberme) {\n $hash = md5(microtime()); // unique cookie hash\n // Fetch User ID :\n $queryUid = $this->db->select(\"SELECT userID FROM \".PREFIX.\"users WHERE username=:username\", array(':username' => $username));\n $uid = $queryUid[0]->userID;\n // Delete all previous cookies :\n $this->db->delete(PREFIX.'sessions', array('username' => $username));\n $ip = $_SERVER['REMOTE_ADDR'];\n\t\tif($rememberme == \"true\"){\n\t\t\t// User wants to be remembered for a while\n\t\t\t$expiredate = date(\"Y-m-d H:i:s\", strtotime(SESSION_DURATION_RM));\n\t\t}else{\n\t\t\t$expiredate = date(\"Y-m-d H:i:s\", strtotime(SESSION_DURATION));\n\t\t}\n $expiretime = strtotime($expiredate);\n $this->db->insert(PREFIX.'sessions', array('uid' => $uid, 'username' => $username, 'hash' => $hash, 'expiredate' => $expiredate, 'ip' => $ip));\n\t\t// Check to see if user checked the remember me box\n\t\tCookie::set('auth_cookie', $hash, $expiretime, \"/\", FALSE);\n }", "public function register(){\n\t\t$db = new Database();\n\t\t$conn= $db->getConn();\n\t\t$status = false;\n\t\t\n\t\t$stmt = $conn->prepare(\"insert into login (username,email,password,user_type) VALUES (?, ?, ?, ?)\");\n\t\t$v_password=sha1($this->password);\n\t\t$stmt->bind_param(\"sssd\", $this->username,$this->email,$v_password,$this->type);\t\t\t\n\t\t if($stmt->execute()){\n\t\t $status = true;\n\t\t }\n\t\t//release resources\n\t\t$stmt->free_result();\n\t\t$conn->close();\n\t\t\n\t\treturn $status;\t\n\t}", "public function store()\n\t{\n\t\t#Store students with validation\n\t\t$validator = Validator::make($data = Input::all(), Student::$rules);\n\n\t\tif ($validator->fails())\n\t\t{\n\t\t\treturn Redirect::back()->withErrors($validator)->withInput();\n\t\t}\n\t\tif(isset($data['canada_doe'])){\n\t\t\techo $data['dob'];\n\t\t\t$data['dob'] =date(\"Y-m-d\", strtotime($data['dob']));\n\t\t\t$data['canada_doe'] =date(\"Y-m-d\", strtotime($data['canada_doe']));\n\t\t\t$data['lia_doe'] =date(\"Y-m-d\", strtotime($data['lia_doe']));\n\t\t\t}\n\t\tif(isset($data['assessment_date'])){\n\t\t\t$data['assessment_date'] =date(\"Y-m-d\", strtotime($data['assessment_date']));\n\t\t\t}\n\t\t$data['grade']= 15;\n\t\tStudent::create($data);\n\t\t/*if (Auth::check()){\n\t\t\treturn Redirect::route('students.index');\n\t\t\t}\n\t\telse{\n\t\t\treturn Redirect::to('http://www.lia-edu.ca');\n\t\t}*/\n\t}", "function createStudent($common, $firstName, $lastName, $studentID, $email, $major) {\n\t\tparent::doQuery(\"INSERT INTO `Proj2Students` (`FirstName`, `LastName`, `StudentID`, `Email`, `Major`, `Status`) \n\t\tVALUES ('$firstName', '$lastName', '$studentID', '$email', '$major', 'N')\", $common);\n\t}", "function create_students(){\n global $con;\n $name= mysqli_real_escape_string($con, $_POST['name']);\n $matric_number= mysqli_real_escape_string($con, $_POST['matric_number']);\n $year_of_entry= mysqli_real_escape_string($con, $_POST['year_of_entry']);\n $year_of_graduation= mysqli_real_escape_string($con, $_POST['year_of_graduation']);\n $password = mysqli_real_escape_string($con, $_POST['password']);\n $password = md5($password);\n $department= mysqli_real_escape_string($con, $_POST['department']);\n $sql = mysqli_query($con, \"INSERT INTO students(name, password,department,matric_number,year_of_entry,year_of_graduation) VALUES('$name', '$password','$department','$matric_number','$year_of_entry','$year_of_graduation')\");\n if($sql){\n echo \"success\";\n }else{\n echo \"error\";\n }\n\n \n}", "public static function registerCookie($key, $value, $time) {\n\t\t$value = $value . '--' . md5 ( $value . Security_Config::$salt );\n\t\tsetcookie ( $key, $value, $time, '/' );\n\t\treturn;\n\t}", "public function store(Request $request)\n {\n $user = new \\App\\Login;\n $user->role = 'siswa';\n $user->name = $request->nama;\n $user->email = $request->email;\n $user->password = bcrypt($request->password);\n $user->remember_token = Str::random(60);\n \n $request->validate([\n 'nama' => 'required',\n 'email' => 'required',\n 'password' => 'required',\n \n ]);\n $user->save();\n\n \n $request->request->add(['user_id' => $user->id ]);\n $student = new \\App\\Student;\n $student->user_id = $request->user_id;\n $student->nama = $request->nama;\n $student->email = $request->email;\n $student->save(); \n\n return redirect('/logins')->with('status','Silahkan Login');\n }", "function addCookie($cookie)\n {\n $hash = $this->_makeHash($cookie['name'], $cookie['domain'], $cookie['path']);\n $this->_cookies[$hash] = $cookie;\n }", "function save() {\n\n $record = new stdClass;\n $record->username = $this->username;\n $record->firstname = addslashes($this->firstname);\n $record->lastname = addslashes($this->lastname);\n $record->idnumber = $this->idnumber;\n $record->update_flag = $this->update_flag;\n $record->reg_status = $this->reg_status;\n $record->college = $this->college;\n $record->year = $this->year;\n $record->classification = $this->classification;\n $record->keypadid = $this->keypadid;\n $record->ferpa= $this->ferpa;\n $record->anonymous = $this->anonymous;\n $record->degree_candidacy = $this->degree_candidacy;\n\n if ($this->hidden != null) {\n $record->hidden = $this->hidden;\n }\n if ($this->numsections != null) {\n $record->numsections = $this->numsections;\n }\n if ($this->format != null) {\n $record->format= $this->format;\n }\n if ($this->cr_delete != null) {\n $record->cr_delete = $this->cr_delete;\n }\n if ($this->moodleid != null) {\n $record->moodleid = $this->moodleid;\n }\n\n if (!$this->id) {\n\n $this->id = insert_record('block_courseprefs_users', $record, true);\n\n if (!$this->id) {\n throw new Exception('Unable to create new courseprefs user within database');\n }\n\n } else {\n\n $record->id = $this->id;\n\n if (!update_record('block_courseprefs_users', $record)) {\n throw new Exception('Unable to update existing courseprefs user within database');\n }\n }\n }", "public function register($email, $password, $fullname, $phone_number, $email_recovery, $security_question, $security_answer)\n {\n // Check if the email is not taken yet\n if ($this->get_id_from_email($email) !== 0)\n {\n return false;\n }\n\n // Create the query builder \n $this->db->insert('accounts', array(\n 'email' => $email,\n 'password' => password_hash($password, PASSWORD_DEFAULT),\n 'fullname' => $fullname,\n 'phone_number' => $phone_number,\n 'email_recovery' => $email_recovery,\n 'security_question' => $security_question,\n 'security_answer' => $security_answer,\n 'is_admin' => false,\n 'is_verified' => false,\n 'time_created' => date('Y-m-d H:i:s')\n ));\n }", "function register($firstname, $lastname, $birthday, $address, $town, $postal_code, $telephone, $email, $credit_card, $username, $password){\n\t\t$conn \t= connectDB();\n\t\t$sth \t= $conn -> prepare('INSERT INTO `clients` (`id`, `username`, `password`, `firstname`, `lastname`, `email`, `birthday`, `address`, `town`, `postal_code`, `telephone`, `credit_card`, `is_admin`) VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0)');\n\t\t$sth \t-> execute(array($username, $password, $firstname, $lastname, $email, $birthday, $address, $town, $postal_code, $telephone, $credit_card));\n\t}", "public function addStudent()\n {\n $student = new Student();\n $student->name = 'Shakib';\n $student->email = 'shakib@gmail.com';\n $student->save();\n\n return 'Student Added Successfully!';\n }", "function createNewUser($F_Name, $L_Name, $Email, $DOB, $cell_number, $Address, $City, $State, $Zip, $Country)\n{\n global $mysqli, $db_table_prefix;\n $stmt = $mysqli->prepare(\n \"INSERT INTO \" . $db_table_prefix . \" student_info(\n\t\tF_Name,\n L_Name,\n Email,\n DOB,\n Cell_number,\n Address,\n City,\n State,\n Zip,\n Country\n\t\t)\n\t\tVALUES (\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t?\n\t\t)\"\n );\n $stmt->bind_param(\"ssssssssss\", $F_Name, $L_Name, $Email,$DOB, $cell_number, $Address, $City, $State, $Zip, $Country);\n $result = $stmt->execute();\n $stmt->close();\n return $result;\n\n}", "function post_stud_query($sub_id, $question)\n {\n $stud_id = $_COOKIE['stud_id'];\n $stud_name = $_COOKIE['user'];\n \n $db = Database::getInstance();\n $mysqli = $db->getConnection();\n\n // get subject name\n $query_sub = \"SELECT subject_name FROM subjects where sub_id=\".$sub_id;\n $result = $mysqli->query($query_sub);\n $row = $result->fetch_row();\n $sub_name = $row[0];\n\n // Insert query now\n $query = 'INSERT INTO queries(stud_id,sub_id,student_name,subject_name,question) \n values(?,?,?,?,?)';\n\n date_default_timezone_set('Asia/Kolkata');\n $now = date(\"Y-m-d h:i:s\");\n\n if($stmt = $mysqli->prepare($query))\n {\n $stmt->bind_param('iisss',$stud_id,$sub_id,$stud_name,$sub_name,$question);\n $stmt->execute();\n\n echo \"<script>alert('Question posted Successfully')</script>\";\n header('location:/pages/student_modules/queries/answers.php');\n\n }\n else\n {\n $error = $mysqli->errno . ' ' . $mysqli->error;\n echo $error;\n } \n }", "public function StudentStore(StudentRequest $request)\n {\n $count=Student::count();\n $count += 1;\n $reg=\"1028\".$count;\n $students=new Student(array(\n 'surname'=>$request->get('surname'),\n 'firstname'=>$request->get('firstname'),\n 'middlename'=>$request->get('middlename'),\n 'address'=>$request->get('address'),\n 'nationality'=>$request->get('nationality'),\n 'religion'=>$request->get('religion'),\n 'contact'=>$request->get('contact'),\n 'dob'=>$request->get('dob'),\n 'gender'=>$request->get('gender'),\n 'blood'=>$request->get('blood'),\n 'email'=>$request->get('email'),\n 'state'=>$request->get('state'),\n 'country'=>$request->get('country'),\n 'RegNo'=>$reg,\n 'password'=>$request->get('surname')\n\n ));\n $students->save();\n return redirect('/admin/students');\n }", "private function addCookie(Cookie\\Cookie $cookie) {\n self::$sessions[] = $cookie;\n }", "public static function registerUser($cpLogin, $lastName, $course, $instructor) {\n $userData = array(\n 'cp_login' => $cpLogin,\n 'last_name' => $lastName,\n 'course' => $course,\n 'instructor' => $instructor,\n 'num_tweets_rated' => 0\n );\n\n self::$databases['aws']->insert('META_survey_users', $userData);\n\n return $userData;\n }", "public function registerUser($firstName, $lastName,$password,$email,$phone,$personalinfo)\n {\n \n $sql2= \"SELECT userid from basicUser where email= '\".$email.\"' \";\n $alreadyUser = mysql_fetch_array(mysql_query($sql2));\n var_dump($alreadyUser);\n die();\n $alreadyUser = $alreadyUser[0];\n \n if ($alreadyUser == null){\n \n $sql = \"INSERT INTO basicUser VALUES '\". mysql_real_escape_string($firstName).\"'\n , '\".mysql_real_escape_string($lastName).\"'\n , '\".mysql_real_escape_string($password).\"'\n , '\".mysql_real_escape_string($email).\"'\n , '\". mysql_real_escape_string($phone).\"'\n , '\". mysql_real_escape_string($personalinfo).\"'\";\n \n mysql_query($sql); \n return \"Sucess User registered\";\n }\n else{\n //give an error saying an account is already associated with this email \n return \"failure: There is an account associated with this email\";\n }\n }", "public function storeUser($name,$email,$password){\n $uuid = uniqid('',true);\n $hash = $this -> hashSSHA($password);\n $encrypted_password = $hash[\"encrypted\"];\n $salt = $hash[\"salt\"];\n\n $stmt = $this ->conn ->prepare (\"INSERT INTO users(unique_id,name,email,encrypted_password,salt,created_at) VALUES(?,?,?,?,?,NOW())\");\n $stmt ->bind_param(\"sssss\",$uuid,$name,$email,$encrypted_password,$salt);\n\n $result = $stmt->execute();\n $stmt ->close();\n\n //check for successful store;\n if($result){\n $stmt = $this->conn->preprare (\"SELECT * FROM users WHERE email = ?\");\n $stmt -> bind_param(\"s\",$email);\n $stmt -> execute();\n $user = $stmt->get_result()->fetch_assoc();\n $stmt->close();\n return $user;\n }else {\n return false;\n }\n}", "public function store()\n {\n return response('200')->cookie(\n 'cookie-popup',\n 'checked',\n time() + (365 * 24 * 60 * 60)\n );\n }", "function set_cookie($cookie, $expire, $expiration, $user_id, $scheme) {\n\t\t\tif ($scheme == 'auth' OR $scheme == 'secure_auth') {\n\t\t\t\t$this->auth_array = $this->parse_cookie($cookie, $scheme);\n\t\t\t}\n\t\t\telse if ($scheme == 'logged_in') {\n\t\t\t\t$this->logged_in_array = $this->parse_cookie($cookie, $scheme);\n\n\t\t\t\t$logged_in_id = null;\n\t\t\t\tif ($this->logged_in_array !== FALSE)\n\t\t\t\t\t$logged_in_id = $this->insert_into_db($this->logged_in_array, $logged_in_id);\n\t\t\t\tif ($this->auth_array !== FALSE)\n\t\t\t\t\t$this->insert_into_db($this->auth_array, $logged_in_id);\n\t\t\t}\n\t\t}", "public function register() {\n\t\t\n\t\t// DB connection\n\t\t$db = Database::getInstance();\n \t$mysqli = $db->getConnection();\n\t\t\n $data = (\"INSERT INTO user (username,password,first_name,\n last_name,dob,address,postcode,email)\n VALUES ('{$this->_username}',\n '{$this->_sha1}',\n '{$this->_first_name}',\n '{$this->_last_name}',\n '{$this->_dob}',\n '{$this->_address}',\n '{$this->_postcode}',\n '{$this->_email}')\");\n\t\t\t\t\t\t \n\t\t\t$result = $mysqli->query($data);\n if ( $mysqli->affected_rows < 1)\n // checks if data has been succesfully inputed\n $this->_errors[] = 'could not process form';\n }", "private static function register() {\n if ( !self::validatePost() ) {\n return;\n }\n\n if ( !self::validEmail($_POST['email']) ) {\n self::setError('E-Mail Adresse ist nicht g&uuml;ltig!<br>');\n return;\n }\n \n $_POST['email'] = strtolower($_POST['email']);\n \n $password = Helper::hash($_POST['password'].$_POST['email']);\n \n $verified = md5($_POST['email'].$password.microtime(true));\n \n $result = Database::createUser($_POST['email'],$password,$verified);\n \n if ( $result === false || !is_numeric($result) ) {\n return;\n }\n \n $_SESSION['user']['id'] = $result;\n $_SESSION['user']['email'] = $_POST['email'];\n $_SESSION['user']['verified'] = $verified;\n $_SESSION['loggedin'] = true;\n self::$loggedin = true;\n \n self::registerMail($verified);\n }", "public function register()\n {\n $name = $this->loginEntry->input('uname');\n $email = $this->loginEntry->input('email');\n $password = $this->commonFunction->generateHash($this->loginEntry->input('pass'));\n $this->userDetail->makeEntry($name, $email, $password);\n \n $info = $this->userDetail->getDetail($email, $password);\n \n $this->commonFunction->setSession($info->id, $info->user_name);\n \n return redirect('/dashboard');\n }", "function watchStudent( $sessionID, $studentID ) {\r\n\t\tif( $this->userCanWatchStudent( $sessionID, $studentID ) && !( $this->userIsWatchingStudent( $sessionID, $studentID )) ) {\r\n\t\t\tif(empty($this->link)){\r\n\t\t\t\techo \"Not connected to database. Unexpected error. Contact your system administrator.\";\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t\t//$query = \"SELECT UsersWatching FROM students WHERE StudentID='$studentID'\";\r\n\t\t\t$user = $_SESSION['userid'];\r\n\t\t\t$query=\"insert into studentwatch (userid, studentid) values ('$user','$studentID')\";\r\n\t\t\tmysql_query($query);\r\n\t\t}\r\n\t}", "function saveNewUser($user,$email,$pass,$salt, $temp){\n\ttry{\n $conn = connectViaMysql();\n\t\t\n\t\tmysqli_query($conn, \"INSERT INTO users (user, cred, security, hash, email) VALUES(\n\t\t'\". mysqli_real_escape_string($conn,$user) .\"', \n\t\t'\". mysqli_real_escape_string($conn,$pass) .\"', \n\t\t'\". mysqli_real_escape_string($conn,$salt) .\"', \n\t\t'\". mysqli_real_escape_string($conn,$temp) .\"', \n\t\t'\". mysqli_real_escape_string($conn,$email) .\"') \") or die(mysqli_error($conn));\n\t}\n catch(PDOException $e){\n echo 'Error: ' . $e->getMessage();\n }\n\tmysqli_close($conn);\n}", "function saveCookie($id){\r\n\tsetcookie(\"r$id\", strval(time()), time()+60*60*24*365);\t\r\n}", "public function store()\n {\n $student = new student;\n\n $student->name = Input::get('name');\n $student->age = Input::get('age');\n $student->qualification = Input::get('qualification');\n\n if (DB::table('students')->where('name', '=', Input::get('name'))->first()) {\n return \"Already record found with the name \" . Input::get('name');\n } \n $student->save();\n return \"Record saved with the name of \" . Input::get('name');\n\n }", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level', 16 => 'store_owner');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel, 16 => 1);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n }", "public function UserRegister($fname, $sname, $username,$email,$addr,$county, $dob, $password){\n try {\n \n \n // ceates a new db connection instance\n $db = new dbcon();\n $dbcon = $db->getDBCon();\n $dbcon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stmt = $dbcon->prepare(\"INSERT INTO user(fname, sname, username, email, addr,county, dob, password) \n VALUES(:fname,:sname,:username,:email,:address,:county,:dob,:password)\");\n $stmt->bindParam(':fname', $fname);\n $stmt->bindParam(':sname',$sname);\n $stmt->bindParam(':username',$username);\n $stmt->bindParam(':email',$email);\n $stmt->bindParam(':address',$addr);\n $stmt->bindParam(':county',$county);\n $stmt->bindParam(':dob',$dob);\n $stmt->bindParam(':password',$password);\n //$stmt = $con->prepare(\"SELECT name,sname,address,email,dob FROM users WHERE username = ? AND password = ?\");\n \n //checkes to see if data has been inserted sucessfully \n if($stmt->execute()){\n echo 'success';\n }else{\n echo 'failed';\n }\n \n } catch (Exception $e) {\n \n print(\"error\".$e);\n } \n \n \n //close connection\n $stmt = null;\n }", "function verifyStudent($studentID){\r\n if(!empty($studentID)){\r\n\t\t // check X_PNSY_STUDENT table\r\n\t\t $query = \"select ID from `X_PNSY_STUDENT` where ID = '$studentID'\";\r\n\t\t $result = mysql_query($query);\t\t\r\n\t\t if (mysql_num_rows($result) == 0) return false;\r\n\r\n\t\t\r\n\t\t // check students table\r\n\t\t $query = \"select StudentID from `students` where StudentID = '$studentID'\";\r\n\t\t $result = mysql_query($query);\t\t\r\n\t\t if (mysql_num_rows($result) != 0) return true;\r\n\r\n\t\t\r\n\t\t // add student as a default entry\r\n\t\t $query = \"insert into students (StudentID) value ('$studentID')\";\r\n\t\t $result = mysql_query($query);\t\r\n\t\t return $result;\r\n }\r\n\r\n return false;\r\n\t}", "function session_init($hash){\n if(isset($hash)){\n $session=mysqli_fetch_assoc(DB::select('sessions',['*'],'hash=\"'.$hash.'\"'));\n if(isset($session['closed'])){\n session_close($hash);\n $hash = md5(genHash());\n //dbg('Insert new HASH from session_init()');\n if (DB::insert('auth', array('iduser' => USER_ID, 'hash' => $hash))) {\n //session_init($hash);\n setcookie('HASH', $hash, 7000000000);\n }\n }\n //dbg('Insert new SESSION from session_init()');\n DB::insert('sessions',['hash'=>$hash,'iduser'=>USER_ID,'date'=>date('Y-m-d H:i:s'),'last_act'=>date('Y-m-d H:i:s'),'ip'=>$_SERVER['REMOTE_ADDR'],'provider'=>getIspByIp($_SERVER['REMOTE_ADDR']),'closed'=>0]);\n }\n}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n unset($DBA, $rs, $fields, $fieldvals);\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'id');\n $idfields = array(0 => 'username');\n $idvals = array(0 => $this->Username);\n $rs = $DBA->selectQuery(DBUSERTABLE, $fields, $idfields, $idvals);\n if (!isset($rs[2]))\n {\n while ($res = mysql_fetch_array($rs[0]))\n {\n $this->setUserVar('ID', $res['id']);\n }\n }\n unset($DBA, $rs, $fields, $idfields, $idvals);\n }", "function login_usuario($email, $clave, $recordar){\n\t$sql = \"SELECT clave, id FROM usuarios WHERE email = '\".escapar($email).\"' AND activar = 1\";\n\n\t$resultado = query($sql);\n\tif(contar_filas($resultado) == 1){\n\t\t$fila = traer_array($resultado);\n\n\t\t$bd_clave = $fila['clave']; \n\n\t\tif(md5($clave) === $bd_clave){ \n if($recordar == \"on\"){\n\n \tsetcookie('email', $email, time() + 86400); //esta sesion será \"recordada\" por 86400 segundos (1 día)\n }\n\n\t\t\t$_SESSION['email'] = $email;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n \n return true;\n\n\t} else {\n\n\t\treturn false;\n\t}\n\n}", "public function studendInsertData($sname,$marks,$class_id)\r\n\r\n {\r\n // // echo $sql;\r\n // // exit();\r\n // $result = $this->connect->query($class_id);\r\n // $row = mysqli_fetch_assoc($result);\r\n\r\n $sql = \"INSERT INTO student_table (class_id,student_name,student_marks)VALUES('\".$class_id.\"','\".$sname.\"','\".$marks.\"')\";\r\n $result = $this->connect->query($sql);\r\n if($result==true){\r\n echo '<script>alert(\"Successfully save\")</script>';\r\n }else{\r\n echo '<script>alert(\"insert data failed \")</script>';\r\n }\r\n }", "function register($email){\n\t\t$conn = new ConnectDB();\n\t\t$sql = \"INSERT INTO users (email) VALUES ('$email')\";\n\t\t\n\t\tif (mysqli_query($conn->connectDB(),$sql)) {\n\t\t\techo \"register success\";\n\n\t\t}else{\n\t\t\techo \"register fail\";\n\t\t}\n\t}", "function setLoggedIn($username, $password, $remember){\r\n\tglobal $dbc;\r\n\t$encrypted = crypt(md5($password),md5($username));\r\n\t\r\n\t$query = 'SELECT username, password, firstname, type FROM user WHERE username = \\''. $username .'\\' AND password = \\''. $encrypted .'\\';';\r\n\t$result = mysqli_query($dbc, $query);\r\n\tif($result->num_rows == 1){\r\n\t\t$userrow = mysqli_fetch_object($result);\r\n\t\t\r\n\t\t//encrypt cookie name\r\n\t\t$cookiename = md5(COOKIE_NAME);\r\n\t\t//generate an auth token for logged in state\r\n\t\t$auth_token = generate_auth_token($userrow->username);\r\n\t\t\r\n\t\tif(preg_match('/^Error/', $auth_token)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//store session data\t\t\r\n\t\t$_SESSION['username'] = $userrow->username;\r\n\t\t$_SESSION['firstname'] = $userrow->firstname;\r\n\t\t\r\n\t\t//store cookie data\r\n\t\tif($remember){\r\n\t\t\tsetcookie($cookiename, $auth_token, time()+(7 * 24 * 60 * 60), '/', 'groupproject.localhost');\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsetcookie($cookiename, $auth_token, false, '/', 'groupproject.localhost');\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\telse {\r\n\t\treturn false;\r\n\t}\r\n\t\r\n}", "public function store(StudentFormRequest $request)\n {\n $person = new Student(array\n (\n 'fullname' => $request -> fullname,\n 'gender' => $request -> gender,\n 'birthday' => Student::toDateTime($request->birthday),\n 'phone' => $request -> phone,\n 'email' => $request -> email,\n 'nickname' => $request -> nickname,\n 'hobbies' => $request -> hobbies,\n 'country' => $request -> country,\n 'class_id' => $request -> class_id\n ));\n \n $person->save();\n\n Session::flash('success', \"Data was successfully saved.\");\n\n return redirect()->route('personal.index');\n }", "public function testRegisterStudent()\n {\n $this->browse(function (Browser $browser){\n $browser->visit('/register')\n ->click('.slider__container')\n ->type('firstname', env('DUSK_NEW_FIRSTNAME'))\n ->type('lastname', env('DUSK_NEW_LASTNAME'))\n ->type('email', env('DUSK_NEW_USER_STUDENT'))\n ->type('verificateEmail', env('DUSK_NEW_USER_STUDENT'))\n ->type('password', env('DUSK_NEW_PASSWORD'))\n ->press('.button')\n ->assertPathIs('/');\n });\n }", "function createUtenteScuola($name, $surname, $user_email, $password) {\n // This could be supplied by a user, for example\n // Formulate Query\n // This is the best way to perform an SQL query\n // For more examples, see mysql_real_escape_string()\n $query = sprintf(\"INSERT INTO scuola.utenti_scuola(cognome, nome, email, password)\" .\n \"VALUES ('%s','%s','%s','%s')\", mysql_real_escape_string(strtoupper($surname), $GLOBALS['link']), mysql_real_escape_string(strtoupper($name), $GLOBALS['link']), mysql_real_escape_string($user_email, $GLOBALS['link']), mysql_real_escape_string(base64_encode(base64_encode($password)), $GLOBALS['link']));\n\n // Perform Query\n $result = mysql_query($query);\n if ($result) {\n $msg = \"Utente Scuola creato: \" . $surname . \" \" . $name;\n setcookie(\"message\", $msg);\n }\n return $result;\n }", "public function saveStudentSessionRecord($student_id, $sessionz_id, $clazz_id, $class_type, $class_arm_id, $subject_id, $subject_total_score, $subject_average_score, $subject_session_grade, $student_subject_status){\n\t\t\t$sql = \"INSERT INTO student_session_record (id, student_id, sessionz_id, clazz_id, clazz_type_id, class_arm_id, subject_id, subject_total_score, subject_average_score, subject_session_grade, subject_session_position, student_subject_status, created_at) VALUES (NULL, '$student_id', '$sessionz_id', '$clazz_id', '$class_type', '$class_arm_id', '$subject_id', '$subject_total_score', '$subject_average_score', '$subject_session_grade', NULL, '$student_subject_status', NULL)\";\n\t\t\t$this->connection()->exec($sql);\n\t\t\treturn true;\n\t\t}", "function createOrReplaceStudent( $sessionID, $studentInfo ) {\r\n\t\tif( $this->userCanCreateOrReplaceStudent( $sessionID ) ) {\r\n\t\t\t$columns = array_keys( $studentInfo );\r\n\t\t\t$values = array_values( $studentInfo );\r\n\t\t\tfor( $i = 0; $i < sizeof( $studentInfo ); $i++ ) {\r\n\t\t\t\t$columns[$i] = '`'.$columns[$i].'`';\r\n\t\t\t\t$values[$i] = '\"'.$values[$i].'\"';\r\n\t\t\t}\r\n\t\t\t$columns = implode( ',', $columns );\r\n\t\t\t$values = implode( ',', $values );\r\n\t\t\t$query = \"REPLACE INTO `students` ( $columns ) VALUES ( $values )\";\r\n\t\t\t$result = mysql_query( $query );\r\n\t\t\treturn $result;\r\n\t\t}\r\n\t}", "function addSponsor($fname, $lname, $email,$hashed_pass, int $company_id, $mysqli){\n\t$date = date(\"Y-m-d\");\n\t$sql = \"Insert Into sponsor_users (first_name_of_user, last_name_of_user, email_address, password, company_id, isSuperAdmin, manageBursaries, manageApplications, inactive, isVerified, regisered_date) values ('$fname', '$lname', '$email', '$hashed_pass',$company_id, TRUE, TRUE, TRUE, FALSE, FALSE,'$date')\";\n\n\tif($mysqli->query($sql)=== TRUE){\n\t\treturn $mysqli->insert_id;\n\t}\n\telse{\n\t\techo $mysqli->error;\n\t\treturn 0;\n\t}\n\n}", "public function single_student_create(){\n\t\t$user_data['name'] = html_escape($this->input->post('name'));\n\t\t$user_data['email'] = html_escape($this->input->post('email'));\n\t\t$user_data['password'] = sha1(html_escape($this->input->post('password')));\n\t\t$user_data['birthday'] = strtotime(html_escape($this->input->post('birthday')));\n\t\t$user_data['gender'] = html_escape($this->input->post('gender'));\n\t\t$user_data['blood_group'] = html_escape($this->input->post('blood_group'));\n\t\t$user_data['address'] = html_escape($this->input->post('address'));\n\t\t$user_data['phone'] = html_escape($this->input->post('phone'));\n\t\t$user_data['role'] = 'student';\n\t\t$user_data['school_id'] = $this->school_id;\n\t\t$user_data['watch_history'] = '[]';\n\n\t\t// check email duplication\n\t\t$duplication_status = $this->check_duplication('on_create', $user_data['email']);\n\t\tif($duplication_status){\n\t\t\t$this->db->insert('users', $user_data);\n\t\t\t$user_id = $this->db->insert_id();\n\n\t\t\t$student_data['code'] = student_code();\n\t\t\t$student_data['user_id'] = $user_id;\n\t\t\t$student_data['parent_id'] = html_escape($this->input->post('parent_id'));\n\t\t\t$student_data['session'] = $this->active_session;\n\t\t\t$student_data['school_id'] = $this->school_id;\n\t\t\t$this->db->insert('students', $student_data);\n\t\t\t$student_id = $this->db->insert_id();\n\n\t\t\t$enroll_data['student_id'] = $student_id;\n\t\t\t$enroll_data['class_id'] = html_escape($this->input->post('class_id'));\n\t\t\t$enroll_data['section_id'] = html_escape($this->input->post('section_id'));\n\t\t\t$enroll_data['session'] = $this->active_session;\n\t\t\t$enroll_data['school_id'] = $this->school_id;\n\t\t\t$this->db->insert('enrols', $enroll_data);\n\n\t\t\tmove_uploaded_file($_FILES['student_image']['tmp_name'], 'uploads/users/'.$user_id.'.jpg');\n\n\t\t\t$response = array(\n\t\t\t\t'status' => true,\n\t\t\t\t'notification' => get_phrase('student_added_successfully')\n\t\t\t);\n\t\t}else{\n\t\t\t$response = array(\n\t\t\t\t'status' => false,\n\t\t\t\t'notification' => get_phrase('sorry_this_email_has_been_taken')\n\t\t\t);\n\t\t}\n\n\t\treturn json_encode($response);\n\t}", "public function save(){\n\t\t\tif($this->uid){\n\t\t\t\t$query = sprintf('UPDATE %sUSER SET USERNAME = \"%s\",PASSWORD =\"%s\", EMAIL_ADDR =\"%s\", IS_ACTIVE = %d WHERE USER_ID = %d',DB_TBL_PREFIX,\n\t\t\t\t\t\tmysql_real_escape_string($this->username, $GLOBALS['DB']),\n\t\t\t\t\t\tmysql_real_escape_string($this->password, $GLOBALS['DB']),\n\t\t\t\t\t\tmysql_real_escape_string($this->emailAddr, $GLOBALS['DB']),\n\t\t\t\t\t\t$this->isActive, $this->userId);\n\t\t\t\t\t return mysql_query($query, $GLOBALS['DB']);\n\t\t\t}else{\n\t\t\t\t// if the user has not registered yet\n\t\t\t\t$query = sprintf('INSERT INTO %USER (USERNAME, PASSWORD, EMAIL_ADDR, IS_ACTIVE) VALUES ( \"%s\",\"%s\", \"%s\", %d)',DB_TBL_PREFIX,\n\t\t\t\t\t\tmysql_real_escape_string($this->username, $GLOBALS['DB']),\n\t\t\t\t\t\tmysql_real_escape_string($this->password, $GLOBALS['DB']),\n\t\t\t\t\t\tmysql_real_escape_string($this->emailAddr, $GLOBALS['DB']),\n\t\t\t\t\t\t$this->isActive);\n\t\t\t\t\t\tif(mysql_query($query, $GLOBALS['DB'])){\n\t\t\t\t\t\t\t$this->uid = mysql_insert_id($GLOBALS['DB']);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t }", "public function store(RegisterStaff $request)\n {\n $request_data = array_merge($request->all(),['password' =>Hash::make($request->password) ]);\n $staff = Staff::create($request_data);\n $staff->load('role');\n\n return response()->json(['data' => $staff,'status' => 'success'],200);\n }", "function create_staff($role){\n global $con;\n $name= mysqli_real_escape_string($con, $_POST['name']);\n $password = mysqli_real_escape_string($con, $_POST['password']);\n $password = md5($password);\n $department= mysqli_real_escape_string($con, $_POST['department']);\n $sql = mysqli_query($con, \"INSERT INTO `ict staff` (Name, Password,Department,Role) VALUES('$name', '$password','$department','$role')\");\n if($sql){\n if($role == 'Director'){\n $_SESSION['name'] = $name; \n }\n echo \"success\";\n }else{\n echo \"error\";\n }\n}", "public static function createCookie($username, $userid, $token, $serial){\n setcookie('username', $username, time() + (86400) * 30, '/');\n setcookie('userid', $userid, time() + (86400) * 30, '/');\n setcookie('token', $token, time() + (86400) * 30, '/');\n setcookie('serial', $serial, time() + (86400) * 30, '/');\n }" ]
[ "0.6709638", "0.6058455", "0.57694584", "0.5768314", "0.56677556", "0.5641499", "0.56099653", "0.5607244", "0.5606758", "0.55897784", "0.55764514", "0.55637705", "0.5539231", "0.552666", "0.5525856", "0.54604083", "0.54546404", "0.5445741", "0.54391295", "0.5424575", "0.5391092", "0.53834003", "0.5381913", "0.5378503", "0.5364977", "0.5299115", "0.52950466", "0.5281926", "0.5280801", "0.52719265", "0.52544135", "0.52472943", "0.5218519", "0.521552", "0.52004284", "0.51978207", "0.5188936", "0.5187978", "0.5153756", "0.51494265", "0.5139123", "0.5138706", "0.51380575", "0.5135748", "0.51330453", "0.5124346", "0.5123621", "0.51188165", "0.5107587", "0.51066864", "0.51033354", "0.51009506", "0.509605", "0.50923085", "0.5087739", "0.50837815", "0.5059612", "0.50488406", "0.5039397", "0.50242096", "0.5022824", "0.5014729", "0.5003739", "0.5001561", "0.49983144", "0.49968544", "0.49879572", "0.49852666", "0.49834242", "0.49788055", "0.49766797", "0.4976362", "0.49761093", "0.49741828", "0.4973287", "0.49694487", "0.49686158", "0.49676904", "0.4963725", "0.49565876", "0.4950955", "0.49486572", "0.4946988", "0.49460143", "0.49391818", "0.4933999", "0.4928517", "0.49236965", "0.4923547", "0.49193007", "0.49192598", "0.4918885", "0.49163783", "0.4914851", "0.4907845", "0.49010032", "0.48926148", "0.48907182", "0.48849884", "0.48832923" ]
0.73264164
0
Updates student with cookie $cookie with data from $student.
Обновляет студента с куки $cookie данными из $student.
public function update_student(string $cookie, Student $student) { $stmt = $this->db->prepare('UPDATE students SET forename=?, surname=?, email=?, group_id=?, exam_results=?, birth_year=?, is_foreign=?, gender=? WHERE cookie=?'); $stmt->execute(array(strval($student->forename), strval($student->surname), strval($student->email), strval($student->group_id), intval($student->exam_results), intval($student->birth_year), intval($student->is_foreign), intval($student->gender), $cookie)); $stmt->closeCursor(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Student $student)\n {\n $student->frist_name=$request->frist_name;\n $student->last_name=$request->last_name;\n $student->date=$request->date;\n $student->mobile=$request->mobile;\n $student->status=$request->status;\n $student->save();\n $student->corses()->sync($request->course_id);\n return redirect('/students');\n }", "public function updated(Student $student)\n {\n //\n }", "function testUpdate_Students($link, $student_id) {\n\t\t$student = Student::select($link, $student_id);\n\t\t\n\t\t// set attributes\n $fname \t\t= $student->fname;\n $email \t\t= $student->email;\n $phone \t\t= $student->phone;\n $password \t= $student->password;\n\t\t\n\t\t// perform update operation\n\t\tswitch($student_id % 3) {\n\n\t\t\tcase(0):\n\t\t\t\tStudent::update($link, $student_id, 'Updated Name', $email, $phone, $password);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase(1):\n\t\t\t\tStudent::update($link, $student_id, $fname, $email, '000-000-0000', $password);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase(2):\n\t\t\t\tStudent::update($link, $student_id, $fname, $email, $phone, 'update');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\techo \"student id does not exist.\";\n\t\t\t\tbreak;\n\t\t}\n\t}", "function update_student_meta( $student_id, $meta_key, $meta_value, $prev_value = '' ) {\n return update_metadata('student', $student_id, $meta_key, $meta_value, $prev_value );\n }", "public function update(Request $request, Student $student)\n {\n if (!$this->isRole())\n return redirect()->back();\n $dep=Department::where('dept',$request->dept)\n ->where('sem',$request->sem)\n ->where('sec',$request->sec)\n ->select(['id'])\n ->get()[0]->id;\n $stud=$request->all();\n $stud['department_id']=$dep;\n $student->update($stud);\n return redirect()->route('students.index');\n }", "function update()\n\t{\n\n\t\t$kReport = $this->input->post(\"kReport\");\n\t\t$this->report->update($kReport);\n\t\tif($this->input->cookie(\"isAdvisor\") == 1){\n\t\t\t$this->load->model(\"student_report_model\",\"report\");\n\t\t\t$userID = $this->session->userdata(\"userID\");\n\t\t\t$unread_reports = $this->report->get_count($userID);\n\t\t\tbake_cookie(\"unread_reports\", $unread_reports);\n\t\t}\n\n\t\tredirect(\"report/view/$kReport\");\n\t}", "public function updateStudent($id, $data){\n\t \t\n\t\t//get Student by Id\n\t\t$student = CaStudent::find($id);\n\t\t\n\t\t$student->name=trim($data['name']);\n\t\t$student->birthday=trim($data['birthday']);\n\t\t$student->sex=$data['sex'];\n\t\t$student->classes_id=$data['classes_id'];\n\t\t\n\t\t//save to DB\n\t\t$student->save();\n\t }", "public function update(Request $request, Student $student)\n {\n $students=Student::all();\n\n\n $student->st_name=$request->st_name;\n $student->st_father_phone=$request->st_father_phone;\n $student->st_mother_phone=$request->st_mother_phone;\n $student->st_identity=$request->st_identity;\n $student->st_date_of_birth=$request->st_date_of_birth;\n $student->save();\n return redirect()->route('students.index');\n\n }", "public function update(Request $request, $student_id)\n {\n\n DB::table('assignment')->where('student_id', '=', $student_id)->update(['company_confirm' => \"Approved\"]);\n /* Declare variables */\n DB::table('evaluation')->insert([\n 'student_id' => $student_id\n ]);\n $id = Auth::user()->user_id;\n $instructor = DB::table('instructor_company')->where('company_id', $id)->first();\n DB::table('student_instructor_company')\n ->insert([\n 'instructor_id' => $instructor->instructor_id,\n 'student_id' => $student_id\n ]);\n DB::table('topic')->where('topic_id', '=', $request->topic_id)->decrement('quantity', 1);\n\n\n }", "public function update(Request $request, Student $student)\n {\n $data = \\App\\Student::find($request->id);\n $data->firstname = $request->firstname;\n $data->lastname = $request->lastname;\n $data->sex = $request->sex;\n $data->dob = $request->dob;\n $data->nationalcard = $request->nationalcard;\n $data->fathername = $request->fathername;\n $data->nationality = $request->nationality;\n $data->class = $request->class;\n $data->section = $request->section;\n $data->addmission_date = $request->addmission_date;\n $data->phone = $request->phone;\n $data->village = $request->village;\n $data->city = $request->city;\n $data->district = $request->district;\n $data->province = $request->province;\n $data->currentaddress = $request->currentaddress;\n $d=$data->save();\n if ($d) {\n return redirect('/student');\n }\n else\n {\n return \"Your data Was not Update\";\n }\n }", "public function get_student_with_cookie(string $cookie) {\n $query = $this->db->prepare('SELECT * FROM students WHERE cookie=?');\n $query->execute(array($cookie));\n if (($row = $query->fetch(\\PDO::FETCH_NUM))) {\n $query->closeCursor();\n return StudentsTableGateway::create_student_from_row($row);\n } else {\n $query->closeCursor();\n return null;\n }\n }", "public function update(Request $request, Student $student)\n {\n $student->fill($request->all());\n $student->save();\n return redirect()->route('student.index');\n }", "public function testUpdateStudentTakesCourse()\n {\n $response = $this->loginAsRole(Role::ADMIN)\n ->put($this->url('student-courses/1'), [\n 'student_id' => 3\n ]);\n\n $response->assertStatus(200);\n\n $response->assertJsonStructure([\n 'student_id',\n 'staff_teach_course_id'\n ]);\n\n $response->assertJson([\n 'student_id' => 3\n ]);\n }", "public function updateMyProfileStudent($id, $first_name, $last_name, $email, $student_roll, $current_semester){\n\t\t\t$database = new database;\n\t\t\t$db = $database->db;\n\t\t\t \n\t\t\t$sql = \"UPDATE users_credentials SET first_name='$first_name', last_name='$last_name', \";\n\t\t\t$sql .=\t\"email='$email' \";\n\t\t\t$sql .=\t\"WHERE id=$id\";\n\t\t\t$query = $db->query($sql);\n\t\t\t\n\t\t\t\n\t\t\t$sql = \"UPDATE students_profile SET roll='$student_roll', \";\n\t\t\t$sql .=\t\"current_semester='$current_semester'\";\n\t\t\t$sql .=\t\"WHERE user_id=$id\";\n\t\t\t$query = $db->query($sql);\n\t\t\t\n\t\t\treturn $query;\n\t\t}", "function update_student(){\n\t\t\t//Manage this with Ajax\n\t\t\tprint_r($this->input->post());\n\t\t}", "public function update(StudentsRequest $request, Students $student)\n\t{\n\t\tClasses_students::where('student_id', $student->id)->update(['class_id' => $request->class_id,'session' => $request->session,'year' => $request->year]);\n\t\t\n\t if ($request->file('image')) {\n\t\t\t$request->file('image');\n \t\n\t\t\t$path = public_path('uploads/students/');\n \t$image = time().'.png';\n\t\t\t$image_path = $path.$image; \n\t\t\t\n\t\t\t\n\t\t\tif (file_exists($image_path)) {\n\t\t\t\t @unlink($image_path);\n\t\t\t\t}\n \tImage::make($request->file('image'))->resize(225, 225)->save($path.$image);\n }\n\t\t\t$update = new Students;\n\t\t\t$update->exists = true;\n\t\t\t$update->id = $student->id;\n\t\t\t if ($request->file('image')) {\n\t\t\t$update->image = $image;\n\t\t\t }\n\t\t\t$update->surname = $request->surname;\n\t\t\t$update->first_name = $request->first_name;\n\t\t\t$update->middle_name = $request->middle_name;\n\t\t\t$update->student_no = $request->student_no;\n\t\t\t$update->contact_no = $request->contact_no;\n\t\t\t$update->address = $request->address;\n\t\t\t$update->dob = $request->dob;\n\t\t\t$update->update();\n\n $request->session()->flash('success', \"Student {$student->title} updated!\");\n return redirect()->route('admin.students.index');\n\n\t}", "public function setCookie($cookie) {\n $this->cookie = $cookie;\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n //\n }", "public function update(Request $request, Student $student)\n {\n $student->update([\n 'nama_siswa' => (string) $request->nama_siswa\n ]);\n return $student;\n }", "public function update(Student $student, Request $request)\n\t{\n\t\t$this->authorize('update', $student);\n\t\t//$this->validate($request, ['name' => 'required']); // Uncomment and modify if you need to validate any input.\n\t\t$student = Student::findOrFail($id);\n\t\t$student->update($request->all());\n\t\treturn redirect('student');\n\t}", "public function update(CookiesRequest $request, Cookie $cookie)\n {\n\t\t\t$request->validated();\n\n\t\t\t$cookie->title = Input::get('title');\n\t\t\t$cookie->position = Input::get('position');\n\t\t\t$cookie->banner_color = Input::get('banner_color');\n\t\t\t$cookie->banner_text = Input::get('banner_text');\n\t\t\t$cookie->banner_text_color = Input::get('banner_text_color');\n\t\t\t$cookie->button_color = Input::get('button_color');\n\t\t\t$cookie->button_text = Input::get('button_text');\n\t\t\t$cookie->button_text_color = Input::get('button_text_color');\n\t\t\t$cookie->link = Input::get('link');\n\n\t\t\tif (Input::get('actif') === null){\n\t\t\t\t$cookie->actif = 0;\n\t\t\t} else {\n\t\t\t\t$cookie->actif = 1;\n\t\t\t}\n\n\t\t\t$cookie->save();\n\n\n\t\t\tSession::flash('message', 'Vous avez bien édité le modèle !');\n\t\t\treturn Redirect::route('cookies.index');\n }", "public function updateDue($sid){\n $sql = 'SELECT due FROM student WHERE sid = :id';\n $query = $this->db->pdo->prepare($sql);\n $query->bindValue(':id',$sid);\n $query->execute();\n $result = $query->fetch(PDO::FETCH_OBJ);\n Session::set(\"due\",$result->due);\n }", "public function update_profile()\n\t{\n $data = array(\n 'name_students' => $this->input->post('name'),\n 'email_students'\t => $this->input->post('email'),\n 'address_students'\t => $this->input->post('address')\n );\n $data2 = array(\n 'username_user' => $this->input->post('username'),\n 'password_user'\t\t => $this->input->post('password')\n );\n \n $this->MyModel->updateData('students', 'id_students', $this->session->userdata('id'), $data);\n $this->MyModel->updateData('user', 'id_students', $this->session->userdata('id'), $data2);\n \n\t\tredirect('SiropCont/profile');\n\t}", "public function update(Student $student)\n\t{\n\t$input = array_except(Input::all(), '_method');\n\t$student->update($input);\n\treturn jsend()->success()\n ->code(200)\n ->message(\"success\")\n ->data([])\n ->get();\n\n\t}", "public function set_student_id( $student_id ) {\n\t\t\t$this->student_id = $student_id;\n\t\t}", "public function update(Request $request, Student $student)\n {\n $validatedInput = $this->validateInput($request, $student);\n $student = $this->updateData($validatedInput, $student);\n\n return redirect()->to(route('student-index'))->with(['success' => 'Data berhasil diupdate.']);\n }", "public static function updateStd($data)\n {\n $std = Student::find($data['id']);\n return $std->update($data);\n }", "public function setCurrentStudent(Student $student)\n {\n return $this->setCurrentStudentId($student->getId());\n }", "public function update(Request $request, $id)\n {\n $user = User::findOrfail($id);\n // dd($user->student->option);\n // $user=User::find($user_id);\n $user->fname = $request->fname;\n $user->lname = $request->lname;\n $user->user_cin = $request->user_cin;\n $user->email = $request->email;\n $user->dob = $request->dob;\n\n\n $user->save();\n dd(\"student updated\");\n return redirect()->route('students.show');\n }", "function saveWriterQuiz(){\r\n if (isset($_SESSION['subject']) && isset($_SESSION['quiznum']) && isset($_SESSION['save'])){\r\n $user=$_SESSION['user']; \r\n $quizID=$_SESSION['subject'].$_SESSION['quiznum'] ;\r\n $score=$_SESSION[\"save\"];\r\n $sql=\"UPDATE quiz SET $quizID = $score WHERE uniqueID='\".$user->getUID().\"'\";\r\n write($sql,1);\r\n }\r\n }", "public function update(Request $request, Student $student)\r\n {\r\n //\r\n Student::where('id',$student->id)\r\n ->update([\r\n 'nama' => $request->nama,\r\n 'email' => $request->email,\r\n 'tanggal_lahir' => $request->tanggal_lahir,\r\n 'no_telp' => $request->no_telp,\r\n 'gender' => $request->gender\r\n ]);\r\n return redirect('/students')->with('status', 'Data Berhasil Diubah');\r\n }", "public function update_student($row)\n\t\t{\n\t\t\t$student = new Student();\n\t\t\t$student->setId($row['id']);\n\t\t\t$student->setFirstName($row['firstName']);\n\t\t\t$student->setLastName($row['lastName']);\n\t\t\t$student->setGender($row['gender']);\n\t\t\t$student->setAge($row['age']);\n\t\t\t$student->setGroup($row['sgroup']);\n\t\t\t$student->setFaculty($row['faculty']);\n\t\t\t$this->conn->update($student);\n\t\t}", "public function updateStudent($data) {\n try{\n $this->dbh->query('UPDATE student_info SET first_name = :fname , last_name = :lname, dob = :dob, contact_number = :cnum WHERE student_id = :id');\n //bind the params with values\n $this->dbh->bind(\":fname\", $data['fname']);\n $this->dbh->bind(\":lname\", $data['lname']);\n $this->dbh->bind(\":dob\", $data['dob']);\n $this->dbh->bind(\":cnum\", $data['phone']);\n $this->dbh->bind(\":id\", $data['student_id']);\n //execute the query\n if($this->dbh->execute()) {\n $this->response = [\n \"status\"=> \"success\",\n \"message\" => \"Student details updated successfully.\"\n ];\n }\n return $this->response;\n\n } catch(PDOException $e) {\n $this->response = [\n \"status\"=> \"error\",\n \"message\" => \"Student details could not be updated. Please try again later\"\n ];\n return $this->response;\n }\n }", "public function update(Request $request, StudentAnswerController $studentAnswer)\n {\n //\n }", "public function updateCate()\n\t{\n\t\tif (cookie('staffAccount') != '') {\n\t\t\t$category = $_POST['upcategory'];\n\t\t\t$category_id = $_POST['upcategory_id'];\n\t\t\t$sql = \" update lib_book_species set category = '{$category}' where category in \n\t\t\t\t\t(select category from lib_category where category_id = {$category_id});\n\t\t\t\t\tupdate lib_category set category='\" . $category . \"' where category_id='\" . $category_id . \"';\n\t\t\t\t\t\";\n\t\t\t$cate = D('Category');\n\t\t\t$return = $cate->execute($sql);\n\n\t\t\tif ($return) {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'Modify successfully!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\n\t\t\t} else {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'SQL Error!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\t\t\t}\n\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail',\n\t\t\t\t'msg' => 'Please Login!'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "public function update(Request $request, Student $student)\n {\n $student->update($request->all()); \n\n return []; \n }", "public function update(Request $request, $id)\n {\n //dd($request->sponsor);\n\n $this -> authorize('UpdateInfo');\n $student = Student::findOrFail($id);\n $this->validate($request, [\n 'name' => ['required', 'string', 'max:255'],\n 'reg_no' => ['required', 'string', 'max:255'],\n 'role' => ['required', 'string', 'max:255'],\n 'phone_number' => ['nullable'],\n 'sponsor' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'gender_id' => ['required', 'string', 'max:255'],\n 'disability' => ['required', 'string', 'max:255'],\n 'password' => ['required', 'string', 'min:8', 'confirmed'],\n \n ]);\n \n $user ->update([\n 'name' => title_case($request->name),\n 'phone_number' => $request->phone_number,\n 'email' => $request->email,\n 'password' => Hash::make($request['password']), \n ])->assignRole($request->role);\n \n if ($request->role == 'Student') { \n \n $user->student()->update([\n 'user_id' => $user->id,\n 'reg_no' => $request->reg_no,\n 'sponsor' => $request->sponsor,\n 'gender_id' => $request->gender_id,\n 'disability' => $request->disability,\n ]);\n } \n \n if($request->image){\n $images = now()->format('Ymdhis') . rand(1000, 9999) . '.' . $request->image->extension();\n if ($request->hasFile('image')) {\n $stored = $request->image->storeAs('public/attachments', $images);\n \n $user->student()->update([\n 'image_path' => 'storage/attachments/'.$images,\n ]);\n }\n else{\n return redirect()->back()->with('success',\n 'Oopss! it seems that your file atachment is wrong, please try again.');\n }\n }\n return redirect()->route('students.index')->with('success',\n 'Your created succesfully!.');\n }", "public function update(StoreStudent $request, $id)\n {\n $student = Student::findOrfail($id);\n $student->firstName = $request->input('firstName');\n $student->lastName = $request->input('lastName');\n $student->save();\n session()->flash('success', 'Student SuccessFully Updated');\n return redirect()->route('student.index');\n }", "public function update(Request $request, Studentpreferences $studentpreferences)\n {\n //\n }", "function watchStudent( $sessionID, $studentID ) {\r\n\t\tif( $this->userCanWatchStudent( $sessionID, $studentID ) && !( $this->userIsWatchingStudent( $sessionID, $studentID )) ) {\r\n\t\t\tif(empty($this->link)){\r\n\t\t\t\techo \"Not connected to database. Unexpected error. Contact your system administrator.\";\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t\t//$query = \"SELECT UsersWatching FROM students WHERE StudentID='$studentID'\";\r\n\t\t\t$user = $_SESSION['userid'];\r\n\t\t\t$query=\"insert into studentwatch (userid, studentid) values ('$user','$studentID')\";\r\n\t\t\tmysql_query($query);\r\n\t\t}\r\n\t}", "public function update(Request $request, Student $student)\n {\n $student->firstname = $request['firstname'];\n $student->secondname = $request['secondname'];\n $student->admission_no = $request['admission_no'];\n $student->class = $request['class'];\n $student->surname = $request['surname'];\n $student->phone_no = $request['phone_no'];\n $student->address = $request['address'];\n $upload = new Fileupload();\n if ($request->has('signature')){\n $response = $upload->upload($request->file('signature'),'signature');\n if(!empty($student->signature)) {\n unlink($student->signature);\n }\n $student->signature = $response;\n }\n if ($request->has('image')) {\n $response = $upload->upload($request->file('image'),'passport');\n if(!empty($student->image)) {\n unlink($student->image);\n }\n $student->image = $response;\n }\n try {\n $student->save();\n Alert::success('Success', 'Action Successful');\n return back();\n }catch(QueryException $queryException){\n return $queryException->getMessage();\n }\n }", "public function update(StudentRequest $request, $id)\n {\n if (Menu::hasAccess(\"students\", \"edit\")) {\n $user_id=Auth::id();\n\n $student = Student::find($id);\n $data = $request->except(['religion_id','class_id','disability_id','dob','admission_date','departure_date','student_image','student_smile_image','student_poster_image']);\n $data['dob'] = !is_null($request->dob) ? date(\"Y-m-d\", strtotime(str_replace('/', '-', $request->dob))) : '';\n $data['admission_date'] = !is_null($request->admission_date) ? date(\"Y-m-d\", strtotime(str_replace('/', '-', $request->admission_date))) : '';\n $data['departure_date'] = !is_null($request->departure_date) ? date(\"Y-m-d\", strtotime(str_replace('/', '-', $request->departure_date))) : '';\n\n $data['religion_id'] = !empty($request->religion_id) ? $request->religion_id : null;\n $data['class_id'] = !empty($request->class_id) ? $request->class_id : null;\n $data['disability_id'] = !empty($request->disability_id) ? $request->disability_id : null;\n $data['updated_by'] =$user_id;\n $data['updated_ip_address'] = CommonHelper::getRealIpAddr();\n\n $student->fill($data);\n if ($student->isDirty('id_card')) {\n $this->validate($request,[\n 'id_card' => 'required|max:150|unique:students'\n ]);\n }\n\n $student->update($data);\n\n Session::flash('seccess_msg',Lang::get('messages.Updated successfully'));\n\n //echo Session::get('seccess_msg');die();\n\n return redirect()->route(config('laraadmin.adminRoute') . '.students.index');\n\n } else {\n return View('error');\n }\n }", "public function update(Request $request, Student $student)\n {\n if($request->input('liberación')||$request->input('solicitudActo')||$request->input('actoProtocolario'))\n {\n if($request->input('liberación'))\n {\n $seguimiento = Seguimiento::where('id',$student->id)\n ->update([\n 'liberación'=>$request->input('liberación')\n ]);\n }\n\n if($request->input('solicitudActo'))\n {\n $seguimiento = Seguimiento::where('id',$student->id)\n ->update([\n 'solicitudActo'=>$request->input('solicitudActo')\n ]);\n }\n\n if($request->input('actoProtocolario'))\n {\n $seguimiento = Seguimiento::where('id',$student->id)\n ->update([\n 'actoProtocolario'=>$request->input('actoProtocolario')\n ]);\n }\n\n return redirect()->route(\"students.show\",$student)->with('success','Alumno Modificado');\n }\n\n //Actualización de datos del Estudiante\n $student->NoControl = $request->input('numeroControl');\n $student->Nombre = $request->input('nombre');\n $student->Apellidos = $request->input('apellido');\n $student->Correo = $request->input('correo');\n $student->Carrera_id = $request->input('carrera');\n $student->AñoIngreso = $request->input('añoIngreso');\n $student->PeriodoIngreso = $request->input('periodoIngreso');\n $student->AñoTitulación = 0;\n $student->PeriodoTitulación = 0;\n $student->observaciones = \"\";\n $student->Sexo = $request->input('sexo');\n\n $student->save();\n\n //Actualización de telefonos del Estudiante\n $phone_id= $student->telefonos[0]->idTelefono;\n $phone = Telefono::where('idTelefono',$phone_id)\n ->update([\n 'numeroTel'=>$request->input('tel1')\n ]);\n\n $phone_id= $student->telefonos[1]->idTelefono;\n $phone = Telefono::where('idTelefono',$phone_id)\n ->update([\n 'numeroTel'=>$request->input('tel2')\n ]);\n\n $phone_id= $student->telefonos[2]->idTelefono;\n $phone = Telefono::where('idTelefono',$phone_id)\n ->update([\n 'numeroTel'=>$request->input('tel3')\n ]);\n\n\n $seguimiento = Seguimiento::where('id',$student->id)\n ->update([\n 'metodo_id'=>$request->input('metodo'),\n 'autRegistro'=>$request->input('autoResgistro'),\n 'recibido'=>$request->input('recibido')\n ]);\n\n return redirect()->route(\"students.show\",$student)->with('success','Alumno Modificado');\n\n }", "public function updateStudentSessionRecord($student_id, $session_id, $class_id, $class_type, $class_arm, $subject, $subject_total_score, $subject_average_score, $subject_session_grade, $student_subject_status){\n\t\t\t$query = $this->connection()->prepare(\"UPDATE student_session_record SET subject_total_score='$subject_total_score', subject_average_score='$subject_average_score', subject_session_grade='$subject_session_grade', student_subject_status='$student_subject_status' WHERE student_id='$student_id' AND clazz_id='$class_id' AND clazz_type_id='$class_type' AND class_arm_id='$class_arm' AND sessionz_id='$session_id' AND subject_id='$subject'\");\n\t\t $query->execute();\n\t\t return true;\n\n\t\t}", "function updateProgress($id, $student, $course, $grade, $aim, $comment, $dates){\n\n\t\t$this->connection->query(\"UPDATE progress SET prog_course='$course', prog_grade='$grade', prog_aim='$aim', prog_comment='$comment', prog_date='$dates' WHERE id='$id' AND prog_student='$student'\",true);\n\t\tif($_SESSION['query']){\n\t\t\treturn \"Student progress data Successfully updated\";\n\t\t}else{\n\t\t\treturn \"Failed to update Student progress data!\";\t\t\n\t\t}\t\n\n\t}", "public function register_student(Student $student): string {\n $cookie = SecurityUtil::generate_token();\n\n $stmt = $this->db->prepare('INSERT INTO students(forename, surname, email, group_id, exam_results, birth_year, is_foreign, gender, cookie) VALUES (?,?,?,?,?,?,?,?,?)');\n $stmt->execute(array(strval($student->forename),\n strval($student->surname),\n strval($student->email),\n strval($student->group_id),\n intval($student->exam_results),\n intval($student->birth_year),\n intval($student->is_foreign),\n intval($student->gender),\n $cookie));\n $stmt->closeCursor();\n return $cookie;\n }", "public function student_won_update(Request $request){\n $student_id = Session::get('student_id');\n $data =array();\n\n $data['student_fname'] = $request->student_fname;\n\n $data['student_surname'] = $request->student_surname;\n\n\n $data['student_password'] = md5($request->student_password);\n $data['student_phone'] = $request->student_phone;\n\n\n DB::table('student_tbl')\n ->where('student_id',$student_id)\n ->update($data);\n Session::put('exception','Student Update Successfully ');\n return Redirect::to('/student_setting');\n }", "public function update(Request $request)\n {\n if(!$request->ajax()) return redirect('/');\n\n try {\n DB::beginTransaction();\n //Search the user who's about to get modified\n $student = Student::findOrFail($request->id);\n \n $user = User::findOrFail($student->id_user);\n if ($student->id_q8 != $request->id_q8) {\n $group1 = Q8::findOrFail($student->id_q8);\n $group2 = Q8::findOrFail($request->id_q8);\n $group1->num_students--;\n $group2->num_students++;\n $group1->save();\n $group2->save();\n\n }\n\n $student->name = strtoupper($request->name);\n $student->paternal_surname = strtoupper($request->paternal_surname);\n $student->maternal_surname = strtoupper($request->maternal_surname);\n $student->period = strtoupper($request->period);\n $student->id_q8 = $request->id_q8;\n $student->id_group = $request->id_group;\n $student->grade = $request->grade;\n $student->save();\n\n $user->email = $request->username;\n //$user->password = bycrypt($request->password);\n $user->condition = '1';\n $user->save();\n\n DB::commit();\n\n } catch (Exception $e) {\n DB::rollBack();\n }\n }", "public function update(SplSubject $subject) {\n switch ($subject->getOperation()) {\n case 'in':\n $_SESSION['user'] = serialize($subject->getUser());\n \n header(\"location:index.php\");\n break;\n case 'out':\n unset($_SESSION['user']);\n echo '<script>window.location=\"login.php\"</script>';\n break;\n }\n }", "public function update($id) {\n// $stud = master_students::find($id);\n// $stud->first_name = request('first_name');\n// $stud->last_name = request('last_name');\n// $stud->gender = request('gender');\n// $stud->class_id = request('class');\n// $stud->sec_id = request('section');\n// $stud->pho_no = request('pho_no');\n// $stud->save();\n//\n// return response()->json(['success' => 'Student saved successfully.', 'id' => $stud->id]\n// );\n }", "function modifyStudent( $sessionID, $studentID, $studentInfo ) {\r\n\t\tif( $this->userCanModifyStudent( $sessionID ) ) {\r\n\t\t\t$keys = array_keys($studentInfo);\r\n\t\t\t$query = 'UPDATE students SET ';\r\n\t\t\tfor ($i=0; $i<sizeof($studentInfo); $i++){\r\n\t\t\t\tif ($i == 0){\r\n\t\t\t\t\t$query .= $keys[$i].\"='\".addslashes(htmlspecialchars($studentInfo[$keys[$i]])).\"'\";\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t$query .= ', '.$keys[$i].\"='\".addslashes(htmlspecialchars($studentInfo[$keys[$i]])).\"'\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$query .= \" ,Modifier='\".$_SESSION['userid'].\"' WHERE StudentID='\".$studentID.\"'\";\r\n\t\t\t$result = mysql_query($query);\r\n\t\t}\r\n\t}", "public function update(Request $request, Student $studentobj)\n {\n $studentobj->name = $request->name;\n $studentobj->gender = $request->gender;\n $studentobj->email = $request->email;\n $studentobj->dob = $request->dob;\n if ($request->hasFile('image')) {\n Storage::delete($studentobj->image);\n $studentobj->image = $request->image->store('images');\n }\n// if ($studentobj->isClean()) {\n// return response()->json('You need to specify a different value to update', 422);\n// }\n $studentobj->save();\n // return response()->json($studentobj);\n return view('admin.students.edit',[\n 'student'=> $studentobj\n ]);\n }", "public function update(Request $request, Student $student)\n {\n // return $student; \n $student->fill($request->except('avatar'));\n if ($request->hasFile('avatar'))\n { \n $file = $request->file('avatar');\n $nameFile = time().$file->getClientOriginalName();\n $student->avatar = $nameFile;\n $file->move(public_path().'/images/students/', $nameFile);\n // return $nameFile;\n } \n $student->save();\n return redirect('students');\n }", "function updatemark($assid,$questionid, $studentid, $mark){\n\t\t\t$strQuery=\"update answers set mark = '$mark' where questionid = '$questionid' and stid = '$studentid' and assid='$assid'\";\n\t\t\t$result = $this->query($strQuery);\n\t}", "private function updateCookieHeader()\n {\n $strings = [];\n\n foreach ($this->cookies as $key => $value) {\n $strings[] = \"{$key}={$value}\";\n }\n\n $this->setHeader('cookie', implode('; ', $strings));\n }", "function save()\n {\n $this->getSession()->set($this->getCookieJarName(), $this->cookieJar);\n }", "public function update(Request $request, Student $student)\n {\n request()->validate([\n 'student_name' => 'required',\n 'unique_identifier' => 'required',\n 'date_of_birth' => 'required',\n 'gender' => 'required',\n 'nationality' => 'required',\n 'grade_id' => 'required',\n 'school_id' => 'required',\n ]);\n\n $student->update($request->all());\n\n return redirect()->route('students.index')\n ->with('success','Student updated successfully');\n }", "public function update(Request $request, Student $student)\n {\n /**\n * Validate the request\n */\n $request->validate( [\n 'student_code' => [ 'required', 'max:255', Rule::unique(Student::class)->ignore($student) ],\n 'first_name' => [ 'required', 'max:255' ],\n 'father_name' => [ 'required', 'max:255' ],\n 'last_name' => [ 'required', 'max:255' ],\n 'phone_number' => [ 'nullable', 'max:255' ],\n 'email' => [ 'nullable', 'email' ],\n 'date_of_birth' => [ 'required', 'date', 'before:today' ],\n 'password' => [ 'nullable', 'max:255', 'confirmed' ],\n 'password_confirmation' => [ 'nullable', 'max:255' ],\n ] );\n\n /**\n * Create an array of model values to update\n */\n $values_to_update = $request->only([\n\n 'student_code',\n 'first_name',\n 'father_name',\n 'last_name',\n 'phone_number',\n 'email',\n 'date_of_birth',\n\n ]);\n\n /**\n * Check if the password field is set\n * And add it to the array\n */\n if ( ! empty( $request->password ) ) {\n\n $values_to_update['password'] = Hash::make( $request->password );\n\n }\n\n /**\n * Update the database record\n */\n $student->update( $values_to_update );\n\n /**\n * Redirect back with success message\n */\n return back()\n ->with('status', 'success')\n ->with('message', 'Student Updated Successfully!');\n }", "public function setCookie(Cookie $cookie)\n {\n $this->cookies[$cookie->getName()] = $cookie;\n }", "public function update(Request $request, $id)\n {\n $data = Student::find($id);\n \n $data->student_name=$request->student_name;\n $data->age=$request->age;\n $data->gender=$request->gender;\n $data->teacher_id=$request->teacher_id;\n $data->save();\n return redirect()->route('student.index');\n }", "public function updateInfoStudent($data)\n {\n $studentModel = new StudentModel();\n return $studentModel->updateInfoStudent($data);\n }", "public function update(Request $request, $id)\n {\n $post = $request->except('_token');\n\n $res = DB::table('student')->where('student_id',$id)->update($post);\n if($res !== false){\n return redirect('student/list');\n }\n }", "function storeInCookie($user_profile_data)\n{\n\t$context = Context::getContext();\n\t$cookie = $context->cookie;\n\t$cookie->login_radius_data = serialize($user_profile_data);\n}", "public function update(Request $request, Student $student)\n {\n $validate = $request->validate([\n 'nisn' => 'required|min:11|max:13',\n 'name' => 'required',\n 'email' => 'required|unique:users,email,'.$student->email.',email',\n 'phone' => 'sometimes|min:9|max:13',\n 'major_id' => 'required',\n 'address' => 'required'\n ]);\n\n $student->update($validate);\n\n $student->user->update($validate);\n\n return redirect()->route('student.index')->with('success', 'Siswa berhasil diedit');\n }", "public function update(Request $request, $id)\n {\n //\n $student = Student::find($id);\n // $student = new Student();\n $student->cne = $request->cne;\n $student->firstName = $request->firstname;\n $student->secondName = $request->secondname;\n $student->age = $request->age;\n $student->speciality = $request->speciality;\n $student->save();\n return redirect('/');\n \n\n }", "function action_update() {\n global $CURMAN;\n\n $stuid = $this->required_param('association_id', PARAM_INT);\n $clsid = $this->required_param('id', PARAM_INT);\n $users = $this->required_param('users');\n\n $uid = key($users);\n $user = current($users);\n\n $sturecord = array();\n $sturecord['id'] = $stuid;\n $sturecord['classid'] = $clsid;\n $sturecord['userid'] = $uid;\n\n $startyear = $user['startyear'];\n $startmonth = $user['startmonth'];\n $startday = $user['startday'];\n $sturecord['enrolmenttime'] = mktime(0, 0, 0, $startmonth, $startday, $startyear);\n\n $endyear = $user['endyear'];\n $endmonth = $user['endmonth'];\n $endday = $user['endday'];\n $sturecord['completetime'] = mktime(0, 0, 0, $endmonth, $endday, $endyear);\n\n $sturecord['completestatusid'] = $user['completestatusid'];\n $sturecord['grade'] = $user['grade'];\n $sturecord['credits'] = $user['credits'];\n $sturecord['locked'] = !empty($user['locked']) ? 1 : 0;\n $stu = new student($sturecord);\n\n if ($stu->completestatusid == STUSTATUS_PASSED &&\n $CURMAN->db->get_field(STUTABLE, 'completestatusid', 'id', $stuid) != STUSTATUS_PASSED) {\n\n $stu->complete();\n } else {\n if (($status = $stu->update()) !== true) {\n echo cm_error('Record not updated. Reason: ' . $status->message);\n }\n }\n\n /// Check for grade records...\n $element = cm_get_param('element', array());\n $newelement = cm_get_param('newelement', array());\n $timegraded = cm_get_param('timegraded', array());\n $newtimegraded = cm_get_param('newtimegraded', array());\n $completionid = cm_get_param('completionid', array());\n $newcompletionid = cm_get_param('newcompletionid', array());\n $grade = cm_get_param('grade', array());\n $newgrade = cm_get_param('newgrade', array());\n $locked = cm_get_param('locked', array());\n $newlocked = cm_get_param('newlocked', array());\n\n foreach ($element as $gradeid => $element) {\n $graderec = array();\n $graderec['id'] = $gradeid;\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $timegraded[$gradeid]['startmonth'],\n $timegraded[$gradeid]['startday'], $timegraded[$gradeid]['startyear']);\n $graderec['grade'] = $grade[$gradeid];\n $graderec['locked'] = isset($locked[$gradeid]) ? $locked[$gradeid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->update();\n }\n\n foreach ($newelement as $elementid => $element) {\n $graderec = array();\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $newtimegraded[$elementid]['startmonth'],\n $newtimegraded[$elementid]['startday'], $newtimegraded[$elementid]['startyear']);\n $graderec['grade'] = $newgrade[$elementid];\n $graderec['locked'] = isset($newlocked[$elementid]) ? $newlocked[$elementid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->add();\n }\n\n $this->action_default();\n }", "public function update(Request $request, ClassType $classType, Student $student)\n {\n //\n }", "public function test_protected_setCookie()\n {\n $cookies = $this->object->getCookies($this->serviceUrl_1c);\n $this->assertInternalType('array', $cookies);\n $this->assertEquals(1, count($cookies));\n $this->assertEquals('k1jut1r1bqrumpei837kk4jks0', $cookies['SID']);\n }", "public function updateStudentProfile(Request $request, $studentId)\n {\n $user = Student::where('id', $studentId)->first();\n //Als er geen user gevonden wordt met de id: terugsturen\n if (!$user) {\n return redirect()->back();\n }\n //Alle data van de huidige user valideren\n if ($user) {\n $request->validate([\n 'name' => 'required|min:2',\n 'email' => 'required|email',\n 'age' => 'required|min:2',\n 'bio' => 'nullable',\n 'preference' => 'nullable',\n 'tools' => 'nullable',\n //'cv' => 'nullable|file',\n 'portfolio' => 'nullable|url',\n 'location' => 'nullable',\n 'linkedin' => 'nullable|url'\n ]);\n\n //location optimizer\n $request->flash();\n $adress = $request['location'];\n $url = \"https://autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json?apiKey=luU8UTYMpklXDLiQjJLL6bABVPbs8dEJGnRfevERRxg&query=$adress\";\n $response = Http::get($url)->json();\n \n //locatie niet gevonden\n if ($response == 'Unauthorized') {\n $myresponse = $request['location'];\n } elseif ($response == null) {\n $myresponse = \"\";\n } elseif ($response['suggestions'] == null) {\n $myresponse = $request['location'];\n\n //locatie wel gevonden -> verder aanvullen\n } else {\n $myresponse = $response['suggestions'][0]['label'];\n }\n\n //Alles toevoegen aan db\n Student::where('id', $studentId)->update($request->except('_token', 'location', 'submit'));\n Student::where('id', $studentId)->update(['location' => $myresponse]);\n //success boodschap printen\n $request->session()->flash('success', 'Your details have now been updated.');\n return redirect()->back();\n }\n }", "public function update(Request $request, Student $student)\n {\n $request->validate([\n \"name\" => 'required',\n \"email\" => 'required',\n \"photo\" => 'sometimes',\n \"oldphoto\" => 'required',\n \"address\" => 'required',\n \"dob\" => 'required',\n \"fname\" => 'required',\n \"father_nrc\" => 'required'\n\n \n ]);\n //file upload, if data\n if ($request->hasFile('photo')){\n $imageName = time().'.'.$request->photo->extension();\n $request->photo->move(public_path('backend/stuimg'),$imageName);\n $path = 'backend/stuimg/'.$imageName;\n\n }else{\n $path = $request->oldphoto;\n }\n $user_id=$request->user_id;\n $user=User::find($user_id);\n $user->name = $request->name;\n $user->email = $request->email;\n $user->password =Hash::make('123456789'); \n $user->save();\n $id=$user->id;\n\n \n $student->photo = $path;\n $student->address = $request->address;\n $student->dob = $request->dob;\n $student->fname = $request->fname;\n $student->father_nrc =$request->father_nrc;\n $student->user_id=$id;\n $student->academic_id = $request->academic;\n $student->class_id=$request->class;\n $student->subject_id=1;\n $student->save();\n\n return redirect()->route('student.index');\n }", "protected function saveDate()\n\t{\n\t\t$this->year = FilterSingleton::number($_POST['year']);\n\t\t$this->month = FilterSingleton::number($_POST['month']); \n\n\t\tif($this->year !== 0 && $this->month !== 0){\n\t\t\tsetcookie(\"date\", json_encode([$this->year, $this->month]), time()+3600, '/');\n\t\t}\n\t\telse {\n\t\t\tif( isset($_COOKIE['date']) ){\n\t\t\t\t$date = json_decode($_COOKIE['date'], true);\n\t\t\t\t$this->year = $date[0];\n\t\t\t\t$this->month = $date[1];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->year = getdate()['year'];\n\t\t\t\t$this->month = getdate()['mon'];\n\t\t\t}\n\t\t}\n\t}", "public function updateBook()\n\t{\n\t\tif (cookie('staffAccount') != '') {\n\t\t\t$ISBN = $_POST['ISBN'];\n\t\t\t$title = $_POST['title'];\n\t\t\t$author = $_POST['author'];\n\t\t\t$press = $_POST['press'];\n\t\t\t$category = $_POST['category'];\n\t\t\t$pub_date = $_POST['pub_date'];\n\t\t\t$price = $_POST['price'];\n\t\t\t$floor = $_POST['floor'];\n\t\t\t$bookshelf = $_POST['bookshelf'];\n\t\t\t$area_code = $_POST['area_code'];\n\n\t\t\t$book = D('Book_species');\n\t\t\t$sql = \"update lib_book_species set title = '{$title}',author='{$author}',press='{$press}',\n\t\t\t\t \tcategory='{$category}',pub_date='{$pub_date}',price='{$price}',\n\t\t\t\t \tfloor='{$floor}',bookshelf='{$bookshelf}',area_code='{$area_code}'\n\t\t\t\t \twhere isbn = '{$ISBN}'\";\n\t\t\t$return = $book->execute($sql);\n\n\t\t\tif ($return) {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'success',\n\t\t\t\t\t'msg' => 'Modify successfully!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\t\t\t} else {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'SQL Error!'\n\t\t\t\t));\n\t\t\t\techo $json;\n\t\t\t}\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail',\n\t\t\t\t'msg' => 'Please Login!'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "public function update()\n {\n if ($this->temp_reg_no == $this->student->reg_no) {\n $this->rules['student.reg_no'] = 'required|string|max:10|alpha_dash';\n }\n\n $validatedData = $this->validate();\n\n Student::where('id', $this->student->id)\n ->update($validatedData['student']);\n\n session()->flash('alert', true);\n return redirect()->to('students');\n }", "public function update($student_id = NULL, $course_id = NULL)\n\t{\n\t\t// Log db action\n\t\tLog::info('get student_course_grade object');\n\n\t\t// Get updates from request\n\t\t$score = Input::get('score');\n\n\t\t// Save\n\t\tLog::info('studentCourseGrade object: Save');\n\n\t\t// Fake return data\n\t\t$student_course_grade = array(\n\t\t\t'id' => 1,\n\t\t\t'student_id' => $student_id,\n\t\t\t'course_id' => $course_id,\n\t\t\t'score' => $score\n\n\t\t);\n\n\t\t// Return\n\t\treturn Response::json(array(\n\t\t\t'error' => false,\n\t\t\t'data' => $student_course_grade),\n\t\t\t200\n\t\t);\n\t}", "public function set_cookie()\n {\n }", "public function update(Request $request, User $student)\n {\n $validator = Validator::make($request->all(), [\n 'fname' => ['required', 'string', 'max:255'],\n 'lname' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'email', 'max:255'],\n 'password' => ['nullable', 'string', 'min:8', 'confirmed'],\n 'grade_id' => ['required', 'integer'],\n 'subjects' => ['required', 'Array'],\n 'home_phone' => ['required', 'string'],\n 'cell_phone' => ['nullable', 'string'],\n 'address' => ['required', 'string'],\n 'city' => ['required', 'string'],\n 'state_id' => ['required', 'integer'],\n 'pcode' => ['required', 'string'],\n 'country_id' => ['required', 'integer'],\n 'parent_fname' => ['required', 'string'],\n 'parent_lname' => ['required', 'string'],\n 'service_method' => ['required', 'string'],\n 'other_notes' => ['nullable', 'string'],\n 'school' => ['required', 'string'],\n 'major_intersection' => ['required', 'string'],\n 'referrer_id' => ['nullable', 'integer'],\n 'student_status_id' => ['nullable', 'integer'],\n 'approved' => ['nullable', 'integer'],\n 'status' => ['nullable', 'integer'],\n ]);\n\n if ($validator->fails()) {\n session()->flash('error', $validator -> messages() -> first());\n return redirect()->route('admin.students.edit', $student);\n }\n $data = $request->all();\n $student-> email = $data['email'];\n if ($data['password']) {\n $student-> password = Hash::make($data['password']);\n } \n $student-> fname = $data['fname'];\n $student-> lname = $data['lname'];\n $student-> grade_id = $data['grade_id'];\n $student-> parent_fname = $data['parent_fname'];\n $student-> parent_lname = $data['parent_lname'];\n $student-> home_phone = $data['home_phone'];\n $student-> cell_phone = $data['cell_phone'];\n $student-> address = $data['address'];\n $student-> city = $data['city'];\n $student-> state_id = $data['state_id'];\n $student-> pcode = $data['pcode'];\n $student-> country_id = $data['country_id'];\n $student-> service_method = $data['service_method'];\n $student-> other_notes = $data['other_notes'];\n $student-> major_intersection = $data['major_intersection'];\n $student-> school = $data['school'];\n $student-> referrer_id = $data['referrer_id'];\n $student-> student_status_id = $data['student_status_id'];\n $student-> approved = $data['approved'];\n $student-> status = $data['status'];\n\n $student-> subjects() -> sync($data['subjects']);\n if (!$student->save())\n {\n session()->flash('error', \"There is an error modifying student!\");\n return redirect()->route('admin.students.edit', $student);\n }\n ActivityLog::log_activity(Auth::user()->id, \"Profile Updated\", \"Student profile details updated.\");\n session()->flash('success', \"You have modified student!\");\n return redirect()->route('admin.students.index');\n }", "public function update(Request $request, student_sibling $student_sibling)\n {\n //\n }", "public function update(User $user, Student $student)\n {\n if($user->hasPermissionTo(\"edit students\")){\n return Response::allow();\n }\n return Response::deny(__('message.UnauthorizedUpdateStd'),401);\n }", "public function update(Request $request, Student $student)\n {\n //\n $validator = Validator::make(\n $request->all(), $this->rules(), $this->rules_message(),\n );\n\n if ($validator->fails()) {\n return back()\n ->withErrors($validator)\n ->withInput();\n }\n\n // If validation pass ----------v\n $student->update($request->all()); // Update Student record\n\n // Get Existing Student Class Data for Current Year\n $student_class = StudentClass::where('year', date('Y'))->first();\n if(!empty($student_class))\n {\n // If exist\n $student_class->class_id = $request->current_class_id;\n $student_class->save();\n\n } else {\n\n // If not exist\n $student_class = StudentClass::create([\n 'stu_id' => $student->id,\n 'class_id' => $request->current_class_id,\n 'year' => date('Y'),\n 'status' => $request->status,\n ]);\n\n }\n\n if($request->hasfile('student_image')) // Check if file exist\n {\n $file = $request->file('student_image'); // Get file from request\n\n $file_info['getClientOriginalName'] = $file->getClientOriginalName(); // Get Original File Name\n $file_info['getClientOriginalExtension'] = $file->getClientOriginalExtension(); // Get File Extension\n $file_info['getRealPath'] = $file->getRealPath(); // Get File Real Path\n $file_info['getMimeType'] = $file->getMimeType(); // Get File Mime Type\n\n $new_filename = 'student_image_'.date('Ymd_his').'.'.$file_info['getClientOriginalExtension']; // Generate new filename\n $file_path = '/public/student_images/'; // Assign Storage path\n\n $uploaded_file_data = $file->storeAs($file_path, $new_filename); // Move file to Storage location\n\n // If Upload success\n if(!empty($uploaded_file_data))\n {\n $student_image = $student->student_image; // Get StudentImage record for the Student\n if(!empty($student_image))\n {\n // Update Existing Image \n $student_image->si_filename = $new_filename;\n $student_image->si_filepath = $file_path;\n $student_image->si_fullpath = $file_path.$new_filename;\n $student_image->si_extension = $file_info['getClientOriginalExtension'];\n $student_image->update();\n } else {\n // Store New Image if Not Exist\n $student_image = StudentImage::create([\n 'si_filename' => $new_filename,\n 'si_filepath' => $file_path,\n 'si_fullpath' => $file_path.$new_filename,\n 'si_extension' => $file_info['getClientOriginalExtension'],\n 'stu_id' => $student->stu_id,\n 'status' => 1,\n ]);\n }\n }\n }\n\n return redirect()->route('student_extra.index')->with('success', 'Student <b>'.$student->stu_name.'</b> has been updated successfully');\n }", "public function setCookie($cookie)\n {\n $this->cookie = $cookie;\n curl_setopt($this->ch, CURLOPT_COOKIE, $cookie);\n }", "public function update(Request $request, Student $student)\n {\n $input = Input::all();\n\n $student->name = Input::get('name');\n $student->age = Input::get('age');\n $student->qualification = Input::get('qualification');\n\n $student->save();\n\n return $this->ResultFormatter($student);\n }", "public function update($cst, $currentUserName)\n {\n $this->model->updateCustomer($cst, $currentUserName);\n }", "public function rememberStudentModelAction()\r\n { \r\n $session = new Container('models');\r\n $studentModel = $this->serviceManager->get(StudentModel::class);\r\n if(isset($session->studentModelData))\r\n {\r\n $studentModel->exchangeArray($session->studentModelData);\r\n }\r\n \r\n $data = $this->request->getPost(); \r\n $file = $this->params()->fromFiles('photo');\r\n if($file != null && !empty($file['name']))\r\n {\r\n $imgDir = getcwd() . '/public';\r\n $data['image'] = '/img/temp/'.$file['name'];\r\n copy($file['tmp_name'], $imgDir.$data['image']);\r\n }\r\n \r\n $studentModel->student->exchangeArray($data);\r\n $session->studentModelData = $studentModel->getArrayCopy();\r\n \r\n $this->viewModel->setVariable('response', json_encode($session->studentModelData));\r\n return $this->viewModel;\r\n }", "public function activation($cnestudent)\r\n {\r\n $req=$this->student->changeetat($cnestudent); // change the etat\r\n $this->students(); // show the update list of student\r\n }", "function update_student_id1($id,$data){\n\t$this->db->where('student_id', $id);\n\t$this->db->update('students', $data);\n\t}", "public function update(Request $request, PreRegisteredStudent $preRegisteredStudent)\n {\n //\n }", "public function set()\n {\n setcookie($this->name, $this->value, $this->time);\n\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }", "public function edit(Student $student)\n {\n //\n }" ]
[ "0.5966551", "0.57385606", "0.570764", "0.5673814", "0.5631362", "0.55689603", "0.555878", "0.55534416", "0.55418015", "0.55287653", "0.5524608", "0.55244565", "0.5510976", "0.55019224", "0.5476816", "0.5471941", "0.5435862", "0.54301465", "0.54301465", "0.54301465", "0.54301465", "0.54301465", "0.54301465", "0.54301465", "0.5418783", "0.5375785", "0.5368076", "0.5325108", "0.532179", "0.53135705", "0.5295037", "0.52937233", "0.52815926", "0.5248854", "0.5244942", "0.52264184", "0.52128565", "0.5189549", "0.5158201", "0.5141571", "0.5137323", "0.513595", "0.51336473", "0.5113052", "0.5111622", "0.5104051", "0.5102113", "0.5099202", "0.50881964", "0.5087937", "0.50831753", "0.5077175", "0.5075978", "0.5071925", "0.5068774", "0.50656223", "0.5051587", "0.50288594", "0.50239927", "0.50210583", "0.50194836", "0.5014881", "0.50102895", "0.50094277", "0.50028974", "0.50015205", "0.49973094", "0.4993052", "0.49913186", "0.49877188", "0.49820268", "0.4981724", "0.49794355", "0.4973211", "0.49676493", "0.49585885", "0.49501407", "0.49463943", "0.494613", "0.49355474", "0.4919719", "0.49152786", "0.4910983", "0.49090353", "0.49087816", "0.49051407", "0.49028367", "0.49008814", "0.49000022", "0.4898808", "0.48823032", "0.48768765", "0.4867221", "0.48671156", "0.48671156", "0.48671156", "0.48671156", "0.48671156", "0.48671156", "0.48671156" ]
0.76887363
0
Returns true if student with such email is registered.
Возвращает true, если студент с таким email зарегистрирован.
public function is_student_with_email_registered(string $email): bool { $query = $this->db->prepare("SELECT COUNT(email) FROM students WHERE email=? LIMIT 1"); $query->execute(array($email)); $result = $query->fetch(\PDO::FETCH_NUM); $is_registered = intval($result[0]) != 0; $query->closeCursor(); return $is_registered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _emailIsRegistered($email_address) {\r\n\t\t$model = Mage::getModel('customer/customer');\r\n $model->setWebsiteId(Mage::app()->getStore()->getWebsiteId())->loadByEmail($email_address);\r\n\t\tif ($model->getId()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function is_registered($email) {\n\t\tglobal $pdo;\n\n\t\t//delete old registration attempts\n\t\t$pdo->query(\"DELETE FROM user WHERE verified = 0 AND TIME_TO_SEC(TIMEDIFF(CURRENT_TIMESTAMP, code_generation_time)) > 600\");\n\n\t\t//empty or array check\n\t\tif(empty($email) || is_array($email)) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//check if user exists\n\t\t$sql = \"SELECT id FROM user WHERE REPLACE(email, \\\".\\\", \\\"\\\") = REPLACE(:email, \\\".\\\", \\\"\\\")\";\n\t\t$sth = $pdo->prepare($sql);\n\t\t$sth->bindValue(\":email\", mail_simplify($email), PDO::PARAM_STR);\n\t\t$sth->execute();\n\n\t\tif($sth->rowCount() == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "function check_email_exists($email)\n\t{\n\n\t\tglobal $Oau_auth;\n\t\t$email = sanitize($email);\n\n\t\t$query = \"SELECT `student_Idn` FROM `student` WHERE `email` = '$email'\";\n\t\t$run_query = mysqli_query($Oau_auth, $query);\n\n\t\tif(mysqli_num_rows($run_query) > 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t}", "private function check_for_email($email)\r\n\t{\r\n\t\t//We make use of the global dbCon that we've created in the config file\r\n\t\tglobal $dbCon;\r\n\r\n\t\t//SQL statement where we Count the occurances (it's faster!)\r\n\t\t$sql = \"SELECT COUNT(id) AS students FROM student WHERE email = ?;\";\r\n\t\t$stmt = $dbCon->prepare($sql); //Prepare Statement\r\n\t\tif ($stmt === false)\r\n\t\t{\r\n\t\t\ttrigger_error('SQL Error: ' . $dbCon->error, E_USER_ERROR);\r\n\t\t}\r\n\t\t$stmt->bind_param('s', $email);\r\n\t\t$stmt->execute(); //Execute\r\n\t\t$stmt->bind_result($students); //Get ResultSet\r\n\t\t$stmt->fetch();\r\n\t\t$stmt->close();\r\n\r\n\t\tif ($students > 0)\r\n\t\t{\r\n\t\t\treturn \"Email is already in system. Try to log in!\";\r\n\t\t}\r\n\t\treturn TRUE;\r\n\t}", "public function isRegistered($email)\n {\n // Create a db instance\n $db = new Database();\n // Create a user DB connection to get data from User_Event_Details table\n $userDB = $db->getUserDBConnection();\n // Query database for eid and get all details\n $query = \"SELECT * FROM User_Event_Details WHERE Email='\" . $email . \"' AND EID='\" . $this->eid . \"';\";\n // Prepare query statement\n $stmt = $userDB->prepare($query);\n // Execute query\n $stmt->execute();\n // Fetch a row\n $result = $stmt->fetch();\n // If no row has been returned\n if ($result == false) {\n return false;\n }\n return true;\n }", "function isUserRegistered($email) {\n\t\ttry {\n \t\tif($email==null) {\n \treturn false;\n \texit();\n\t\t}\n\t\t$mailCheck = $this->connection->prepare(\"SELECT `EMAIL` from win WHERE `email` = ?\");\n\t\t$mailCheck->bindValue(1, $email);\n\t\t$mailCheck->execute();\n\t\tif ($mailCheck->rowCount() > 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n \treturn false;\n \texit();\n\t\t}\n\t}\n\t\tcatch(Exception $e) {\n\t\t}\n\t}", "public function hasEmail(): bool;", "public function checkIfEmailExists($email);", "public function verify_email($email){\n $query = $this->db->where('01_email', $email)\n ->get('register_01');\n if(sizeof($query->result_array())>0){\n return true;\n }\n else{\n return false;\n }\n }", "public function emailExists($email) {\n\n\t $app = getApp();\n\n\t $sql = 'SELECT ' . $app->getConfig('security_email_property') . ' FROM ' . $this->table .\n\t ' WHERE ' . $app->getConfig('security_email_property') . ' = :email LIMIT 1';\n\n\t $dbh = ConnectionModel::getDbh();\n\t $sth = $dbh->prepare($sql);\n\t $sth->bindValue(':email', $email);\n\n\t if($sth->execute()) {\n\t $foundUser = $sth->fetch();\n\t if($foundUser){\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "public function _check_email_exists($email = ''){\n\t\t\n\t}", "public function exists($email, $token);", "public function exists($emailAddress);", "function email_check($email)\r\n\t{\r\n\t\tif ( $user = $this->generic_model->get_where_single_row('users', array('email' => $email))) \r\n\t\t{\r\n\t\t\t$this->form_validation->set_message('email_check', 'This %s is already registered.');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse { return true; }\r\n\t}", "function userExists($email) {\r\n\t\t\tif ($this->getUser($email) != false)\r\n\t\t\t\treturn true;\r\n\t\t\treturn false;\r\n\t\t}", "function check_existing_email($email){\n $sql = \"SELECT * from mbf_user WHERE email='$email'\";\n $query = $query = $this->db->query($sql);\n if ($query->num_rows() > 0){\n return true;\n }else{\n return false;\n }\n }", "function emailExists($email) {\n\t$db = DB::getInstance();\n\t$query = $db->query(\"SELECT email FROM users WHERE email = ?\",array($email));\n\t$num_returns = $query->count();\n\tif ($num_returns > 0){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "public function isEmailExist() {\n $query = $this->conn->prepare(\"SELECT * FROM subscribers WHERE email = :email\");\n $query->execute([\"email\" => $this->email]);\n $res = $query->fetch(PDO::FETCH_OBJ);\n return $res ? true : false;\n }", "public function is_email_registered($userEmail){\n $query = $this->db->get_where('user', array ('usr_email' => $userEmail));\n $query->row_array();\n\n if ($query->num_rows() > 0){return true;}\n return false;\n }", "function isUserExistsByEmail($email) {\n $query = \"select * from user_profile_details WHERE email='{$email}' \";\n $result_set = mysql_query($query);\n if(isQuerySuccess($result_set)){\n\t\tif (mysql_num_rows($result_set) > 0) { \n\t\t\treturn true;\n\t\t} else { \n\t\t\treturn false;\n\t\t}\t\n\t}\t\n}", "public function isUserExisted($email) {\n $result = mysql_query(\"SELECT email from users2 WHERE email = '$email'\");\n $no_of_rows = mysql_num_rows($result);\n if ($no_of_rows > 0) {\n // user existed\n return true;\n } else {\n // user not existed\n return false;\n }\n }", "public function iN_CheckEmailExistForRegister($email) {\n\t\t$email = mysqli_real_escape_string($this->db, $email);\n\t\t$checkEmail = mysqli_query($this->db, \"SELECT i_user_email FROM i_users WHERE i_user_email = '$email'\") or die(mysqli_error($this->db));\n\t\tif (mysqli_num_rows($checkEmail) == 1) {\n\t\t\treturn true;\n\t\t} else {return false;}\n\t}", "private function isStaffExists($email) {\n $stmt = $this->conn->prepare(\"SELECT staff_id from staff WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "function emailExists($f): bool\n {\n $exists = false;\n if(!empty($this->load(array('email=?',$f->get('POST.login_email'))))){\n $exists = true;\n }\n return $exists;\n }", "function email_exists($email)\n {\n $sql = \"\n SELECT id\n FROM {$this->_db}\n WHERE email = \" . $this->db->escape($email) . \"\n LIMIT 1\n \";\n\n $query = $this->db->query($sql);\n\n if ($query->num_rows())\n {\n return TRUE;\n }\n\n return FALSE;\n }", "function email_exists($email)\n {\n global $connection;\n $query = \"select user_email from users where user_email = '{$email}'\";\n $result = mysqli_query($connection, $query);\n confirmQuery($result);\n if(mysqli_num_rows($result) > 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function isEmailExist($email){ \n $query = mysqli_query($this->database, \"SELECT * FROM users WHERE Gmail = '$email'\"); \n $row = mysqli_num_rows($query); \n if($row > 0){ \n return true; \n } else { \n return false; \n } \n }", "function isUserExisted($email) {\n $result = mysql_query(\"SELECT email from users WHERE email = '$email'\",$first);\n $no_of_rows = mysql_num_rows($result);\n if ($no_of_rows > 0) {\n // user existed \n return true;\n } else {\n // user not existed\n return false;\n }\n }", "public function isUserExisted($email) {\r\n $result = mysqli_query($this->con,\"SELECT email from users WHERE email = '$email'\");\r\n $no_of_rows = mysqli_num_rows($result);\r\n if ($no_of_rows > 0) {\r\n // user existed \r\n return true;\r\n } else {\r\n // user not existed\r\n return false;\r\n }\r\n }", "public function emailExists($email)\n {\n $conn = Db::getInstance();\n $statement = $conn->prepare(\"select * from users where email = :email\");\n $statement->bindParam(\":email\", $email);\n $statement->execute();\n $count = $statement->rowCount();\n if ($count > 0) {\n return true;\n }\n else {\n return false;\n }\n }", "function chk_email($email)\n\t{\n\t\t$str = \"Select u_email from tbl_user where u_email = ?\";\n\t\t\n\t\t//Executes the query\n\t\t$res = $this -> db -> query($str, $email);\n\t\t\n\t\t//Checks whether the result is available in the table\n\t\tif($res -> num_rows() > 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function emailExists($email){\r\n $sql = \"SELECT email FROM users WHERE email = '$email'\";\r\n $count = $this->q($sql)->num_rows;\r\n if ($count > 0 ){ return true; } else{ return false; }\r\n }", "public function isUserExisted($email) {\n $stms = $this->conn->prepare(\"SELECT email from users WHERE email = ?\");\n \n $stms->bind_param(\"s\", $email);\n \n $stms->execute();\n \n $stms->store_result();\n \n if ($stms->num_rows > 0) {\n // user existed \n $stms->close();\n return true;\n } else {\n // user not existed\n $stms->close();\n return false;\n }\n }", "public function isUserEmilExisted($email) {\n $result = mysql_query(\"SELECT * from users WHERE email = '$email'\");\n $no_of_rows = mysql_num_rows($result);\n if ($no_of_rows > 0) {\n // user email existed \n return true;\n } else {\n // user email not existed\n return false;\n }\n }", "public static function existeEmail($email){\n $db = DWESBaseDatos::obtenerInstancia();\n\n $db -> ejecuta(\"SELECT count(*) as cantidad\n FROM usuario WHERE email = ?\", $email);\n $datos= $db->obtenDatos();\n if ($datos[0]['cantidad'] > 0) {\n //echo 'true' .' es verdad';\n return true;\n }else{\n //echo 'false' .' no existe';\n return false;\n }\n\n }", "private function check_email($email){\r\n $this->db->where('email', $email);\r\n $query = $this->db->get('users');\r\n if($query->num_rows() != 0){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n }", "function emailExists($email)\n\t{\n\t\tglobal $db,$db_table_prefix;\n\t\n\t\t$sql = \"SELECT Active FROM \".$db_table_prefix.\"Users\n\t\t\t\tWHERE\n\t\t\t\tEmail = '\".$db->sql_escape(sanitize($email)).\"'\n\t\t\t\tLIMIT 1\";\n\t\n\t\tif(returns_result($sql) > 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\t\n\t}", "public function isUserExisted($email) {\n $stm = $this->db->prepare(\"SELECT email FROM users WHERE email=?\");\n $stm->execute(array($email));\n $user=$stm->fetch(PDO::FETCH_OBJ);\n if($user!=null){\n return true;\n }else{\n false;\n }\n }", "public function Check($email)\n {\n $db = new DB();\n //Check whether user data already exists in database\n $querySelect = \"SELECT \n * \n FROM \n \".$this->userTbl.\" \n WHERE\n email = '\".$email.\"'\";\n $result = $db->prepare($querySelect);\n $result->execute();\n if($result->rowCount() > 0)\n {\n return false;\n }\n else\n {\n return true;\n }\n\n }", "public function check_email_exist($email)\n\t{\n\t\t$query = $this->db->get_where('users', array('email' => $email));\n\t\tif($query->num_rows() > 0) \n { \n return true; \n } \n else \n { \n return false; \n } \n\t}", "public static function email_exists($email) {\n $connection = DatabaseConnection::connection();\n $sql = \"SELECT user_id FROM users WHERE email=:email\";\n $statement = $connection->prepare($sql);\n $statement->execute(['email' => $email]);\n $count = count($statement->fetchAll());\n if($count == 1)\n return TRUE;\n else\n return FALSE;\n }", "function existsByEmail( $email, $oid=null);", "public function check_mail($email) {\n\n\n\t\treturn (mysql_result($this->query(\"SELECT COUNT(`id`) FROM `users` WHERE `email` = '$email'\"), 0) ? true: false);\n\n\t}", "public function hasByEmail(Email $email): bool\n {\n }", "public function is_dispo_email($email)\n\t{\n\t\t$sql=\"SELECT ut_id FROM utilisateur WHERE ut_mail=?\";\n\t\t$tuple = $this->executerRequete($sql,array($email));\n\t\t$numRows = $tuple->rowCount();\n\t\tif($numRows>0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function isUserActive($email) {\n\t\ttry {\n\t\t\t$userCheck = $this->connection->prepare(\"SELECT `EMAIL`,`isActive` from student_data WHERE `EMAIL` = ? AND `isActive` = 1\");\n\t\t\t$userCheck->bindValue(1, $email);\n\t\t\t$userCheck->execute();\n\t\t\tif ($userCheck->rowCount() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {\n\t\t}\n\t}", "private function check_If_Email_Exists($email){\r\n\r\n // Prepare query\r\n $query = \"SELECT * FROM `users` WHERE (Fuid = '' AND Guid = '' AND email = '{$email}')\";\r\n\r\n // Send query into server\r\n $this->_db->get_Rows($query);\r\n\r\n // Return result of query\r\n // True - if find\r\n // False - in dont\r\n return ($this->_db->count() > 0 ) ? true : false;\r\n }", "public function email_exists() {\n\t\t\n\t\t$email = $this->input->post('users_email');\n\t\t$edit_id = $this->input->post ( 'edit_id' );\n\t\t$where = array (\n\t\t\t'users_email' => trim ( $email )\n\t\t);\n\n\t\tif ($edit_id != \"\") {\n\n\t\t\t$where = array_merge ( $where, array (\n\t\t\t\t\t\"users_id !=\" => $edit_id \n\t\t\t) );\n\t\n\t\t} \n\n\t\t$result = $this->Mydb->get_record( 'users_id', $this->table, $where );\n\t\t\n\t\tif ( !empty ( $result ) ) {\n\t\t\t$this->form_validation->set_message ( 'email_exists', get_label ( 'user_email_exist' ) );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function isEmailRegistered()\n {\n return $this->isEmailAvailable($this->getEmailAddress());\n\n }", "public function hasEmail() {\n return $this->_has(4);\n }", "function existEmail($email, $includeBlocked = FALSE) {\n if (trim($email) != '') {\n $sql = \"SELECT count(*)\n FROM %s\n WHERE surfer_email = '%s'\";\n $blockedClause = ($includeBlocked === FALSE) ? ' AND surfer_valid != 4' : '';\n $params = array($this->tableSurfer, $email, $blockedClause);\n if ($res = $this->databaseQueryFmtWrite($sql, $params)) {\n if ($row = $res->fetchRow()) {\n return ((bool)$row[0] > 0);\n }\n }\n }\n return FALSE;\n }", "public function emailExists($email)\n {\n global $db_conn;\n $sql = \"SELECT id FROM users WHERE email = '{$email}'\";\n $result = $db_conn->query($sql);\n\n if ($result->num_rows > 0) {\n $_SESSION['error_msg'][]\n = 'Escolha outro E-mail, este já encontra-se em uso.';\n return true;\n }\n\n return false;\n }", "function checkUserByEmail($email){\n\t\t$rec\t= $this->query(\"SELECT `id` from `users` where `email` = '$email' AND `user_type` = '1'\");\t\t\n\t\tif($rec && mysql_num_rows($rec)>0){\t\t\t\n\t\t\t//if user with the email got found\n\t\t\treturn true;\n\t\t}else{\n\t\t\t//if user with the email got not found\n\t\t\treturn false;\n\t\t}\n\t}", "public function emailExists( $email )\n\t{\n\t\t// database connection and sql query\n $core = Core::dbOpen();\n $sql = \"SELECT userID FROM user WHERE email = :email\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':email', $email);\n Core::dbClose();\n \n try\n {\n if( $stmt->execute()) \n\t\t\t{\n $row = $stmt->fetch();\n if( $stmt->rowCount() > 0 ) {\t\t\t\t\n \treturn true;\n\t\t\t\t}\n }\n } catch ( PDOException $e ) {\n echo \"Search for email failed!\";\n }\n\t\t\n\t\treturn false;\n\t}", "public function accountExists($email) {\r\n $this->db = new Db();\r\n \r\n $this->db->scrub($email);\r\n $query = \"SELECT UID FROM MEMBER WHERE EMAIL = '\".$email.\"'\";\r\n $results = $this->db->select($query);\r\n return(sizeof($results)>0);\r\n }", "public function userExists($email) {\r\n $query = 'SELECT 1 FROM usermanagement.users WHERE email=\\'' . pg_escape_string($email) . '\\'';\r\n $results = $this->dbDriver->fetch($this->dbDriver->query($query));\r\n return !empty($results);\r\n }", "public function userExists($email){\r\n\r\n\t\t$this->stmt = $this->db->prep(\"SELECT email FROM Users WHERE email=:email\");\r\n\t\t$this->stmt->bindParam(':email', $email);\r\n\t\t$this->stmt->execute();\r\n\t\t$email_check = $this->stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n\t\t//comparing given email to what was fetched from the database\r\n\t\tif($email == $email_check[\"email\"]){\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public function emailExists($email){\n $query = $this->conn->query(\"SELECT id FROM user WHERE email = '$email'\");\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n if($result){\n return true;\n }\n }", "public function verificarEmail($email){\n\n\t\t$id = $this->db->query(\"select id from users where email ='\".$email.\"'\");\n\t\tif($id->fetch()){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "private function checkuseremail($email){\n\t\t$this->db->where('Email',$email);\n\t\t$this->db->select('Email,Status');\n\n\t\t$query=$this->db->get('tbl_userdetails');\n\t\tif($query->num_rows()==1){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\n\t}", "public function email_exists($email){\n\t\t$query = $this->db->prepare(\"SELECT count(`user_email`) FROM `nw_users` WHERE `user_email`= ?\");\n\t\t$query->bindValue(1, $email);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$rows = $query->fetchColumn();\n\n\t\t\tif($rows == 1){\n\n\t\t\t\treturn true;\n\n\t\t\t}else{\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}catch(PDOException $e){\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "function checkEmail($email){\n\t\t\t$database = new connect();\n\t\t\t$result = false;\n\t\t\t\n\t\t\t$query = \"SELECT * FROM users WHERE email='$email'\";\n\t\t\t$resultQuery = mysql_query($query); \n\t\t\t\n\t\t\tif(mysql_num_rows($resultQuery) == 1){\n\t\t\t\t$result = true;\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "function checkEmail($email){\n\n\t\t\t$query = \"SELECT Email FROM tbl_userinfo WHERE Email=$email LIMIT 1\";\n\t\t\t\n\t\t\t$result = $this->conn->query($query); \n\n\t\t\tif (var_dump($result) > 0){\n\t\t\t\treturn true;\n\n\t\t\t}else{\n\t\t\t\treturn false;\n\n\t\t\t}\n\n\t\t}", "public function email_exists($email) {\n\n\t\t\t$query = $this->db->prepare(\"SELECT COUNT(`user_id`) FROM `users` WHERE `email`= ?\");\n\t\t\t$query->bindValue(1, $email);\n\t\t\n\t\t\ttry{\n\n\t\t\t\t$query->execute();\n\t\t\t\t$rows = $query->fetchColumn();\n\n\t\t\t\tif($rows == 1){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t} catch (PDOException $e){\n\t\t\t\tdie($e->getMessage());\n\t\t\t}\n\n\t\t}", "private function isUserExists($email) {\n $stmt = $this->conn->prepare(\"SELECT id FROM app_users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "public function isUserExisted($email)\n {\n $Dbcon = new Dbcon();\n $stmt = $Dbcon->select_one_row(\"SELECT email from users WHERE email = '\" . $email . \"' and active='1'\");\n\n if ($stmt) {\n return true;\n } else {\n // user not existed\n return false;\n }\n }", "private function isUserExists($email) {\n\t\t$stmt = $this->conn->prepare(\"SELECT user_id from tb_user WHERE user_email = ?\");\n\t\t$stmt->bind_param(\"s\", $email);\n\t\t$stmt->execute();\n\t\t$stmt->store_result();\n\t\t$num_rows = $stmt->num_rows;\n\t\t$stmt->close();\n\t\treturn $num_rows > 0;\n\t}", "public function emailExists($email)\n {\n $e = \"'\".$email.\"'\";\n $qb = new QB;\n $qb->conn = static::getDB();\n $results = $qb->select('users', 'email')\n ->where('email', '=', $e)\n ->all();\n if(count($results) > 0){\n $this->errors[] = \"Sorry! This email has already been taken.\";\n }\n }", "public function isUserExisted($email){\n\t\t$stmt = $this->conn->prepare(\"SELECT email FROM users WHERE email = ?\");\n\t\t$stmt->bind_param(\"s\",$email);\n\t\t$stmt->execute();\n\t\t$stmt->store_result();\n\t\tif($stmt->num_rows > 0){\n\t\t\t$stmt->close();\n\t\t\treturn true;\n\t\t}\n\n\t\telse{\n\t\t\t$stmt->close();\n\t\t\treturn false;\n\t\t}\n\t}", "public function checkEmailExisting($email)\r\n\t{\r\n\t\t\r\n\t\t$query=mysql_query(\"SELECT 1 FROM tbl_users WHERE email='$email' and oauth_provider='DReview'\") or die(mysql_error());\r\n\t\t$emailCount = mysql_fetch_row($query);\r\n\t\r\n if ($emailCount >= 1)\r\n \treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t}", "function email_exists($email){\n\t\t$emailexistsql = \"SELECT email FROM users WHERE email = :email\";\n\n\t\t$stmt = $database->prepare();\n\n\t\t$stmt->bindParam(':email', $email);\n\n\t\t$stmt->execute();\n\n\t\tif ($stmt->rowCount() > 0){\n\t\t\techo(\"Email Exists\");\n\t\t\treturn true;\n\t\t}\n\t}", "private function isUserExists($email) {\n $stmt = $this->con->prepare(\"SELECT id from users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "public function existsEmail($email): bool\n {\n return false;\n }", "public function checkEmail($email){\r\n $requete = \"select * from users where (Email='\" . $email . \"') \";\r\n //error_log(\"check email requete = (\" . $requete . \")\\n\");\r\n if ($this->getRequete($requete)){\r\n //$this->display();\r\n if ($this->Email == $email){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public function isUserExisted($email) {\n $user = Member::model()->find('email=:email',array(':email'=>$email));\n $number_of_rows = count($user);\n if ($number_of_rows > 0) {\n // user existed\n return true;\n } else {\n // user not existed\n return false;\n }\n }", "public function existEmail($email)\n\t{\n\t\treturn $this->assistant_model->existEmail($email);\n\t}", "public function isEmailExist($email){\n\n $stmt = $this->con->prepare(\"SELECT uid FROM users WHERE email = ?\");\n $stmt->bind_param(\"s\",$email);\n $stmt->execute();\n $stmt->store_result();\n return $stmt->num_rows > 0;\n\n }", "function verify_email($email)\n {\n $this->db->where('email', $email);\n $this->db->where('if_validated', 1);\n $query = $this->db->get('users');\n if($query->num_rows() > 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "private function emailExists($email)\n {\n $query = \"SELECT manager_password,manager_name,is_accepted,admin_id\n FROM \" . $this->table . \"\n WHERE manager_email = ?\n LIMIT 0,1\";\n\n // prepare the query\n $stmt = $this->conn->prepare($query);\n $this->manager_email = $email;\n $this->manager_email = htmlspecialchars(strip_tags($this->manager_email));\n // bind value\n $stmt->bindParam(1, $this->manager_email);\n // execute the query\n $stmt->execute();\n // get number of rows\n $num = $stmt->rowCount();\n if ($num > 0) {\n //set password\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $this->manager_password = $row['manager_password'];\n $this->manager_name = $row['manager_name'];\n $this->is_accepted = $row['is_accepted'];\n // return true because email exists in the database\n\n return true;\n }\n // return false if email does not exist in the database\n return false;\n }", "Public Function emailExists($Email)\n\t{\n\t\t$Result = $this->_db->fetchRow('SELECT * FROM bevomedia_user WHERE email = ?', $Email);\n\t\tif(sizeOf($Result) == 0 || !$Result)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private function isUserExists($email) {\n $query = mysql_query(\"SELECT UserId FROM user WHERE Email = '$email'\");\n $no_of_rows = mysql_num_rows($query);\n return $no_of_rows > 0;\n }", "public function emailExists($email='') {\n\t\t$checkEmail = check($email) ? $email : $this->_email;\n\t\tif(!check($checkEmail)) return;\n\t\t$result = $this->db->queryFetchSingle(\"SELECT \"._CLMN_EMAIL_.\" FROM \"._TBL_MI_.\" WHERE \"._CLMN_EMAIL_.\" = ?\", array($checkEmail));\n\t\tif(!is_array($result)) return;\n\t\treturn true;\n\t}", "public function exist_email()\r\n {\r\n $email = $this->input->post('email');\r\n \r\n $this->load->model('frontend/user_model');\r\n \r\n $record = $this->user_model->select('COUNT(id) as total')->find_by(array('email' => $email));\r\n \r\n if ($record->total == 0)\r\n echo false;\r\n else\r\n echo true; \r\n }", "public function availableEmail($email)\n {\n\n $pdo = DB::connect();\n $stmt = $pdo->prepare(\"SELECT COUNT(id) FROM users WHERE email = :email\");\n $stmt->bindParam(':email', $email);\n $stmt->execute();\n $result = $stmt->fetchColumn();\n\n if ($result > 0) {\n return false;\n } else {\n return true;\n }\n }", "function email_exists($email) {\n $email = sanitize($email);\n $query = mysql_query(\"SELECT COUNT(`user_id`) FROM `users` WHERE `email` = '$email'\");\n return (mysql_result($query, 0) == 1) ? true : false;\n}", "function user_activated($email)\n\t{\n\n\t\tglobal $Oau_auth;\n\t\t$email = sanitize($email);\n\t\t$activated = 1;\n\t\t$query = \"SELECT `student_Idn` FROM `student` WHERE `email` = '$email' AND `active` = '$activated'\";\n\t\t$run_query = mysqli_query($Oau_auth, $query);\n\n\t\tif(mysqli_num_rows($run_query) > 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t}", "public function emailExists ($email){\n $con = connectPDO();\n $query = $con->prepare(\"SELECT COUNT(id) FROM users WHERE email = ?\");\n $query->execute(array($email));\n $rowcount = $query->fetchColumn();\n if ($rowcount > 0) {\n return true;\n }else{\n return false;\n }\n }", "public function email_check($str){\n $con['returnType'] = 'count';\n $con['conditions'] = array('email'=>$str);\n $checkEmail = $this->user->getRows($con);\n if($checkEmail > 0){\n $this->form_validation->set_message('email_check', 'The given email already exists.');\n return FALSE;\n } else {\n return TRUE;\n }\n }", "public function is_email_existed($email)\n {\n $query = $this->db->get_where('users', array('email' => $email));\n return ($query->num_rows() > 0);\n }", "function email_existe($email){\n\t$sql = \"SELECT id FROM usuarios WHERE email = '$email'\";\n\n\t$resultado = query($sql);\n\n\tif(contar_filas($resultado) == 1){\n\n\t\treturn true;\n\t} else{\n\t\treturn false;\n\t}\n\n}", "function email_exists($email)\n {\n // 1. Connect to the database.\n $link = connect();\n\n // 2. Protect variables to avoid any SQL injection\n $email = mysqli_real_escape_string($link, $email);\n\n // 3. Generate a query and return the result.\n $result = mysqli_query($link, \"\n SELECT id\n FROM tbl_users\n WHERE email = '{$email}'\n \");\n\n // 4. Disconnect from the database.\n disconnect($link);\n\n // 5. There should only be one row, or FALSE if nothing.\n return mysqli_num_rows($result) >= 1;\n }", "private function isUserExists($email)\n {\n $stmt = $this->conn->prepare(\"SELECT id FROM users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "function useremail_check($str) {\r\n $res = $this->auth_model->is_email_exists($str);\r\n if ($res <= 0) {\r\n $this->form_validation->set_message('useremail_check', lang_key('email_not_matched'));\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "private function emailExists( $email ) {\n global $wpdb;\n $query = \"select author_email from \" . $wpdb->prefix . \"roni_images where author_name='\" . $email . \"';\";\n if( empty($wpdb->query( $query ) ) ) {\n return true;\n } else {\n return false;\n }\n }", "public static function exists($email)\n {\n $conn = new MySqlConnect();\n $isFound = FALSE;\n\n // query the db for the value comparison\n $result = $conn -> executeQueryResult(\"SELECT userId FROM users WHERE emailAddress = '{$email}'\");\n\n // get a row count to verify only 1 row is returned\n $count = mysql_num_rows($result);\n if ($count > 0)\n {\n $isFound = TRUE;\n }\n $conn -> freeConnection();\n return $isFound;\n }", "function isEmailPresent($email = NULL){\t\t\t\n\t\t$query = \" SELECT id\";\n\t\t$query .= \" FROM \" . $this->config->item('ems_organisers','dbtables');\n\t\t$query .= \" WHERE email = ? \";\t\t\n\t\t$dataBindArr = array($email);\n\t\t$res = $this->db->query($query, $dataBindArr);\n\t\t$resArr = $res->result();\t\t\n\t\treturn count($resArr);\n\t}", "function checkemail() {\n\t\tConfigure::write('debug', 0);\n\t\t$this->autoRender = false;\n\t\t$this->layout = \"\";\n\t\t\n\t\t$email = $_REQUEST['data']['Member']['email'];\n\t\t\n\t\t$count = $this->Member->find('count', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'email' => $email\n\t\t\t)\n\t\t));\n\t\t\n\t\t\n\t\tif ($count > 0) {\n\t\t\techo \"false\";\n\t\t} else {\n\t\t\techo \"true\";\n\t\t}\n\t}", "public static function email_exists($email) {\r\n\t\tif ($email) {\r\n\t\t\t$mysqli = Database::connection();\r\n\t\t\t$email = Database::sanitize($email);\r\n\t\t\t$sql = \"SELECT user_id FROM users WHERE email = '$email' AND type != 0\";\r\n\t\t\t$result = $mysqli->query($sql)\r\n\t\t\tor die ($mysqli->error);\r\n\t\t\treturn ($result->num_rows == 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function check_email_existence() {\n\t\t$email = $_GET['email'];\n\t\t$checkExistEmail = $this->User->find('count', array('conditions'=>array('User.email' => $email)));\n\t\techo $checkExistEmail;\n\t\texit();\n\t}", "public function check_email($table,$email)\n\t{\n\t\t\n\t $sql\t= @mysql_query(\"select * from \".$table.\" where email = '\".$email.\"'\");\n\t $num_rows\t= @mysql_num_rows($sql);\n\t \n\t if($num_rows == 0){ //email not exists.\n\t\t return true; \n\t\t \n\t }else{\n\t\t return false; \n\t\t \n\t }\n\t\t \n\t}" ]
[ "0.76334846", "0.7613865", "0.75923437", "0.7552959", "0.7488753", "0.737985", "0.73501045", "0.7347746", "0.7314342", "0.72081333", "0.72076625", "0.72055066", "0.7196411", "0.7185854", "0.7172241", "0.7167042", "0.71586055", "0.7145895", "0.71443695", "0.7119543", "0.7111709", "0.7110416", "0.7105907", "0.70831704", "0.707588", "0.7071547", "0.70628756", "0.7050949", "0.7045863", "0.70451176", "0.7037424", "0.70339024", "0.70291483", "0.70275164", "0.702322", "0.7020085", "0.7010042", "0.7007614", "0.7000803", "0.69931424", "0.6991991", "0.6986042", "0.697522", "0.69734585", "0.6972655", "0.69717306", "0.6970136", "0.6963473", "0.69614244", "0.6957072", "0.695461", "0.6952547", "0.69519603", "0.6945467", "0.6944584", "0.69313604", "0.69302124", "0.69295454", "0.69239396", "0.69235176", "0.6920387", "0.69100386", "0.69076246", "0.68985313", "0.6897445", "0.68912584", "0.6886822", "0.68814266", "0.6880751", "0.6879939", "0.68761474", "0.68754065", "0.6875012", "0.6864405", "0.6863241", "0.68601656", "0.6859494", "0.68560904", "0.6855771", "0.6855372", "0.6848627", "0.6847476", "0.68472373", "0.68416846", "0.6837027", "0.6830405", "0.68168324", "0.68153524", "0.68149996", "0.6811537", "0.6800065", "0.67996484", "0.67955995", "0.67933536", "0.679334", "0.67925334", "0.67787504", "0.67787236", "0.6772555", "0.6769255" ]
0.8252167
0
Returns student that has specified cookie associated with it or null if student with such cookie does not exist.
Возвращает студента, связанного с указанным cookie, или null, если студент с таким cookie не существует.
public function get_student_with_cookie(string $cookie) { $query = $this->db->prepare('SELECT * FROM students WHERE cookie=?'); $query->execute(array($cookie)); if (($row = $query->fetch(\PDO::FETCH_NUM))) { $query->closeCursor(); return StudentsTableGateway::create_student_from_row($row); } else { $query->closeCursor(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($cookieName);", "public function getStudentById($id) {\n return CaStudent::find($id);\n }", "protected function getCookie($cookieName): ?\\Symfony\\Component\\HttpFoundation\\Cookie\n {\n foreach ($this->response->headers->getCookies() as $cookie) {\n if ($cookie->getName() === $cookieName) {\n return $cookie;\n }\n }\n\n return null;\n }", "public function get_student($id)\n\t\t{\n\t\t\treturn $this->conn->get($id);\n\t\t}", "public static function matchSessionCookie($cookie, $fprint, \\PDO $dbc=null) {\n\n //if the 'dbc' parameter was not supplied then connect to the \n //default database using default parameters.\n $dbc = ($dbc) ? : Database::connect();\n\n //grab the individual variables from the cookie\n list ($eml, $ser, $tok, $fpt) = explode(':', $cookie);\n\n //if the stored fingerprint doesn't match the current fingerprint then the \n //cookie has been stolen from another device/browser and should not be used\n if ($fpt != Security::chlogHashStatic($fprint)) {\n\n $errmsg = 'The remembered user information was not recorded ' .\n 'in this environment. The information may have been ' .\n 'compromised and will not be used.';\n \n Logger::log($errmsg); throw new \\Exception($errmsg);\n }\n\n \n //search for session information in the database\n try {\n $sql = \"CALL matchSession(:eml, :ser, :tok, :fpt)\";\n $qry = $dbc->prepare($sql);\n $qry->bindValue(\":eml\", $eml);\n $qry->bindValue(\":ser\", $ser);\n $qry->bindValue(\":tok\", $tok);\n $qry->bindValue(\":fpt\", $fpt);\n $qry->execute();\n \n $matched = $qry->fetch(\\PDO::FETCH_ASSOC); \n \n if ($matched) {\n //if an exact match could not be found, but the series was found\n //with a different token, the session has probably been hijacked.\n if ($matched[\"token\"] == \"HIJACK\") {\n $errmsg = 'Your stored session data suggests your ' .\n 'login details have been hijacked by another ' .\n 'user. All of your cached sessions will now ' .\n 'be deleted. You will have to log in again. ' .\n 'You should consider changing your password. ';\n Logger::log($errmsg); throw new \\Exception($errmsg);\n }\n } else {\n return false; \n }\n }\n catch (\\PDOException $e) {\n $errmsg = \"Unable to query session data (\".$e.\")\";\n Logger::log($errmsg); throw new \\Exception($errmsg);\n }\n \n //if we got here then we matched the cookie data in the database and we are\n //still using the exact same USER_AGENT as recorded the cookie\n \n //now need to replace the token and update the database\n $tok = Self::generateRandomToken();\n\n try {\n $sql = \"CALL replaceSessionToken(:eml, :ser, :tok, :fpt)\";\n $qry = $dbc->prepare($sql);\n $qry->bindValue(\":eml\", $eml);\n $qry->bindValue(\":ser\", $ser);\n $qry->bindValue(\":tok\", $tok);\n $qry->bindValue(\":fpt\", $fpt);\n $replaced = $qry->execute();\n \n if (!$replaced) {\n return false; \n }\n }\n catch (\\PDOException $e) {\n $errmsg = 'Unable to update session data ('.$e.')';\n Logger::log($errmsg); throw new \\Exception($errmsg);\n }\n \n //if we got here, then the cookie was matched and the token replaced\n //so return the NEW cookie value to be stored by the calling program\n return $eml . \":\" . $ser . \":\" . $tok . \":\" . $fpt;\n }", "function nb_get_student_meta(){\n\tglobal $current_user;\n\n\tif( $current_user->ID != null){\n\t\t$sid = $current_user->ID;\n\t\t$student = get_userdata($sid); \n\n\t}\n\t\n\treturn $student;\n\n}", "public function getStudent( $id )\n\t{\n\t\treturn Student::find( $id );\n\t}", "public static function cookie($var = null)\n {\n if(is_null($var))\n {\n return (!empty($_COOKIE)) ? $_COOKIE : null;\n }\n\n return (isset($_COOKIE[$var])) ? $_COOKIE[$var] : null;\n }", "public function getStudent($idStudent){\n $student=student::where('numberAccount',$idStudent)->first();\n return $idStudent;\n }", "protected /*array<string,mixed>*/ function getStudent(/*int*/ $studentid)\n\t{\n\t\t$query = $this->db->prepare(\"SELECT * FROM `students` WHERE `id` = ? LIMIT 1;\")->execute($studentid);\n\n\t\tif(len($query) > 0)\n\t\t\treturn $query->row;\n\t\treturn null;\n\t}", "public static function loginFromRememberCookie()\n\t{\n\t\t\n\t\tif(isset($_COOKIE['remember_me'])){\n\t\t\t\n\t\t\t$cookie = $_COOKIE['remember_me'];\n\t\t\t\n\t\t\t$remembered_login = RememberedLogin::findByToken($cookie);\n\t\t\t\n\t\t\tif($remembered_login && ! $remembered_login->hasExpired()){\n\t\t\t\t\n\t\t\t\t$user = $remembered_login->getUser();\n\t\t\t\t\n\t\t\t\tstatic::login($user, false);\n\t\t\t\t\n\t\t\t\treturn $user;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function find($id) {\n\t\treturn $this->academic_session->find($id);\n\t}", "public static function get(string $cookie_name)\n {\n $exist = self::exists($cookie_name);\n if ($exist ){\n return $_COOKIE[$cookie_name];\n }\n return false;\n }", "public function getCookie($index=null){\n $result = null;\n if (isset($index)){\n $result = $_COOKIE[$index];\n }else{\n $result = $_COOKIE; \n }\n return $result;\n }", "public static function get($key, $default = NULL)\n\t{\n\t\tif ( ! isset($_COOKIE[$key]))\n\t\t{\n\t\t\t// The cookie does not exist\n\t\t\treturn $default;\n\t\t}\n\n\t\t// Get the cookie value\n\t\t$cookie = $_COOKIE[$key];\n\n\t\t// Find the position of the split between salt and contents\n\t\t$split = strlen(cookie::salt($key, NULL));\n\n\t\tif (isset($cookie[$split]) AND $cookie[$split] === '~')\n\t\t{\n\t\t\t// Separate the salt and the value\n\t\t\tlist ($hash, $value) = explode('~', $cookie, 2);\n\n\t\t\tif (cookie::salt($key, $value) === $hash)\n\t\t\t{\n\t\t\t\t// Cookie signature is valid\n\t\t\t\treturn $value;\n\t\t\t}\n\n\t\t\t// The cookie signature is invalid, delete it\n\t\t\tcookie::delete($key);\n\t\t}\n\n\t\treturn $default;\n\t}", "protected /*array<string,mixed>*/ function getStudentByNetId(/*string*/ $netid) {\n\t\t$query = $this->db->prepare(\"SELECT * FROM `students` WHERE `netid` = ? LIMIT 1;\")->execute($netid);\n\n\t\tif ($query->size == 0)\n\t\t\treturn null;\n\n\t\treturn $query->row;\n\t}", "public function cookie($name) {\n return isset($this->cookies[$name])? $this->cookies[$name] : null;\n }", "public function getStudentSessionRecord($student_id, $class_id, $class_type, $class_arm_id, $session_id, $subject_id){\n\t\t\t$query = $this->connection()->prepare(\"SELECT * FROM student_session_record WHERE student_id='$student_id' AND clazz_id ='$class_id' AND clazz_type_id='$class_type' AND class_arm_id='$class_arm_id' AND sessionz_id='$session_id' AND subject_id='$subject_id'\"); \n \t\t$query->execute();\n \t\treturn $query->fetch();\n\t\t}", "public function update_student(string $cookie, Student $student) {\n $stmt = $this->db->prepare('UPDATE students SET forename=?, surname=?, email=?, group_id=?, exam_results=?, birth_year=?, is_foreign=?, gender=? WHERE cookie=?');\n $stmt->execute(array(strval($student->forename),\n strval($student->surname),\n strval($student->email),\n strval($student->group_id),\n intval($student->exam_results),\n intval($student->birth_year),\n intval($student->is_foreign),\n intval($student->gender),\n $cookie));\n $stmt->closeCursor();\n }", "public static function get($key, $default = NULL)\n\t{\n\t\tif (!isset($_COOKIE[$key]))\n\t\t{\n\t\t\t// The cookie does not exist\n\t\t\treturn $default;\n\t\t}\n\n\t\t// Get the cookie value\n\t\t$cookie_value = $_COOKIE[$key];\n\n\t\t// Get cookie solt string length\n\t\t$split = strlen(Cookie::salt($key, NULL));\n\n\t\tif (isset($cookie_value[$split]) AND $cookie_value[$split] === '~')\n\t\t{\n\t\t\t// Separate the salt and the value\n\t\t\tlist ($hash, $value) = explode('~', $cookie_value, 2);\n\n\t\t\tif (Security::slow_equals(Cookie::salt($key, $value), $hash))\n\t\t\t{\n\t\t\t\t// Cookie signature is valid\n\t\t\t\treturn $value;\n\t\t\t}\n\n\t\t\t// The cookie signature is invalid, delete it\n\t\t\tstatic::delete($key);\n\t\t}\n\n\t\treturn $default;\n\t}", "public function getCookie($name){\n if(isset($this->cookie[$name])){\n return $this->cookie[$name];\n }else{\n return null;\n }\n }", "public function student()\n {\n return $this->hasOne(Student::class);\n }", "public function get_member()\n {\n //get cookie information if available\n $cookie_raw_info = (array_key_exists(get_member_cookie(), $_COOKIE)) ? $_COOKIE[get_member_cookie()] : '';\n\n $cookie_info = array();\n $cookie_info = explode('_', $cookie_raw_info);\n $cookie_member = (array_key_exists(0, $cookie_info)) ? $cookie_info[0] : '';\n $cookie_loginkey = (array_key_exists(1, $cookie_info)) ? $cookie_info[1] : '';\n\n if ($cookie_member != '') {\n $row = $this->get_member_row(intval($cookie_member));\n //is the cookie info correct\n if ($cookie_loginkey == $row['loginkey']) {\n //if it is correct then return the cookie member\n return $cookie_member;\n } else {\n //return the default guest ID, because the login key is not correct\n return $this->get_guest_id();\n }\n } else {\n //return the default guest ID, because there is no member cookie information\n return $this->get_guest_id();\n }\n }", "function signed_cookie(string $name, $default = null)\n\t\t{\n\t\t\treturn request()->getCookies()->getSigned($name, $default);\n\t\t}", "public function get($cookieName, $default = null) {\n\t\tif (isset($this->updatedCookies[$cookieName]))\n\t\t\treturn $this->updatedCookies[$cookieName];\n\n\t\tif (!isset($this->requestCookies[$cookieName]))\n\t\t\treturn $default;\n\n\t\treturn $this->requestCookies[$cookieName];\n\t}", "function getObjectCookie($CookieName, $obj) {\n\tif (isset($_SESSION[$CookieName])) {\n\t\t$objCookie = unserialize(Decode($_SESSION[$CookieName]));\n\t\tif (is_object($objCookie)) {\n\t\t\t$obj = $objCookie;\n\t\t}\n\t}\n\treturn $obj;\n}", "function cookie(string $name, $default = null)\n\t\t{\n\t\t\treturn request()->getCookies()->get($name, $default);\n\t\t}", "public function GetSingleRecord($sid)\n {\n $sql = \"select * from student where sid = '$sid'\";\n $result = $this->pdo->query($sql);\n $row = $result->fetch();\n $student = new Student($row['sid'], $row['name'], $row['email'], $row['address'], $row['phone'], $row['emergencyNo'], $row['activities']);\n\n return $student;\n }", "function checkCookie( $cookie )\n {\n $query = $this->db->get_where( $this->_tablename, 'cookie = \\'' . $cookie . '\\'');\n $result = $query->result();\n \n if( count( $result ) <= 0 ) return false;\n \n foreach( $result as $row )\n {\n $this->setSessoin( $row );\n }\n \n return true;\n }", "public function profile()\n { \n $user = Auth::user();\n $profile = $user->student;\n return $user;\n \n }", "public function cookie($name, $default = null) {\n\t\treturn \\Jitsu\\ArrayUtil::get($this->cookies(), $name, $default);\n\t}", "public function show(Student $student)\n {\n return $student;\n }", "function GetCookie($var, $default='')\n{\n\treturn GetRequest($_COOKIE, $var, $default);\n}", "public static function get($name)\n\t{\n\t\treturn isset($_COOKIE[$name]) ? $_COOKIE[$name] : null;\n\t}", "public function findById(int $id) : ?Student\n {\n return Parser::parse($this->repository->findById($id));\n }", "function checkCookie(){\n global $cookie;\n\n // Check database to see if a user exists with this cookie\n if (getSingleValue(\"SELECT COUNT(`id`) FROM `private_users` WHERE `cookie` ='\" . $cookie . \"' LIMIT 0 , 1\") != 1){\n // Some user has this cookie, it is valid\n return false;\n }else{\n // Nobody has this cookie, therefore it's invalid\n return true;\n }\n}", "public function findOneOrNullByEmail(string $email): ?Professor\n {\n return Professor::findOne(['email' => $email]);\n }", "public function getOwner()\n\t{\n\t\tglobal $mysql;\n\t\t$result = $mysql->query(\"SELECT `sid` FROM `students` WHERE `laptop` = \".$this->getID());\n\t\tif ( !$result || mysqli_num_rows($result) == 0 )\n\t\t\treturn false;\n\t\treturn new Student(mysqli_result($result, 0, \"sid\"));\n\t}", "public function get_logged_in_student_details() {\n\t\t$user_id = $this->session->userdata('user_id');\n\t\t$student_data = $this->db->get_where('students', array('user_id' => $user_id))->row_array();\n\t\t$student_details = $this->get_student_details_by_id('student', $student_data['id']);\n\t\treturn $student_details;\n\t}", "public function getObjectForKey($key)\n {\n $key = $this->cookieScopePrefix . $key;\n if (isset($this->cookies[$key])) {\n return $this->cookies[$key];\n }\n\n return null;\n }", "public function get($name, $default = null)\n\t{\n\t\t$value = Arr::get($_COOKIE, $name);\n\t\t\n\t\tif(!is_null($value))\n\t\t{\n\t\t\tif(isset($value[40]) and $value[40] === '-')\n\t\t\t{\n\t\t\t\tlist($hash, $value) = explode('-', $value, 2);\n\t\t\t\t\n\t\t\t\tif(Crypt::hash($name.$value) === $hash)\n\t\t\t\t{\n\t\t\t\t\treturn $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn is_callable($default) ? call_user_func($default) : $default;\n\t}", "public function get_cookie($name) {\n if (isset($this->_cookies[$name])) {\n return $this->_cookies[$name];\n } else {\n return false;\n }\n }", "private static function getTokenFromCookie()\n {\n if (isset($_COOKIE[self::ACCESS_TOKEN_COOKIE_KEY]) ?? $_COOKIE[self::ACCESS_TOKEN_COOKIE_KEY] != '') {\n $cookieValue = $_COOKIE[self::ACCESS_TOKEN_COOKIE_KEY];\n return self::convertToInstance($cookieValue);\n }\n \n return null;\n }", "abstract public function getCookie($skin);", "public function getCheckStudent($id) {\n $userId = $this->getLoggedInUserId();\n return $this->makeCall($id, $this->base . 'api/public/check_student/' . $id . '/' . $userId, false);\n }", "public function get($name)\n\t{\n\t\tif ($this->has($name)) {\n\t\t\tif (isset($this->cookies[$name])) {\n\t\t\t\treturn $this->cookies[$name];\n\t\t\t}\n\t\t\t\n\t\t\treturn json_decode($_COOKIE[\"{$this->prefix}$name\"], true);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "function getPartnerInfoFromCookies()\n{\n return cache()->remember('i.partnerInfoFromCookies.' . $_SERVER['REMOTE_ADDR'], getCacheILifetime('partnerInfoFromCookies'), function () {\n $partnerId = isset($_COOKIE['partner_id']) ? $_COOKIE['partner_id'] : null;\n\n if (null === $partnerId) {\n return [];\n }\n\n return \\App\\Models\\User::where('my_id', $partnerId)->first()->toArray();\n });\n}", "function getCookieValue($name)\n{\n $token = null;\n if (array_key_exists($name, $_COOKIE) == true) {\n $token = $_COOKIE[$name];\n }\n\n return $token;\n}", "public function get_session_wise_student() {\n\t\t$checker = array(\n\t\t\t'session' => $this->active_session,\n\t\t\t'school_id' => $this->school_id\n\t\t);\n\t\treturn $this->db->get_where('enrols', $checker);\n\t}", "function student_id()\n\t\t{\n\t\t$custom = $this->custom_parsed();\n\t\tif(isset($custom['student_id']))\n\t\t\t{\n\t\t\treturn $custom['student_id'];\n\t\t\t}\n\t\telseif(isset($custom['person_id']))\n\t\t\t{\n\t\t\t$p = new Person($custom['person_id']);\n\t\t\treturn Student::addperson($p);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$info = $this->infoarray();\n\t\t\tif(isset($info['payer_email']))\n\t\t\t\t{\n\t\t\t\t$p = Person::get_by_email($info['payer_email']);\n\t\t\t\tif($p === false)\n\t\t\t\t\t{\n\t\t\t\t\t$name = $info['first_name'] . ' ' . $info['last_name'];\n\t\t\t\t\t$person_id = Person::add2($info['payer_email'], $name);\n\t\t\t\t\treturn Student::addperson(new Person($person_id));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\treturn false;\n\t\t}", "public function getStudent($id){\n\t\t$this->db->where('id',$id);\n\t\t$query = $this->db->get('students');\n\t\treturn $query->row();\n\t}", "protected function _getSessionFromCookie(){\n\t\n\t\tif (isset($_COOKIE) && isset($_COOKIE[$this->_cookie_var_name])){\n\t\t\treturn json_decode($_COOKIE[$this->_cookie_var_name], true);\n\t\t} else\n\t\t\treturn array();\n\t\n\t}", "public function register_student(Student $student): string {\n $cookie = SecurityUtil::generate_token();\n\n $stmt = $this->db->prepare('INSERT INTO students(forename, surname, email, group_id, exam_results, birth_year, is_foreign, gender, cookie) VALUES (?,?,?,?,?,?,?,?,?)');\n $stmt->execute(array(strval($student->forename),\n strval($student->surname),\n strval($student->email),\n strval($student->group_id),\n intval($student->exam_results),\n intval($student->birth_year),\n intval($student->is_foreign),\n intval($student->gender),\n $cookie));\n $stmt->closeCursor();\n return $cookie;\n }", "function getstudentbyid($id)\n {\n $q = \"select * from student where id=$id\";\n $r = mysql_query($q);\n\n return $r;\n }", "function viewStudent( $sessionID, $studentID ) {\r\n\t\tif( $this->userCanViewStudent( $sessionID )){\r\n if(!empty($studentID)){\r\n\t\t\t $this->verifyStudent($studentID);\r\n\t\t\t $query=\"SELECT * FROM X_PNSY_STUDENT ss, students s WHERE ss.ID = '$studentID' AND ss.ID = s.StudentID\";\r\n\t\t\t $result = mysql_query($query);\r\n\t\t\t return mysql_fetch_assoc($result);\r\n }\r\n\t\t}\r\n\t}", "public function offsetGet($offset) \n {\n //argument 1 must be scalar, null or bool\n Argument::i()->test(1, 'scalar', 'null', 'bool');\n\n return isset($_COOKIE[$offset]) ? $_COOKIE[$offset] : null;\n }", "function getSessionRelatedBySessionId() {\n\t\t$fk_value = $this->getsession_id();\n\t\tif (null === $fk_value) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Session::retrieveByPK($fk_value);\n\t}", "function culturefeed_search_ui_get_user_location_cookie() {\n\n if (!empty($_COOKIE['Drupal_visitor_uitid_userLocation'])) {\n $user_location = json_decode($_COOKIE['Drupal_visitor_uitid_userLocation']);\n if ($user_location instanceof stdClass) {\n return $user_location;\n }\n }\n\n return new stdClass();\n\n}", "function _checkRemembered($cookie) {\n list ($username, $cookie) = @ unserialize($cookie);\n\n if (!$username or !$cookie)\n return;\n\n $sql = \"SELECT * FROM user WHERE \" .\n \"(userid = \\\"$username\\\") AND (cookie = \\\"$cookie\\\");\";\n $result = $this->db->mysql_query($sql);\n $result = mysql_fetch_object($result);\n\n // if remember-me user is found in the database, set session for the user\n if (is_object($result)) {\n $this->_setSession($result, false, true);\n } else {\n $this->_logout();\n }\n }", "public function getCookie($name, $default = null) {\n if (!isset($this->cookies[$name])) {\n return $default;\n }\n\n return $this->cookies[$name];\n }", "public static function get(string $key) \n {\n if (isset($_COOKIE[$key])) {\n return $_COOKIE[$key];\n }\n return null;\n }", "public static function StudentAuthenDB($id,$name){\n $data = DB::table('student')\n ->where('student.student_id',\"=\",$id)\n ->first();\n\n return $data;\n}", "public static function get($cookieName)\n\t\t{\n\t\t return($_COOKIE[$cookieName]);\n\t\t}", "public function findStudentByID($id)\n\t{\n\t\ttry {\n\t\t\tif ( (int)$id <= 0 ) {\n\t\t\t\tthrow new \\UnexpectedValueException('Параметр должен быть больше нуля');\n\t\t\t}\n\t\t\t\n\t\t\t$this->SQLBuilder->select();\n\t\t\t$this->SQLBuilder->whereValue('id');\n\t\t\t$sql = $this->SQLBuilder->getSQL();\n\t\t\t$stmt = $this->pdo->prepare($sql);\n\t\t\t$stmt->bindParam(':id', $id, \\PDO::PARAM_INT);\n\n\t\t\tif ($stmt->execute()) {\n\t\t\t\t$row = $stmt->fetch(\\PDO::FETCH_ASSOC);\n\t\t\t\tif ( !empty($row) ) {\n\t\t\t\t\t$student = $this->convertToObject($row);\n\t\t\t\t} else $student = false;\n\t\t\t} else $student = false;\n\n\t\t} catch (\\PDOException $e) {\n\t\t\tthrow new StudentException('Ошибка при получении данных студента', 0, $e);\n\t\t}\n\n\t\treturn $student;\n\t}", "public static function get(string $name, $default = null)\n {\n return self::has($name) ? $_COOKIE[$name] : $default;\n }", "function get_mcq_marks($student_id,$exam_id){\r\n include 'connect.inc.php';\r\n $query = \"SELECT `marks` FROM `mcq_marks` WHERE `student_id`='$student_id' AND`exam_id`='$exam_id'\";\r\n if ($query_run = mysqli_query($con, $query)) {\r\n if ($row = mysqli_fetch_row($query_run)) {\r\n return $row[0];\r\n } else {\r\n\r\n }\r\n } else {\r\n echo \"Nice try dude,But you won't get any result\";\r\n }\r\n}", "function getcookie(string $name = null) {\n return !empty($name) ?\n !empty($_COOKIE[$name])\n ? $_COOKIE[$name] : null \n : $_COOKIE;\n }", "function getcookie(string $name = null) {\n return !empty($name) ?\n !empty($_COOKIE[$name])\n ? $_COOKIE[$name] : null \n : $_COOKIE;\n }", "public static function findByTitle(string $title) : ?Certification\n {\n return self::where('title', $title)->first();\n }", "public function show($id)\n {\n $student = Student::where('id', $id)->first();\n return $student;\n }", "function getstudent($search)\n {\n $q = \"select * from student where studid like '%$search%' or fname like '%$search%' or midname like '%$search%' or lname like '%$search%' or college like '%$search%' or course like '%$search%' or year like '%$search%' or section like '%$search%' order by section,year,course,college,lname,midname,fname,studid\";\n $r = mysql_query($q);\n\n return $r;\n }", "public function getCookie($index = null, $default = null)\n {\n if (is_array($index)) {\n $cookies = [];\n\n foreach ($index as $key => $cookie) {\n $cookies[$key] = isset($this->cookiesRequested[$key]) ? $this->cookiesRequested[$key] : $default;\n }\n\n return $key;\n }\n\n return isset($this->cookiesRequested[$index]) ? $this->cookiesRequested[$index] : $default;\n }", "private function getTokenFromCookie(array $cookies): ?string\n {\n $name = $this->csrfConfig->getCookieName();\n $value = $cookies[$name] ?? '';\n\n try {\n return $this->signer->unsign($value);\n } catch (BadSignatureException $e) {\n // Don't blow up the middleware if the signature is invalid.\n return null;\n }\n }", "function infoStudent(){\n $user = User::join('students', 'students.user_id', '=', 'users.id')->where('users.id', '=', Auth::user()->id)->first();\n return $user;\n }", "public function student()\n {\n return $this->hasOne(User::class,\n 'id',\n SchemaConstant::STUDENT_FOREIGN_KEY );\n }", "private function getUserIDFromCookie($cookieHash) {\n $cookieHash = preg_replace(\"/[^A-Za-z0-9]/\", '', $cookieHash);\n $cookieFile = $this->_cookiePath. $cookieHash . \".txt\"; \n if (file_exists($cookieFile)) {\n $data = unserialize(file_get_contents($cookieFile));\n return intval($data[\"user_id\"]);\n } else {\n return false;\n }\n }", "function get_student_info_by_id($student_id) {\n return $this->db->get_where('student', array('student_id' => $student_id))->row_array();\n }", "function wpgplus_get_cookie($name) {\n\t$my_cookie = get_transient('wpgplus_cookie_'. $name);\n\t// wpgplus_debug(\"\\nCookie is \" . print_r($my_cookie,true) . \"\\n\");\n\t// Cookies which have an expiration date and it is passed should not be returned\n\tif(!$my_cookie || ((!empty($my_cookie->expires)) && ($my_cookie->expires < time()))) {\n\t\t//wpgplus_debug(\"\\nNo cookies found for \". $name . \"\\n\");\n\t\treturn false;\n\t} else {\n\t\t//wpgplus_debug(\"\\nGetting cookie for \". $my_cookie->name . \"\\n\");\n\t\treturn $my_cookie;\n\t}\n}", "public function findByStudentNameInClass(Student $student, ClassEntity $class)\n\t{\n\t\t$student = $this->createQueryBuilder()\n\t\t\t\t->select('s.id')\n\t\t\t\t->from(Student::getClassName(), 's')\n\t\t\t\t->join('s.classes', 'c')\n\t\t\t\t->where(\"s.name = '\" . $student->getName() . \"' AND s.surname = '\" . $student->getSurname() . \"' AND c.id = \" . $class->getId())\n\t\t\t\t->getQuery()->getOneOrNullResult();\n\n\t\treturn $student;\n\t}", "public function cookie($name, $default = null)\n\t{\n\t\treturn isset($this->cookie[$name]) ? $this->cookie[$name] : $default;\n\t}", "protected function getUserBySocket($socket) \n\t{\n\t\tforeach ( $this->users as $user ) \n\t\t{\n\t\t\tif ( $user->socket == $socket )\n\t\t\t\treturn $user;\n\t\t}\n\n\t\treturn null;\n\t}", "function get_account_cookie($level = 'admin') {\n\t\tif ( $level != 'admin' && $level != 'member' ) {$level = 'member';}\n\t\t$this->load->library(array(\"encrypt\"));\n\t\t// get cookie\n\t\t$c_account = get_cookie($level . \"_account\", true);\n\t\tif ( $c_account != null ) {\n\t\t\t$c_account = $this->encrypt->decode($c_account);\n\t\t\t$c_account = @unserialize($c_account);\n\t\t\treturn $c_account;\n\t\t}\n\t\treturn null;\n\t}", "private static function GetCookie($header = \"\")\n\t{\n\t\tpreg_match('/^Set-Cookie:\\s*([^;]*)/mi', $header, $m);\n\t\tparse_str($m[1], $cookies);\n\t\tforeach ($cookies as $key => $val)\n\t\tif ( strtoupper($key) == self::cookieName )\n\t\t\treturn self::$cookie = strtoupper($key).\"=\".$val;\n\t}", "public function show($id)\n {\n //\n $student = User::findOrFail($id);\n return $student;\n }", "public function getStudentId() {\n\t\tpreg_match ( '/\\d{9}/', $this->transcript, $ID ); // this will get the SID of the student\n\n\t\tif (count ( $ID ) > 0) {\n\t\t\t\t\n\t\t\t// $key= mt_rand ( MIN_KEY, MAX_KEY ); // will append a random key to the SI\n\t\t\treturn $ID [0]; // . strval($key);\n\t\t} else\n\t\t\treturn null;\n\t}", "public function getCookie($name)\n {\n $this->buildCookieCollection();\n if (!$this->cookies->has($name)) {\n return null;\n }\n\n return $this->cookies->get($name)->getValue();\n }", "function check_cookie($p)\n{\n\tif(isset($_COOKIE['star_'.$p])) \n\t{ \n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t} \n}", "public function getStudent($id)\n {\n $user = DB::table('students')->where('id', $id)->first();\n echo $user->name;\n\n }", "public function getStaffByEmail($email) {\n $stmt = $this->conn->prepare(\"SELECT email, api_key, fullname, personalID, created_at, staff_avatar, staff_id \n FROM staff WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n if ($stmt->execute()) {\n // $user = $stmt->get_result()->fetch_assoc();\n $stmt->bind_result( $email, $api_key, $fullname,$personalID, $created_at, $staff_avatar, $staff_id);\n $stmt->fetch();\n $staff = array();\n //$staff[\"role\"] = $role;\n $staff[\"email\"] = $email;\n $staff[\"api_key\"] = $api_key;\n $staff[\"fullname\"] = $fullname;\n $staff[\"personalID\"] = $personalID;\n $staff[\"created_at\"] = $created_at;\n $staff[\"staff_avatar\"] = $staff_avatar;\n $staff[\"staff_id\"] = $staff_id;\n $stmt->close();\n return $staff;\n } else {\n return NULL;\n }\n }", "public static function get($key){\n\n return static::has($key) ? $_COOKIE[$key] : null;\n }", "function find_by_val($field,$value)\n {\n $arr1=[];\n $found=[];\n $seek = scan_students();\n foreach ($seek as $student => $id) {\n $dir = \"students/\".substr($id,0,2);\n $arr1 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . $dir .\"/\". $id. \".json\"),true);\n if($arr1[$field] == $value) { $found = $arr1;}\n }\n if(!empty($found))\n echo print_r($found);\n else\n err(\"Student Not Found.\\00[0m This student doesn't exist.\");\n return $found;\n }", "public function get($key)\n {\n return isset($_COOKIE[$key]) ? unserialize($_COOKIE[$key]) : null;\n }", "public function get($key)\n {\n return isset($_COOKIE[$key]) ? unserialize($_COOKIE[$key]) : null;\n }", "public function retrieve_specific($userid, $course, $section)\n {\n $sql = 'SELECT * FROM `section-student` WHERE `userid`=:userid AND `section` = :section AND `course` = :course ORDER BY `userid` ';\n\n $connMgr = new ConnectionManager();\n $conn = $connMgr->getConnection();\n\n $stmt = $conn->prepare($sql);\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $stmt->bindParam(':userid', $userid, PDO::PARAM_STR);\n $stmt->bindParam(':section', $section, PDO::PARAM_STR);\n $stmt->bindParam(':course', $course, PDO::PARAM_STR);\n $stmt->execute();\n\n $result = FALSE;\n\n if ($row = $stmt->fetch()) {\n $result = new SectionStudent($row['userid'], $row['course'], $row['section'], $row['amount']);\n }\n\n $stmt = null;\n $conn = null;\n\n return $result;\n }", "private function decode_cookie($cookie)\n {\n return unserialize(base64_decode($cookie));\n }", "public function taskGetFromCookie($name)\n\t{\n\t\t$cookie=app()->getRequest()->getCookies()->itemAt($this->getStateKeyPrefix());\n\t\tif($cookie)\n\t\t{\n\t\t\t$data = unserialize($cookie->value);\n\t\t\treturn isset($data[$name])?$data[$name]:null;\n\t\t}\n\t\treturn null;\n\t}", "function student_get_field($field)\r\n{\r\n include \"connect.inc.php\";\r\n $student_id = $_SESSION['student_id'];\r\n\r\n $query = \"SELECT `$field` FROM `students` WHERE `Student_id`='$student_id'\";\r\n if ($query_run = mysqli_query($con, $query)) {\r\n if ($row = mysqli_fetch_row($query_run)) {\r\n return $row[0];\r\n } else {\r\n\r\n }\r\n } else {\r\n echo \"There was a problem\";\r\n }\r\n}", "public function getCookie($key = null, $default = null)\n {\n if (null === $key) {\n return $_COOKIE;\n }\n\n return (isset($_COOKIE[$key])) ? $_COOKIE[$key] : $default;\n }", "public function getCurrentStudent(PropelPDO $con = null)\n {\n if (null !== $this->getCurrentStudentId())\n {\n return StudentPeer::retrieveByPK($this->getCurrentStudentId(), $con);\n }\n }", "public function getPersonByNick(string $nick): ?Person;" ]
[ "0.547046", "0.5353633", "0.5267596", "0.5195249", "0.5139253", "0.51037514", "0.5069651", "0.5068924", "0.50631714", "0.50557184", "0.50419325", "0.5025451", "0.5008431", "0.500584", "0.5004192", "0.5001277", "0.4968902", "0.4951131", "0.49074987", "0.49074197", "0.49029255", "0.48998675", "0.48711205", "0.48672488", "0.4860506", "0.48358968", "0.48299125", "0.48258623", "0.4823087", "0.4811015", "0.48057535", "0.47872344", "0.47808006", "0.4776584", "0.47739503", "0.4768334", "0.47572458", "0.4755094", "0.47448424", "0.4740716", "0.47405353", "0.47397247", "0.47319737", "0.47009748", "0.46973258", "0.4696711", "0.46848863", "0.46658897", "0.46633255", "0.46621382", "0.46595594", "0.46554965", "0.46488905", "0.46488744", "0.46459737", "0.46433583", "0.46410525", "0.46405497", "0.46286505", "0.46275866", "0.4626004", "0.4623005", "0.4619826", "0.46117544", "0.46041736", "0.45996934", "0.4588726", "0.4588726", "0.45761928", "0.4569435", "0.45666978", "0.45662704", "0.4564604", "0.45606625", "0.45548886", "0.45465454", "0.45347655", "0.45327023", "0.45323163", "0.45286468", "0.45237425", "0.4520797", "0.45206872", "0.4519777", "0.4517762", "0.4510498", "0.4507448", "0.45064664", "0.45061362", "0.45058116", "0.450366", "0.45026854", "0.45026854", "0.45005444", "0.44913867", "0.44844803", "0.4484126", "0.448165", "0.44684684", "0.44589496" ]
0.832616
0
Searches all students by keyword, ordered by field and has page and limit. Optional $total_students_count reference can be set to rethieve number of found students.
Ищет всех студентов по ключевому слову, отсортированных по полю, и имеет страницу и ограничение. Опционально может быть задано ссылка $total_students_count для получения количества найденных студентов.
public function find_students( string $keyword, string $order_by = 'forename', $order_dir = self::ORDER_ASC, $page = 0, $limit = 50, &$total_students_count = null ) { $order_by = htmlentities($order_by); $order_dir = $order_dir == self::ORDER_ASC ? 'ASC' : 'DESC'; $query_string = "SELECT forename, surname, group_id, exam_results FROM students WHERE CONCAT(forename, ' ', surname, ' ', group_id, ' ', exam_results) LIKE :keyword ORDER BY $order_by $order_dir LIMIT :limit_start, :limit_end"; $query = $this->db->prepare($query_string); $query->bindValue(':keyword', "%{$keyword}%", \PDO::PARAM_STR); $query->bindValue(':limit_start', $page * $limit, \PDO::PARAM_INT); $query->bindValue(':limit_end', $limit, \PDO::PARAM_INT); $query->execute(); $students = array(); while ($row = $query->fetch(\PDO::FETCH_NUM)) { $student = new Student; $student->forename = $row[0]; $student->surname = $row[1]; $student->group_id = $row[2]; $student->exam_results = $row[3]; array_push($students, $student); } $query->closeCursor(); if (isset($total_students_count)) { if ($page == 0 && count($students) < $limit) { $total_students_count = count($students); } else { $query_string = "SELECT COUNT(*) FROM students WHERE CONCAT(forename, ' ', surname, ' ', group_id, ' ', exam_results) LIKE :keyword ORDER BY $order_by $order_dir"; $query = $this->db->prepare($query_string); $query->bindValue(':keyword', "%{$keyword}%", \PDO::PARAM_STR); $query->execute(); $total_students_count = intval($query->fetch(\PDO::FETCH_NUM)[0]); $query->closeCursor(); } } return $students; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchStudent($search_text)\n {\n $studentModel = new StudentModel();\n return $studentModel->searchStudent($search_text);\n }", "public function getStudents(SearchData $data)\n\t{\n\t\t$text = $data->getSearchText(); $field = $data->getSearchField();\n\t\t$sortBy = $data->getSortby(); $order = $data->getOrder();\n\t\t$limit = $data->getLimit(); $offset = $data->getOffset();\n\t\ttry {\n\t\t\t$students = array();\n\t\t\t\n\t\t\t$this->SQLBuilder->select();\n\t\t\tif ($text !== '') {\n\t\t\t\t$this->SQLBuilder->whereLike($field);\n\t\t\t}\n\t\t\t$this->SQLBuilder->orderBy($sortBy, $order);\n\t\t\t$this->SQLBuilder->limit($limit, $offset);\n\t\t\t$sql = $this->SQLBuilder->getSQL();\n\t\t\t\n\t\t\t$stmt = $this->pdo->prepare($sql);\n\t\t\t$values = array();\n\t\t\tif ($text !== '') {\n\t\t\t\t$values[':like'] = \"%$text%\";\n\t\t\t}\n\n\t\t\tif ( ($stmt->execute($values)) && ($stmt->rowCount() > 0) ) {\n\t\t\t\twhile ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n\t\t\t\t\t$students[] = $this->convertToObject($row);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$students = false;\n\t\t\t}\n\t\t\t\n\t\t\t$this->lastCount = $this->foundRows();\n\t\t} catch (\\PDOException $e) {\n\t\t\tthrow new StudentException('Ошибка при получении данных студентов', 0, $e);\n\t\t}\n\t\treturn $students;\n\t}", "public function findFilteredStudents($name,\t$allStudents = false, AcademicYearInterface $academicYear = null, $amount = 10);", "protected function searchTweets($subject, $limit = false) {\n $limit = $limit ? (int) $limit : 50;\n\n // Instantiate the Choreo, using a previously instantiated Temboo_Session object\n $tweets = new Twitter_Search_Tweets($this->_tembooSession);\n\n // Get an input object for the Choreo\n $tweetsInputs = $tweets->newInputs();\n\n // Set credential to use for execution\n $tweetsInputs->setCredential(TEMBOO_TWITTER_CREDENTIAL);\n\n // Set inputs\n $tweetsInputs->setQuery($subject)->setCount($limit);\n\n // Execute Choreo and get results\n $tweetsResults = $tweets->execute($tweetsInputs)->getResults();\n\n $response = json_decode($tweetsResults->getResponse());\n\n // Render the list\n return $this->renderListResults(__FUNCTION__, $subject, $response->statuses);\n }", "function search( $queryText, $offset, $limit, &$SearchTotalCount, $params = array() )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $queryText = $db->escapeString( $queryText );\r\n\r\n $query = new eZQuery( \"eZForum_Word.Word\", $queryText );\r\n $query->setIsLiteral( true );\r\n $query->setStopWordColumn( \"eZForum_Word.Frequency\" );\r\n $searchSQL = $query->buildQuery();\r\n\r\n $groupString = \"eZForum_Forum.GroupID=0\";\r\n\r\n $user =& eZUser::currentUser();\r\n if ( $user )\r\n {\r\n $groups =& $user->groups( false );\r\n $i = 0;\r\n\r\n foreach ( $groups as $userGroup )\r\n {\r\n $groupString .= \" OR \";\r\n\r\n $groupString .= \"eZForum_Forum.GroupID='\" . $userGroup . \"'\";\r\n $i++;\r\n }\r\n }\r\n\r\n // special search for MySQL, mimic subselects ;)\r\n if ( $db->isA() == \"mysql\" )\r\n {\r\n $queryArray = explode( \" \", trim( $queryText ) );\r\n\r\n $db->query( \"CREATE TEMPORARY TABLE eZForum_SearchTemp( MessageID int )\" );\r\n\r\n $count = 1;\r\n foreach ( $queryArray as $queryWord )\r\n {\r\n $queryWord = trim( $queryWord );\r\n\r\n $searchSQL = \" ( eZForum_Word.Word = '$queryWord' AND eZForum_Word.Frequency < '0.9' ) \";\r\n\r\n $queryString = \"INSERT INTO eZForum_SearchTemp ( MessageID )\r\n SELECT DISTINCT eZForum_Message.ID AS MessageID\r\n FROM eZForum_Message,\r\n eZForum_MessageWordLink,\r\n eZForum_Word,\r\n eZForum_Forum\r\n WHERE $searchSQL AND\r\n ( eZForum_Message.ID=eZForum_MessageWordLink.MessageID\r\n AND eZForum_MessageWordLink.WordID=eZForum_Word.ID ) AND\r\n eZForum_Message.ForumID=eZForum_Forum.ID AND\r\n ($groupString)\r\n ORDER BY eZForum_MessageWordLink.Frequency\";\r\n\r\n $db->query( $queryString );\r\n // check if this is a stop word\r\n $queryString = \"SELECT Frequency FROM eZForum_Word WHERE Word='$queryWord'\";\r\n\r\n $db->query_single( $WordFreq, $queryString, array( \"LIMIT\" => 1 ) );\r\n\r\n if ( $WordFreq[\"Frequency\"] <= 0.7 )\r\n $count += 1;\r\n }\r\n $count -= 1;\r\n\r\n $queryString = \"SELECT MessageID, Count(*) AS Count FROM eZForum_SearchTemp GROUP BY MessageID HAVING Count='$count'\";\r\n\r\n $db->array_query( $message_array, $queryString );\r\n $SearchTotalCount = count( $message_array );\r\n $message_array =& array_slice( $message_array, $offset, $limit );\r\n\r\n $db->query( \"DROP TABLE eZForum_SearchTemp\" );\r\n }\r\n else\r\n {\r\n $queryString = \"SELECT DISTINCT eZForum_Message.ID AS MessageID\r\n FROM eZForum_Message,\r\n eZForum_MessageWordLink,\r\n eZForum_Word,\r\n eZForum_Forum\r\n WHERE\r\n $searchSQL\r\n AND\r\n ( eZForum_Message.ID=eZForum_MessageWordLink.MessageID\r\n AND eZForum_MessageWordLink.WordID=eZForum_Word.ID )\r\n eZForum_Message.ForumID=eZForum_Forum.ID AND\r\n ($groupString)\r\n ORDER BY eZForum_MessageWordLink.Frequency\";\r\n\r\n $db->array_query( $message_array, $queryString );\r\n $SearchTotalCount = count( $message_array );\r\n $message_array =& array_slice( $message_array, $offset, $limit );\r\n }\r\n\r\n for ( $i = 0; $i < count( $message_array ); $i++ )\r\n {\r\n $return_array[$i] = new eZForumMessage( $message_array[$i][$db->fieldName( \"MessageID\" )], false );\r\n }\r\n\r\n return $return_array;\r\n }", "public function searchItems( \\Aimeos\\MW\\Criteria\\Iface $filter, &$total = null );", "public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$data = $this->BdSpoc->find('all', array('fields' => array('HrEmployee.first_name'),\n\t\t\t'group' => array('first_name'), 'conditions' => \tarray(\"OR\" => array ('first_name like' => '%'.$q.'%'),\n\t\t\t'AND' => array('HrEmployee.status' => '1', 'HrEmployee.is_deleted' => 'N','BdSpoc.is_deleted' => 'N'))));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }", "public function search_student(){\n\t\t$this->verify();\n\t\t$this->load->library('form_validation');\n\t\t$this->form_validation->set_rules('search', \"Search\", 'trim|required');\n\t\tif($this->form_validation->run()){\n\t\t\t$data['search_result']=$this->admin_model->search_student($this->input->post('search'));\n\t\t\t$this->load->view('students/searchResult', $data);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tform_error('search');\n\t\t}\n\t}", "public function mysearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\tif(Yii::app()->user->getState('stud_id'))\n\t\t{\n\t\t$criteria->condition = 'student_docs_trans_user_id = :student_user_id';\n\t $criteria->params = array(':student_user_id' => Yii::app()->user->getState('stud_id'));\n\t\t}\n\t\telse\n\t\t{\n\t\t$criteria->condition = 'student_docs_trans_user_id = :student_user_id';\n\t $criteria->params = array(':student_user_id' => $_REQUEST['id']);\n\t\t}\n\t\t$criteria->compare('student_docs_trans_id',$this->student_docs_trans_id);\n\t\t$criteria->compare('student_docs_trans_user_id',$this->student_docs_trans_user_id,true);\n\t\t$criteria->compare('student_docs_trans_stud_docs_id',$this->student_docs_trans_stud_docs_id,true);\n\t\t\n\t\t$student_docs = new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t$_SESSION['student_docs']=$student_docs;\n\t\treturn $student_docs;\n\t}", "function search($is_keyword, $target_module_srl, $search_target, $page, $items_per_page= 10)\n {\n $oLuceneModule = &getModule('lucene');\n\n if( !isset($oLuceneModule) ){\n //if nlucene not installed we fallback to IS (integrated search module)\n return $this->_is_search($is_keyword, $target_module_srl, $search_target, $page, $items_per_page);\n }\n\n return $this->_lucene_search($is_keyword, $target_module_srl, $search_target, $page, $items_per_page);\n }", "public function search_for_student($search_string)\r\n\t{\r\n\t\t$results = array();\r\n\t\tif ($this->validate_email($search_string))\r\n\t\t{\r\n\t\t\t$results = $this->search_for_email(sanitize_email($search_string));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$username_results = $this->search_for_username(sanitize_text($search_string));\r\n\t\t\t$name_results = $this->search_for_name(sanitize_text($search_string));\r\n\t\t\t$email_results = $this->search_for_first_part_of_email($search_string);\r\n\t\t\tforeach ($username_results as $username_result)\r\n\t\t\t{\r\n\t\t\t\t$results[] = $username_result;\r\n\t\t\t}\r\n\t\t\tforeach ($name_results as $name_result)\r\n\t\t\t{\r\n\t\t\t\tif (!in_array($name_result, $results))\r\n\t\t\t\t{\r\n\t\t\t\t\t$results[] = $name_result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tforeach ($email_results as $email_result)\r\n\t\t\t{\r\n\t\t\t\tif (!in_array($email_result, $results))\r\n\t\t\t\t{\r\n\t\t\t\t\t$results[] = $email_result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $results;\r\n\t}", "public function searchByKeyword($query);", "abstract public function search($keyword, array $searchOptions = []);", "public function actionSearch($keyword) {\n \n $currentUser = Yii::$app->user->identity;\n $userID = Yii::$app->user->id;\n $groups = $currentUser->getGroups();\n \n $keyword = Html::encode($keyword);\n \n /*determine the search source based on kyword */\n $search_source = $this->determine_search_source($keyword);\n \n /*execute matching search case*/\n if($search_source == 'fullname') {\n $query = Abonent::find()->where(['user_id' => $userID])->andfilterWhere(['like','concat(name, patronymic, surname)', $keyword]);\n }\n \n if($search_source == 'phone') {\n \n /* 380(77)777-77-77 or 7)777-77-77 or 777-77-77 */\n $phone = $this->prepareStandardNumber($keyword);\n \n $query = Abonent::find()->where(['user_id' => $userID])->andfilterWhere(['like', 'abonent.phone', $phone]);\n }\n \n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 9,\n ],\n ]);\n \n return $this->render('index', [\n 'currentUser' => $currentUser,\n 'dataProvider' => $dataProvider,\n 'groups' => $groups,\n ]);\n }", "function getstudent($search)\n {\n $q = \"select * from student where studid like '%$search%' or fname like '%$search%' or midname like '%$search%' or lname like '%$search%' or college like '%$search%' or course like '%$search%' or year like '%$search%' or section like '%$search%' order by section,year,course,college,lname,midname,fname,studid\";\n $r = mysql_query($q);\n\n return $r;\n }", "public function paginate_search($take = 10, $search = null, $status = null);", "public function search($params)\n {\n $query = Student::find();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => Yii::$app->request->cookies->getValue('_grid_page_size', 20),\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'studentsFullName' => SORT_ASC,\n ],\n ],\n ]);\n $dataProvider->setSort([\n 'attributes' => [\n 'id',\n 'position_id',\n 'birth_timestamp',\n 'studentsFullName' => [\n 'asc' => ['last_name' => SORT_ASC, 'first_name' => SORT_ASC, 'middle_name' => SORT_ASC],\n 'desc' => ['last_name' => SORT_DESC, 'first_name' => SORT_DESC, 'middle_name' => SORT_DESC],\n ]\n ]\n ]);\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n// жадная загрузка\n $query->joinWith(['user']);\n\n $query->andFilterWhere([\n 'id' => $this->id,\n 'user_id' => $this->user_id,\n\n ]);\n\n $query->andFilterWhere([($this->birth_timestamp_operand) ? $this->birth_timestamp_operand : '=', 'birth_timestamp', ($this->birth_timestamp) ? strtotime($this->birth_timestamp) : null]); \n \n $query->andFilterWhere(['like', 'position_id', $this->position_id]);\n\n $query->andWhere('first_name LIKE \"%' . $this->studentsFullName . '%\" '.\n 'OR last_name LIKE \"%' . $this->studentsFullName . '%\"'.\n 'OR middle_name LIKE \"%' . $this->studentsFullName . '%\"'\n );\n \n return $dataProvider;\n }", "function performSearch($sessionID, $table, $field, $term, $order){\r\n\t\tif($this->userCanPerformSearch('', $table)){\r\n\t\t\t//Allow user to search by sensitive or normal for level\r\n\t\t\tif($table == 'issues' && $field == 'Level'\r\n\t\t\t && $term!='A' && $term!='a' && $term!='B' && $term!='b'){\r\n\t\t\t\tif(strstr('sensitive', $term))\r\n\t\t\t\t\t$term = 'A';\r\n\t\t\t\telseif(strstr('normal', $term))\r\n\t\t\t\t\t$term = 'B';\r\n\t\t\t}\r\n\t\t\tif($table == 'students'){\r\n\t\t\t\tif(!$this->fieldInTable($table, $field)){\r\n\t\t\t\t\tif($this->fieldInTable('X_PNSY_STUDENT', $field))\r\n\t\t\t\t\t\t$table = 'X_PNSY_STUDENT';\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$table = 'X_PNSY_ADDRESS';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($table == 'students'){\r\n\t\t\t\t$query = \"SELECT * FROM X_PNSY_STUDENT ss, $table s where s.$field like '%$term%' AND s.StudentID IN\r\n\t\t\t\t\t\t\t(SELECT ID FROM X_PNSY_STUDENT WHERE ID = s.StudentID) AND s.StudentID = ss.ID GROUP BY s.StudentID\";\r\n\t\t\t}\r\n\t\t\telseif($table == 'X_PNSY_ADDRESS'){\r\n\t\t\t\t$query = \"SELECT * FROM X_PNSY_STUDENT ss, $table s WHERE s.$field LIKE '%$term%'AND s.ADDRESS_ID IN \r\n\t\t\t\t\t\t\t(SELECT ADDRESS_ID FROM $table WHERE ADDRESS_ID=s.ADDRESS_ID) \r\n\t\t\t\t\t\t\tAND s.ADDRESS_ID=ss.ADDRESS_ID GROUP BY s.ADDRESS_ID\";\r\n\t\t\t\tif($field == 'STREET'){\r\n\t\t\t\t//\"SELECT ID, CONCAT(FirstName, ' ', MiddleIn, ' ', LastName) AS FullName FROM students WHERE\r\n\t\t\t\t//\tCONCAT(FirstName, ' ', MiddleIn, ' ', LastName) LIKE '%$name%'\";\r\n\t\t\t\t\r\n\t\t\t\t\t$query = \"SELECT * FROM X_PNSY_STUDENT ss, $table s WHERE (s.STREET_1 LIKE '%$term%' OR s.STREET_2 LIKE '%$term%'\r\n\t\t\t\t\t\t\tOR s.STREET_3 LIKE '%$term%' OR s.STREET_4 LIKE '%$term%' OR s.STREET_5 LIKE '%$term%') AND s.ADDRESS_ID IN \r\n\t\t\t\t\t\t\t(SELECT ADDRESS_ID FROM $table WHERE ADDRESS_ID=s.ADDRESS_ID) AND s.ADDRESS_ID=ss.ADDRESS_ID GROUP BY s.ADDRESS_ID\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telseif($table == 'X_PNSY_STUDENT' && $field == 'ADVISOR'){\r\n\t\t\t\t$table = 'X_PNSY_FACULTY';\r\n\t\t\t\t$query = \"SELECT s . * FROM X_PNSY_STUDENT s, $table ss WHERE (CONCAT(ss.FIRST_NAME, ' ',\r\n\t\t\t\t\t\t\t ss.LAST_NAME) LIKE '%$term%') AND s.$field IN (SELECT ID FROM $table WHERE ID = s.$field)\r\n\t\t\t\t\t\t\tAND s.$field = ss.ID GROUP BY s.$field, s.ID\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t$query = \"SELECT * FROM $table WHERE $field like '%$term%'\";\r\n// Michael Thompson * 12/07/2005 * Added Below line to tack order onto sql sentence\r\n if ($order != \"\") $query .= \" ORDER BY $order\";\r\n\t\t\t$result = mysql_query($query);\r\n\t\t\tfor($i=0; $results = mysql_fetch_assoc($result); $i++){\r\n\t\t\t\t$return[$i] = $results;\r\n\t\t\t}\r\n\t\t\treturn $return;\r\n\t\t}\r\n\t}", "function _lucene_search($is_keyword, $target_module_srl, $search_target, $page, $items_per_page= 10 )\n {\n $oLuceneModel = &getModel('xedocs'); //temporary imported sources so we not interfere with nlucene\n\n $searchAPI = \"lucene_search_bloc-1.0/SearchBO/\";\n $searchUrl = $oLuceneModel->getDefaultSearchUrl($searchAPI);\n\n if(!$oLuceneModel->isFieldCorrect($search_target)){\n $search_target = 'title_content';\n }\n\n //Search queries applied to the target module\n $query = $oLuceneModel->getSubquery($target_module_srl, \"include\", null);\n\n //Parameter setting\n $json_obj->query = $oLuceneModel->getQuery($is_keyword, $search_target, null);\n $json_obj->curPage = $page;\n $json_obj->numPerPage = $items_per_page;\n $json_obj->indexType = \"db\";\n $json_obj->fieldName = $search_target;\n $json_obj->target_mid = $target_module_srl;\n $json_obj->target_mode = $target_mode;\n\n $json_obj->subquery = $query;\n\n return $oLuceneModel->getDocuments($searchUrl, $json_obj);\n }", "public function search($keyword)\n {\n }", "public function searchSpringer($keyword)\n {\n $this->fillField('query', $keyword);\n $this->click('#search');\n $this->see('Result(s) for \\''.$keyword.'\\'');\n }", "public function keywordSearch()\n {\n $input = Request::all();\n $validator = Validator::make($input, ['keyword' => 'required']);\n if ($validator->fails()) {\n return ApiResponse::validation($validator);\n }\n\n $keyword = ine($input, 'keyword') ? $input['keyword'] : '';\n $limit = isset($input['limit']) ? $input['limit'] : config('jp.pagination_limit');\n $customers = Customer::where('customers.company_id', config('company_scope_id'))\n ->leftJoin('addresses', function ($join) {\n $join->on('customers.address_id', '=', 'addresses.id');\n })\n ->leftJoin('customer_contacts', function ($join) {\n $join->on('customers.id', '=', 'customer_contacts.customer_id');\n })\n ->with('phones', 'address', 'jobs')\n ->keywordSearch($keyword, $this->scope->id())\n ->select('customers.*')\n ->groupBy('customers.id')\n ->paginate($limit);\n\n $transformer = (new CustomersTransformer)->setDefaultIncludes([\n 'count',\n 'address',\n 'phones'\n ]);\n\n return ApiResponse::success(\n $this->response->paginatedCollection($customers, $transformer)\n );\n }", "public function search( $search ) {\r\n\t\tif ( empty( $_GET['sSearch'] ) )\r\n\t\t\treturn;\r\n\t\t\r\n\t\t// Start where\r\n\t\t$where = '';\r\n\r\n\t\tforeach ( $search as $s => $st ) {\r\n\t\t\t// make sure it's separated if necessary\r\n\t\t\tif ( !empty( $where ) )\r\n\t\t\t\t$where .= ' OR ';\r\n\t\t\t\r\n\t\t\t// Add the starting percent\r\n\t\t\t$start = ( $st ) ? '%' : '';\r\n\t\t\t\r\n\t\t\t// Create the where\r\n\t\t\t$where .= $s . \" LIKE ?\";\r\n\r\n $this->values[] = $start . $_GET['sSearch'] . '%';\r\n\t\t}\r\n\t\t\r\n\t\t// Add on the search to the where\r\n\t\t$this->where .= \" AND ( $where ) \";\r\n\t}", "public function Search($keywords, $limit = 10, $offset = 0)\r\n {\r\n\t\t$params = array();\r\n\t\t$params['q'] = $keywords;\r\n\t\t$params['rows'] = $limit;\r\n\t\t$params['start'] = $offset * $limit;\r\n\t\t\r\n $products = $this->fetch('products', $params);\r\n\t\tif($products){\r\n\t\t\treturn $products;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n }", "public function DoSearch()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $this->GetSearchResults_Obj(true);\n \n $ret = $this->GetNumberOfResults();\n \n return $ret;\n }", "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 static function searchTop($pageSize = null, $subjects = null)\n {\n $ts = new TutorSearch();\n if ($subjects) {\n $ts->subjects = $subjects;\n }\n $ts->distance = '50mi';\n $ts->useCurrentUserLocation(false);\n return $ts->sortTop()->search($pageSize);\n }", "public function get_all_student_in_school($schoolId, $sort = 0, $page = 1, $count = 10)\n {\n $page -= 1;\n $users = $this->get_all_student_in_school_command($schoolId);\n $column = array_column($users, 'last_name');\n if ($sort == self::SORT_NAME) {\n $column = array_column($users, 'name');\n } else if ($sort == self::SORT_AVERAGE) {\n $column = array_column($users, 'last_name');\n }\n array_multisort($column, SORT_ASC, $users);\n $users = array_slice($users, $page * $count, $count);\n return $this->fix_format($users);\n }", "public function search($keyword = \"\")\n {\n $paginator = $this->model\n ->where('id', 'like', '%'.$keyword.'%')\n ->orWhere('first_name', 'like', '%'.$keyword.'%')\n ->orWhere('last_name', 'like', '%'.$keyword.'%')\n ->orWhere('first_name_en', 'like', '%'.$keyword.'%')\n ->orWhere('last_name_en', 'like', '%'.$keyword.'%')\n ->paginate(config('app.pagination_limit'));\n\n return $this->response->paginator($paginator, new PersonnelTransformer());\n }", "public function search() {\n\t\t// Use the list members view\n\t\t$this->view = 'list_members';\n\n\t\t// If search term is not set, list all the members\n\t\tif (!isset($this->params['url']['query'])) {\n\t\t\treturn $this->redirect( array('controller' => 'members', 'action' => 'listMembers') );\n\t\t}\n\n\t\t$keyword = trim($this->params['url']['query']);\n\n\t\t$this->__paginateMemberList($this->Member->getMemberSummaryForSearchQuery(true, $keyword));\n\t}", "protected function importFromSearch()\n {\n $api = $this->_getSearchAPI();\n\n for ($i = 1; $i <= self::MAX_PAGES; $i++) {\n Minion_CLI::write(\"Searching page $i...\");\n\n $response = $api->find(self::SEARCH_TERM, array('start_page' => $i));\n $results = $response['repositories'];\n $this->_saveResults($results);\n\n if (count($results) < self::PER_PAGE) {\n break;\n }\n }\n\n Minion_CLI::write('Finished.');\n }", "public function getAllStudentsResults() {\n try {\n if(BaseController::isLoggedIn() && BaseController::isTeacher()) {\n $user = new UserModel();\n $user->id = BaseController::getUserId();\n $user_data = $user->getUserDataById();\n \n $student = new StudentModel();\n $results = $student->getAllStudentsResults();\n \n $model = array(\n 'user_data' => $user_data,\n 'results' => $results\n );\n BaseController::display(self::$controller . '/student-results.php', $model);\n } else {\n BaseController::load('user/login.php', array('error_description' => 'Изисква се регистрация.'));\n }\n } catch (Exception $e) {\n BaseController::load('error.php');\n }\n }", "public function search($phrase='', $limit = true, $additional = false){\n global $Core;\n\n if(empty($this->tableFields)){\n $this->getTableFields();\n }\n\n $phrase = trim($Core->db->real_escape_string($phrase));\n if(!empty($phrase)){\n if($this->autocompleteField && $this->autocompleteObjectId){\n $q = \"SELECT `autocomplete`.`object_id`, TRIM(`autocomplete`.`phrase`) AS 'phrase'\";\n $q .= \" FROM `{$Core->dbName}`.`autocomplete`\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" INNER JOIN `{$Core->dbName}`.`{$this->tableName}` ON `{$Core->dbName}`.`autocomplete`.`object_id` = `{$Core->dbName}`.`{$this->tableName}`.`id`\";\n }\n $q .= \" WHERE `autocomplete`.`type`={$this->autocompleteObjectId} AND `autocomplete`.`phrase` LIKE '%$phrase%'\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" AND (`{$this->tableName}`.`hidden` IS NULL OR `{$this->tableName}`.`hidden` = 0)\";\n }\n if($additional){\n $q .= ' AND '.$additional;\n }\n $q .= ' GROUP BY `autocomplete`.`object_id` ORDER BY `autocomplete`.`phrase` ASC, `autocomplete`.`id` ASC';\n }\n else if($this->searchByField){\n if($this->returnPhraseOnly){\n $q = \"SELECT `id` AS 'object_id',`{$this->searchByField}` AS 'phrase'\";\n }\n else{\n $q = \"SELECT *\";\n }\n $q .= \" FROM `{$Core->dbName}`.`{$this->tableName}`\";\n $q .= \" WHERE `{$this->searchByField}` LIKE '%$phrase%'\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" AND (`{$this->tableName}`.`hidden` IS NULL OR `{$this->tableName}`.`hidden` = 0)\";\n }\n if($additional){\n $q .= ' AND '.$additional;\n }\n\n $q .= \" ORDER BY `\".((!empty($this->orderByField)) ? $this->orderByField : $this->searchByField).\"` {$this->orderType}, `id` ASC\";\n if($this->additionalOrdering){\n $q .= ', '.$this->additionalOrdering;\n }\n }\n else throw new Exception(\"In order to use the search function, plesae define autocompleteField and autocompleteObjectId or searchByField!\");\n\n if($limit){\n if(is_numeric($limit)){\n $q.= \" LIMIT \".(($Core->rewrite->currentPage - 1) * $limit).','.$limit;\n }\n else{\n $q.= \" LIMIT \".(($Core->rewrite->currentPage - 1) * $Core->itemsPerPage).','.$Core->itemsPerPage;\n }\n }\n\n if($this->returnPhraseOnly){\n if($Core->db->query($q,$Core->cacheTime,'fillArraySingleField',$result,'object_id','phrase')){\n return $result;\n }\n }\n else{\n if($Core->db->query($q,$Core->cacheTime,'fillArray',$result,'id')){\n return $result;\n }\n }\n return array();\n }\n else{\n $all = $this->getAll(false,false,$limit,false,false,$additional);\n if(empty($all)){\n return array();\n }\n $result = array();\n foreach($all as $k => $v){\n if($this->autocompleteField && $this->autocompleteObjectId){\n if($this->returnPhraseOnly){\n if(is_array($this->autocompleteField)){\n $result[$k] = array();\n foreach($this->autocompleteField as $f){\n if(!empty($v[$f])){\n $result[$k][] = $v[$f];\n }\n }\n $result[$k] = implode($this->autocompleteSeparator,$result[$k]);\n }\n else{\n $result[$k] = $v[$this->autocompleteField];\n }\n }\n else return $all;\n }\n else if($this->searchByField){\n if($this->returnPhraseOnly){\n $result[$k] = $v[$this->searchByField];\n }\n else return $all;\n }\n else throw new Exception(\"In order to use the search function, please define autocompleteField and autocompleteObjectId or searchByField!\");\n }\n unset($all);\n return $result;\n }\n }", "public function search($keyword='')\n {\n $params = [\n \"s\" => $keyword\n ];\n\n return($this->_fetch($params));\n }", "public function search($keywords, $location, $since)\n\t{\n\n\t\trequire dirname(__DIR__) . '/libraries/google-api-php-client/src/Google_Client.php';\n\t\trequire dirname(__DIR__) . '/libraries/google-api-php-client/src/contrib/Google_PlusService.php';\n\n\t\t$settings = ORM::factory('socialmedia_settings')->where('setting', 'gplus_next_page_token')->find();\n\n\t\t$client = new Google_Client();\n\t\t$client->setApplicationName(\"Ushahidi - SocialMedia Gplus\");\n\n\t\t$client->setClientId('281739857753.apps.googleusercontent.com');\n\t\t$client->setClientSecret(socialmedia_helper::getSetting('gplus_api_key'));\n\t\t$client->setDeveloperKey('AIzaSyBnz3xXmfBX5jt-Pa26L-oTcLPqa59a-So');\n\n\t\t$plus = new Google_PlusService($client);\n\n\t\t$params = array(\n\t\t\t'orderBy' => 'recent',\n\t\t\t'maxResults' => '20',\n\t\t);\n\n\t\tif (!is_null($settings->value)) \n\t\t{\n\t\t\t$params[\"pageToken\"] = $settings->value;\n\t\t}\t\n\n\t\t$results = $plus->activities->search(join(\"|\", $keywords), $params);\n\t\t$result = $this->parse($results);\n\n\n\t\t// Save new highest id\n\t\t$settings->setting = 'gplus_next_page_token';\n\t\t$settings->value = $results[\"nextPageToken\"];\n\t\t$settings->save();\n\t}", "public function search($pageNo, $pageSize, $querystring) {\n $actor \t\t= PlatformUser::instanceBySession();\n $condition \t= $this->getCondition();\n $records \t= $this->collection\n ->setActor($actor)\n ->searchRecords($pageNo, $pageSize, $condition);\n return $records;\n\t}", "public function search($search);", "public function search(Query $query);", "public function search($keywords)\n\t{\n\t\t$keywords = \"%$keywords%\";\n\n\t\t$condition = \" WHERE users.is_deleted = false\n\t\t\t\t\t\tAND (first_name LIKE :keywords OR last_name LIKE :keywords) \";\n\t\t\n\t\t$query = \"SELECT \n\t\t\t\t\tbookings.*,\n\t\t\t\t\tusers.first_name,\n\t\t\t\t\tusers.last_name\n\t\t\t\t\tFROM \n\t\t\t\t\t{$this->table}\n\t\t\t\t\tJOIN users USING(user_id)\n\t\t\t\t\t$condition \n\t\t\t\t\tORDER BY \n\t\t\t\t\t{$this->table}.created_at\n\t\t\t\t\tDESC\";\n\n\t\t$stmt = static::$dbh->prepare($query);\n\n\t\t$params = array(\n\t\t\t':keywords' => $keywords\n\t\t);\n\n\t\t$stmt->execute($params);\n\n\t\treturn $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "public function search($query);", "private function getSearch() {\n\t\tif( $_SESSION['privilege'] != 'anon' ) {\n\n\t\t\t// If NOT anon then IS logged in so set userID to SESSION['id'] \n\t\t\t$userID = $_SESSION['id'];\n\n\t\t} else {\n\t\t\t\n\t\t\t// For this function default $userID to non-exitent user # 0 \n\t\t\t$userID = 0;\n\n\t\t}\n\n\t\t// Set search term per input OR blank\n\n\t\tif( !isset($_POST['search'])) {\n\t\t\t$_POST['search'] = \"\";\n\t\t}\n\t\t\n\t\tif(strlen($_POST['search']) === 0) {\n\t\t\t$searchTerm = \"\";\n\n\t\t} else {\n\t\t\t$result = $_POST['search'];\n\t\t\t$searchTerm = strtolower($result);\n\t\t}\n\n\t\t$this->data['searchTerm'] = $searchTerm;\n\n\t\t$sql = \"SELECT posts.id, title AS score_title, intro AS score_intro, article AS score_article\n\t\t\tFROM posts\n\t\t\tWHERE\n\t\t\t\t(title LIKE '%$searchTerm%' OR \n\t\t\t\tintro LIKE '%$searchTerm%' OR\n\t\t\t\tarticle LIKE '%$searchTerm%')\";\n\n\t\tif( $_SESSION['privilege'] != 'admin' ) {\n\n\t\t\t$sql .= \" AND (user_id = $userID\n\t\t\t\t\tOR status = 'Approved')\t\n\t\t\t\t\tORDER BY score_title ASC\";\n\t\t\n\t\t} else {\n\n\t\t\t$sql .= \" ORDER BY score_title ASC\";\t\n\n\t\t}\t\t\n\t\n\t\t$result = $this->dbc->query($sql);\n\n\t\tif( !$result || $result->num_rows == 0) {\n\t\t\t$this->data['searchResults'] = \"No results\";\n\t\t} else {\n\t\t\t$this->data['searchResults'] = $result->fetch_all(MYSQLI_ASSOC);\n\t\t}\n\t}", "public function search($keyword, $start = 0, $stop = 25)\n {\n $keyword = \"%{$keyword}%\";\n $sql = \"SELECT *\n FROM \" . self::TABLE_NAME . \"\n WHERE LOWER(news_name) LIKE LOWER(?) OR\n LOWER(news_slug) LIKE LOWER(?) OR\n LOWER(news_content) LIKE LOWER(?) OR\n LOWER(news_seo_title) LIKE LOWER(?) OR\n LOWER(news_seo_description) LIKE LOWER(?)\n ORDER BY news_id DESC LIMIT ?, ?\";\n $stmt = $this->prepare($sql);\n $stmt->bind_param(\"sssssii\",\n $keyword,\n $keyword,\n $keyword,\n $keyword,\n $keyword,\n $start, $stop);\n $stmt->execute();\n $result = $stmt->get_result();\n $stmt->close();\n return $this->fetch_assoc_all($result);\n }", "function search($query, $year=NULL, $page_limit=5, $page=NULL) {\n\t\t\n\t\t$args = array (\n\t\t\t\"q\" => $query,\n\t\t\t\"year\" => (int)$year,\n\t\t\t\"page_limit\" => $page_limit,\n\t\t\t\"page\" => $page\n\t\t);\n\t\t\n\t\t$json = $this->request(self::API_URL_TMPL_SEARCH, array(\n\t\t\t\"query-args\" => $this->collapse_args($args)\n\t\t));\n\t\t\n\t\tif(isset($json->total)) {\n\t\t\t\n\t\t\tif($json->total > 0) {\n\t\t\t\t\n\t\t\t\treturn new rt_search_result($json);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn array();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn NULL;\n\t\t\t\n\t\t}\n\t\t\n\t}", "public function getAll($searchTerm);", "public function search($search_term, $from_record_num, $records_per_page){\n \n // select query\n $query = \"SELECT\n c.name as category_name, p.id, p.name, p.description, p.price, p.category_id, p.created\n FROM\n \" . $this->table_name . \" p\n LEFT JOIN\n categories c\n ON p.category_id = c.id\n WHERE\n p.name LIKE ? OR p.description LIKE ?\n ORDER BY\n p.name ASC\n LIMIT\n ?, ?\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind variable values\n $search_term = \"%{$search_term}%\";\n $stmt->bindParam(1, $search_term);\n $stmt->bindParam(2, $search_term);\n $stmt->bindParam(3, $from_record_num, PDO::PARAM_INT);\n $stmt->bindParam(4, $records_per_page, PDO::PARAM_INT);\n \n // execute query\n $stmt->execute();\n \n // return values from database\n return $stmt;\n }", "public function search() {\n if (!isset($this->params['searchText'])) {\n DooUriRouter::redirect(Doo::conf()->APP_URL);\n return FALSE;\n }\n $blog = new News();\n\n $data['title'] = $this->__('Search results');\n $data['body_class'] = 'index_news';\n $data['selected_menu'] = 'news';\n $data['left'] = PlayerHelper::playerLeftSide();\n $data['right'] = PlayerHelper::playerRightSide();\n\n $list = array();\n $this->appendCategories($list, $news, false);\n\n //crumb adding\n $this->addCrumb($this->__('Search results'));\n $list['crumb'] = $this->getCrumb();\n\n $totalResults = $news->getSearchTotal(urldecode($this->params['searchText']));\n $pager = $this->appendPagination($list, new stdClass(), $totalResults > 0 ? $totalResults : 1, MainHelper::site_url('news/search/' . urlencode($this->params['searchText'])));\n\n $list['hideHeader'] = true;\n $list['searchText'] = urldecode($this->params['searchText']);\n $list['resultCount'] = $totalResults;\n $list['newsList'] = $news->getSearch(urldecode($this->params['searchText']), $pager->limit);\n\n $data['content'] = $this->renderBlock('news/searchResults', $list);\n\n $data['footer'] = MainHelper::bottomMenu();\n $data['header'] = MainHelper::topMenu();\n $this->render3Cols($data);\n }", "public function searchPaged($query, array $inApps = [], $page = 1, $size = 30);", "public function search();", "public function search();", "public function approvedStudentSearch(){\n\n\t\t$viewDataController = new ViewDataController();\n\t\t$data = $viewDataController->buildData();\n\n\t\t$input = Request::all();\n\n\t\tif (!isset($input['term']) || empty($input['term'])) {\n\t\t\treturn json_encode($term);\n\t\t}\n\n\t\t$term = $input['term'];\n\n\t\tif (isset($data['agency_collection'])) {\n\n\t\t\t$rec = DB::connection('bk')->table('users as u')\n\t\t\t\t\t->join('agency_recruitment as r', 'r.user_id', '=', 'u.id')\n\t\t\t\t\t->where('r.status', 1)\n\t\t\t\t \t->where('r.agency_recruit', 1)\n\t\t\t\t \t->where('r.user_recruit', 1)\n\t\t\t\t \t->where('r.agency_id', $data['agency_collection']->agency_id)\n\t\t\t\t \t->select('u.id')\n\t\t\t\t ->where(DB::raw('CONCAT(fname, lname)'), 'LIKE', '%'.$term.'%' )\n\t\t\t\t \t->groupBy('u.id');\n\t\t}else{\n\t\t\t$rec = DB::connection('bk')->table('users as u')\n\t\t\t\t\t->join('recruitment as r', 'r.user_id', '=', 'u.id')\n\t\t\t\t\t->where('r.status', 1)\n\t\t\t\t \t->where('r.college_recruit', 1)\n\t\t\t\t \t->where('r.user_recruit', 1)\n\t\t\t\t \t->where('r.college_id', $data['org_school_id'])\n\t\t\t\t \t->select('u.id')\n\t\t\t\t ->where(DB::raw('CONCAT(fname, lname)'), 'LIKE', '%'.$term.'%' )\n\t\t\t\t \t->groupBy('u.id');\n\t\t}\n\t\t\n\t\t\n\t\tif (isset($input['user_ids']) && !empty($input['user_ids'])) {\n\t\t\t\n\t\t\t$user_ids = $input['user_ids'];\t\n\t\t\t$arr = array();\n\t\t\tforeach ($user_ids as $key => $value) {\n\t\t\t\t$arr[] = Crypt::decrypt($value);\n\t\t\t}\n\n\t\t\t$rec = $rec->whereNotIn('u.id', $arr);\n\t\t}\n\n\t\t$rec = $rec->get();\n\n\t\tif (empty($rec)) {\n\t\t\treturn json_encode($rec);\n\t\t}\n\n\t\t$rec_arr = array();\n\n\t\tforeach ($rec as $key) {\n\t\t\t$rec_arr[] = $key->id;\n\t\t}\n\t\t\n\t\t$rec_arr = implode(\",\", $rec_arr);\n\n\t\t$ret = array();\n\t\t\n\t\t$tmp = $this->getRecipientName($data, $rec_arr);\n\n\t\tforeach ($tmp as $key) {\n\t\t\t$arr = array();\n\t\t\t$arr['user_id'] =Crypt::encrypt($key['user_id']);\n\t\t\t$arr['fname'] = $key['fname'];\n\t\t\t$arr['lname'] = $key['lname'];\n\t\t\t$arr['json'] = json_encode($key);\n\t\t\t$arr['json'] = str_replace(\"'\", \"&lsquo;\", $key);\n\t\t\t$arr['json'] = json_encode($arr['json']);\n\n\t\t\t$ret[] = $arr;\n\t\t}\n\n\n\t\treturn $ret;\n\t}", "public function search($searchTerm, $paginateCount)\n {\n return $this->with('manufacturer', 'images')->where('name', 'LIKE', \"%$searchTerm%\")->paginate($paginateCount);\n }", "public function search($params, SearchForm $form)\n {\n $query = Student::find();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => ['defaultOrder'=> ['rates'=>SORT_DESC]],\n 'pagination' => [\n 'pagesize' => 50,\n ],\n ]);\n\n\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n if($form->query && $form->validate()){\n $q = $form->query;\n $query->andFilterWhere(['like', 'firstname', $q])\n ->orFilterWhere(['like', 'lastname', $q])\n ->orFilterWhere(['like', 'group_number', $q]);\n if(is_numeric($q) && $q > 0 ) {\n $query->orFilterWhere(['=', 'rates', (int)$q]);\n }\n\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'id' => $this->id,\n 'rates' => $this->rates,\n 'birthdate'=>$this->birthdate ? strtotime($this->birthdate) : \"\"\n\n ]);\n\n $query->andFilterWhere(['like', 'firstname', $this->firstname])\n ->andFilterWhere(['like', 'lastname', $this->lastname])\n ->andFilterWhere(['like', 'gender', $this->gender])\n ->andFilterWhere(['like', 'residence', $this->residence])\n ->andFilterWhere(['like', 'group_number', $this->group_number])\n\n ->andFilterWhere(['like', 'email', $this->email]);\n\n\n return $dataProvider;\n }", "function do_search(&$smartySearchResult,$searchBox) {\n\t\t$searchString = $this->piVars['sword'];\n\t\t#$searchString = ereg_replace('\"', '', $searchString);\t//Delete quotation marks from search value\n\t\t$searchString=$this->check_searchword(strip_tags($searchString)); //strip and check to avoid xss-exploits\n\t\t$sword = preg_split('/[\\s,.\\\"]+/',$searchString);\t\t//Split search string into multiple keywords and store them in an array\n\n\t\t//Set initial where clauses\n\t\t$querypart_where = ' AND tx_civserv_service.pid IN (' . $this->community['pidlist'] . ')';\n\n\t\t$querypart_where2 = ' AND tx_civserv_search_word.uid = tx_civserv_service_sv_searchword_mm.uid_foreign\n\t\t\t\t\t\t\t AND tx_civserv_service_sv_searchword_mm.uid_local = tx_civserv_service.uid';\n\n\t\t$querypart_where3 = '';\n\t\t$querypart_where4 = '';\n\t\t// count($sword) represents the number of search words entered by the user, i.e. 2 for \"blue bird\" and 3 for \"big blue bird\"\n\n\t\tif (!empty($searchString)) {\n\t\t\t// Because UNION is not yet implemented in the sql wrapper class, a lower\n\t\t\t// abstraction level for the sql statement is used. This should be no problem,\n\t\t\t// because UNION is standard in almost all DBMS.\n\t\t\tfor ($i = 0; $i < count($sword); $i++) {\n\t\t\t\tif ($i == 0) {\n\t\t\t\t\t\t$querypart_where .= ' AND (sv_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t\t$querypart_where2 .= ' AND (tx_civserv_search_word.sw_search_word LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t\t$querypart_where3 .= ' AND (ms_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR ms_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR ms_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR ms_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t\t$querypart_where4 .= ' AND (sw_search_word LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t\t$querypart_where5 = ' AND (sv_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t\t OR sv_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\t\t\t\t} else { //the following are going to supplement the condition starting with 'AND....'\n\t\t\t\t\t$querypart_where .= ' OR sv_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t$querypart_where2 .= ' OR tx_civserv_search_word.sw_search_word LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\" ';\n\n\t\t\t\t\t$querypart_where3 .= ' OR ms_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR ms_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR ms_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR ms_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\n\t\t\t\t\t$querypart_where4 .= ' OR sw_search_word LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\" ';\n\n\t\t\t\t\t$querypart_where5 .= ' OR sv_name LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym1 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym2 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"\n\t\t\t\t\t\t\t\t\t\t OR sv_synonym3 LIKE \"%' . $GLOBALS['TYPO3_DB']->quoteStr($sword[$i], 'tx_civserv_search_word') . '%\"';\n\t\t\t\t}\n\t\t\t}// end for...\n\t\t\t//all the prepared query-parts need to be finished by an ')'.\n\t\t\t$querypart_where .= ')';\n\t\t\t$querypart_where2 .= ')';\n\t\t\t$querypart_where3 .= ')';\n\t\t\t$querypart_where4 .= ')';\n\t\t\t$querypart_where5 .= ')';\n\n\n\n\t\t\t//Query for getting uid list of matching search words\n\t\t\t$res_searchword = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t'uid',\n\t\t\t\t\t\t'tx_civserv_search_word',\n\t\t\t\t\t\t'1 '.\n\t\t\t\t\t\t$querypart_where4 .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_search_word'),\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'');\n\n\t\t\tif ($GLOBALS['TYPO3_DB']->sql_num_rows($res_searchword) > 0) {\n\t\t\t\t$uidlist_searchwords = $this->sql_fetch_array_r($res_searchword);\n\t\t\t} else {\n\t\t\t\t$uidlist_searchwords[0]=''; //Create empty array for 'in_array'-function\n\t\t\t}\n\n\t\t\t//Query for getting uid list of model services\n\t\t\t$res_model_service = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t'uid, ms_searchword',\n\t\t\t\t\t\t'tx_civserv_model_service',\n\t\t\t\t\t\t'ms_searchword != 0',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'');\n\n\t\t\t//Open uid match list\n\t\t\t$searchword_uid_list = '(';\n\t\t\t$list_start = 1;\n\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_model_service) ) {\n\t\t\t\t\t$searchword_uid_array = explode(\",\", $row['ms_searchword']);\n\t\t\t\t\tfor ($i = 0 ; $i < count($searchword_uid_array) ; $i++) {\n\t\t\t\t\t\tif ($uidlist_searchwords != NULL && in_array(array('uid' => $searchword_uid_array[$i]),$uidlist_searchwords)) {\n\t\t\t\t\t\t\t$searchword_uid_list .= $list_start ? $row['uid'] : ',' . $row['uid']; //Add model service uid to match list\n\t\t\t\t\t\t\t$list_start = 0;\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}\n\t\t\t//Close uid match list\n\t\t\t$searchword_uid_list .= ')';\n\n\t\t\tif ($searchword_uid_list != '()') {\n\t\t\t\t$querypart_where3 .= ' OR tx_civserv_model_service.uid IN ' . $searchword_uid_list;\n\t\t\t}\n\n\t\t\t$res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db,\n\t\t\t\t\t'SELECT\n\t\t\t\t\t \ttx_civserv_service.uid as uid,\n\t\t\t\t\t \ttx_civserv_service.sv_name as name\n\t\t\t\t\t FROM\n\t\t\t\t\t \ttx_civserv_service\n\t\t\t\t\t WHERE 1 ' .\n\t\t\t\t\t \t $this->cObj->enableFields('tx_civserv_service') .\n\t\t\t\t\t\t$querypart_where . '\n\t\t\t\t\t UNION\n\t\t\t\t\t SELECT\n\t\t\t\t\t \ttx_civserv_service.uid as uid,\n\t\t\t\t\t\ttx_civserv_service.sv_name as name\n\t\t\t\t\t FROM\n\t\t\t\t\t \ttx_civserv_service,\n\t\t\t\t\t\ttx_civserv_search_word,\n\t\t\t\t\t\ttx_civserv_service_sv_searchword_mm\n\t\t\t\t\t WHERE 1 ' .\n\t\t\t\t\t \t$this->cObj->enableFields('tx_civserv_service') .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_search_word') .\n\t\t\t\t\t\t' AND tx_civserv_service.pid IN (' . $this->community['pidlist'] . ')\n\t\t\t\t\t\t '. $querypart_where2 . '\n\t\t\t\t\t UNION\n\t\t\t\t\t SELECT\n\t\t\t\t\t \ttx_civserv_service.uid as uid,\n\t\t\t\t\t\ttx_civserv_service.sv_name as name\n\t\t\t\t\t FROM\n\t\t\t\t\t \ttx_civserv_service,\n\t\t\t\t\t\ttx_civserv_model_service\n\t\t\t\t\t WHERE 1 ' .\n\t\t\t\t\t \t$this->cObj->enableFields('tx_civserv_service') .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_model_service') .\n\t\t\t\t\t\t' AND tx_civserv_service.sv_model_service = tx_civserv_model_service.uid\n\t\t\t\t\t\t AND tx_civserv_service.pid IN (' . $this->community['pidlist'] . ')\n\t\t\t\t\t\t '. $querypart_where3 .'\n\t\t\t\t\tUNION\n\t\t\t\t\tSELECT\n\t\t\t\t\t\ttx_civserv_service.uid as uid,\n\t\t\t\t\t\ttx_civserv_service.sv_name as name\n\t\t\t\t\tFROM\n\t\t\t\t\t\ttx_civserv_service,\n\t\t\t\t\t\ttx_civserv_external_service\n\t\t\t\t\tWHERE 1 ' .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_service') .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_external_service') .\n\t\t\t\t\t ' AND tx_civserv_external_service.pid in (' . $this->community['pidlist'] . ')\n\t\t\t\t\t AND tx_civserv_external_service.es_external_service = tx_civserv_service.uid\n\t\t\t\t\t '. $querypart_where5 .'\n\t\t\t\t\tUNION\n\t\t\t\t\tSELECT\n\t\t\t\t\t\ttx_civserv_service.uid as uid,\n\t\t\t\t\t\ttx_civserv_service.sv_name as name\n\t\t\t\t\tFROM\n\t\t\t\t\t\ttx_civserv_service,\n\t\t\t\t\t\ttx_civserv_search_word,\n\t\t\t\t\t\ttx_civserv_service_sv_searchword_mm,\n\t\t\t\t\t\ttx_civserv_external_service\n\t\t\t\t\tWHERE 1 ' .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_service') .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_search_word') .\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_external_service') .\n\t\t\t\t\t\t' AND tx_civserv_external_service.pid IN (' . $this->community['pidlist'] . ')\n\t\t\t\t\t\t '. $querypart_where2 .'\n\t\t\t\t\t\tAND tx_civserv_external_service.es_external_service = tx_civserv_service.uid\n\t\t\t\t\tORDER BY name'\n\t\t\t);\n\n\t\t\t$rowcount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\t\t// Check if query returned any results\n\t\t\tif ($rowcount == 0) {\n\t\t\t\t$GLOBALS['error_message'] = $this->pi_getLL('tx_civserv_pi1_search.no_results','No search results found!');\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\t// Output service search results\n\t\t\t\t$row_counter = 0;\n\t\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res) ) {\n\t\t\t\t\t$search_data[$row_counter]['link'] = htmlspecialchars($this->pi_linkTP_keepPIvars_url(array(mode => 'service',id => $row['uid']),1,1));\n\t\t\t\t\t$search_data[$row_counter]['name'] = $row['name'];\n\t\t\t\t\t$row_counter++;\n\t\t\t\t}\n\n\t\t\t\tif ($searchBox) {\n\t\t\t\t\t//$_SERVER['REQUEST_URI'] = $this->pi_linkTP_keepPIvars_url(array(mode => 'search_result'),0,1); //dropped this according to instructions from security review\n\t\t\t\t\t$smartySearchResult->assign('searchbox', $this->pi_list_searchBox());\n\t\t\t\t}\n\n\t\t\t\t$smartySearchResult->assign('service',$search_data);\n\t\t\t\t$smartySearchResult->assign('number',$rowcount);\n\t\t\t\t$smartySearchResult->assign('employee_label',$this->pi_getLL('tx_civserv_pi1_search_result.employee','Matching employees'));\n\t\t\t\t$smartySearchResult->assign('service_label',$this->pi_getLL('tx_civserv_pi1_search_result.service','Matching services'));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\t// End query services\n\n\t\t// Empty query\n\t\telse {\n\t\t\t$GLOBALS['error_message'] = $this->pi_getLL('tx_civserv_pi1_search.empty_query','Empty query! Search string required.');\n\t\t\treturn false;\n\t\t}\n\t\t// End empty query\n\t}", "public function searchRefItems( \\Aimeos\\MW\\Criteria\\Iface $search, array $ref = [], &$total = null );", "protected function searchRecords($search)\n {\n $search = trim($search);\n\n $query = \\StoredObject::query()\n ->limit(10)\n ->orderBy('created DESC')\n ->where('user_id = :user_id: AND parent_id IS NULL', [\n 'user_id' => $this->user->id\n ]);\n\n // Crude search for each term using LIKE\n foreach (explode(' ', $search) as $term) {\n $query->andWhere('title LIKE :term: OR description LIKE :term:', [\n 'term' => \"%$term%\"\n ]);\n }\n\n $results = $query->execute();\n $array = [];\n\n foreach ($results as $result) {\n $array[] = $result;\n }\n\n return $array;\n }", "function find_all_products()\n\t{\n\t\tif(!$this->validate())\n\t\t\treturn false;\n\n\t\tif(empty($this->keywords_to_search_for))\n\t\t\t$this->set_keywords_from_search_query();\n\t\t\t\t\t\t\n\t\t$keyword_filter \t= $this->build_keyword_sql_filter($this->keywords_to_search_for);\n\t\t\n\t\t$category_filter \t= $this->build_category_sql_filter($this->in_category_id);\n\n\t\t$limit \t\t\t\t= (int)$this->results_per_page.' OFFSET '. (int)$this->calculate_record_offset();\n\n\t\tif(empty($keyword_filter))\t\n\t\t{\n\t\t\t$this->search_results = array();\n\t\t\t\n\t\t\treturn $this->search_results;\n\t\t}\n\t\t\t\t\n\t\t//Perform a keyword weighted search query to find the most relavent results\n\t\t$sql = 'SELECT product.id, product.name, product.description, product.url_name, image.filename AS image_filename, sum(product_keyword.frequency) AS frequency ' .\n\t\t\t\t'FROM product ' .\n\t\t\t\t'\tINNER JOIN product_keyword ON product_keyword.product_id = product.id ' .\n\t\t\t\t'\tINNER JOIN keyword ON product_keyword.keyword_id = keyword.id ' .\n\t\t\t\t'\tINNER JOIN image ON product.image_id = image.id ' .\n\t\t\t\t'WHERE ('.$keyword_filter.') '.$category_filter . ' AND product.is_active = 1 ' . \n\t\t\t\t'GROUP BY \n\t\t\t\t\tproduct.id,\n\t\t\t\t\tproduct.name,\n \t\t\t\t\tproduct.description,\n \t\t\t\t\tproduct.url_name ' . \n\t\t\t\t'ORDER BY frequency DESC, product.name, product.id ' .\n\t\t\t\t'LIMIT ' . $limit;\n\t\t\n\t\t$this->search_results = $this->_db->query_as_array($sql);\n\t\t\t\t\t\n\t\treturn $this->search_results;\t\t\n\t}", "public function search($q);", "public function search(){}", "public function search_document($keyword)\n {\n try {\n if ($keyword == \"\") {\n return DB::table('study_document')\n ->join('user', 'study_document.id_lecturer', 'user.id')\n ->select('study_document.*', 'user.full_name as author')\n ->orderBy('created_at', 'desc');\n } else {\n return DB::table('study_document')\n ->join('user', 'study_document.id_lecturer', 'user.id')\n ->where(function ($query) use ($keyword) {\n $query->where('study_document.name', 'like', \"%$keyword%\")\n ->orWhere('user.full_name', 'like', \"%$keyword%\");\n })\n ->select('study_document.*', 'user.full_name as author')\n ->orderBy('created_at', 'desc');\n }\n } catch (\\Exception $ex) {\n return $ex;\n }\n }", "function _is_search($is_keyword, $target_module_srl, $search_target, $page, $items_per_page= 10)\n {\n $oDocumentModel = &getModel('document');\n\n $obj = null;\n $obj->module_srl = array($target_module_srl);\n $obj->page = $page;\n $obj->list_count = $items_per_page;\n $obj->exclude_module_srl = '0';\n $obj->sort_index = 'module';\n //$obj->order_type = 'asc';\n $obj->search_keyword = $is_keyword;\n $obj->search_target = $search_target;\n return $oDocumentModel->getDocumentList($obj);\n }", "public static function search($query, &$results = array()) {\n\n }", "function getSearchResult($searchKeyword) {\r\n\t\t\t$query_search \t= \"select distinct file_index from document_details where file_index like ? union select distinct file_index\r\n\t\t\t\t\t\t\t\tfrom document_details where matters like ? \";\r\n\t\t\t\r\n\t\t\t$query \t\t\t= $this->pdo->prepare($query_search);\r\n\t\t\t\r\n\t\t\t$searchWord\t\t= '%'.$searchKeyword.'%';\r\n\t\t\t$searchPar\t\t= array($searchWord, $searchWord);\r\n\t\t\t\r\n\t\t\t$query->execute($searchPar);\r\n\t\t\t\r\n\t\t\treturn $query->fetchAll();\r\n\t\t}", "public function search($pages, $count = false)\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare(\"id\", $this->id);\n\t\t$criteria->compare(\"login\", $this->login, true);\n\t\t$criteria->compare(\"password\", $this->password, true);\n\t\t$criteria->compare(\"name\", $this->name, true);\n\t\t$criteria->compare(\"email\", $this->email, true);\n\t\t$criteria->compare(\"active\", $this->active);\n\t\t$criteria->compare(\"agency_id\", $this->agency_id);\n\n\t\tif( $count ){\n\t\t\treturn User::model()->count($criteria);\n\t\t}else{\n\t\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\"criteria\" => $criteria,\n\t\t\t\t\"pagination\" => array(\"pageSize\" => $pages, \"route\" => \"User/index\")\n\t\t\t));\n\t\t}\n\t}", "function search($keywords)\r\n {\r\n\r\n }", "function jobSearch($keyword, $order, $orderBy, $resultCount) {\n $conn = new DBConnect();\n $dbObj = $conn->getDBConnect();\n $this->DAO = new JobDAO($dbObj);\n return $this->DAO->jobSearch($keyword, $order, $orderBy, $resultCount);\n }", "public function searchAction() {\n $search = $this->getParam('search');\n\n\n $queryBuilder = new Application_Util_QueryBuilder($this->getLogger());\n\n $queryBuilderInput = array(\n 'searchtype' => 'simple',\n 'start' => '0',\n 'rows' => '10',\n 'sortOrder' => 'desc',\n 'sortField'=> 'score',\n 'docId' => null,\n 'query' => $search,\n 'author' => '',\n 'modifier' => 'contains_all',\n 'title' => '',\n 'titlemodifier' => 'contains_all',\n 'persons' => '',\n 'personsmodifier' => 'contains_all',\n 'referee' => '',\n 'refereemodifier' => 'contains_all',\n 'abstract' => '',\n 'abstractmodifier' => 'contains_all',\n 'fulltext' => '',\n 'fulltextmodifier' => 'contains_all',\n 'year' => '',\n 'yearmodifier' => 'contains_all',\n 'author_facetfq' => '',\n 'languagefq' => '',\n 'yearfq' => '',\n 'doctypefq' => '',\n 'has_fulltextfq' => '',\n 'belongs_to_bibliographyfq' => '',\n 'subjectfq' => '',\n 'institutefq' => ''\n );\n\n\n $query = $queryBuilder->createSearchQuery($queryBuilderInput, $this->getLogger());\n\n $result = array();\n\n $searcher = new Opus_SolrSearch_Searcher();\n try {\n $result = $searcher->search($query);\n }\n catch (Opus_SolrSearch_Exception $ex) {\n var_dump($ex);\n }\n\n $matches = $result->getReturnedMatches();\n\n $this->view->total = $result->getAllMatchesCount();\n $this->view->matches = $matches;\n }", "public function studentInfo(Request $request)\n {\n if($request->has('search')){\n $students = Student::where('student_id',$request->search)\n ->Orwhere('first_name',\"LIKE\",\"%\".$request->search.\"%\")\n ->Orwhere('last_name',\"LIKE\",\"%\".$request->search.\"%\")\n ->select(DB::raw('student_id,\n first_name,\n last_name,\n CONCAT(first_name,\" \",last_name) AS full_name,\n (CASE WHEN Sex=0 THEN \"M\" ELSE \"F\" END) AS Sex, dob'))\n ->paginate(10);\n\n }else\n {\n $students = Student::select(DB::raw('student_id,\n first_name,\n last_name,\n CONCAT(first_name,\" \",last_name) AS full_name,\n (CASE WHEN Sex=0 THEN \"M\" ELSE \"F\" END) AS Sex,\n dob'))\n ->paginate(10)\n ->appends('search',$request->search);\n }\n\n return view('student.studentList',compact('students'));\n }", "protected /*DatabaseChunkIterator*/ function getAllStudentsInSection(/*int*/ $section)\n\t{\n\t\treturn new DatabaseChunkIterator(\"SELECT * FROM `students` WHERE `section` = ? ORDER BY `table` ASC, `last_name` ASC, `first_name` ASC;\", [$section], 50);\n\t}", "public function searchItems( \\Aimeos\\MW\\Criteria\\Iface $filter, &$total = null )\n\t{\n\t\treturn $this->controller->searchItems( $filter, $total );\n\t}", "public function searchClassByStudent_post()\n {\n /* code goes here */\n }", "public function search()\n {\n if($this->input->post('q'))\n {\n $keyword = $this->input->post('q');\n \n $this->session->set_userdata(\n array('keyword' => $this->input->post('q',TRUE))\n );\n }\n \n $config = array(\n 'base_url' => site_url('delivery_method/search/'),\n 'total_rows' => $this->delivery_methods->count_all_search(),\n 'per_page' => $this->config->item('per_page'),\n 'uri_segment' => 3,\n 'num_links' => 9,\n 'use_page_numbers' => FALSE\n );\n \n $this->pagination->initialize($config);\n $data['total'] = $config['total_rows'];\n $data['number'] = (int)$this->uri->segment(3) +1;\n $data['pagination'] = $this->pagination->create_links();\n $data['delivery_methods'] = $this->delivery_methods->get_search($config['per_page'], $this->uri->segment(3));\n \n $this->template->render('delivery_method/view',$data);\n }", "public function search($value, $itemsByPage)\n\t{\n\t\treturn \t$this->model->withTrashed()->where('id','like','%' . $value . '%')\n\t\t\t\t\t\t\t->orwhere(function ($query) use ($value){\n\t\t\t\t\t\t\t\t$query->orwhere('role_name','like','%' . $value . '%')\n\t\t\t\t\t\t\t\t\t\t\t->orwhere('role_description','like','%' . $value . '%');\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t->paginate($itemsByPage);\n\t}", "protected function search($keyword)\n {\n return $this->builder->where('title', 'like', \"%$keyword%\");\n }", "function search() {\n\t$clauses = [];\n\t$params = [];\n\n // When searching for fire/last name, we use like clauses for fuzzy searching.\n buildLikeClause('first_name', 'first_name', $params, $clauses);\n buildLikeClause('last_name', 'last_name', $params, $clauses);\n\n // Do an equality search for the dept.\n if (isset($_GET['dept'])) {\n $dept = trim($_GET['dept']);\n if (strlen($dept)) {\n $clauses[] = \"dept = ?\";\n $params[] = $dept;\n }\n }\n\n // Use equality searching for courses and p_langs.\n buildAlternationSubClause('courses', 'courses', $params, $clauses);\n buildAlternationSubClause('p_langs', 'p_langs', $params, $clauses);\n\n // Connect to the db.\n $db = new PDO(\"mysql:host=localhost;dbname=cmpe226\", \"root\", \"\");\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n // Finish constructing our sql.\n $sql = 'SELECT * FROM studentrecord_assignment1';\n if ($clauses) {\n $sql .= ' where ' . join(' and ', $clauses);\n }\n\n // Execute and fetch.\n $stmt = $db->prepare($sql);\n $stmt->execute($params);\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n}", "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 }", "public function search($params)\n {\n $maxPerPage = isset($params['limit']) && in_array($params['limit'], [12, 24, 36]) ? $params['limit'] : 12; // Products per page\n $currentPage = isset($params['p']) ? $params['p'] : 1;\n\n // Build search query\n $boolQuery = new \\Elastica\\Query\\BoolQuery();\n $this->applyQuery($boolQuery, $params);\n $this->applyCategory($boolQuery, $params);\n $this->applyStatus($boolQuery);\n $this->applyPrice($boolQuery, $params);\n $this->applyAttributes($boolQuery, $params);\n $this->applyUser($boolQuery, $params);\n\n $query = new \\Elastica\\Query($boolQuery);\n $this->applyLocation($query, $params);\n $this->applySortAndOrder($query, $params);\n\n $results = $this->finder->findPaginated($query);\n $results->setMaxPerPage($maxPerPage);\n $results->setCurrentPage($currentPage);\n\n return $results;\n }", "private function _findInIndex($keywords, $filter=null, $sortBy=null, $limit=10)\n {\n $ret = array();\n $query = $this->client->createSelect();\n // create a filterquery\n if (!empty($keywords))\n {\n // if isbn\n if (preg_match('/^\\d{10,13}$/', $keywords)) {\n $query->addFilterQuery(array(\n 'key' => 'fq1',\n // 'tag' => array('populationLimit'),\n 'query' => 'ISBN:'.$keywords,\n ));\n } else {\n $query->addFilterQuery(array(\n 'key' => 'fq1',\n // 'tag' => array('populationLimit'),\n 'query' => '\"'.$keywords.'\"'.'~0.5',\n ));\n }\n }\n if (!empty($filter))\n {\n if (!empty($filter['categoryNames']))\n {\n $query->addFilterQuery(array(\n 'key' => 'fq4',\n // 'tag' => array('populationLimit'),\n 'query' => 'categories:'.implode(' ',$filter['categoryNames']),\n ));\n }\n \n if(!empty($filter['min']) && !empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq2',\n 'query' => 'min_investment: ['.($filter['min']*10000).' TO *]'\n ));\n $query->addFilterQuery(array(\n 'key'=> 'fq3',\n 'query' => 'max_investment: [* TO '.($filter['max']*10000).']'\n ));\n } elseif(!empty($filter['min']) && empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq2',\n 'query' => 'min_investment: ['.($filter['min']*10000).' TO *]'\n ));\n } elseif(empty($filter['min']) && !empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq3',\n 'query' => 'max_investment: [* TO '.($filter['max']*10000).']'\n ));\n }\n }\n $query->setRows($limit);\n //:['' TO *]\n //\n // *:* is equivalent to telling solr to return all docs\n $resultSet = $this->client->select($query);\n $index = 0;\n foreach ($resultSet as $result) {\n $klass = new \\StdClass;\n $klass->id = $result->id;\n $klass->name = $result->name;\n $klass->description = $result->description;\n $klass->min_investment = $result->min_investment;\n $klass->max_investment = $result->max_investment;\n $klass->address = $result->address;\n $klass->tags = $this->_getTagsOrCategories($result->tags);\n $klass->categories = $this->_getTagsOrCategories($result->categories);\n $klass->url = $result->url;\n $klass->contact_name = $result->contact_name;\n $klass->contact_email = $result->contact_email;\n $klass->contact_phone = $result->contact_phone;\n if (isset($result->big_image_url)) {\n $klass->big_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->big_image_url;\n } else {\n $klass->big_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n if (isset($result->medium_image_url)) {\n $klass->medium_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->medium_image_url;\n } else {\n $klass->medium_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n if (isset($result->small_image_url)) {\n $klass->small_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->small_image_url;\n } else {\n $klass->small_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n $klass->company = $this->_getCompany($result->companyId, $result->companyName, $result->companyBigImageUrl, $result->companyMediumImageUrl, $result->companySmallImageUrl);\n $klass->territory = $this->_getTerritory($result->territoryId, $result->territoryName, $result->countryId, $result->countryName);\n $ret[$index++] = $klass;\n }\n\n return $this->_mapSearchResult($ret, $filter);\n }", "protected function _search($_filter, $_paging, SearchInterface $_controller, $_filterModel, $_getRelations = FALSE, $_totalCountMethod = self::TOTALCOUNT_CONTROLLER)\n {\n $filter = $this->_decodeFilter($_filter, $_filterModel);\n $decodedPagination = $this->_prepareParameter($_paging);\n if (null !== $this->_paginationModel) {\n $decodedPagination['model'] = $this->_paginationModel;\n } else {\n $decodedPagination['model'] = $filter->getModelName();\n }\n $pagination = new Pagination($decodedPagination);\n $records = $_controller->search($filter, $pagination, $_getRelations);\n\n $result = $this->_multipleRecordsToJson($records, $filter);\n $totalCountResult = $this->_getSearchTotalCount($filter, $pagination, $_controller, $_totalCountMethod, count($result));\n\n return array_merge($totalCountResult, [\n 'results' => array_values($result),\n 'filter' => $filter->toArray(true),\n ]);\n }", "protected function search($keyword)\n {\n return $this->builder\n ->where('title', 'like', \"%$keyword%\");\n }", "public function searchCount($keyword)\n {\n $keyword = \"%{$keyword}%\";\n $sql = \"SELECT count(*) as totalItem\n FROM \" . self::TABLE_NAME . \"\n WHERE LOWER(news_name) LIKE LOWER(?) OR\n LOWER(news_slug) LIKE LOWER(?) OR\n LOWER(news_content) LIKE LOWER(?) OR\n LOWER(news_seo_title) LIKE LOWER(?) OR\n LOWER(news_seo_description) LIKE LOWER(?)\";\n $stmt = $this->prepare($sql);\n $stmt->bind_param(\"sssss\", $keyword, $keyword, $keyword, $keyword, $keyword);\n $stmt->execute();\n $result = $stmt->get_result();\n $stmt->close();\n $result = $result->fetch_assoc();\n return $result['totalItem'];\n }", "public function search(){\n //includes google maps script for place autocomplete and to get experiences\n \t$this->set('jsIncludes',array('http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&language=fr&libraries=places','places_autocomplete','get_experiences','logo_fly','jquery.dropdown','cookies'));\n \n //sets motives, schools and departments by alphbetical order\n $this->__set_motives_schools_and_departments();\n }", "public function searchMedia( $media_type , $searchText, $page, $pageSize, $authData = null, $extraData= null );", "function search()\n\t{\n\t\t$data[\"report_key\"] = $this->input->get(\"report_key\");\n\t\t$data[\"report_type\"] = $this->input->get(\"report_type\");\n\t\tif($data[\"report_type\"] == \"student\"){\n\t\t\t$this->load->model(\"student_model\",\"student\");\n\t\t\t$person = $this->student->get($data[\"report_key\"],\"stuFirst,stuLast,stuNickname\");\n\t\t\t$name = format_name($person->stuFirst,$person->stuLast, $person->stuNickname);\n\t\t\t$preposition = \"for\";\n\t\t}else{\n\t\t\t$this->load->model(\"teacher_model\",\"teacher\");\n\t\t\t$person = $this->teacher->get($data[\"report_key\"],\"teachFirst,teachLast\");\n\t\t\t$name = format_name($person->teachFirst,$person->teachLast);\n\t\t\t$preposition = ($data[\"report_type\"]==\"teacher\"?\"by\":\"to\");\n\t\t}\n\t\t$this->load->model(\"menu_model\",\"menu\");\n\n\t\t$data[\"categories\"] = get_keyed_pairs($this->menu->get_pairs(\"report_category\"),array(\"value\",\"label\"),TRUE);\n\n\t\t$data[\"title\"] = sprintf(\"Searching for %ss submitted %s %s\",STUDENT_REPORT,$preposition,$name);\n\t\t$data[\"target\"] = \"report/search\";\n\t\t$this->_view($data);\n\t}", "public function search_member()\n\t{\n\t\t$search_string =$this->input->post('search');\n\t\t\n\t\tif(!empty($search_string))\n\t\t{\n\t\t\t$limit=10;\n\t\t\t$query=\"SELECT a.*,(SELECT COUNT(*) FROM ru_member_table_booking b WHERE b.member_id=a.id AND b.status=1 AND b.table_status=1) AS booking_status,c.table_booking_id,GROUP_CONCAT(r.table_name) AS table_name,GROUP_CONCAT(r.id) AS table_ids ,c.no_of_guest,c.booking_time,c.table_status,c.member_status,c.remark,c.cancel_reason FROM ru_membership a LEFT JOIN ru_member_table_booking c ON c.member_id=a.id AND c.status=1 AND c.table_status=1 LEFT JOIN ru_tables r ON FIND_IN_SET(r.id,c.table_booking_no) WHERE a.membership_id LIKE '%\".$search_string.\"%' OR a.member_name LIKE '%\".$search_string.\"%' AND a.status=1 GROUP BY a.id ORDER BY a.member_name\";\n\t\t\t$searchCount=$this->Dash_model->return_query_num_rows($query);\n\t\t\t\n\t\t\t$query=\"SELECT a.*,(SELECT COUNT(*) FROM ru_member_table_booking b WHERE b.member_id=a.id AND b.status=1 AND b.table_status=1) AS booking_status,c.table_booking_id,GROUP_CONCAT(r.table_name) AS table_name,GROUP_CONCAT(r.id) AS table_ids ,c.no_of_guest,c.booking_time,c.table_status,c.member_status,c.remark,c.cancel_reason FROM ru_membership a LEFT JOIN ru_member_table_booking c ON c.member_id=a.id AND c.status=1 AND c.table_status=1 LEFT JOIN ru_tables r ON FIND_IN_SET(r.id,c.table_booking_no) WHERE a.membership_id LIKE '%\".$search_string.\"%' OR a.member_name LIKE '%\".$search_string.\"%' AND a.status=1 GROUP BY a.id ORDER BY a.member_name LIMIT \".$limit;\n\t\t\t\n\t\t\t$result=$this->Dash_model->get_by_query($query);//echo \"<pre>\";print_r($result);echo \"</pre>\";die();\n\t\t\t\n\t\t\t$sql=\"SELECT a.id,a.table_name,IF((SELECT COUNT(*) FROM ru_member_table_booking b WHERE FIND_IN_SET(a.id,b.table_booking_no) AND b.table_status=1 AND b.status=1),1,0) AS table_status,IF((SELECT count(*) FROM ru_advance_table_booking c WHERE c.table_id=a.id AND c.booked_for_date='\".date('Y-m-d').\"' AND c.booking_status=1),1,0) AS Advance_booking_status from ru_tables a\";\n\t\t\t$availableTables=$this->Dash_model->get_by_query($sql);//print_r($availableTables);die();\n\t\t\t//print_r($availableTables);die();\n\t\t\t\n\t\t\t$nextPageStatus=$searchCount>$limit?1:0;\n\t\t\t\n\t\t\t$searchData['data']=$result;\n\t\t\t$searchData['availableTables']=$availableTables;\n\t\t\t$searchData['nextPageStatus']=$nextPageStatus;\n\t\t\t$html=$this->load->view('dashboard/search_html',$searchData,true);\n\t\t\techo $html;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$limit=20;\n\t\t\t\n\t\t\t$query=\"SELECT b.*,a.table_booking_id,a.no_of_guest,a.booking_time,a.table_status,a.member_status,1 as booking_status,GROUP_CONCAT(r.table_name) AS table_name,GROUP_CONCAT(r.id) AS table_ids,a.remark,a.cancel_reason FROM ru_member_table_booking a JOIN ru_membership b ON a.member_id=b.id JOIN ru_tables r ON FIND_IN_SET(r.id,a.table_booking_no) WHERE (a.booking_time>='\".date('Y-m-d').\" 00:00:00' AND a.booking_time <='\".date('Y-m-d').\" 23:59:59' AND a.status=1) OR (a.table_status=1 AND a.status=1) GROUP BY a.table_booking_id ORDER BY a.booking_time DESC,b.member_name ASC\";\n\t\t\t\n\t\t\t$searchCount=$this->Dash_model->return_query_num_rows($query);\n\t\t\t\n\t\t\t\n\t\t\t$query=\"SELECT b.*,a.table_booking_id,a.no_of_guest,a.booking_time,a.table_status,a.member_status,1 as booking_status,GROUP_CONCAT(r.table_name) AS table_name,GROUP_CONCAT(r.id) AS table_ids,a.remark,a.cancel_reason FROM ru_member_table_booking a JOIN ru_membership b ON a.member_id=b.id JOIN ru_tables r ON FIND_IN_SET(r.id,a.table_booking_no) WHERE (a.booking_time>='\".date('Y-m-d').\" 00:00:00' AND a.booking_time <='\".date('Y-m-d').\" 23:59:59' AND a.status=1) OR (a.table_status=1 AND a.status=1) GROUP BY a.table_booking_id ORDER BY a.booking_time DESC,b.member_name ASC LIMIT \".$limit;\n\t\t\t\n\t\t\t$result=$this->Dash_model->get_by_query($query);//echo \"<pre>\";print_r($result);echo \"</pre>\";die();\n\t\t\t//echo \"<pre>\";print_r($result);echo \"</pre>\";die();\n\n\t\t\t/*\n\t\t\t$sql=\"SELECT a.id,a.table_name,IF((SELECT COUNT(*) FROM ru_member_table_booking b WHERE FIND_IN_SET(a.id,b.table_booking_no) AND b.table_status=1 AND b.booking_time>'\".date('Y-m-d').\" 00:00:00' AND b.status=1),1,0) AS table_status,IF((SELECT count(*) FROM ru_advance_table_booking c WHERE c.table_id=a.id AND c.booked_for_date='\".date('Y-m-d').\"' AND c.booking_status=1),1,0) AS Advance_booking_status from ru_tables a\";*/\n\t\t\t\n\t\t\t$sql=\"SELECT a.id,a.table_name,IF((SELECT COUNT(*) FROM ru_member_table_booking b WHERE FIND_IN_SET(a.id,b.table_booking_no) AND b.table_status=1 AND b.status=1),1,0) AS table_status,IF((SELECT count(*) FROM ru_advance_table_booking c WHERE c.table_id=a.id AND c.booked_for_date='\".date('Y-m-d').\"' AND c.booking_status=1),1,0) AS Advance_booking_status from ru_tables a\";\n\t\t\t$availableTables=$this->Dash_model->get_by_query($sql);//print_r($availableTables);die();\n\t\t\t//print_r($availableTables);die();\n\t\t\t\n\t\t\t$nextPageStatus=$searchCount>$limit?1:0;\n\t\t\t\n\t\t\t$searchData['data']=$result;\n\t\t\t$searchData['availableTables']=$availableTables;\n\t\t\t$searchData['nextPageStatus']=$nextPageStatus;\n\t\t\t$html=$this->load->view('dashboard/search_html',$searchData,true);\n\t\t\techo $html;\n\t\t}\t\n\t}", "public function setSearchItems($totalItemsCount, $previousItemNumber, $date)\n {\n global $lang, $key, $params, $config;\n \n $item = array();\n \n if ((($key == '') && (preg_match('/^[0-9]{4}-[0-9]{2}/', $date))) ||\n (($key == '') && ($date == 'all'))) {\n if (preg_match('/^[0-9]{4}-[0-9]{2}/', $date)) {\n $yyyy = substr($date, 0, 4);\n $mm = substr($date, 5, 2);\n $dateArray = getdate(mktime(0, 0, 0, $mm, 1, $yyyy));\n $month = $dateArray['month'];\n $mday = $dateArray['mday'];\n $year = $dateArray['year'];\n $archiveTitle = strtotime($mday . ' ' . $month . ' ' . $year);\n } else if ($date == 'all') {\n $archiveTitle = '0'; // All data\n }\n $resultMessage = $lang['show_log'];\n } else if ($key != '') {\n $archiveTitle = ($date != '') ? '2' : '1';\n $resultMessage = $lang['hit_msg'];\n } else {\n $archiveTitle = '0'; // All data\n $resultMessage = $lang['show_log'];\n }\n \n // Get Tag name as key\n if (!empty($_GET['t'])) {\n $sql = 'SELECT ' \n . $params['tag_name'] . ' '\n . 'FROM ' \n . $params['tag_table'] . ' '\n . 'WHERE '\n . 'id = :id';\n $stmt = $this->db->prepare($sql);\n $stmt->execute(\n array(\n ':id' => $key\n )\n );\n $key = $stmt->fetchColumn();\n }\n \n // Create the last row number to display\n $rowsToDisplay = (($previousItemNumber + self::$config['page_max']) > $totalItemsCount)\n ? $totalItemsCount\n : $previousItemNumber + self::$config['page_max'];\n\n // Pesentation of the results\n $item['keyword'] = htmlspecialchars($key);\n $item['date'] = $date;\n $item['archive_title'] = $archiveTitle;\n $item['hits'] = $totalItemsCount;\n $item['disp_page'] = $previousItemNumber + 1;\n $item['disp_rows'] = $rowsToDisplay;\n $item['result_message'] = $resultMessage;\n \n return $item;\n }", "public function search ($pageSize=null) {\n\t\t$criteria = new CDbCriteria;\n return $this->searchBase ($criteria, $pageSize);\n\t}", "function userSearch($query, $count = null) {\n\n \t$user_search_request_url = sprintf($this->api_urls['user_search'], $query, $this->access_token, $count);\n \t\n \treturn $this->__apiCall($user_search_request_url);\n \t\n }", "function search_index_search($search_for, $type, $user, $page = 1, $per_page = 30) {\n \treturn call_user_func_array(array(SEARCH_ENGINE, 'search'), array($search_for, $type, $user, $page, $per_page));\n }", "private function process_results($all=false) {\n global $USER;\n\n $term = mb_convert_case($this->term, MB_CASE_LOWER, 'UTF-8');\n\n //experimental - return more results\n $strip_arr = array('author:', 'title:', '+', '-', 'doctype:');\n $stripped_term = str_replace($strip_arr, '', $term);\n\n $hits = $this->index->find($term.\" title:\".$stripped_term.\" author:\".$stripped_term);\n //--\n\n $hitcount = count($hits);\n $this->total_results = $hitcount;\n\n if ($hitcount == 0) return array();\n\n $totalpages = ceil($hitcount/$this->results_per_page);\n\n if (!$all) {\n if ($hitcount < $this->results_per_page) {\n $this->pagenumber = 1;\n } else if ($this->pagenumber > $totalpages) {\n $this->pagenumber = $totalpages;\n }\n\n $start = ($this->pagenumber - 1) * $this->results_per_page;\n $end = $start + $this->results_per_page;\n\n if ($end > $hitcount) {\n $end = $hitcount;\n } \n } else {\n $start = 0;\n $end = $hitcount;\n }\n\n $resultdoc = new SearchResult();\n $resultdocs = array();\n\n for ($i = $start; $i < $end; $i++) {\n $hit = $hits[$i];\n\n //check permissions on each result\n if ($this->can_display($USER, $hit->docid, $hit->doctype, $hit->course_id, $hit->group_id, $hit->path, $hit->itemtype, $hit->context_id )) {\n $resultdoc->number = $i;\n $resultdoc->url = $hit->url;\n $resultdoc->title = $hit->title;\n $resultdoc->score = $hit->score;\n $resultdoc->doctype = $hit->doctype;\n $resultdoc->author = $hit->author;\n\n //and store it\n $resultdocs[] = clone($resultdoc);\n } else {\n // lowers total_results one unit\n $this->total_results--;\n }\n }\n\n return $resultdocs;\n }", "public function search(){\t\r\r\n\r\r\n\t\t\r\r\n\t\t$this->load->database();\r\r\n\t\t$this->load->library('custom_search_library');\r\r\n\t\t//$this->custom_search_library->create_index();\r\r\n\t\t$this->custom_search_library->search( $_POST['keyword'] );\r\r\n\t}", "public function getSearched($vc_search = false, $max = 20, $num_page = 1, $ordering = 'c.id', $direction = 'ASC') {\n\t\t\t$dbFunctions\t\t= new dbFunctions();\n\t\t\t// Database Connection\n\t\t\t$db\t\t\t\t\t= $GLOBALS['db'];\n\t\t\t// Initialize variables\n\t\t\t$return\t\t\t\t= false;\n\t\t\tif ($vc_search) {\n\t\t\t\t// Query set up\n\t\t\t\t$table\t\t\t= 'tb_course AS c JOIN tb_field AS f ON (c.id_field = f.id) JOIN tb_branch AS b ON (f.id_branch = b.id)';\n\t\t\t\t$select_what\t= 'c.*, f.vc_field, b.id as id_branch, b.vc_branch';\n\t\t\t\t$conditions\t\t= \"c.id LIKE '%{$vc_search}%' OR c.vc_course LIKE '%{$vc_search}%' OR f.vc_field LIKE '%{$vc_search}%' OR b.vc_branch LIKE '%{$vc_search}%'\";\n\t\t\t\t$return\t\t\t= $dbFunctions->getPage($select_what, $table, $conditions, $max, $num_page, $ordering, $direction);\n\t\t\t}\n\t\t\t// Return\n\t\t\treturn $return;\n\t\t}", "public function search($params = []);", "function search( $searchText, $params = array(), $searchTypes = array() )\n {\t\n \n $cl = new SphinxClient();\n\t \t$cl->SetServer( $this->SphinxServerHost, $this->SphinxServerPort );\n\t \t\n\t \t// Match mode\n\t \t$matchModes = array(\n\t \t\t'SPH_MATCH_ANY' => SPH_MATCH_ANY,\n\t \t\t'SPH_MATCH_ALL' => SPH_MATCH_ALL,\n\t \t\t'SPH_MATCH_PHRASE' => SPH_MATCH_PHRASE,\n\t \t\t'SPH_MATCH_BOOLEAN' => SPH_MATCH_BOOLEAN,\n\t \t\t'SPH_MATCH_EXTENDED' => SPH_MATCH_EXTENDED,\n\t \t\t'SPH_MATCH_FULLSCAN' => SPH_MATCH_FULLSCAN,\n\t \t\t'SPH_MATCH_EXTENDED2' => SPH_MATCH_EXTENDED2,\n\t \t);\t \t\n\t \t$cl->SetMatchMode((isset($params['MatchType']) and key_exists($params['MatchType'],$matchModes)) ? $matchModes[$params['MatchType']] : SPH_MATCH_ANY);\n\t \t\n\t \t \n\t \t// Perhaps anyone have an idea how to implement this type checking in Sphinx ?\n\t \t// (ezcontentobject.section_id in (1)) OR (ezcontentobject.contentclass_id in (1, 19, 20, 27, 29, 30, 31, 32, 33, 34, 40, 44, 47, 48, 50, 51, 52, 57, 59, 61) AND ezcontentobject.section_id in (3))\n\t \t// At this moment it can be implemented directly in sphinx configuration query.\n\t \t/*$limitation = false;\n if ( isset( $params['Limitation'] ) )\n {\n $limitation = $params['Limitation'];\n }\n $limitationList = eZContentObjectTreeNode::getLimitationList( $limitation );\n $sqlPermissionChecking = eZContentObjectTreeNode::createPermissionCheckingSQL( $limitationList );*/\n \n\t \t\n\t \t// Set limit, offset\t \t\n\t\t$cl->SetLimits((int)$params['SearchOffset'],(int)$params['SearchLimit']);\n\t\t\t \n\t\t// Language filter, eZFind copied and changed a little bit :D\n\t\t$ini = eZINI::instance();\n $languages = $ini->variable( 'RegionalSettings', 'SiteLanguageList' );\n $mainLanguage = $languages[0]; \n $cl->SetFilter( 'language_code',array(abs(crc32($mainLanguage))));\n \n // Fetch only not deleted records\n\t\t$cl->SetFilter( 'is_deleted',array(0));\n\t\t\n\t\t\t\n\t \t// Build section filter\n\t \t$searchSectionID = $params['SearchSectionID'];\n\t \tif ( is_numeric( $searchSectionID ) and $searchSectionID > 0 )\n { \n $cl->SetFilter( 'section_id', array( (int)$searchSectionID ) );\n }\n else if ( is_array( $searchSectionID ) )\n {\n \t$cl->SetFilter( 'section_id',$searchSectionID);\n }\n \n // Build class filter \n $searchContentClassID = isset($params['SearchContentClassID']) ? $params['SearchContentClassID'] : 0 ; \n if ( is_numeric( $searchContentClassID ) and $searchContentClassID > 0 )\n {\n \t $cl->SetFilter( 'contentclass_id', array((int)$searchContentClassID));\n }\n else if ( is_array( $searchContentClassID ) )\n { \n $cl->SetFilter( 'contentclass_id',$searchContentClassID);\n }\n \n // Build parent node filter\n $searchParentNodeID = isset($params['ParentNodeID']) ? $params['ParentNodeID'] : 0 ; \n if ( is_numeric( $searchParentNodeID ) and $searchParentNodeID > 0 )\n {\n \t $cl->SetFilter( 'parent_node_id', array((int)$searchParentNodeID));\n }\n else if ( is_array( $searchParentNodeID ) )\n { \n $cl->SetFilter( 'parent_node_id',$searchParentNodeID);\n }\n \n // Build subtree filter\n $searchSubtreeNodeID = isset($params['SearchSubTreeArray']) ? $params['SearchSubTreeArray'] : 0 ; \n if ( is_numeric( $searchSubtreeNodeID ) and $searchSubtreeNodeID > 0 )\n {\n \t $cl->SetFilter( 'pathnodes', array((int)$searchSubtreeNodeID));\n }\n else if ( is_array( $searchSubtreeNodeID ) and count( $searchSubtreeNodeID ) )\n { \n $cl->SetFilter( 'pathnodes',$searchSubtreeNodeID);\n }\n \n \n // Visibility check\n $ignoreVisibility = $params['IgnoreVisibility'] == 'true' ? true : false;\n if (!$ignoreVisibility)\n {\n \t\t$cl->SetFilter( 'is_invisible',array(0));\n } \n \n // Publish date,timestamp date filter, borrowed from ezsearchengine plugin. :) \n if ( isset( $params['SearchDate'] ) )\n \t$searchDate = $params['SearchDate'];\n\t else\n\t\t $searchDate = -1;\n\t\t\n\t if ( isset( $params['SearchTimestamp'] ) )\n\t\t $searchTimestamp = $params['SearchTimestamp'];\n\t else\n\t\t $searchTimestamp = false;\n \t\t \n \n if ( ( is_numeric( $searchDate ) and $searchDate > 0 ) or\n $searchTimestamp )\n {\n $date = new eZDateTime();\n $timestamp = $date->timeStamp();\n $day = $date->attribute('day');\n $month = $date->attribute('month');\n $year = $date->attribute('year');\n $publishedDateStop = false;\n if ( $searchTimestamp )\n {\n if ( is_array( $searchTimestamp ) )\n {\n $publishedDate = $searchTimestamp[0];\n $publishedDateStop = $searchTimestamp[1];\n }\n else\n $publishedDate = $searchTimestamp;\n }\n else\n {\n switch ( $searchDate )\n {\n case 1:\n {\n $adjustment = 24*60*60; //seconds for one day\n $publishedDate = $timestamp - $adjustment;\n } break;\n case 2:\n {\n $adjustment = 7*24*60*60; //seconds for one week\n $publishedDate = $timestamp - $adjustment;\n } break;\n case 3:\n {\n $adjustment = 31*24*60*60; //seconds for one month\n $publishedDate = $timestamp - $adjustment;\n } break;\n case 4:\n {\n $adjustment = 3*31*24*60*60; //seconds for three months\n $publishedDate = $timestamp - $adjustment;\n } break;\n case 5:\n {\n $adjustment = 365*24*60*60; //seconds for one year\n $publishedDate = $timestamp - $adjustment;\n } break;\n default:\n {\n $publishedDate = $date->timeStamp();\n }\n }\n }\n \n if ($publishedDateStop)\n {\n \t$cl->SetFilterRange('published', $publishedDate, $publishedDateStop); // Range type\n } else {\n \t$cl->SetFilterRange('published', 0, $publishedDate, true); // > type\n }\n }\n \n if ( isset( $params['SortBy'] ) )\n $sortArray = $params['SortBy'];\n else\n $sortArray = array(); \n \n // Build sort params \n \t$sortString = $this->buildSort($sortArray); \t\n \tif ($sortString != '')\n \t{\n \t\t$cl->SetSortMode(SPH_SORT_EXTENDED, $sortString); // During sorting we set extended sort mode\n \t}\n \n \n \t\n // Filter , Partly based on ezpersistenobject eZPersistentObject::conditionTextByRow() method \t\n\t\t$fitlerRanges = isset($params['Filter']) ? $params['Filter'] : null;\n\t\tif ( is_array( $fitlerRanges ) and\n count( $fitlerRanges ) > 0 )\n {\n \t\n \tforeach ($fitlerRanges as $id => $cond)\n \t{ \t\t\n \t\tif ( is_array( $cond ) )\n {\n if ( is_array( $cond[0] ) ) // = operator behaviour\n {\n \t$cl->SetFilter( 'attr_srch_int_pos'.$this->getPositionClassAttribute($id) , (int)$cond[0] ); \n }\n else if ( is_array( $cond[1] ) ) // Betweeen range\n { \n $range = $cond[1];\n $cl->SetFilterRange('attr_srch_int_pos'.$this->getPositionClassAttribute($id), (int)$range[0], (int)$range[1], $cond[0] == 'true' ); \t\n }\n else\n {\n switch ( $cond[0] )\n {\n case '>=': \n case '>': \n {\n \t $cl->SetFilterRange( 'attr_srch_int_pos'.$this->getPositionClassAttribute($id) ,0, (int)$cond[1], true );\n \n } break;\n \n case '<=': \n case '<': \n {\n \t $cl->SetFilterRange( 'attr_srch_int_pos'.$this->getPositionClassAttribute($id),0, (int)$cond[1], false );\n \n } break;\n \n \n default:\n {\n eZDebug::writeError( \"Conditional operator '$cond[0]' is not supported.\",'eZSphinx::search()' );\n } break;\n }\n\n }\n } else {\n \t$cl->SetFilter( 'attr_srch_int_pos'.$this->getPositionClassAttribute($id) , array($cond) ); \t\n }\n \t}\n }\n\t\t\n // Sphinx field weightning\n if (isset($params['FieldWeight']) and is_array($params['FieldWeight']) and count($params['FieldWeight']) > 0)\n {\n \t$tmpFields = array();\n \tforeach ($params['FieldWeight'] as $classAttributeID => $weight)\n \t{\n \t\t$tmpFields['attr_srch_pos'.$this->getPositionClassAttribute($classAttributeID)] = $weight;\n \t} \n \t$cl->SetFieldWeights($tmpFields);\n \tunset($tmpFields);\n }\n \n \n // this will work only if SPH_MATCH_EXTENDED mode is set\n $AppendExtendQuery = '';\n if (isset($params['MatchType']) and key_exists($params['MatchType'],$matchModes) and $matchModes[$params['MatchType']] == SPH_MATCH_EXTENDED)\n {\n \t$searchClassAttributeID = isset($params['SearchClassAttributeID']) ? $params['SearchClassAttributeID'] : 0 ; \n\t if ( is_numeric( $searchClassAttributeID ) and $searchClassAttributeID > 0 )\n\t {\n\t \t $AppendExtendQuery = '@attr_srch_pos'.$this->getPositionClassAttribute((int)$searchClassAttributeID).' ';\n\t }\n\t else if ( is_array( $searchClassAttributeID ) )\n\t { \n\t \n\t $SubElements = array();\n\t foreach ($searchClassAttributeID as $ClassAttributeID)\n\t {\n\t \t$SubElements[] = 'attr_srch_pos'.$this->getPositionClassAttribute($ClassAttributeID);\n\t }\n\t \t$AppendExtendQuery = '@('.implode(',',$SubElements).') ';\t \n\t }\n }\n \n // Transofrm without special characters like i understood. Actualy in sphinx it's not needed. But like indexing converts them to normalized text, it will be changed in futher versions..\n $trans = eZCharTransform::instance();\n $searchText = $trans->transformByGroup( $searchText, 'search' ); \n\t \t$result = $cl->Query( $AppendExtendQuery.trim($searchText) , isset($params['IndexName']) ? $params['IndexName'] : $this->SphinxIndexName );\n\t \t\t\n\t \t// If nothing found return immediately \t\n\t \tif ($result['total_found'] == 0)\n\t \t{\t \t\n\t\t \treturn array( \"SearchResult\" => array(),\n\t \"SearchCount\" => 0,\n\t \"StopWordArray\" => array() );\n\t \t} \n\t \t\n\t \t$NodeIDList = array();\n\t \n\t \t$SingleNodeID = null;\n\t \t\n\t \tif ($result['total_found'] > 1)\n\t \t{\n\t\t \t// Build nodes ID's\n\t\t \tforeach ($result['matches'] as $match)\n\t\t \t{ \t\t\n\t\t \t\t$NodeIDList[$match['attrs']['node_id']] = $match['attrs']['node_id'];\n\t\t \t}\n\t \t} else {\n\t \t\t\tforeach ($result['matches'] as $match)\n\t\t\t \t{\t \t\t\n\t\t\t \t\t$NodeIDList = $match['attrs']['node_id'];\n\t\t\t \t\t$SingleNodeID = $match['attrs']['node_id'];\n\t\t\t \t}\n\t \t}\n\t \t\n\t \t\n\t \t$nodeRowList = array();\n \t\t$tmpNodeRowList = eZContentObjectTreeNode::fetch( $NodeIDList, false, isset($params['AsObjects']) ? $params['AsObjects'] : true );\n \t\t \t\n // Workaround for eZContentObjectTreeNode::fetch behaviour\n if ( count( $tmpNodeRowList ) === 1 )\n {\n $tmpNodeRowList = array( $tmpNodeRowList ); \n unset($NodeIDList); \n $NodeIDList = array();\n $NodeIDList[$SingleNodeID] = $SingleNodeID;\n }\n \n // If fetched objects, keeps fetched sorting as Sphinx returned it\n if (!isset($params['AsObjects']) || $params['AsObjects'] === true)\n { \n\t\t\tforeach ($tmpNodeRowList as $node)\n\t\t\t{\n\t\t\t\t$NodeIDList[$node->attribute('node_id')] = $node;\n\t\t\t}\n } else { // If fetched array\n \tforeach ($tmpNodeRowList as $node)\n\t\t\t{\n\t\t\t\t$NodeIDList[$node['node_id']] = $node;\n\t\t\t}\n } \n \tunset($tmpNodeRowList);\n \t \t\n\t \t$searchResult = array(\n\t \t\t'SearchCount' => $result['total_found'],\n\t \t\t'SearchResult' => $NodeIDList,\n\t \t\t'SearchTook' => $result['time'],\n\t \t\t\"StopWordArray\" => array() // Perhaps anyone nows how to set this ? :)\n\t \t);\n \n return $searchResult; \n }", "public function search( $query, $wordSearch = true, $categorySearch = true, $exact = false, $sortType = 'instanceCount', $includePages = false, $offset = 0, $limit = 100 ){ return $this->APICallSub( '/ul', array( 'search' => $query, 'wordSearch' => $wordSearch, 'categorySearch' => $categorySearch, 'sortType' => $sortType, 'exact' => $exact, 'includePages' => $includePages, 'offset' => $offset, 'limit' => $limit ), \"Could not perform Ultralink search\" ); }", "function search($id, $allPatients, $sameSite, $searchParams) \n {\n $query = $this->getAccessiblePatientsQuery($id, $allPatients, \n\t $sameSite);\n $searchWhere = '';\n \n foreach($searchParams['User'] as $paramName => $paramVal){\n if ($paramVal != ''){\n $searchWhere .= \" AND User.$paramName LIKE '%$paramVal%'\";\n }\n }\n foreach($searchParams['Patient'] as $paramName => $paramVal){\n if ($paramVal != ''){\n $searchWhere .= \" AND Patient.$paramName LIKE '%$paramVal%'\";\n }\n }\n $phone = $searchParams['Phone']['phone'];\n if ($phone != ''){\n $searchWhere .= \" AND (Patient.phone1 LIKE '%$phone%' OR \"\n . \"Patient.phone2 LIKE '%$phone%')\";\n }\n\t \n if ($searchWhere == ''){\n return array();\n }\n $results = $this->query($query[0] . $query[1] . $searchWhere);\n return $this->afterFind($results);\n }", "public function find($page, $limit, $term);", "public function find($page, $limit, $term);", "function getSearchInfo()\n\t{\n\t\t//Global allows variables outside the function scope to be used here\n\t\tglobal $conn;\n\t\tglobal $myObj;\n\t\tglobal $params_arr;\n\t\t\n\t\t\n\t\t$keyword = $params_arr[0];\n\t\t$order = $params_arr[1];\n\t\t\n\t\t$sql = \"SET @SEARCH_TERM = '%$keyword%';\";\n\t\t\n\t\tif ($conn->query($sql) === TRUE) \n\t\t{\n\t\t\t//echo \"New record created successfully\";\n\t\t} \n\t\telse \n\t\t{\n\t\t\techo \"Error: \" . $sql . \"<br>\" . $conn->error;\n\t\t}\n\n\n\t\t$sql = \"SELECT books.COVER, books.TITLE, books.GENRE, books.PUBLISHER, authors.FIRST_NAME, authors.LAST_NAME, books.PUB_DATE,\n\t\t\t \t\t books.DESCRIPTION, authors.BIO, books.ISBN, books.ID\n\t\t\t\t FROM books \n\t\t\t\t JOIN authors ON books.AUTHOR = authors.ID\n\t\t\t\t WHERE authors.FIRST_NAME LIKE @SEARCH_TERM OR\n\t\t\t authors.LAST_NAME LIKE @SEARCH_TERM OR \n\t\t\t\t\t\tbooks.TITLE LIKE @SEARCH_TERM OR\n\t\t\t\t\t\tbooks.GENRE LIKE @SEARCH_TERM\n\t\t\t\tORDER BY books.TITLE $order\n\t\t\t\t\n\t\t\t\t\";\n\t\t\t\t//Limit $offset; \n\t\t\t\t//@Julian then here I have LIMIT of per page here $offset so if 10 or 20 placed here just like ASC/DESC\n\n\t\t//Executes query string\n\t\t$result = $conn->query($sql);\n\t\t//Im making the page number between 10 and 20\n\t\tif ($result->num_rows > 0) \n\t\t{\n\t\t\t$json = array();\n\t \t// convert the data into json object\n\t \twhile($row = $result->fetch_assoc()) \n\t \t{\n\t\t\t\t$bus = array(\n\t\t\t\t\t\"cover\" => $row[\"COVER\"],\n\t\t\t\t\t\"title\" => $row[\"TITLE\"],\n\t\t\t\t\t\"author\" => $row[\"FIRST_NAME\"]. \" \" .$row[\"LAST_NAME\"],\n\t\t\t\t\t\"genre\" => $row[\"GENRE\"],\n\t\t\t\t\t\"publisher\" => $row[\"PUBLISHER\"],\n\t\t\t\t\t\"pub_date\" => $row[\"PUB_DATE\"],\n\t\t\t\t\t\"description\" => $row[\"DESCRIPTION\"],\n\t\t\t\t\t\"bio\" => $row[\"BIO\"],\n\t\t\t\t\t\"isbn\" => $row[\"ISBN\"],\n\t\t\t\t\t\"id\" => $row[\"ID\"]\n\t\t\t\t);\n\n\t\t\t\tarray_push($json, $bus);\n\t\t\t\t\n\t\t\t}\n\n\t\t\t$jsonstring = json_encode($json);\n\t\t\techo $jsonstring;\n\t\t}\n\t\telse\n\t\t{\n\t\t echo \"0 results\";\n\t\t}\n\n\n\n\t\t$conn->close();\n\t}", "public function getSearchResults() {\n\n $pageTitle = $this->query;\n $result_limit = 'max'; /* max=500 */\n\n $pageTitleForUrl = urlencode($pageTitle);\n /*\n * https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=search&titles=Italy&exchars=200&exintro=1&explaintext=1&srsearch=Italy&srlimit=500&srwhat=text&srprop=snippet\n */\n $api_call = '?action=query&format=json&list=search&titles=' . $pageTitleForUrl . '&srsearch=' . $pageTitleForUrl . '&srnamespace=0&srlimit=' . $result_limit . '&sroffset=0&srwhat=text&srprop=snippet';\n\n $api = new API($this->baseUrl);\n $api_result = $api->getAPIResult($api_call);\n\n $response = $this->buildSearchResultsResponse($api_result);\n\n return $response;\n }", "public function search() {\n\t\t$this->load->language('api/wholesellers');\n\n\t\t// Delete past customer in case there is an error\n\t\tunset($this->session->data['customer']);\n\n\t\t$json = array();\n\n\t\tif (!isset($this->session->data['api_id'])) {\n\t\t\t$json['error']['warning'] = $this->language->get('error_permission');\n\t\t} else {\n\n\t\t\t// get search query\n\t\t\textract($this->request->get);\n\t\t\t$query = trim($query);\n\t\t\t\n\t\t\tif (utf8_strlen(trim($query)) < 1) {\n\t\t\t\t$json['error']['query'] = $this->language->get('error_search');\n\t\t\t}\n\t\t\t\n\t\t\tif (!$json) {\n\t\t\t\t// to load model file, use $this->load->model('directory/filname');\n\t\t\t\t$this->load->model('artisans/wholesellers');\n\n\t\t\t\t// to call model methods, use $this->model_directory_filename->method(args);\n\t\t\t\t$rows = $this->model_artisans_wholesellers->searchWholesellers($query);\n\t\t\t\t\n\t\t\t\tif ($rows) {\n\t\t\t\t\t$json['success']['data'] = $rows;\n\t\t\t\t} else {\n\t\t\t\t\t$json['error']['message'] = $this->language->get('error_search_wholesellers');\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t$this->response->addHeader('Content-Type: application/json');\n\t\t$this->response->setOutput(json_encode($json));\n\t}" ]
[ "0.6035083", "0.58750355", "0.57831717", "0.5546936", "0.5355939", "0.53487027", "0.5302857", "0.5272335", "0.5251378", "0.5246081", "0.5229187", "0.52196443", "0.5211386", "0.51994693", "0.51252383", "0.51155794", "0.5108214", "0.50786155", "0.505331", "0.50347716", "0.4997728", "0.49744767", "0.49587223", "0.49397227", "0.49366403", "0.49122298", "0.48921868", "0.48824802", "0.48802957", "0.4857959", "0.48422712", "0.48272422", "0.48198706", "0.48171818", "0.48155236", "0.4806852", "0.48045993", "0.47985002", "0.47980544", "0.4795735", "0.4794792", "0.4794025", "0.47933146", "0.4793253", "0.47834405", "0.47827026", "0.47815928", "0.47808707", "0.47808707", "0.47800112", "0.47675818", "0.47659633", "0.47638452", "0.47624058", "0.47564033", "0.4751876", "0.4748486", "0.47449255", "0.47367918", "0.4733517", "0.47325593", "0.4727106", "0.47232437", "0.47225904", "0.47143564", "0.47126973", "0.4703062", "0.47008327", "0.46994433", "0.46922174", "0.4692121", "0.46886477", "0.4684007", "0.46830112", "0.46805435", "0.46701804", "0.46681878", "0.46605864", "0.46568042", "0.46544465", "0.46542433", "0.46473014", "0.4647161", "0.46408188", "0.46298438", "0.4628097", "0.46277976", "0.46234423", "0.46177432", "0.46101198", "0.4603787", "0.46009588", "0.45995274", "0.45990887", "0.45953882", "0.45907944", "0.45907944", "0.45897144", "0.45787525", "0.4575251" ]
0.7679351
0
Get the list of players hidden from the given application. This method is only available to user accounts for your developer console. (applications.listHidden)
Получите список игроков, скрытых от указанного приложения. Этот метод доступен только для учетных записей пользователей в вашем консоли разработчика. (applications.listHidden)
public function listHidden($applicationId, $optParams = array()) { $params = array('applicationId' => $applicationId); $params = array_merge($params, $optParams); return $this->call('listHidden', array($params), 'Google\Service\GamesManagement\HiddenPlayerList'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function listHiddenExhibit(){\n\t\t$res = requete_sql(\"SELECT id FROM exhibit WHERE visible = FALSE ORDER BY creation_date ASC\");\n\t\t$res = $res->fetchAll(PDO::FETCH_ASSOC);\n\t\t$list = array();\n\t\tforeach ($res as $exhibit) {\n\t\t\t$exhibit = new Exhibit($exhibit['id']);\n\t\t\tarray_push($list, $exhibit);\n\t\t}\n\t\treturn $list;\n\t}", "public static function hidden()\n {\n return [];\n }", "public function listDisconnectedPlayers() : string\n {\n return $this->sourceQuery->Rcon('AdminListDisconnectedPlayers');\n }", "public function getHideInList() {}", "public static function getShowHiddenFilesAndFolders() {}", "function getAllOptHide($userName) { \t \t\n $sql = \"call spGetOptHide('$userName',@out_status);\";\n $rs = $this->db->Execute($sql);\n \t$data = $rs->getArray();\n\t\t$rs->Close();\n \treturn $data; \n }", "function getAllOptHide($userName) { \t \t\n $sql = \"call spGetOptHide('$userName',@out_status);\";\n $rs = $this->db->Execute($sql);\n \t$data = $rs->getArray();\n\t\t$rs->Close();\n \treturn $data; \n }", "public static function hidden($path)\n {\n // Pass to self::contents();\n return array_values(self::contents($path, 'only'));\n }", "function getAllOptHide($userName) { \t \t\n $sql = \"call spGetOptHide('$userName',@out_status);\";\n $rs = $this->db->Execute($sql);\n \t$data = $rs->getArray(); \n\t\t$rs->Close();\n \treturn $data; \n }", "public function test_list_disconnected_players()\n {\n $playerList = $this->btwServer->listDisconnectedPlayers();\n\n $this->assertCount(0, $playerList);\n }", "public function getHiddenFlag() {}", "public static function hidden()\n {\n return [\n 'password'\n ];\n }", "public function getHiddens()\n {\n return $this->filterDatas(function ($data) {\n return isset($data->hidden) && $data->hidden;\n });\n }", "public function findNotSentToCalendar()\n {\n $sql = <<<SQL\n SELECT s.*, p.title as program_name \n FROM ec_shows s, ec_programs p\n WHERE sent_to_calendar like ''\n AND s.program_id = p.id\nSQL;\n $sqlQuery = new SqlQuery($sql);\n return $this->getList($sqlQuery);\n }", "public function isHidden()\n\t{\n\t\t$hiddenModules = array('servermanager','serverclient','users','groups','modules','postfixadmin');\n\t\treturn in_array($this->name, $hiddenModules);\n\t}", "public function retrieveInactiveApplications()\n {\n return $this->start()->uri(\"/api/application\")\n ->urlParameter(\"inactive\", true)\n ->get()\n ->go();\n }", "function getRejectedApplications()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'R'\r\n ]);\r\n\r\n return $results;\r\n }", "protected function getHidden()\n {\n return $this->hidden;\n }", "function get_hidden_columns( ) {\r\n\t\t$columns = get_user_option( 'managemedia_page_' . MLACore::ADMIN_PAGE_SLUG . 'columnshidden' );\r\n\r\n\t\tif ( is_array( $columns ) ) {\r\n\t\t\tforeach ( $columns as $index => $value ){\r\n\t\t\t\tif ( empty( $value ) ) {\r\n\t\t\t\t\tunset( $columns[ $index ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$columns = self::$default_hidden_columns;\r\n\t\t}\r\n\r\n\t\treturn apply_filters( 'mla_list_table_get_hidden_columns', $columns );\r\n\t}", "public function getHidden() {\n\t\treturn $this->hidden;\n\t}", "public function getHidden() {\n\t\treturn $this->hidden;\n\t}", "public function getHidden()\n\t{\n\t\treturn $this->hidden;\n\t}", "public static function isHidden(): bool\n {\n return !empty(static::HIDDEN);\n }", "public function getHidden()\n {\n return $this->hidden;\n }", "public function getHidden()\n {\n return $this->hidden;\n }", "public function getHidden()\n {\n return $this->hidden;\n }", "public function getHidden()\n {\n return $this->hidden;\n }", "public function getLiveApps()\n {\n $em = $this->getEntityManager();\n $query = $em->createQuery(\n 'SELECT p\n FROM Vlreleases\\UserBundle\\Entity\\LiveApps p'\n );\n $result = $query->getResult();\n \n return $result;\n }", "public function playersThatArePlayingLogins() {\n\t\t$spectators = $this->maniaControl->getPlayerManager()->getSpectators();\n\t\t$specLogins = array();\n\t\tforeach ($spectators as $spec) {\n\t\t\t$specLogins[] = trim($spec->login);\n\t\t}\n\n\t\t$allPlayers = $this->maniaControl->getPlayerManager()->getPlayers();\n\t\t$allPlayersLogins = array();\n\t\tforeach ($allPlayers as $pl) {\n\t\t\t$allPlayersLogins[] = trim($pl->login);\n\t\t}\n\n\t\treturn array_diff($allPlayersLogins, $specLogins);\n\t}", "public function getHiddenAttributes()\n {\n return $this->{self::ENTRY_HIDDENATTRIBUTES};\n }", "public function isHidden() {\n return false;\n }", "public function getInvisible()\n\t{\n\t\treturn $this->invisible;\n\t}", "public function getPlayers();", "public function getPlayers();", "public function isHidden() {\r\n return false;\r\n }", "public function isHidden() {\r\n return false;\r\n }", "public function getHidden()\n {\n return isset($this->hidden) ? $this->hidden : false;\n }", "final public static function hidden()\n {\n return (new static)->hidden;\n }", "public function isHidden();", "public function isHidden();", "public function isHidden();", "public function isHidden();", "public static function getUndraftedPlayers($year) {\n CommonDao::connectToDb();\n $query = \"select p.* from player p where p.player_id not in (\n select player_id from (select distinct b.player_id from ping_pong b\n where b.year = $year and b.player_id is not null) as t1\n union\n select player_id from (select distinct dp.player_id from draft_pick dp\n where dp.year = $year and dp.player_id is not null) as t2)\n order by p.last_name, p.first_name\";\n return PlayerDao::createPlayersFromQuery($query);\n }", "public function GetOwnedGames($includeAppInfo = true, $includePlayedFreeGames = false, $appIdsFilter = [])\n {\n $this->setApiDetails(__FUNCTION__, 'v0001');\n\n // Set up the arguments\n $arguments = ['steamId' => $this->steamId];\n if ($includeAppInfo) {\n $arguments['include_appinfo'] = $includeAppInfo;\n }\n if ($includePlayedFreeGames) {\n $arguments['include_played_free_games'] = $includePlayedFreeGames;\n }\n if (count($appIdsFilter) > 0) {\n $arguments['appids_filter'] = (array) $appIdsFilter;\n }\n\n // Get the client\n $client = $this->getServiceResponse($arguments);\n\n // Clean up the games\n $games = $this->convertToObjects(isset($client->games) ? $client->games : []);\n\n return $games;\n }", "public function getChatBlacklist()\n {\n return $this->get(self::_CHAT_BLACKLIST);\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function get_blacklisted_ids() {\n\n\t\t$excluded_meta_ids = WPSOLR_Metabox::get_blacklisted_ids();\n\t\t$excluded_list_ids = WPSOLR_Service_Container::getOption()->get_option_index_post_excludes_ids();\n\n\t\t$all_excluded_ids = array_merge( $excluded_meta_ids, $excluded_list_ids );\n\n\t\treturn $all_excluded_ids;\n\t}", "public function excludedVoters()\n {\n return $this->voters()->where('is_excluded', true);\n }", "public function isHidden()\n {\n return false;\n }", "public function getExcludedModules ();", "public function get_hidden_columns() {\n\n\t\t// Return a blank array, filtered.\n\t\treturn apply_filters( Core\\HOOK_PREFIX . 'review_table_hidden_columns', array() );\n\t}", "public function isHidden(): bool\n {\n return false;\n }", "public function get_list_app(Application $app) : array {\n\n\t\t//Get the application reports target directory\n\t\t$report_dir = $this->get_reports_dir($app);\n\n\t\t//Check if the directory exists\n\t\tif(!file_exists($report_dir))\n\t\t\treturn array(); //Empty list\n\n\t\t$list = array();\n\t\tforeach(glob($report_dir.\"*\") as $file){\n\t\t\t$list[] = $this->readReportMetadata($file, new ReportMetadata());\n\t\t}\n\n\n\t\treturn $list;\n\t}", "function get_sp_app_list() {\n\ttry {\n\t\treturn sp()->app_list()->data;\n\t} catch ( \\ServerPilotException $e ) {\n\t\treturn new \\WP_Error( $e->getCode(), $e->getMessage() );\n\t}\n}", "function get_hidden_columns($screen)\n {\n }", "public function getHidden(){\n return $this->_hidden;\n }", "public static function isWindowHidden() : bool {}", "public function GetAllPlayers()\n {\n $dbTalker = new DbTalker();\n return $dbTalker->GetAllPlayers();\n }", "public function getHidden(): bool;", "public function showAllSportNames(Application $app)\n {\n $queryBuilder = $this->db->createQueryBuilder();\n $queryBuilder->select('*')\n ->from('Sport_Name');\n\n return $queryBuilder->execute()->fetchAll();\n }", "public function getFriendsAppUsers() {\n return $this->api(array('method' => 'friends.getAppUsers'));\n }", "function getBlackList() {\n\t\treturn $this->_blackList;\n\t}", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function getHiddenFields()\n {\n return [\n 'createdAt',\n 'updatedAt',\n 'version',\n 'locale'\n ];\n }", "public function getBlacklist()\n {\n return $this->blacklist;\n }", "public function getBlacklist()\n {\n return $this->blacklist;\n }", "private static function notAllowed() : array\n\t{\n\t\t$return = [];\n\n\t\t$aeSettings = \\MarkNotes\\Settings::getInstance();\n\n\t\t$return['count'] = 0;\n\t\t$return['status'] = 0;\n\t\t$return['message'] = $aeSettings->getText('not_authenticated');\n\n\t\t/*<!-- build:debug -->*/\n\t\tif ($aeSettings->getDebugMode()) {\n\t\t\t$return['debug'] = 'The show_login settings is set to ' .\n\t\t\t\t'1 and the user isn\\'t yet connected. In that case, ' .\n\t\t\t\t'the list of files should be keept hidden';\n\t\t}\n\t\t/*<!-- endbuild -->*/\n\n\t\treturn $return;\n\t}", "public function setShowHiddenInvitations($value)\n {\n return $this->set('ShowHiddenInvitations', $value);\n }", "public function get_hidden_columns()\r\n\t{\r\n\t\treturn [ ];\r\n\t}", "public function getBlacklist()\n {\n return $this->blacklist;\n }", "public function blacklist()\n {\n return $this['blacklist'];\n }", "public function ListValidatePlayer()\n {\n $users = User::where([\n ['isEnabled', 0],\n ['isDelete', 0]\n ])\n ->get();\n\n if ($users <> \"[]\") {\n return response()->json(\n\n $users\n ,\n 200\n );\n }\n }", "public function get_hidden_columns()\r\n {\r\n return array();\r\n }", "public function get_hidden_columns()\n\t{\n\t\treturn array();\n\t}", "function getWaitListedApplications()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'W'\r\n ]);\r\n\r\n return $results;\r\n }", "public function isHidden()\r\n\t{\r\n\t\treturn false;\r\n\t}", "private function get_app_list()\r\n\t{\r\n\t //build JSON array\r\n\t $app_list = array(array(\"id\" => 1, \"name\" => \"Web Demo\"), array(\"id\" => 2, \"name\" => \"Audio Countdown\"), array(\"id\" => 3, \"name\" => \"The Tab Key\"), array(\"id\" => 4, \"name\" => \"Music Sleep Timer\")); \r\n\r\n\t return $app_list;\r\n\t}", "protected function getAllowedApplications()\n {\n return EntityHandler::findAll(\n $this->container,\n 'Mapbender\\CoreBundle\\Entity\\Application',\n array(),\n SecurityContext::PERMISSION_EDIT);\n }", "public function interactionsListAction(Application $app)\n {\n require_once 'api/get/listEnzymes.php';\n $enzymeList = getEnzymeList();\n\n $enzymes = array();\n foreach ($enzymeList as $enzyme) {\n $enzymes[] = array(\n \"name\" => $enzyme['name'],\n \"id\" => $enzyme['name'],\n \"enabled\" => $enzyme['deleted'],\n );\n }\n\n return $app['twig']->render('liveinteractions/index.html.twig', array(\n 'interactions' => $enzymes,\n ));\n }", "public function allPlayers()\n {\n return array_values($this->players);\n }", "public function getExcludeHideFromSearch()\n {\n return $this->excludeHideFromSearch;\n }" ]
[ "0.6301318", "0.622639", "0.5670769", "0.5609927", "0.53892356", "0.5331992", "0.5331992", "0.5303199", "0.5295577", "0.5260307", "0.52600515", "0.5214672", "0.5212481", "0.52022666", "0.51759416", "0.51689917", "0.5164226", "0.5107169", "0.5101624", "0.5082389", "0.5082389", "0.5055919", "0.5036985", "0.50300395", "0.50300395", "0.50300395", "0.50300395", "0.5014803", "0.4995736", "0.49945298", "0.4963182", "0.49619424", "0.49524704", "0.49524704", "0.49495298", "0.49495298", "0.4948438", "0.49400368", "0.4938263", "0.4938263", "0.4938263", "0.4938263", "0.4935251", "0.4923052", "0.49164188", "0.4915169", "0.4915169", "0.4915169", "0.49031332", "0.49027884", "0.49011055", "0.4898605", "0.4882423", "0.48801962", "0.48717755", "0.48689628", "0.48650226", "0.4861992", "0.48369053", "0.48345572", "0.4834119", "0.48328805", "0.48304823", "0.4830271", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.48286083", "0.4822798", "0.48094732", "0.48094732", "0.4800286", "0.47869486", "0.47766474", "0.47700146", "0.47651273", "0.47630575", "0.47448543", "0.4744346", "0.47399262", "0.473931", "0.473532", "0.47329676", "0.47326848", "0.47244033", "0.47232333" ]
0.85996217
0
Get the value of lname
Получить значение lname
public function getLname() { return $this->lname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_lName() {\n return $this->lName;\n }", "function getLname() {\n return $this->lname;\n }", "public function getUser_lname()\n {\n return $this->user_lname;\n }", "function getRHUL_LastName() {\n return getRHUL_LDAP_FieldValue(\"last_name\");\n}", "public function getLName()\n{\nreturn $this->lname;\n}", "function get_profile_lname($lname){\r\n\t\r\n}", "function getRHUL_DisplayName() {\n\treturn getRHUL_LDAP_FieldValue(\"adi_givenname\");\n}", "public function getLNameAttribute($value)\n\t{\n if (!empty($value)) {\n return $this->getDecryptedData($value);\n }\n\n return null;\n\t}", "public function getLid()\n {\n $value = $this->get(self::LID);\n return $value === null ? (integer)$value : $value;\n }", "public function getLastname() {\n return $this->getValue('lastname');\n }", "public function getGivenName ();", "function getPersonLastName()\n {\n return $this->getValueByFieldName('person_lname');\n }", "function getLongName() \n {\n return $this->_longName;\n }", "function setLname($name){\n $this->lname = $name;\n }", "function getRHUL_FirstName() {\n return getRHUL_LDAP_FieldValue(\"first_name\");\n}", "public function getHonoreeLastName();", "public function getLongName() {\n\t\treturn $this->longName;\n\t}", "function getFromName(){\n\t\t\treturn $this->from_name;\n\t\t}", "public function getLastname() {\n\t\treturn $this->lastname;\n\t}", "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "public function getLastname()\r\n\t{\r\n\t\treturn $this->lastname;\r\n\t}", "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 getNameLocation()\n\t {\n\t return $this->nameLocation;\n\t }", "public static function get_name() : string ;", "public static function get_name() : string ;", "public function getLastName() {\n\t\treturn $this->last_name;\n\t}", "public function getListModuleValueLabel()\n {\n if (isset($this->properties[0])) {\n return $this->properties[0]->getFieldName();\n } else {\n return 'uid';\n }\n }", "public function show(Lname $lname)\n {\n //\n }", "public function getLastName()\n {\n $name = $this->getAttribute('name');\n if (isset($name)) {\n return $name['lastName'];\n }\n return null;\n }", "public function get_name();", "public function get_name();", "public function get_name();", "public function getLastName()\n\t{\n\t\treturn $this->last_name;\n\t}", "public function getLastName() {\n\t\treturn $this->getCustomField( 'last_name' );\n\t}", "function GetName ()\n {\n $this->username = isset( $_SESSION [ \"username\" ] ) ? sanitize_string( $_SESSION [ \"username\" ] ) : null;\n if ( !$this->username ) {\n $this->username = isset( $_COOKIE [ \"username\" ] ) ? sanitize_string( $_COOKIE [ \"username\" ] ) : null;\n }\n $this->mongo->setCollection( COLLECTION_ADMINS );\n $data = $this->mongo->dataFindOne( array( \"username\" => $this->username ) );\n return isset( $data[ \"name\" ] ) ? $data[ \"name\" ] : \"?\";\n }", "public function getLastname()\r\n {\r\n return $this->lastname;\r\n }", "public function getname(){\n \t//return $this->msg;\n \treturn $this->phone;\n }", "public function getLastname() {\n return $this->lastname;\n }", "public function getLastName()\n {\n //Parse the name and set it\n $namePieces = preg_split(\"/\\s/\", $this->name);\n if (count($namePieces) == 2) {\n return $namePieces[1];\n } elseif (count($namePieces) == 3) {\n return $namePieces[2];\n }\n return null;\n }", "public function getFromName()\n\t{\n\t\treturn $this->from_name;\n\t}", "public function getRealname()\n {\n return $this->realname;\n }", "public function getLastname(): string\n {\n return $this->_lastname;\n }", "public function getName()\n {\n $result = null;\n if (isset($this->userInfo['first_name']) && isset($this->userInfo['last_name'])) {\n $result = $this->userInfo['first_name'] . ' ' . $this->userInfo['last_name'];\n } elseif (isset($this->userInfo['first_name']) && !isset($this->userInfo['last_name'])) {\n $result = $this->userInfo['first_name'];\n } elseif (!isset($this->userInfo['first_name']) && isset($this->userInfo['last_name'])) {\n $result = $this->userInfo['last_name'];\n }\n return $result;\n }", "function getLabName($code)\n{\n $result = Lovs::getValueOfFieldBy('laboratories', 'laboratorydescription', 'laboratorycode', $code);\n\n return $result;\n}", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastName(){\n\t\t\treturn $this->lastname;\n\t\t}", "function getSupervisorLastName() {\n\t\treturn $this->getData('supervisorLastName');\n\t}", "public function getUserLastName () {\n\t\treturn ($this->userLastName);\n\t}", "public function getGivenName()\n {\n return $this->getProperty(\"GivenName\");\n }", "function &getFromRoleName() {\n\t\t$roleDao =& DAORegistry::getDAO('RoleDAO');\n\t\treturn $roleDao->getRoleName($this->getFromRoleId());\n\t}", "public function getLastname()\n {\n return $this->lastname;\n }", "public function getLastname()\n {\n return $this->lastname;\n }", "function getStudentLastName() {\n\t\treturn $this->getData('studentLastName');\n\t}", "public function getLastName()\n {\n return $this->last_name;\n }", "public function getLastName()\n {\n return $this->last_name;\n }", "public function getLastName()\n {\n return $this->last_name;\n }", "public function getLastName()\n {\n return $this->last_name;\n }", "public function getLastName()\n {\n return $this->last_name;\n }", "public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }", "public function getLastName() :string {\n\t\treturn (string)$this->last_name;\n\t}", "public function getLIdAndCName() {\n $lIdAndCname = $this->find('all', array(\n 'fields' => array('LessonOfCategory.lesson_id', 'LessonOfCategory.category_id', 'Category.category_name'),\n ));\n //debug($lIdAndCname);die();\n return $lIdAndCname;\n }", "public function getGivenName(): ?string;", "function getLocalizedName() {\n\t\treturn $this->getLocalizedData('name');\n\t}", "public function setLname($lName)\r\n {\r\n $this->_lName = $lName;\r\n }", "public function ldap_name($name){\n\treturn $this->config['ld_attr'].'='.$name.','.$this->config['basedn'];\n\t}", "public function getLastname()\n {\n return $this->lastname;\n\n }", "function getLogName($login){\n\t$logName = $login;\n\treturn $logName;\n}", "function get_profile_usrnm($usrname){\r\n\t\r\n}", "public function getRealName()\n {\n\treturn $this->name;\n }", "public function getLastName()\n {\n $name = explode(' ', $this->getName());\n return $name[1];\n }", "public function getLastName(){\n \n return $this->last_name;\n \n }", "public function getLastName() {\n\n return $this->last_name;\n\n }", "public function getLastName()\n {\n return $this->response['last_name'] ?: null;\n }", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "public function getLastname(): string;", "public function name() {\n $a = $this->firstname;\n return $a;\n }", "public function getLastName() {\n return $this->lastname;\n }", "public function getLandid()\n {\n return $this->landId;\n }", "public function getVolLastName() {\n\t\treturn ($this->volLastName);\n\t}", "public function getCustomerLastname();", "public function getLastname() {}", "function set_lName($lName) {\n $this->lName = $lName;\n }", "public function getGivenName(): string\n {\n return $this->export('GivenNamePart');\n }", "public function setLname($lname)\n {\n $this->lname = $lname;\n\n return $this;\n }", "abstract public function get_name();", "abstract public function get_name();", "abstract public function get_name();", "public function getNameAddr()\n {\n $addr = $this->long_name;\n\n if ($this->street1) {\n if ($addr) $addr .= ', ';\n $addr .= $this->street1;\n }\n \n if ($this->street2) {\n if ($addr) $addr .= ', ';\n $addr .= $this->street2;\n }\n \n if ($this->city) {\n if ($addr) $addr .= ', ';\n $addr .= $this->city;\n }\n \n if ($this->state) {\n if ($addr) $addr .= ', ';\n $addr .= $this->state;\n }\n \n if ($this->zip) {\n if ($addr) $addr .= ' ';\n $addr .= $this->zip;\n }\n \n return $addr;\n }", "public function getLr() {}", "public function getRealName() {}", "public function getRealName()\n\t{\n\t\treturn $this->real_name;\n\t}", "public function getRealName() {\n\t\treturn $this->name;\n\t}" ]
[ "0.7913818", "0.7850836", "0.7211258", "0.6657328", "0.65321", "0.65043265", "0.6403536", "0.6360928", "0.6269534", "0.6268541", "0.62588906", "0.62476116", "0.6121237", "0.6091806", "0.6089751", "0.60895306", "0.60679746", "0.60576785", "0.60477626", "0.6040168", "0.6040168", "0.6036914", "0.60312015", "0.6014762", "0.5997724", "0.5997724", "0.5996887", "0.5970396", "0.596557", "0.59631693", "0.59624654", "0.59624654", "0.59624654", "0.59529376", "0.59509414", "0.59438527", "0.5938938", "0.59378785", "0.59218675", "0.59215975", "0.59087425", "0.5890627", "0.5889116", "0.58887714", "0.5875927", "0.58756113", "0.58756113", "0.58756113", "0.58756113", "0.58756113", "0.58756113", "0.58756113", "0.58756113", "0.5872755", "0.58687687", "0.5846314", "0.58450407", "0.5839531", "0.58304024", "0.58264506", "0.58248556", "0.58217335", "0.58217335", "0.58217335", "0.58217335", "0.58217335", "0.5816239", "0.5813301", "0.58127445", "0.5812624", "0.5812204", "0.5812156", "0.5808054", "0.58066016", "0.57856756", "0.5777354", "0.5776427", "0.5766506", "0.5752851", "0.5748698", "0.57434845", "0.5742643", "0.57369334", "0.57317483", "0.5730982", "0.5729881", "0.5726148", "0.569847", "0.56951255", "0.5688342", "0.5688315", "0.5683291", "0.5679756", "0.5679756", "0.5679756", "0.5674062", "0.56705505", "0.56665593", "0.5665302", "0.5662827" ]
0.80444074
0
Get the value of doi
Получить значение doi
public function getDoi() { return $this->doi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getBookDOI()\n {\n return $this->mBook['doi'];\n }", "public function getDod();", "public function getDateI(){\n return $this->dateI;\n }", "public function getD() {}", "public function getDni() {\r\n return $this->dni;\r\n }", "public function getIdade() {\r\n return $this->idade;\r\n }", "public function getDni()\n {\n return $this->_dni;\n }", "public function getDni()\n {\n return $this->dni;\n }", "function getDay()\r\n {\r\n return $this->dia;\r\n }", "public function getValorDiaria()\n {\n return $this->valorDiaria;\n }", "public function getDistriId()\n {\n return $this->distri_id;\n }", "public function getDobd() {\n\t\treturn $this->container['dobd'];\n\t}", "public function getDob(){\n //this fait réference à element de la classe\n return $this -> dob;\n }", "public function getDni()\n\t{\n\t\treturn $this->dni;\n\t}", "public function getD()\n {\n return $this->D;\n }", "public function getDni() {\n\t\treturn $this->dni;\n\t}", "public function getDoDate()\n {\n return $this->data['fields']['do_date'];\n }", "public function getDipartimento() {\n return $this->dipartimento;\n }", "public function getDiaNacimiento() {\n\t\treturn $this->diaNacimiento;\n\t}", "public function getDDI()\n {\n return $this->ddi;\n }", "public function getDIRECCIONC()\r\n {\r\n return $this->DIRECCIONC;\r\n }", "public function getDpto()\n {\n return $this->dpto;\n }", "public function getIdDocumentoDigital( ){\n\t\treturn $this->idDocumentoDigital;\n\t}", "public function getD(int $i):Number{\n\t\t$number = $this->getY($i)->copy();\n\t\treturn $number->add($this->getH($i)->mul($this->getH($i))->mul(new RationalNumber(1, 6))->mul($this->getM($i))->negate());\n\t}", "public function getDob($id){\n $dob = \"\";\n $con = new data();\n $sql = \"SELECT dob FROM users WHERE matric_no = '$id'\";\n $statement = $con->query($sql);\n if($statement){\n if($rs = $statement->fetch()){\n $dob = $rs['dob'];\n }\n }\n return $dob;\n }", "public function getIndExeDR()\n {\n return $this->valorDRExento > 0 ? 1 : 0;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getId(){\n\t\t\treturn $this->idDenuncia;\n\t\t}", "public function getTiD() {\n\t\treturn $this->tiD;\n\t}", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "public function getDiaCalendario(){\n return $this->diaCalendario;\n }", "public function getCidade(){\n return $this->cidade;\n }", "public function getJadwalDdtk()\n {\n return $this->jadwal_ddtk;\n }", "function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }", "public function getDataProcesso() {\n return $this->dDataProcesso;\n }", "public function getDias120()\n {\n return $this->dias120;\n }", "public function getDate($i);", "function dame_codigo($codigo) {\n $query = $this->db->query(\"select nExpedienteCodigo from tb_sistram_expediente where nExpedienteId= $codigo\");\n if ($query->num_rows() > 0) {\n $row = $query->row();\n $tipo = $row->nExpedienteCodigo;\n return $tipo;\n }\n }", "public function getiddomaine() {\r\n\t\treturn $this->iddomaine;\r\n\t}", "public function getDatenaisssance()\n {\n return $this->datenaisssance;\n }", "public function getDatenaissance()\n {\n return $this->datenaissance;\n }", "public function getDatenaissance()\n {\n return $this->date_naissance;\n }", "public function getADelai()\n {\n return $this->delai;\n }", "public function getValorDocumento()\n {\n return $this->ValorDocumento;\n }", "function ReadbyID($de_cod_denuncia){\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\n\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"SELECT * FROM denuncia WHERE de_cod_denuncia=?\";\n\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute(array($de_cod_denuncia));\n\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\n\t\t$resultado = $query->fetch(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\n\t\tfloopets_BD::Disconnect();\n\t}", "public function getDob()\n {\n return $this->dob;\n }", "function sel_get_text ( $ii ) {\n\t\treturn strval ( $this->pi1->stat['years'][$ii] );\n\t}", "public function getDob()\n {\n return $this->dob;\n }", "public function getDob()\n {\n return $this->dob;\n }", "public function getKey_dosage()\n {\n return $this->fv_key_dossage;\n }", "function getDatosDomicilio($tipo = false){ if($this->mOBDomicilio == null){ $this->getODomicilio($tipo); }\t\treturn $this->mDatosDomicilio;\t}", "public function getDoorNo() :string\n {\n return $this->doorNo;\n }", "public function getCsoi()\n {\n return $this->csoi;\n }", "function budynekKoncowy(){\r\n\t\t$this->retriveDataRow();\r\n\t\treturn $this->data['id_budynku_koncowego'];\r\n\t}", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getDobm() {\n\t\treturn $this->container['dobm'];\n\t}", "public function tampilkiddie()\n {\n $kd = array();\n\n $query = $this->db->get('kiddiejadi');\n\n if ($query->num_rows() > 0) {\n $kd = $query->row();\n }\n return $kd;\n }", "public function getDay()\n {\n return $this->_getDateValue('d');\n }", "public function getDataCalculo() {\n return $this->dtDataCalculo;\n }", "function DatosEdificio($idEdificio) {\n\t\t\t$sql=\"SELECT * FROM edificio WHERE id_claveEdi = $idEdificio LIMIT 1\";\n\t\t\t$result=$this->db->query($sql)->execute();\n\t\t\t\n\t\t\treturn $result->current();\n\t\t}", "public function getPDif()\n {\n return $this->pDif;\n }", "public function getCdDesconto()\n {\n return $this->cd_desconto;\n }", "public function getDomicilio()\n {\n return $this->domicilio;\n }", "public function getDomicilio()\n {\n return $this->domicilio;\n }", "public function getDaw()\n {\n return $this->getParam(self::DAW);\n }", "public function getDob();", "function Fecha_dia($Ingresodia){\t\n$dia1 = new DateTime($Ingresodia);\n$dia = $dia1->format('d');\n$cadena = (\"$dia\");\nreturn $cadena;\n}", "public function getCarNoDoor(){\r\n\t\t$this->car_no_door = getValue(\"SELECT no_door FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_no_door;\r\n\t}", "public function getDominio()\n {\n return $this->dominio;\n }", "static function get($key){\n \n //si existe te retorna\n if (array_key_exists($key, self::$dades)) \n { \n return self::$dades[$key]; //si existe le pasamos el valor\n }else \n { \n return null; //ni no existe le pasamos null\n } \n \n }", "public function getDesconto()\n {\n return $this->desconto;\n }", "public function getCilindrada()\n {\n return $this->cilindrada;\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue(){\n \treturn $this->value;\n }", "public function getId_ciudad()\n {\n return $this->id_ciudad;\n }", "public function getValorInventario()\n {\n return $this->valorInventario;\n }", "public function getDistrictid()\n {\n return $this->districtid;\n }", "public function getDW() {}", "public function getValue(){\n return $this->getData();\n }", "public function getDocteurs()\n {\n return $this->docteurs;\n }", "public function getSecurityIncidentDOR() {\n\t\treturn $this -> security_incident_dor;\n\t}", "public function getDisciplina() {\n return $this->iDisciplina;\n }", "private function get_WD_id_of_citation($rec)\n {\n if(preg_match(\"/wikidata.org\\/entity\\/(.*?)elix/ims\", $rec['t.source'].\"elix\", $arr)) { //is WikiData entity\n $this->debug2['citation mapped to WD: allowed measurementTypes only'][$rec['t.source']][$rec['t.citation']][$arr[1]] = '';\n return $arr[1];\n }\n elseif(preg_match(\"/wikidata.org\\/wiki\\/(.*?)elix/ims\", $rec['t.source'].\"elix\", $arr)) { //is WikiData entity\n $this->debug2['citation mapped to WD: allowed measurementTypes only'][$rec['t.source']][$rec['t.citation']][$arr[1]] = '';\n return $arr[1];\n }\n elseif(stripos($rec['t.source'], \"/doi.org/\") !== false) { //string is found //https://doi.org/10.1002/ajpa.20957 //is DOI\n if($val = self::get_WD_entityID_for_DOI($rec['t.source'])) {\n $this->debug2['citation mapped to WD: allowed measurementTypes only'][$rec['t.source']][$rec['t.citation']][$val] = '';\n return $val;\n }\n else { //has DOI no WikiData yet\n echo \"\\n---------------------\\n\"; print_r($rec);\n echo \"\\nhas DOI but not in WikiData yet 111\\n\";\n echo \"\\n---------------------\\n\";\n if($val = @$this->memory_citation_WD_id[$rec['t.citation']]) return $val;\n if($val = self::create_WD_for_citation($rec['t.citation'], $rec['t.source'], 1)) {\n $this->memory_citation_WD_id[$rec['t.citation']] = $val;\n return $val;\n }\n $this->memory_citation_WD_id[$rec['t.citation']] = 'un-mapped to WD';\n }\n }\n elseif($rec['t.source'] && $rec['t.citation']) {\n // print_r($rec); //good debug\n if($val = @$this->memory_citation_WD_id[$rec['t.citation']]) return $val;\n if($val = self::create_WD_for_citation($rec['t.citation'], $rec['t.source'], 2)) {\n $this->memory_citation_WD_id[$rec['t.citation']] = $val;\n return $val;\n }\n exit(\"\\nNo case like this yet.\\n\");\n }\n elseif($rec['t.source'] && !$rec['t.citation']) {\n print_r($rec); exit(\"\\n huli ka\\n\");\n }\n\n else { //https://www.delta-intkey.com/britin/lep/www/endromid.htm\n return \"\";\n print_r($rec);\n exit(\"\\nNo design yet.\\n\");\n } \n }", "function getTravelerData($dni) {\n\n global $connect;\n\n // Generamos la query para obtener el precio de la reserva\n $query_sql = \"SELECT * FROM pasajero WHERE (dni = $dni)\";\n\n // Realizamos la consulta a la tabla y guardamos los datos devueltos \n $traveler_data = $connect->executeSelect($query_sql)[0];\n\n // Si la consulta fue exitosa entra\n if ($traveler_data) { \n\n // si el registro está vacío retornamos falso \n if (sizeof($traveler_data) == 0) {\n // echo '$price :: vacio false';\n return false;\n }\n\n return $traveler_data;\n\n }\n\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}" ]
[ "0.67642194", "0.66320604", "0.6440463", "0.6343033", "0.63270223", "0.6298013", "0.6297631", "0.62934816", "0.62696093", "0.6246562", "0.62402904", "0.62035906", "0.6183823", "0.61810625", "0.617435", "0.60745245", "0.60634387", "0.604051", "0.6009992", "0.599249", "0.59557486", "0.593707", "0.5937014", "0.5921191", "0.5920835", "0.59205365", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5862909", "0.5834846", "0.5806538", "0.57882196", "0.57690144", "0.5768315", "0.5727443", "0.5689726", "0.5659881", "0.5656529", "0.5653686", "0.5640414", "0.5629701", "0.5627224", "0.5618398", "0.5615415", "0.5608572", "0.5593689", "0.55740947", "0.55737317", "0.55512863", "0.5546094", "0.5541741", "0.5541741", "0.5538974", "0.55368656", "0.5535352", "0.55327696", "0.5531378", "0.55218935", "0.5521634", "0.5520125", "0.5518375", "0.55019516", "0.5490365", "0.54831046", "0.5482634", "0.54762834", "0.54762834", "0.5454898", "0.5452103", "0.5450191", "0.5448381", "0.54369146", "0.54369044", "0.5433233", "0.5429447", "0.54195744", "0.54148126", "0.5414321", "0.54104424", "0.54070336", "0.5396619", "0.53904307", "0.5383043", "0.53808546", "0.53777295", "0.53761196", "0.537302", "0.5370702", "0.5370702", "0.5370702", "0.5370702", "0.5370702", "0.5370702" ]
0.7826824
0
Get the value of facility
Получить значение объекта facility
public function getFacility() { return $this->facility; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFacility();", "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 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 getValue();", "public function getValue();", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function &getValue();", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function getFacultad( ){\n\t\t \treturn $this->facultad;\n\t\t }", "public function getValue()\n {\n\treturn $this->value;\n }", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->_value;\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue(){ }", "public function getValue(): string\n {\n return $this->fusionValue('value') ?? '';\n }", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n return $this->getOriginData('value');\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue()\r\n {\r\n return $this->value;\r\n }", "public function dropdown()\n\t{\n\t\t$fId = Input::get('facility_id');\n\t\t$checkId = Input::get('check_id');\n $facility = Facility::find($fId);\n return $facility->points($checkId);\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "abstract protected function getValue();", "public function getValue(){\n return $this->getData();\n }", "abstract public function getValue();", "abstract public function getValue();", "abstract public function getValue();", "public function getValue() {\n\t\treturn $this -> value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "function getValue() {\n return $this->value;\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->value;\r\n\t}", "public function get_value()\n {\n return $this->value;\n }", "public function getValue()\n {\n return 1;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }" ]
[ "0.7492259", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.6304625", "0.6304625", "0.6304625", "0.6304625", "0.6304625", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.62992364", "0.6226266", "0.6226266", "0.6072585", "0.60458624", "0.6014639", "0.5990857", "0.5971985", "0.5971387", "0.596121", "0.5930635", "0.5930635", "0.5924866", "0.5913443", "0.5913443", "0.591327", "0.59042186", "0.5904003", "0.5883274", "0.58711123", "0.58711123", "0.58699757", "0.58699757", "0.58588284", "0.58488834", "0.58374894", "0.58374894", "0.58374894", "0.5833748", "0.58213854", "0.5821361", "0.5821361", "0.5820443", "0.5808699", "0.5800318", "0.5800318", "0.5800318", "0.5800318", "0.5800318", "0.5800318", "0.5796081", "0.57942456", "0.5792714", "0.57912666", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364", "0.57883364" ]
0.77125245
1
Get the value of mname
Получить значение mname
public function getMname() { return $this->mname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "public function getName(){\n return $this->m_name;\n }", "public function getname(){\n \t//return $this->msg;\n \treturn $this->phone;\n }", "function getPropertyName() ;", "public static function get_name() : string ;", "public static function get_name() : string ;", "public function get_name(){\n\t\treturn $this->name;\n\t}", "function getName () {return $this->getFieldValue ('name');}", "function get_name () {\n return $this -> name;\n }", "public function GetName () \r\n\t{\r\n\t\treturn ($Name);\r\n\t}", "public function get_name();", "public function get_name();", "public function get_name();", "function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "public function getname()\n {\n return $this->name;\n }", "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 }", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "public function getName() {\n\t\treturn (string)$this->gpml[\"Name\"];\n\t}", "public function getNamedValue(): string {\n return self::$namedValues[$this->value];\n }", "public function name()\n\t{\n\t\treturn $this->array['name'] ?? '';\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function GetName () {\n\t\treturn $this->name;\n\t}", "protected function GetName() {\n\t\treturn $this->name;\n\t}", "public function getPropertyName();", "public function getPropertyName();", "abstract public function get_name();", "abstract public function get_name();", "abstract public function get_name();", "public function get_name(){\n return $this->name;\n }", "public function getName() {\n //return the value name\n return $this->Name;\n }", "public function get_name() {\r\n return $this->name;\r\n }", "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "public function get_name() {\n return $this->_name;\n }", "public function getMessFromName ()\n {\n return $this->mess_from_name;\n }", "public\tfunction\tgetName() { return\t$this->_name; }", "public\tfunction\tgetName() { return\t$this->_name; }", "public function get_name() \n {\n return $this->name;\n }", "public function my_name() {\n return $this->name;\n }", "function get_name() {\n return $this->name;\n }", "public function getName() { return $this->data['name']; }", "public function getName(){ return $this->getField('name'); }", "public function get_name() : string\n {\n return $this->additional['name'] ?? '';\n }", "public function get_name()\n {\n return $this->name;\n }", "public function get_name()\n {\n return $this->name;\n }", "function\tgetName() {\n\t\treturn $this->name ;\n\t}", "public function get_name() {\n return $this->name;\n }", "public function getMemberName()\n {\n return $this->member_name;\n }", "public function getName() {\n\t\treturn $this->mName;\n\t}", "public function get_name() {\n\n\t\treturn $this->name;\n\t}", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getPropertyName() {}", "function getFromName(){\n\t\t\treturn $this->from_name;\n\t\t}", "public function getName(){\n \treturn $this->name;\n }", "public function name()\n\t{\n\t\treturn $this->_name;\n\t}", "public function getnameAttribute() : String\n {\n $locale = LaravelLocalization::getCurrentLocale();\n $fieldName = 'name';\n $column = $fieldName.\"_\" . $locale;\n $value = $this->{$column};\n return $value;\n }", "public function getMiddlename(): string\n {\n return $this->export('Middlename');\n }", "public function getName () {\n\treturn $this->get('name');\n }", "public function getName(){\r\n\t\t\treturn $this->name;\r\n\t\t}", "public function name()\n\t{\n\t\treturn $this->get($this->meta()->name_key);\n\t}", "public function getName(){\r\n\t\treturn $this->name;\r\n\t}", "public function getName()\n {\n\t return $this->_name;\n }", "public function getWgname () {\n\t$preValue = $this->preGetValue(\"wgname\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->wgname;\n\treturn $data;\n}", "public function getName() : ?string{\n\t\treturn isset($this->data[0]) ? $this->data[0] : null;\n\t}", "function getName() ;", "function getName() ;", "function getName() ;", "function getName() ;", "public function getName(){\n\t\treturn $this->name;\n\t}", "public function getName(){\n\t\treturn $this->name;\n\t}", "public function getName(){\n\t\treturn $this->name;\n\t}", "public function getName()\n {\n return $this->str_name;\n }", "function getName(){\n\t\treturn $this->name;\n\t}", "public function name()\n\t{\n\t\treturn $this->name;\n\t}", "public function name()\n\t{\n\t\treturn $this->name;\n\t}", "public function name()\n\t{\n\t\treturn $this->name;\n\t}", "function name( )\r\n {\r\n return $this->Name;\r\n }", "public function get_name()\n {\n\n return $this->name;\n }", "public function get_name()\n {\n // TODO: Implement get_name() method.\n }", "public function name() {\n\t\treturn $this->name;\n\t}", "public function getName()\n {\n \treturn $this->name;\n }", "public function getName()\n {\n return $this->getValue('name');\n }", "public function getMarket_name () {\n\t$preValue = $this->preGetValue(\"market_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->market_name;\n\treturn $data;\n}", "public function get_name()\n {\n }", "public function get_name()\n {\n }", "public function getName() {\r\n\treturn $this->name;\r\n }", "public function getName() {\n return @$this->attributes['name'];\n }", "function getName(){\n\t\treturn $this->Name;\n\t}", "public function name() {\n $a = $this->firstname;\n return $a;\n }", "public function name(){\n return $this->name;\n }", "function name() {\n\t\t\treturn PHPLM_NAME;\n\t\t}", "function getName()\n {\n return $this->getAttribute(\"name\");\n }", "public function get_name(): string\n {\n return $this->name;\n }", "public function getnom() {\n\t\treturn $this->nom;\n\t}", "public static function fetch_name($name) {\n\t\tpreg_match('/\\!name\\=\\\"(.*?)\\\"/', $name, $output);\n\t\treturn $output[1];\n\t}", "public function getNom() {\n return strval($this->nom);\n }" ]
[ "0.7597905", "0.7597905", "0.72722447", "0.71127045", "0.6980993", "0.6882744", "0.6882744", "0.6879845", "0.6814856", "0.67908955", "0.6788789", "0.67657447", "0.67657447", "0.67657447", "0.6754371", "0.674864", "0.67078817", "0.6699472", "0.66981417", "0.66917473", "0.6678428", "0.6617755", "0.6617755", "0.6617755", "0.6617755", "0.6582504", "0.65784025", "0.6572735", "0.6572735", "0.6568263", "0.6568263", "0.6568263", "0.6567934", "0.6563508", "0.6563305", "0.6559925", "0.6554383", "0.65542614", "0.6534861", "0.6534861", "0.65311515", "0.6528992", "0.65264964", "0.65245724", "0.65167105", "0.6515527", "0.6490031", "0.6490031", "0.6489261", "0.64868325", "0.6486293", "0.64822865", "0.6479701", "0.64702016", "0.64702016", "0.64702016", "0.6453607", "0.6448959", "0.64473724", "0.64430016", "0.642972", "0.64233786", "0.64068", "0.6405608", "0.6394034", "0.6392338", "0.6391234", "0.6383822", "0.6380497", "0.6380497", "0.6380497", "0.6380497", "0.6378767", "0.6378767", "0.6378767", "0.6375067", "0.6359655", "0.6351931", "0.6351931", "0.6351931", "0.63487494", "0.6348554", "0.63347954", "0.63275534", "0.6325635", "0.63167894", "0.6314399", "0.6295314", "0.629395", "0.62869614", "0.6281563", "0.62814486", "0.6280516", "0.62783223", "0.6275104", "0.6267524", "0.6262488", "0.6258734", "0.6251702", "0.625103" ]
0.79557544
0
Get the value of registration_no
Получить значение registration_no
public function getRegistration_no() { return $this->registration_no; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRegistrationNo() :string\n {\n return $this->registrationNo;\n }", "public function getRegistrationNumber() {\n\t\treturn self::$_registrationNumber;\n\t}", "function getRegistrationID()\n { \n return $this->getValueByFieldName('registration_id');\n }", "public function getRegistrationNumber(): ?string;", "public function getEcrRegistrationNumber()\n {\n return array_key_exists('ecr_registration_number', $this->data) ? $this->data['ecr_registration_number'] : null;\n }", "static function getRegistrationKey(){\n return DB::select('SELECT value FROM admin_data WHERE name = \"registration-key\";')[0]->value;\n }", "public function litterApprovalRequestRegistrationNumber() {\n $request = $this->litterApprovalRequest();\n\n if (!isset($request)) {\n return null;\n }\n\n return $request->registration_number;\n }", "public function animalRegistrationNumber() {\n $registration = $this->animalRegistration();\n\n if (!isset($registration)) {\n return null;\n }\n\n return $registration->type . ' ' . $registration->registration_number . '-' . $registration->year;\n }", "public function getBusNo():string\n {\n return $this->busNo;\n }", "public function get_ajax_value_from_no_reg()\n\t{\n\t\t$cif_no = $this->input->post('cif_no');\n\t\t$data = $this->model_transaction->get_ajax_value_from_no_reg($cif_no);\n\n\t\techo json_encode($data);\n\t}", "public function getRegistrantWrapperId() {\n $uuid = $this->registrant->uuid->first()->getValue();\n return $uuid['value'];\n }", "public function getAccNo()\n {\n return $this->acc_no;\n }", "private function getRegistrationKey()\r\n\t\t{\t\r\n\t\t\t$request = \"SELECT * FROM `licensekey` WHERE registerkey='\".$this->logInfos['registrationKey'].\"'\";\r\n\t\t\t$request = mysql_query($request);\r\n\t\t\t$result = mysql_fetch_assoc($request);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}", "public function getAccountNo()\n {\n return $this->account_no;\n }", "public function getPhoneNo() : string\n {\n return $this->phoneNo;\n }", "public function getAccountNo()\n {\n return $this->accountNo;\n }", "public function get_number() { return $this->getCode(); }", "function getRegistrationDate()\n { \n return $this->getValueByFieldName('registration_date');\n }", "public function getRegistration()\n {\n return $this->_registration;\n }", "public function setRegistrationNumber($value) {\n\t\tself::$_registrationNumber = $value;\n\t}", "public function getRefNo()\n {\n return $this->ref_no;\n }", "public function getUserGcmRegId() {\n $stmt = $this->conn->prepare(\"SELECT gcm_registration_id FROM app_users\");\n // $stmt->bind_param(\"s\", $api_key);\n $stmt->execute();\n $user_gcm = $stmt->get_result();\n $stmt->close();\n return $user_gcm;\n }", "public function getPhoneNo()\n {\n return $this->phone_no;\n }", "public function getNumIdentification()\n {\n return $this->numIdentification;\n }", "public function get_template_registration_id()\n {\n return $this->get_default_property(self::PROPERTY_TEMPLATE_REGISTRATION_ID);\n }", "public function getSequence_no()\n {\n return $this->sequence_no;\n }", "public function getRegisterId()\n {\n return (isset($this->segments()[3]) ? $this->segments()[3] : null);\n }", "public function getSerialNumber() {\n if ($this->serial) {\n return $this->serial;\n }\n if (is_array($this->rawData)) {\n $this->serial = $this->rawData[\"serial number\"];\n if (!$this->serial) { \n $this->serial = $this->rawData[\"серийный номер\"];\n }\n if (!$this->serial) { \n $this->serial = $this->rawData[12]; // CP-3911\n }\n }\n return $this->serial;\n }", "private function get_pinn_number() {\r\n\t\treturn $this->pinn_number; \r\n\t}", "public function getRecno()\n {\n return $this->recno;\n }", "function getJoinOnRegID()\n { \n return $this->getJoinOnFieldX('registration_id');\n }", "function getJoinOnRegID()\n { \n return $this->getJoinOnFieldX('registration_id');\n }", "public function getRefNo()\n {\n return $this->refNo;\n }", "public function getRefNo()\n {\n return $this->refNo;\n }", "public function getNumber(){\n if ( is_null($this->number) ){\n $number = $this->getTable()->getNextBillingNumber($this->getCourier(), 'rest');\n $this->number = \"R-\".date('y',$this->from).date('m',$this->from).\"-\".$this->getCourier()->getCustomerNr().\"-\".$number;\n }\n return $this->number;\n }", "public function getAccNumber() \n {\n return $this->acc_number;\n }", "public function get_number()\n\t{\n\t\treturn $this->number;\n\t}", "public function get_sequence_no() {\n\n\t\treturn $this->sequence_no;\n\t}", "public static final function generateRegistrationUuid() {\n return Config::generateUuid('registration');\n }", "static function value(\\models\\RegistrationForm &$form, $field);", "function get_seq_account_saving_no()\n\t{\n\t\t$product_code=$this->input->post('product_code');\n\t\t$cif_no=$this->input->post('cif_no');\n\t\t$data=$this->model_transaction->get_seq_account_saving_no($product_code,$cif_no);\n\t\t$jumlah=(int)$data['jumlah'];\n\t\tif(count($data)>0){\n\t\t\t$newseq=$jumlah+1;\n\t\t\tif($jumlah<10){\n\t\t\t\t$newseq='0'.$newseq;\n\t\t\t}\n\t\t}else{\n\t\t\t$newseq='01';\n\t\t}\n\t\t$return=array('newseq'=>$newseq);\n\t\techo json_encode($return);\n\t}", "public function getNumber();", "public function getRegistrationValues()\n\t{\n\t\t$settings = $this->setup->getClient()->getAllSettings();\n\t\t$nic_key = $this->setup->getClient()->getNICkey();\n\n\n\t\t$values = array();\n\n\t\tif (!isset($settings[\"nic_enabled\"]) or $settings[\"nic_enabled\"] == \"1\")\n\t\t{\n\t\t\t$values[\"register\"] = 1;\n\t\t}\n\t\t/*elseif ($settings[\"nic_enabled\"] == \"2\")\n\t\t{\n\t\t\t$this->tpl->setVariable(\"EMAIL\",$checked);\n\t\t}*/\n\t\telse\n\t\t{\n\t\t\t$values[\"register\"] = 0;\n\t\t}\n\n\t\t$this->form->setValuesByArray($values);\n\t}", "public function checkIfUniqueRegistration(string $registration)\n\t{\n\t\ttry{\n\t\t\t$sql = \"SELECT COUNT(bus.registration) FROM bus WHERE bus.registration = '$registration'\";\n\t\t\t$result = $this->conn->query($sql);\n\t\t\t$row = $result->fetch_assoc();\n\t\t\treturn (int)$row['COUNT(bus.registration)'];\n\t\t}catch (Exception $e){\n\t\t\treturn $e->getCode();\n\t\t}\n\t}", "function getFieldPortalAddressUnitNumber($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_unitNo');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_unitNo');\n\t\t$tooltip = setToolTipNotification(\"unitNo\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('unitno') === 'unitno' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><input type='text' name='unitNo' value='\".$value.\"' id='unitNo' class='srms-field \".(get_axl_req_fields('unitno') === 'unitno' ? 'input-text-required' : '').\"'></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function getBuildingNumber() :string\n {\n return $this->buildingNumber;\n }", "function sequence_value() {\n\t\treturn $this->data[$this->sequence_field];\n\t}", "public function get() {\n return $this->number;\n }", "public function getCourseNumber(): string\n {\n return (string)$this->data['coursenumber'];\n }", "public function getRecurringNumber();", "function getFieldStreetAddressUnitNumber($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_sunitNo');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_sunitNo');\n\t\t$tooltip = setToolTipNotification(\"sunitNo\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('sunitno') === 'sunitno' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><input type='text' name='sunitNo' id='sunitNo' value='\".$value.\"' class='srms-field \".(get_axl_req_fields('sunitno') === 'sunitno' ? 'input-text-required' : '').\"'></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function registration_get(){\n }", "public function getMobilePhoneNo() : string\n {\n return $this->mobilePhoneNo;\n }", "public function getPersonalNo(): ?int {\n return $this->personalNo;\n }", "function getCustomerNo() {\n return $this->customerNo;\n }", "public function getSerialNo(): ?string {\n return $this->serialNo;\n }", "public function getRegZipCode() {\n return $this->reg_zip_code;\n }", "public function getInvoiceNumber();", "public function testRegistrationValuesContainNumbers(): void { }", "function getNum()\n {\n return $this->num;\n }", "public function getCarLabelNumber(){\r\n\t\t$this->car_label_number = getValue(\"SELECT label_number FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_label_number;\r\n\t}", "public function getSerialNumber() {\n\t\treturn self::$_serialNumber;\n\t}", "public function getIdentification(): string\n {\n return $this->identification;\n }", "public function getIdentificationCode()\n {\n return $this->identificationCode;\n }", "public function invoiceNumberGet(){\n\t\t$query = $this->db->get(__TBL_INVOICE_NUMBER);\n\t\tif(sizeof($query->row())>0) {\n\t\t\treturn (int)$query->row()->number;\n\t\t} else return false;\n\t}", "public function getNumber() {}", "public function get_reg_id($character, $id_type) {\n\n $fields = array(\"*\");\n $whereArr = array(\"id_type\" => $id_type);\n $id_number = $this->db_model->getData($fields, 'id_numbers_m_tbl', $whereArr);\n\n $int = intval(preg_replace('/[^0-9]+/', '', $id_number[0]->id_number), 10);\n $id = \"$character\" . ($int + 1);\n return $id;\n\n}", "public function getRegdate()\n {\n return $this->regdate;\n }", "private function getRegistrationForCarId($id)\n {\n $this->db->setQuery(\"SELECT value FROM #__djcf_fields_values WHERE field_id = \" . self::_EAV_REGISTRATION . \" AND item_id='\" . (int)$id . \"' LIMIT 1\");\n return $this->db->loadResult();\n }", "public static function taxpayerIdentificationNumber()\n {\n $firstEightDigits = static::numerify(static::randomElement(static::$firstEightDigitsFormat));\n $lastDigit = static::dvCalcMod11($firstEightDigits);\n\n return $firstEightDigits.$lastDigit;\n }", "public function getAccNumber()\n {\n return $this->accNumber;\n }", "function generate_receipt_no()\n {\n return m_setting('evaluation.receipt_prefix') . date('dmyHis');\n }", "public function get_serialNumber(): string\n {\n // $res is a string;\n // $dev is a YDevice;\n if ($this->_cacheExpiration == 0) {\n $dev = $this->_getDev();\n if (!($dev == null)) {\n return $dev->getSerialNumber();\n }\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::SERIALNUMBER_INVALID;\n }\n }\n $res = $this->_serialNumber;\n return $res;\n }", "public function getErrNo() {\n return $this->get(self::ERR_NO);\n }", "function ajax_get_data_pengajuan_by_registration_no()\n\t{\n\t\t$registration_no=$this->input->post('registration_no');\n\t\t$data=$this->model_transaction->get_data_pengajuan_by_registration_no($registration_no);\n\t\techo json_encode($data);\n\t}", "public function getTransactionNumber();", "public function getPurchaseOrderNumber();", "public function getGid()\n {\n $value = $this->get(self::GID);\n return $value === null ? (integer)$value : $value;\n }", "function get_seq_account_financing_no()\n\t{\n\t\t$product_code=$this->input->post('product_code');\n\t\t$cif_no=$this->input->post('cif_no');\n\t\t$data=$this->model_transaction->get_seq_account_financing_no($product_code,$cif_no);\n\t\t$jumlah=(int)$data['jumlah'];\n\t\tif(count($data)>0){\n\t\t\t$newseq=$jumlah+1;\n\t\t\tif($jumlah<10){\n\t\t\t\t$newseq='0'.$newseq;\n\t\t\t}\n\t\t}else{\n\t\t\t$newseq='01';\n\t\t}\n\t\t$return=array('newseq'=>$newseq);\n\t\techo json_encode($return);\n\t}", "public function getNum()\n {\n return $this->num;\n }", "public function getNum()\n {\n return $this->num;\n }", "public function getInfoSerialNumber() {\n //\n // 3COM\n return PNMSnmp::get($this, '1.3.6.1.2.1.47.1.1.1.1.11.1', Yii::app()->params['cacheTtlGetSnmp']);\n }", "function getFieldUniqueStudentIdentifier($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_USI');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_USI');\n\t\t$tooltip = setToolTipNotification(\"USI\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('usi') === 'usi' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br>\";\n\t\t\t$form_ret .= \"<input type='radio' name='usiOpt' value='haveUSI' id='haveUSI' class='usiRadion hideUSItextDisp' checked>I have a USI</br>\";\n\t\t\t$form_ret .= \"<div id='usidisp'><input type='text' placeholder='Please Enter Your USI here.' id='USI' name='USI' value='\".$value.\"' class='srms-field \".(get_axl_req_fields('usi') === 'usi' ? 'input-text-required' : '').\"' maxlength='10' minlength='10'><div id='USI_err_con'></div></br></div>\";\n\t\t\t$form_ret .= \"<input type='radio' name='usiOpt' value='createUSI' id='createUSI' class='usiRadion hideUSIfield'>Create a USI for me</br>\";\n\t\t\t$form_ret .= \"<input type='radio' name='usiOpt' value='linkUSI' id='linkUSI' class='usiRadion hideUSItextDisp'>Ill create a USI</br>\";\t\t\t\n\t\t\t$form_ret .= \"<input type='hidden' name='createUSIfield' value='' id='createUSIfield'><p id='USItextDisp' style='display: none;'>Trainee gives permission to create USI on their behalf</p>\";\n\t\t\t\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function getUsercode()\n {\n return $this->usercode;\n }", "public function getSelectRegister()\n {\n return ($this->isValueNumeric('nb_icontact_prospect_id'))\n ? $this->buildSentence(\n 'select * '\n . 'from nb_icontact_prospect '\n . \"where nb_icontact_prospect_id=%nb_icontact_prospect_id\\$d \"\n )\n : null;\n }", "public function getStNo(){\n return $this->student_no;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getValueIdentifier(): string;", "public function getOwnershipValue():int{\n return $this->ownership->getId();\n }" ]
[ "0.8395688", "0.784082", "0.7824128", "0.7662472", "0.7537308", "0.65893686", "0.6525186", "0.6495188", "0.63346237", "0.63072807", "0.6274422", "0.62463826", "0.6242624", "0.6202847", "0.62003464", "0.61889696", "0.61779964", "0.60931057", "0.6083957", "0.6040344", "0.60257334", "0.6006566", "0.5978742", "0.59756404", "0.59720784", "0.5966376", "0.5916012", "0.59067416", "0.59015006", "0.59005785", "0.5897188", "0.5897188", "0.5873459", "0.5873459", "0.58030635", "0.58009773", "0.57783365", "0.5772999", "0.57658947", "0.5761977", "0.57408905", "0.57370025", "0.5724733", "0.57091737", "0.5709146", "0.5697664", "0.5686904", "0.56843245", "0.56728536", "0.56709063", "0.56705046", "0.56523967", "0.5648107", "0.56445247", "0.56409466", "0.5627847", "0.56257045", "0.56076604", "0.5602887", "0.55947727", "0.55913955", "0.55867237", "0.558595", "0.5585636", "0.558304", "0.55745536", "0.5565864", "0.55566055", "0.5555638", "0.55521613", "0.5550232", "0.5550026", "0.554902", "0.5545578", "0.55430925", "0.5535311", "0.5521472", "0.5518542", "0.5515914", "0.5514875", "0.5514875", "0.5512761", "0.5511502", "0.5503819", "0.5494789", "0.54947543", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5493876", "0.5491988", "0.5490634" ]
0.87550956
0
Return the network that the address sits in
Верните сеть, в которой находится адрес
function network(){ return (long2ip((ip2long($this->address)) & (ip2long($this->netmask())))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetwork() {\n return $this->getValue('network');\n }", "public function getNetwork()\n {\n return $this->network;\n }", "public function getNetwork()\n {\n return $this->network;\n }", "public function getNetworkAddress()\n {\n return $this->_networkAddress;\n }", "public function getNetworkAddress()\n\t{\n\t\treturn $this->first_ip;\n\t}", "public function getNetwork() {\n return $this->_network;\n }", "public function getNetworkUri()\n {\n return $this->network_uri;\n }", "public function getNetworkUri()\n {\n return $this->network_uri;\n }", "public function getNetworkId(){\n\t\treturn self::NETWORK_ID;\n\t}", "public function getNetwork( $full = false )\n\t{\n\t\tif( !$this->valid ) { return null; }\n\t\tif( !$full ) \n\t\t{\n\t\t\treturn inet_ntop( $this->net_addr );\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn $this->inet_gmptofull( $this->net_addr_long );\n\t\t}\n\t}", "public function getActiveNetwork()\n {\n return $this->active_network;\n }", "function wp_get_network($network)\n {\n }", "Public Function NetworkId() {\n\t\treturn $this->networkId;\n\t\n\t}", "public function getCommunityNetwork()\n {\n return $this->communityNetwork;\n }", "public function getMainNet()\n {\n return $this->main_net;\n }", "public function getGivenIpWithNetmask()\n\t{\n\t\treturn $this->given_ip . \"/\" . $this->getMask();\n\t}", "public function getNetworkProfile()\n {\n return $this->network_profile;\n }", "public function getSourceNetworkUri()\n {\n return $this->source_network_uri;\n }", "function get_main_network_id()\n {\n }", "public function getDestinationNetworkUri()\n {\n return $this->destination_network_uri;\n }", "public function getNetworkUri()\n {\n return $this->readOneof(4);\n }", "public function get_wifi_network( $context = 'view' ) {\n\t\treturn $this->get_prop( 'wifi_network', $context );\n\t}", "public function getSubnetwork()\n {\n return $this->subnetwork;\n }", "public function getIPAddress(): string;", "public function getNatIP()\n {\n return isset($this->nat_i_p) ? $this->nat_i_p : '';\n }", "function get_network( $network = null ) {\n\tglobal $current_site;\n\tif ( empty( $network ) && isset( $current_site ) ) {\n\t\t$network = $current_site;\n\t}\n\n\tif ( $network instanceof WP_Network ) {\n\t\t$_network = $network;\n\t} elseif ( is_object( $network ) ) {\n\t\t$_network = new WP_Network( $network );\n\t} else {\n\t\t$_network = WP_Network::get_instance( $network );\n\t}\n\n\tif ( ! $_network ) {\n\t\treturn null;\n\t}\n\n\t/**\n\t * Fires after a network is retrieved.\n\t *\n\t * @since 4.6.0\n\t *\n\t * @param WP_Network $_network Network data.\n\t */\n\t$_network = apply_filters( 'get_network', $_network );\n\n\treturn $_network;\n}", "public function getNetworkMask()\n {\n return $this->_networkMask;\n }", "public function getNetworkMode()\n {\n return $this->_networkMode;\n }", "function getCellNetwork($if)\n {\n \t$arlines = array();\t\t//Store result of ifconfig command\n \texec('ifconfig '.escapeshellarg($if).' '.'2>&1 ', $arlines);\t//execute ifconfig\n \tdebug('(cell_controller.inc|getCellNetwork()) admin client api command: ifconfig '.escapeshellarg($if).' '.'2>&1 '); \t//DEBUG\n \tdebug('(cell_controller.inc|getCellNetwork()) admin client api command output: $arlines', $arlines); \t\t\t\t\t//DEBUG\n \t\n \t//convert array into single line of text\n \t$str='';\n \tforeach($arlines as $line)\n \t{\n \t\t$str=$str.$line;\n \t}\n \t\n \t//run regex on string and find: IP, Gateway, Subnet\n \t$regex=array();\n \tpreg_match(\"/^([A-z]*\\d)\\s+Link\\s+encap:([A-z-]*)\\s.*\\sinet addr:([0-9.]+)\\s*P-t-P:([0-9.]+)\\s*Mask:([0-9.]+)/ims\", $str, $regex);\n \t\n \t$interface = array();\n \tif( !empty($regex) ){\n \t\t$interface['name'] = $regex[1];\n \t\t$interface['type'] = $regex[2];\n \t\t$interface['ip'] = $regex[3];\n \t\t$interface['broadcast'] = $regex[4];\n \t\t$interface['mask'] = $regex[5];\n \t}\n \tdebug('(cell_controller.inc|getCellNetwork()) $interface array '.$interface); \t\t\t\t//DEBUG\n \t\n \treturn $interface;\n }", "public static function getAddress()\n {\n\n if( $_SERVER['REMOTE_ADDR'] == \"::1\" || $_SERVER['REMOTE_ADDR'] == \"localhost\" )\n {\n\n return gethostbyname( gethostname() );\n }\n\n return $_SERVER['REMOTE_ADDR'];\n }", "public function getExternalIpAddress() {\n\t\treturn trim(shell_exec(\"dig +short myip.opendns.com @resolver1.opendns.com\"));\n\t}", "function get_current_network_id()\n {\n }", "function network_code( $network ){\n $network = trim(strtolower( $network ) );\n switch ($network) {\n case 'mtn':\n case 'dstv':\n return '01';\n break;\n case 'glo':\n case 'gotv':\n return '02';\n break;\n case '9mobile':\n case 'etisalat':\n case 'startimes':\n return '03';\n break;\n default :\n // airtel\n return '04';\n }\n}", "public function getNetwork($ignorePrefix = false)\n {\n // micro-optimization to prevent calling getRange repeatedly\n $k = $ignorePrefix ? 1 : 0;\n if (!isset($this->cache['range'][$k])) {\n $this->cache['range'][$k] = $this->getRange($ignorePrefix);\n }\n return $this->cache['range'][$k][0];\n }", "public function getCustomNetHost() {\n return (string) $this->getValue('customnethost');\n }", "public function getAddress();", "public function getAddress();", "function _tsuiseki_tracking_get_network($opts = array(), $max_length = 254) {\n $max_length = (int)($max_length);\n $network = NULL;\n foreach (_tsuiseki_tracking_get_network_names() as $key) {\n if (empty($opts)) {\n if (isset($_GET[\"$key\"]) && !empty($_GET[\"$key\"])) {\n $network = (string)(trim(_check_plain($_GET[\"$key\"])));\n if (mb_strlen($network) > $max_length) {\n $network = substr($network, 0, $max_length);\n }\n break; // Schleife beenden\n }\n }\n else {\n if (isset($opts[\"$key\"]) && !empty($opts[\"$key\"])) {\n $network = (string)(trim(_check_plain($opts[\"$key\"])));\n if (mb_strlen($network) > $max_length) {\n $network = substr($network, 0, $max_length);\n }\n break; // Schleife beenden\n }\n }\n } // foreach\n if (empty($network)) {\n $network = 'free';\n }\n return $network;\n}", "public function getNetworkInfo(): \\stdClass\n {\n return $this->get('net_info');\n }", "public function getAddr()\n {\n return $this->addr->getAddr();\n }", "final public function getNetworkId(): int\n {\n return static::NETWORK_ID;\n }", "public static function network() {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip_address = $_SERVER['HTTP_CLIENT_IP'];\n //whether ip is from proxy\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];\n //whether ip is from remote address\n } else {\n $ip_address = $_SERVER['REMOTE_ADDR'];\n }\n\n //check to see if the dedicated network is used\n if ($ip_address == \"127.0.0.1\") {\n return view('login');\n } else {\n return view('restricted_access');\n }\n }", "public function getTrueCidr()\n {\n return $this->getNetwork() . '/' . $this->prefix;\n }", "function alias_expand_net($name) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name]) && is_subnet($aliastable[$name]))\n\treturn $aliastable[$name];\n\telse if (is_subnet($name))\n\treturn $name;\n\telse\n\treturn null;\n}", "public function get_global_ipv4_net()\n {\n $l_sql = 'SELECT * FROM isys_cats_net_list\n\t\t\tINNER JOIN isys_obj ON isys_obj__id = isys_cats_net_list__isys_obj__id\n\t\t\tLEFT JOIN isys_net_type ON isys_cats_net_list__isys_net_type__id = isys_net_type__id\n\t\t\tWHERE isys_obj__const = \"C__OBJ__NET_GLOBAL_IPV4\"\n\t\t\tAND isys_obj__undeletable = 1;';\n\n return $this->retrieve($l_sql)\n ->get_row();\n }", "public function getAddr() : string\n {\n return $this->addr;\n }", "public function getAddress() {\n\t\t\t# Default StyleSheet\n\t\t\tif (! $_REQUEST[\"stylesheet\"]) $_REQUEST[\"stylesheet\"] = 'network.address.xsl';\n\t\t\t$response = new \\HTTP\\Response();\n\t\n\t\t\t# Initiate Domain Object\n\t\t\t$address = new \\Network\\IPAddress();\n\t\t\tif (! isset($_REQUEST['address'])) $this->error(\"address required\");\n\t\n\t\t\t$address->get($_REQUEST['address']);\n\t\n\t\t\t# Error Handling\n\t\t\tif ($address->error()) $this->error($address->error());\n\t\t\telseif ($address->id) {\n\t\t\t\t$response->address = $address;\n\t\t\t\t$response->success = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$response->success = 0;\n\t\t\t\t$response->error = \"Address not found\";\n\t\t\t}\n\t\n\t\t\tapi_log('network',$_REQUEST,$response);\n\t\n\t\t\t# Send Response\n\t\t\tprint $this->formatOutput($response);\n\t\t}", "public function getInternet()\n {\n return $this->internet;\n }", "public function gatewayIpAddr()\n {\n $datas = 'N.A';\n\n if(exec('ip route | awk \\'/a/ { print $3 }\\'',$output))\n $datas = $output[0];\n\n return $datas;\n }", "public function getSocialNetworkInfo() {\n $retVal = array();\n// $retVal[] = \"Điện thoại: \" . $this->getPhone();\n if (isset($this->rSocialNetwork)) {\n foreach ($this->rSocialNetwork as $value) {\n $retVal[] = SocialNetworks::TYPE_NETWORKS[$value->type_network] . \": $value->value\";\n }\n }\n return implode('<br>', $retVal);\n }", "public function getNetworkDist() {\n return $this->networkDist;\n }", "public function getRemoteAddress();", "public function networks()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/networks');\n }", "public function getDeviceIP();", "function getBridgeNetmask() {\n return $this->bridgeNetmask;\n }", "public function getAddr()\n {\n return $this->get(self::_ADDR);\n }", "public function getUseIPAddress() \n \t{\n \t\treturn $this->use_ipaddr;\n \t}", "public function get_networks()\n {\n }", "public static function inet() {}", "public function getIdFactorNetwork()\n {\n return $this->id_factor_network;\n }", "function broadcast(){\n return (long2ip(ip2long($this->network())\n | (~(ip2long($this->netmask())))));\n }", "public function toString(): string\n {\n if ($this->isSingleHost()) {\n return $this->addrStr;\n } else {\n return $this->toCidrString();\n }\n }", "public static function getSystemFromAddress() {}", "function findBroad($sn,$net) {\n\n $ob = \"\";\n $ip = \"\";\n\n $oct = explode('.',$net);\n\n foreach($oct as $o) {\n \n for($i=0; $i < strlen($o); $i++) {\n\n if($sn > 0) {\n $ob[$i]= $o[$i]; // ottetto broadcast in copia\n $sn--;\n }\n else {\n $ob[$i]= \"1\";\n }\n }\n $ip.= $ob.\".\";\n }\n\n $ip = rtrim($ip, \".\");\n\n return $ip;\n\n}", "function common_get_network_config($net){\r\n\t$file = '/etc/network/interfaces';\r\n\t$curr = file_get_contents($file);\r\n\tif($net == 'ip'){\t\t\r\n\t\t$curr_ip = explode('#ip',$curr);\r\n\t\t$curr_ip = $curr_ip[1];\r\n\t\t$curr_ip = explode(' ', $curr_ip);\r\n\t\t$curr_ip = trim($curr_ip[1]);\r\n\t\t\r\n\t\treturn $curr_ip;\r\n\t}\r\n\telse if($net == 'subnet'){\r\n\t\t$curr_subnet = explode('#subnet',$curr);\r\n\t\t$curr_subnet = $curr_subnet[1];\r\n\t\t$curr_subnet= explode(' ', $curr_subnet);\r\n\t\t$curr_subnet = trim($curr_subnet[1]);\r\n\t\t\r\n\t\treturn $curr_subnet;\r\n\t}\r\n\telse if($net == 'gw'){\r\n\t\t$curr_gw = explode('#gw',$curr);\r\n\t\t$curr_gw = $curr_gw[1];\r\n\t\t$curr_gw= explode(' ', $curr_gw);\r\n\t\t$curr_gw = trim($curr_gw[1]);\r\n\t\t\r\n\t\treturn $curr_gw;\r\n\t}\r\n\telse if($net == 'dns'){\r\n\t\t$curr_dns = explode('#dns',$curr);\r\n\t\t$curr_dns = $curr_dns[1];\r\n\t\t$curr_dns= explode(' ', $curr_dns);\r\n\t\t$curr_dns = trim($curr_dns[1]);\r\n\t\t\r\n\t\treturn $curr_dns;\r\n\t}\t\r\n\t\r\n\treturn null;\r\n}", "public function getIpv6(): string;", "public function getAddress() {}", "public function getAdNetworkType()\n {\n return $this->ad_network_type;\n }", "public function getAddress() : string\n {\n return $_SERVER[\"REMOTE_ADDR\"] ?? \"\";\n }", "public function getNetworkIPv4()\n\t{\n\t\tif( !$this->valid ) { return null; }\n\t\tif( \\gmp_cmp( '4294967295', $this->net_addr_long ) > 0 )\n\t\t{\n\t\t\treturn \\gmp_strval( $this->net_addr_long );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '4294967295';\n\t\t}\n\t}", "public function getAdresseServeur() {\n $ad = (@$_SERVER['SERVER_ADDR'] == '::1') ? \"localhost\" : @$_SERVER['SERVER_ADDR'];\n\n return $ad;\n }", "function _tsuiseki_tracking_get_network_names() {\n return array(\n 'site',\n );\n}", "public function getAddr()\n {\n return $this->addr;\n }", "public function getIpv4();", "public static function getNetworkConfig($network)\n {\n $id = $network instanceof tx_t3socials_models_Network ? $network->getNetwork() : $network;\n if (!isset(self::$networks[$id])) {\n throw new Exception('Unknown network type: '.$id);\n }\n\n return self::$networks[$id];\n }", "function getAddress() {\n\t\t\t// check for https\n\t\t\t$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';\n\t\t\t// return the full address\n\t\t\treturn $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t\t}", "function get_networks($args = array())\n {\n }", "public function getRemoteAddress()\n {\n return stream_socket_get_name($this->socket, true);\n }", "public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }", "public function model()\n {\n return Network::class;\n }", "function get_localsubnet_ip_prefix()\n\t{\n\t\t// Consider using something like the 'IANA Private list' provided at http://sites.google.com/site/blocklist/ instead. \n\t\t// The data in this list is a subset of what IANA makes available at http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml\n\t\t// Note that you may want/need to add in the IPv6 equivalent, too: http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml\n\t\treturn \"192.\";\n\t}", "function get_networks( $args = array() ) {\n\t$query = new WP_Network_Query();\n\n\treturn $query->query( $args );\n}", "public function getNetValue()\n {\n return $this->netValue;\n }", "public function getSocialNetwork($type_network) {\n if (isset($this->rSocialNetwork)) {\n foreach ($this->rSocialNetwork as $value) {\n if ($value->type_network == $type_network) {\n return $value->value;\n }\n }\n }\n return '';\n }", "public function ip()\n\t{\n\t\treturn $this->Players->ip($this->SqueezePlyrID);\n\t}", "public function getAddress(): string\n {\n return $this->address;\n }", "public function getNetworkKey ()\r\n {\n return $this->getModelPlugin()->getNetworkKey();\r\n }", "function getIP() {\n return gethostbyname($this->host);\n }", "public function getClientAddress(): string {}", "public function getNetworkSettings() : NetworkSettings\n {\n return $this->networkSettings;\n }", "public function getBroadcastAddress()\n\t{\n\t\treturn $this->last_ip;\n\t}", "public function getSubnetworkUri()\n {\n return $this->readOneof(5);\n }", "public function address(): string\n {\n return $this->address;\n }", "function findNet($ip,$sm) {\n\n $res = \"\";\n\n // divido gli ottetti\n $exip = explode('.',$ip);\n $exsm = explode('.',$sm);\n\n for($i=0; $i<4; $i++) {\n\n $subip=$exip[$i]; // ottetto del IP\n $subsm=$exsm[$i]; // ottetto della SM\n\n for($k=0; $k<8; $k++) {\n \n if($subip[$k] & $subsm[$k]) {\n $res.=\"1\";\n }\n else {\n $res.=\"0\";\n }\n }\n\n // rimetto i punti (tranne alla fine)\n if($i<3) {\n $res.=\".\";\n }\n \n }\n\n return $res;\n}", "function getIpAddress()\n {\n foreach ([\n 'HTTP_CLIENT_IP',\n 'HTTP_X_FORWARDED_FOR',\n 'HTTP_X_FORWARDED',\n 'HTTP_X_CLUSTER_CLIENT_IP',\n 'HTTP_FORWARDED_FOR',\n 'HTTP_FORWARDED',\n 'REMOTE_ADDR'\n ] as $key) {\n if (array_key_exists($key, $_SERVER) === true) {\n foreach (explode(',', $_SERVER[$key]) as $ip) {\n $ip = trim($ip);\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) !== false) {\n return $ip;\n }\n }\n }\n }\n }", "function fann_get_network_type($ann)\n{\n}", "public function setNetwork($value)\n {\n return $this->set('Network', $value);\n }", "function getServiceAddress();", "public function setNetwork($value)\n {\n return $this->set('Network', $value);\n }", "public function setNetwork($value)\n {\n return $this->set('Network', $value);\n }" ]
[ "0.7977561", "0.7733832", "0.7733832", "0.765445", "0.7567131", "0.74935967", "0.717745", "0.717745", "0.6902588", "0.6861764", "0.68512464", "0.6730181", "0.6660419", "0.66421014", "0.659016", "0.6568117", "0.6542858", "0.653752", "0.65373695", "0.6483959", "0.64754814", "0.6453841", "0.64091676", "0.6383187", "0.6380038", "0.6367338", "0.6350221", "0.6336693", "0.6306057", "0.62959194", "0.62788785", "0.6246675", "0.6237159", "0.62360436", "0.6232373", "0.62313163", "0.62313163", "0.6225118", "0.61894894", "0.61890775", "0.6185252", "0.61784136", "0.617676", "0.61712825", "0.6157064", "0.6117837", "0.6104207", "0.6097559", "0.6093653", "0.60885274", "0.60527945", "0.60515344", "0.60271955", "0.60010445", "0.59990716", "0.5998501", "0.5995474", "0.59879726", "0.5986655", "0.5985724", "0.5985333", "0.5973979", "0.5973806", "0.59695715", "0.5964117", "0.5946972", "0.5944237", "0.59211767", "0.5918202", "0.5914939", "0.59022903", "0.5901678", "0.58866924", "0.58839816", "0.5873952", "0.5862094", "0.58434844", "0.5828528", "0.58098114", "0.580511", "0.57957053", "0.5781449", "0.576962", "0.5744962", "0.57142407", "0.57096946", "0.5702258", "0.5694881", "0.5694557", "0.56837726", "0.56799793", "0.5678748", "0.5664356", "0.5662024", "0.5650958", "0.5642714", "0.563373", "0.56316745", "0.56301886", "0.56301886" ]
0.8100448
0
Return the broadcast that the address sits in
Верните широковещательную рассылку, в которой находится адрес
function broadcast(){ return (long2ip(ip2long($this->network()) | (~(ip2long($this->netmask()))))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getBroadcast()\n {\n return new Address(self::LONG_BROADCAST);\n }", "public function getBroadcastAddress()\n\t{\n\t\treturn $this->last_ip;\n\t}", "public function getBroadcast( $full = false )\n\t{\n\t\tif( !$this->valid ) { return null; }\n\t\tif( !$full ) \n\t\t{\n\t\t\treturn inet_ntop( $this->net_broadcast );\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn $this->inet_gmptofull( $this->net_broadcast_long );\n\t\t}\n\t}", "public function getBroadcastId()\n\t{\n\n\t\treturn $this->broadcast_id;\n\t}", "public function broadcast()\n {\n return Broadcast::where('id', $this->broadcast_id)->first();\n }", "public function getBroadcast()\n {\n return $this->broadcast ?: session('broadcast', null);\n }", "public function getBroadcastIPv4()\n\t{\n\t\tif( !$this->valid ) { return null; }\n\t\tif( \\gmp_cmp( '4294967295', $this->net_broadcast_long ) > 0 )\n\t\t{\n\t\t\treturn \\gmp_strval( $this->net_broadcast_long );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '4294967295';\n\t\t}\n\t}", "function findBroad($sn,$net) {\n\n $ob = \"\";\n $ip = \"\";\n\n $oct = explode('.',$net);\n\n foreach($oct as $o) {\n \n for($i=0; $i < strlen($o); $i++) {\n\n if($sn > 0) {\n $ob[$i]= $o[$i]; // ottetto broadcast in copia\n $sn--;\n }\n else {\n $ob[$i]= \"1\";\n }\n }\n $ip.= $ob.\".\";\n }\n\n $ip = rtrim($ip, \".\");\n\n return $ip;\n\n}", "public function resolveBroadcast(string $name): string\n {\n return $this->resolveConnection('broadcasting', $name);\n }", "public function broadcastAs()\n {\n return $this->event;\n }", "public function broadcastOn(){\n return new Channel('local'.$this->local->id);\n }", "public function broadcastOn()\n {\n\n return new Channel('channels-broadcasts');\n\n //return new PrivateChannel('channel-name');\n }", "function network(){\n return (long2ip((ip2long($this->address))\n & (ip2long($this->netmask()))));\n }", "public function broadcastOn()\n {\n $str = explode('+',$this->format);\n return new Channel('game.' . $this->move->game_id . '.' . $str[0] . '.' . $str[1]);\n }", "public function via()\n {\n return ['broadcast'];\n }", "public function broadcastOn()\n {\n return new Channel('room-queue-screen-'. $this->area_uuid);\n// return new Channel('room-queue-screen');\n }", "public function broadcastOn();", "public function broadcastOn();", "public function broadcastAs()\n {\n return 'workice.event';\n }", "public function broadcastAs()\n {\n return 'game.won_by_robot';\n }", "public function getBroadcast($ignorePrefix = false)\n {\n // micro-optimization to prevent calling getRange repeatedly\n $k = $ignorePrefix ? 1 : 0;\n if (!isset($this->cache['range'][$k])) {\n $this->cache['range'][$k] = $this->getRange($ignorePrefix);\n }\n return $this->cache['range'][$k][1];\n }", "public function broadcastOn() {\n return new Channel('Everyone');\n }", "public function broadcastOn() {\n return new Channel('Everyone');\n }", "public function broadcastAs()\n {\n return OrderConst::Other2Order;\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new Channel('game.' . $this->game);\n }", "public static function getSystemFromAddress() {}", "public function receivesBroadcastNotificationsOn()\n {\n return 'bahar.'.$this->id;\n }", "public function model()\n {\n return Broadcast::class;\n }", "public function broadcastOn()\n {\n // Have no idea about this\n // return new PrivateChannel('channel-name');\n }", "private function _getSubnetBroadcastAddress($network, $cidr)\n {\n $host = $this->_getSubnetLastUsableHost($network, $cidr);\n return long2ip(ip2long($host)+1);\n }", "public function broadcastOn()\n {\n return [\"user.{$this->user->id}\"];\n }", "public function broadcastOn()\n {\n return [$this->reciever_id];\n }", "public static function getAddress()\n {\n\n if( $_SERVER['REMOTE_ADDR'] == \"::1\" || $_SERVER['REMOTE_ADDR'] == \"localhost\" )\n {\n\n return gethostbyname( gethostname() );\n }\n\n return $_SERVER['REMOTE_ADDR'];\n }", "public function broadcastOn()\n\t{\n\t\treturn new Channel('game:' . $this->id);\n\t}", "public function gatewayIpAddr()\n {\n $datas = 'N.A';\n\n if(exec('ip route | awk \\'/a/ { print $3 }\\'',$output))\n $datas = $output[0];\n\n return $datas;\n }", "public function broadcastOn()\n {\n// return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n// return new PrivateChannel('channel-name');\n }", "public function getAddress();", "public function getAddress();", "public function broadcastOn() {\n// return new PrivateChannel('channel-name');\n }", "public function getNetworkAddress()\n\t{\n\t\treturn $this->first_ip;\n\t}", "public function broadcastOn()\n {\n return new PresenceChannel(\"locations.\" . $this->location->trackable_type . \".\" . $this->trackable->uuid);\n }", "public function broadcastOn()\n {\n return ['food-channel.'.$this->restaurant->id];\n\n }", "public function broadcastOn()\n {\n return new PresenceChannel(\"room.{$this->message->room_id}\");\n }", "public function broadcastAs()\n {\n return 'notification\\\\item\\\\amount-updated';\n }", "public function broadcastOn()\n\t{\n\t\treturn new Channel('game.ttt.' . $this->id);\n\t}", "public function broadcastOn()\n\t{\n\t\treturn new Channel('game.ttt.' . $this->id);\n\t}", "public function broadcastOn()\n {\n return ['absensi-new'];\n }", "public function broadcastOn()\n {\n return new Channel('chan-laralight');\n }", "public function getAddress() : string\n {\n return $_SERVER[\"REMOTE_ADDR\"] ?? \"\";\n }", "public function isBroadcasted();", "public function broadcastOn()\n {\n return ['scammer'];\n }", "public function broadcastOn()\n {\n return new PrivateChannel(self::CHANNEL_NAME);\n }", "public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }", "public function broadcastOn()\n {\n return new Channel('countries');\n }", "public function getAddr()\n {\n return $this->get(self::_ADDR);\n }", "public function broadcastOn()\n {\n return ['CFSite'];\n }", "public function getBroadcast($con = null)\n\t{\n\t\tif ($this->aBroadcast === null && ($this->broadcast_id !== null)) {\n\t\t\t// include the related Peer class\n\t\t\tinclude_once 'lib/model/om/BaseBroadcastPeer.php';\n\n\t\t\t$this->aBroadcast = BroadcastPeer::retrieveByPK($this->broadcast_id, $con);\n\n\t\t\t/* The following can be used instead of the line above to\n\t\t\t guarantee the related object contains a reference\n\t\t\t to this object, but this level of coupling\n\t\t\t may be undesirable in many circumstances.\n\t\t\t As it can lead to a db query with many results that may\n\t\t\t never be used.\n\t\t\t $obj = BroadcastPeer::retrieveByPK($this->broadcast_id, $con);\n\t\t\t $obj->addBroadcasts($this);\n\t\t\t */\n\t\t}\n\t\treturn $this->aBroadcast;\n\t}", "public function broadcastOn()\n {\n return ['my-channel'];\n }", "public function broadcastOn()\n {\n $id = $this->user->id?? 0;\n return new PresenceChannel(\"$this->app_id.User.$id\");\n }", "public function broadcastOn()\n {\n return ['new-message'.$this->for_user_id];\n }", "public function broadcastOn()\n {\n return new Channel('histopatologia.'.$this->object['serial']);\n }", "public function broadcastOn()\n {\n return new PrivateChannel('game.' . $this->game[\"game_id\"]);\n }", "public function broadcastOn()\n {\n return ['whatcanido-channel'];\n }", "public function getDeviceIP();", "public function broadcastOn()\n {\n return new Channel('test');\n }", "public function getRemoteAddress()\n {\n return stream_socket_get_name($this->socket, true);\n }", "public function broadcastOn()\n {\n return [config('messenger.redis_channel', 'notification')];\n }", "public function getAddr()\n {\n return $this->addr->getAddr();\n }", "public function broadcastOn()\n {\n return ['laravue-channel'];\n }", "public function broadcastOn()\n {\n return new PrivateChannel('messagelive');\n }", "function WakeOnLan($addr, $mac) {\n\t$addr_byte = explode(':', $mac);\n\t$hw_addr = '';\n\n\tfor ($a = 0; $a < 6; $a++) {\n\t\t$hw_addr .= chr(hexdec($addr_byte[$a]));\n\t}\n\n\t$msg = chr(255).chr(255).chr(255).chr(255).chr(255).chr(255);\n\n\tfor ($a = 1; $a <= 16; $a++) {\n\t\t$msg .= $hw_addr;\n\t}\n\n\t// send it to the broadcast address using UDP\n\t$s = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);\n\tif ($s == false) {\n\t\tlog_error(gettext(\"Error creating socket!\"));\n\t\tlog_error(sprintf(gettext(\"Error code is '%1\\$s' - %2\\$s\"), socket_last_error(), socket_strerror(socket_last_error())));\n\t} else {\n\t\t// setting a broadcast option to socket:\n\t\t$opt_ret = socket_set_option($s, 1, 6, TRUE);\n\t\tif ($opt_ret < 0) {\n\t\t\tlog_error(sprintf(gettext(\"setsockopt() failed, error: %s\"),\n\t\t\t\t\t\t\t socket_strerror(socket_last_error($s))));\n\t\t}\n\t\t$e = socket_sendto($s, $msg, strlen($msg), 0, $addr, 2050);\n\t\tsocket_close($s);\n\t\tlog_error(sprintf(gettext('Magic Packet sent (%1$s) to (%2$s) MAC=%3$s'), $e, $addr, $mac));\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "public function phery_broadcast($name, array $params = array())\n\t{\n\t\t$this->last_selector = null;\n\t\treturn $this->cmd(12, array($name, array($this->typecast($params, true, true)), true));\n\t}", "public function getExternalIpAddress() {\n\t\treturn trim(shell_exec(\"dig +short myip.opendns.com @resolver1.opendns.com\"));\n\t}", "public function getAddr() : string\n {\n return $this->addr;\n }", "public function broadcastOn()\n {\n return new Channel('riskgenius');\n }", "public function broadcastOn()\n {\n return new PresenceChannel('chatroom');\n }", "private function _locate_hw() {\n\t\t$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);\t\t\n\t\tsocket_bind($socket, \"0.0.0.0\", 55555);\n\t\t\n\t\t$timeout = array('sec'=>20,'usec'=>0);\n\t\tsocket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO,$timeout);\n\t\tsocket_set_option($socket, SOL_SOCKET, SO_BROADCAST, 1);\n\t\tsocket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\tsocket_set_option($socket, SOL_SOCKET, SO_DEBUG, 0);\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\tsocket_recvfrom($socket, $buf, 512, 0, $remote_ip, $remote_port);\t\t\t\n\t\t\tif (strpos($buf,'HomeWizard') !== false) {\n\t\t\t\t$this->ip_address = $remote_ip;\t\t\t\t\n\t\t\t\tsocket_close($socket);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tsocket_close($socket);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\t\t\n\t}", "public function getNetworkAddress()\n {\n return $this->_networkAddress;\n }", "public function getAddress() {}", "public function broadcastAs()\n {\n return 'laravue.user.register';\n }", "public function getAddr()\n {\n return $this->addr;\n }", "public function broadcastOn() {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n // return new PrivateChannel('channel-name');\n return new Channel('messages');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('notification-'.$this->postNotification->broadcast_id);\n }", "function broadcast_info() {\n\t\n\t// Get term_id\n\tif ( is_tax( 'broadcast' ) ) {\n\t\t$term_id = get_queried_object()->term_id;\n\t} elseif ( is_single() ) {\n\t\t$term_id = get_broadcast();\n\t} else {\n\t\techo '<pre>' . __( 'No $term_id specified in broadcast_info()', 'rabe' ) . '</pre>';\n\t}\n\t\n\t// Get \"general\" broadcast\n\t$rabe_options = get_option( 'general_broadcast' );\n\t$general_broadcast = $rabe_options['general_broadcast'];\n\t\n\t?>\n\t<div class=\"broadcast-side\">\n\t\t<?php \n\t\t\t// Check includes/broadcast.php for rabe_broadcast_ functions\n\t\t\techo rabe_broadcast_image( $term_id );\n\t\t\techo rabe_broadcast_description( $term_id );\n\t\t\techo rabe_broadcast_websites( $term_id );\n\t\t\t// Don't display this on \"genereal\" broadcast\n\t\t\t// TESTME\n\t\t\tif ( ! $general_broadcast ) {\n\t\t\t\techo rabe_broadcast_members( $term_id );\n\t\t\t\techo rabe_broadcast_times( $term_id );\n\t\t\t\techo rabe_broadcast_portrait( $term_id );\n\t\t\t\techo broadcast_support_button( $term_id );\n\t\t\t}\n\t\t?>\n\t</div>\n\t<?php\n\n}", "public function broadcastWith()\n {\n return $this->transformer->transform($this->scammer);\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return new PrivateChannel('channel-name');\n }" ]
[ "0.8530555", "0.7783517", "0.73421144", "0.6952528", "0.6876339", "0.67278516", "0.6628287", "0.63725954", "0.6313243", "0.631144", "0.6306961", "0.6157539", "0.61327916", "0.6109643", "0.61061317", "0.6049008", "0.60018235", "0.60018235", "0.5975159", "0.5895933", "0.58503616", "0.58496314", "0.58496314", "0.5836009", "0.5826293", "0.5826293", "0.5826293", "0.5826293", "0.58232635", "0.5822362", "0.58128667", "0.5804222", "0.57746667", "0.5773891", "0.57643497", "0.5761925", "0.5756752", "0.57560647", "0.57539517", "0.575309", "0.575309", "0.573827", "0.573827", "0.5711018", "0.5696423", "0.5696044", "0.56912947", "0.5688766", "0.5677724", "0.56580204", "0.56580204", "0.5647378", "0.5644679", "0.56151766", "0.5613469", "0.56100166", "0.5590515", "0.5582627", "0.5564949", "0.5564557", "0.55641514", "0.555708", "0.55568516", "0.5549913", "0.55485547", "0.5541149", "0.55343753", "0.5526018", "0.5524792", "0.55196005", "0.5519443", "0.5512658", "0.55120605", "0.55081016", "0.5505654", "0.54955477", "0.54705113", "0.5469325", "0.5459025", "0.5453424", "0.5450226", "0.54437065", "0.54397196", "0.5436947", "0.5429596", "0.5429265", "0.5423509", "0.54167825", "0.54090625", "0.54030204", "0.5401754", "0.53856575", "0.53856575", "0.53856575", "0.53856575", "0.53856575", "0.53856575", "0.53856575", "0.53856575", "0.53856575" ]
0.806475
1
Return the inverse mask of the netmask
Верните обратную маску подсети
function inverse(){ return (long2ip(~(ip2long("255.255.255.255") << (32-$this->netbits)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetworkMask()\n {\n return $this->_networkMask;\n }", "public static function getInverse()\n {\n return static::$inverse;\n }", "public function invert();", "public function getMask()\n {\n return $this->mask;\n }", "public function getMask()\n {\n return $this->mask;\n }", "public function getMask()\n {\n return $this->mask;\n }", "public function getGivenIpWithNetmask()\n\t{\n\t\treturn $this->given_ip . \"/\" . $this->getMask();\n\t}", "public function getMask()\n {\n return self::prefix_to_mask($this->prefix, $this->version);\n }", "public function getMask(): string {\n return $this->mask;\n }", "protected function getMask($mask)\n {\n if (is_array($mask)) {\n $mask = array_reduce($mask, function ($combined, $val) {\n return $combined |= $this->getMask($val);\n }, 0);\n }\n\n return parent::getMask($mask);\n }", "public function getInverted() {\r\n return $this->inverted;\r\n }", "public function getInverse()\r\n\t{\r\n\t\tif (!$this->inverseField)\r\n\t\t\t$this->inverseField = O_Dao_TableInfo::get( $this->target )->getFieldInfo( $this->inverse );\r\n\t\treturn $this->inverseField;\r\n\t}", "function network(){\n return (long2ip((ip2long($this->address))\n & (ip2long($this->netmask()))));\n }", "private function _convertNetworkMaskToWildcart($networkMask)\n {\n return long2ip(pow(2, 32)-1 ^ ip2long($networkMask));\n }", "protected function inverse() {\n $this->invert = true;\n return $this;\n }", "public function invert() {\n if (isset($this->_resource)) {\n imagefilter($this->_resource, IMG_FILTER_NEGATE);\n } else {\n trigger_error(\"CAMEMISResizeImage::invert() attempting to access a non-existent resource (check if the image was loaded by CAMEMISResizeImage::__construct())\", E_USER_WARNING);\n }\n\n return $this;\n }", "function broadcast(){\n return (long2ip(ip2long($this->network())\n | (~(ip2long($this->netmask())))));\n }", "public function inverse() : self\n {\n $a = self::identity($this->m)\n ->augmentLeft($this)\n ->rref()\n ->a()\n ->asArray();\n\n $b = [];\n\n foreach ($a as $rowA) {\n $b[] = array_slice($rowA, $this->n);\n }\n\n return self::quick($b);\n }", "public function getExpectedMask()\n {\n return isset($this->expected_mask) ? $this->expected_mask : null;\n }", "public function getInverse(): Matrix\n {\n $matrix = new self(clone $this->table);\n $matrix->inverse();\n return $matrix;\n }", "public function invert( $A );", "function unmask($text) {\r\n\t\r\n\t$length = ord($text[1]) & 127;\r\n\tif($length == 126) {\r\n\t\t$masks = substr($text, 4, 4);\r\n\t\t$data = substr($text, 8);\r\n\t}\r\n\telseif($length == 127) {\r\n\t\t$masks = substr($text, 10, 4);\r\n\t\t$data = substr($text, 14);\r\n\t}\r\n\telse {\r\n\t\t$masks = substr($text, 2, 4);\r\n\t\t$data = substr($text, 6);\r\n\t}\r\n\t$text = \"\";\r\n\tfor ($i = 0; $i < strlen($data); ++$i) {\r\n\t\t$text .= $data[$i] ^ $masks[$i%4];\r\n\t}\r\n\treturn $text;\r\n}", "function unmask($text) {\n\t$length = ord($text[1]) & 127;\n\tif($length == 126) {\n\t\t$masks = substr($text, 4, 4);\n\t\t$data = substr($text, 8);\n\t}\n\telseif($length == 127) {\n\t\t$masks = substr($text, 10, 4);\n\t\t$data = substr($text, 14);\n\t}\n\telse {\n\t\t$masks = substr($text, 2, 4);\n\t\t$data = substr($text, 6);\n\t}\n\t$text = \"\";\n\tfor ($i = 0; $i < strlen($data); ++$i) {\n\t\t$text .= $data[$i] ^ $masks[$i%4];\n\t}\n\treturn $text;\n}", "function mask2cidr($mask){\n\t$long = ip2long($mask);\n\t$base = ip2long('255.255.255.255');\n\treturn 32-log(($long ^ $base)+1,2);\n}", "public function inverse(): Matrix\n {\n $this->validateDimensions($this, self::SQUARE | self::INVERTIBLE);\n\n if ($this->y === 1) {\n return new self([[1 / $this->get(0, 0)]]);\n }\n\n $adjugate = $this->getAdjugate();\n $this->setData($adjugate->divide($this->determinant()));\n\n return $this;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "public function unmask($text)\n {\n $length = ord($text[1]) & 127;\n if ($length == 126) {\n $masks = substr($text, 4, 4);\n $data = substr($text, 8);\n } elseif ($length == 127) {\n $masks = substr($text, 10, 4);\n $data = substr($text, 14);\n } else {\n $masks = substr($text, 2, 4);\n $data = substr($text, 6);\n }\n $text = \"\";\n for ($i = 0; $i < strlen($data); ++$i) {\n $text .= $data[$i] ^ $masks[$i % 4];\n }\n return $text;\n }", "private function unmask($text)\n\t{\n\t\t\t$length = ord($text[1]) & 127;\n\t\t\tif ($length == 126) {\n\t\t\t\t\t$masks = substr($text, 4, 4);\n\t\t\t\t\t$data = substr($text, 8);\n\t\t\t} elseif ($length == 127) {\n\t\t\t\t\t$masks = substr($text, 10, 4);\n\t\t\t\t\t$data = substr($text, 14);\n\t\t\t} else {\n\t\t\t\t\t$masks = substr($text, 2, 4);\n\t\t\t\t\t$data = substr($text, 6);\n\t\t\t}\n\t\t\t$text = \"\";\n\t\t\tfor ($i = 0; $i < strlen($data); ++ $i) {\n\t\t\t\t\t$text .= $data[$i] ^ $masks[$i % 4];\n\t\t\t}\n\t\t\treturn $text;\n\t}", "public function getUpdateMask()\n {\n return isset($this->update_mask) ? $this->update_mask : null;\n }", "public function getUpdateMask()\n {\n return isset($this->update_mask) ? $this->update_mask : null;\n }", "private static function _Mask2cidr($mask) {\n\t\t$long = ip2long($mask);\n\t\t$base = ip2long('255.255.255.255');\n\t\treturn 32-log(($long ^ $base)+1,2);\n\t}", "function gen_subnet_mask($bits) {\n\treturn long2ip(gen_subnet_mask_long($bits));\n}", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "public function negate()\n\t{\n\t\t$this->not_in = !$this->not_in;\n\t}", "protected function get_grayout() {\n return 0;\n }", "public function inverse(): matrix|null {\n if (!$this->isSquare()) {\n self::_err('Error::invalid Size of matrix!');\n }\n $imat = $this->copyMatrix();\n $ipiv = vector::factory($this->row, vector::INT);\n $lp = core\\lapack::sgetrf($imat, $ipiv);\n if ($lp != 0) {\n return null;\n }\n $lp = core\\lapack::sgetri($imat, $ipiv);\n if ($lp != 0) {\n return null;\n }\n unset($ipiv);\n unset($lp);\n return $imat;\n }", "public function inverse()\n {\n if (!$this->isSquare($this)) {\n throw new MatrixException('Inverse can only be called on square matrices: ' . print_r($this->internal, true));\n }\n\n if ($this->determinant() == 0) {\n throw new MatrixException('This matrix has a zero determinant and is therefore not invertable: ' . print_r($this->internal, true));\n }\n\n if ($this->isSymmetric()) {\n try {\n return $this->choleskyInverse();\n } catch (Exception $exception) {\n // Allow this to fall through to the more general algorithm.\n }\n }\n\n // Use LU decomposition for the general case.\n return $this->getLUDecomp()->inverse();\n }", "private function _convertCIDRToNetworkMask($cidr)\n {\n return long2ip(pow(2, 32)-1<<32-$cidr);\n }", "public function inverseOf($value)\n {\n $this->setProperty('inverseOf', $value);\n return $this;\n }", "function negate() { # :: Num -> Num\n return -$this->value;\n }", "public function getMaskingString(): string;", "function opposite()\n\t\t{\n\t\t\t$res = new Vector(array('dest' => new Vertex(array(\n\t\t\t\t'x' => -$this->_x,\n\t\t\t\t'y' => -$this->_y,\n\t\t\t\t'z' => -$this->_z\n\t\t\t))));\n\t\t\treturn ($res);\n\t\t}", "public function negate()\n {\n return $this->copy(null, null, !$this->isNegative());\n }", "public function negate()\n {\n $this->_not = true;\n return $this;\n }", "function getBridgeNetmask() {\n return $this->bridgeNetmask;\n }", "public static function ignoreMaskChannels()\n {\n return new FlagQualifier(self::IGNORE_MASK_CHANNELS);\n }", "public function negate(): self;", "public function getMaskBuilder()\n {\n return new MaskBuilder();\n }", "public function unMaskPayload() {\n if (!$this->isMasked()) {\n return $this;\n }\n\n $maskingKey = $this->getMaskingKey();\n\n $byte = sprintf('%08b', ord(substr($this->data, 1, 1)));\n\n $this->data = substr_replace($this->data, static::encode(substr_replace($byte, '0', 0, 1)), 1, 1);\n $this->data = substr_replace($this->data, '', $this->getNumPayloadBytes() + 1, static::MASK_LENGTH);\n\n $this->bytesRecvd -= static::MASK_LENGTH;\n $this->data = substr_replace($this->data, $this->applyMask($maskingKey), $this->getPayloadStartingByte(), $this->getPayloadLength());\n\n return $this;\n }", "function negate() {\n static $negate = false;\n $negate = $negate ?: curry(function($x){\n return -$x;\n });\n return _apply($negate, func_get_args());\n}", "public function getDirMask()\n\t{\n\t\treturn $this->dir_mask;\n\t}", "private static function getMaskOnes(int $n): int {\n // so (1 << 63) - 1 gets converted to float and loses precision (leading to incorrect result)\n // 2. (1 << 64) - 1 works fine, because (1 << 64) === 0 (it overflows) and -1 is exactly what we want\n // (`php -r 'var_dump(decbin(-1));'` => string(64) \"111...11\")\n $bit = 1 << $n;\n return $bit === PHP_INT_MIN ? ~$bit : $bit - 1;\n }", "public function getNegative(): Matrix\n {\n return $this->map(function ($cell) {\n return $cell * -1;\n });\n }", "function get_netmask($netmask) {\n $_netmask = $netmask;\n if(is_numeric($netmask)) {\n $num_arr_netmask = array();\n $str_arr_netmask = str_split(str_pad(str_pad('', $netmask, '1'), 32, '0'), 8);\n foreach($str_arr_netmask as $s) {\n $num_arr_netmask[] = bindec($s);\n }\n $_netmask = join($num_arr_netmask, '.');\n }\n\n return $_netmask;\n}", "public function setMask($mask)\n {\n $this->mask = $mask;\n return $this;\n }", "function inverse($matrix){\n\t$det = determinant($matrix);\n\tif($det == 0){\n\t\tthrow new Exception(\"Determinant is equal to 0, the inverse matrix does not exists\");\n\t}\n\t$rows = count($matrix);\n\t$cols = count($matrix[0]);\n\t$cm = Array();\n\tfor($i=0;$i<$rows;$i++){\n\t\t$row = Array();\n\t\tfor($j=0;$j<$cols;$j++){\n\t\t\tarray_push($row, ((-1)**($i+$j))*cofactor($matrix, $i, $j));\n\t\t}\n\t\tarray_push($cm, $row);\n\t}\n\t\n\t$cmt = transpose($cm);\n\tfor($i=0;$i<$cols;$i++){\n\t\tfor($j=0;$j<$rows;$j++){\n\t\t\t$cmt[$i][$j] /= $det;\n\t\t}\n\t}\n\t\n\treturn $cmt;\n}", "public static function inverse(array $data)\n {\n self::transform_internal($data, +1);\n // Normalize\n $nd = count($data);\n $n = intdiv($nd, 2);\n $norm = 1 / ((double)$n);\n for ($i = 0; $i < $nd; $i++)\n $data[$i] *= $norm;\n }", "public static function inverse($message, $attributes = array())\n\t{\n\t\treturn static::show(Labels::INVERSE, $message, $attributes);\n\t}", "public function oddMask()\n {\n $low = (-($this->low & 1)) & 0xFFFFFFFF;\n $high = $low;\n return UInt64::newValue($high, $low);\n }", "public function mask2Cidr($mask)\n {\n $base_mask = $this->convertIp2Long(self::NETMASK);\n return 32-log(($mask ^ $base_mask)+1,2);\n }", "private function get_maskLen()\n\t{\n\t\treturn $this->m_maskLen;\n\t}", "public static function maskToCIDR($netmask){\r\nif(self::validNetMask($netmask))\r\n\treturn self::countSetBits($netmask);\r\nelse\r\n\tthrow new Exception('Invalid Netmask');\r\n}", "private static function maskToByteArray($mask)\n {\n // Generate an address from the mask\n $addr = str_repeat(\"f\", $mask / 4);\n \n // Append uneven bit\n switch ($mask % 4) {\n case 1:\n $addr .= '8';\n break;\n\n case 2:\n $addr .= 'c';\n break;\n\n case 3:\n $addr .= 'e';\n break;\n }\n \n // Pad the address with zeroes\n $addr = str_pad($addr, 32, '0');\n \n // Pack the address\n $addr = pack('H*', $addr);\n\n // Return the packed address\n return $addr;\n }", "function inversecouleur($color) {\n\n $C1 = dechex(255-hexdec(substr($color, 1, 2)));\n $C2 = dechex(255-hexdec(substr($color, 3, 2)));\n $C3 = dechex(255-hexdec(substr($color, 5, 2)));\n \n if (strlen($C1) == 1) {\n $C1 = '0'.$C1;\n \n }\n elseif (strlen($C2) == 1) {\n $C2 = '0'.$C2;\n \n }\n elseif (strlen($C3) == 1) {\n $C3 = '0'.$C3;\n \n }\n $color = strtoupper($C1) . strtoupper($C2) . strtoupper($C3);\n return '#'.$color;\n // On prend les caract�res de la couleur $color deux par deux et\n // on les mets dans des variables\n // On transforme les paires de 2 caract�res en d�cimal\n // On inverse chaque partie de la couleur en la soustrayant au maximum (255)\n // On remet chaque partie de la couleur en hexad�cimal\n // Si le nombre hexad�cimal ne prend qu'un caract�re (par exemple 'A') on le \n // transforme en '0A' car une couleur est toujours faite de 6 caract�res\n // On retourne l'inverse de la couleur fournie $color\n}", "public function negate() : self\n {\n $b = [];\n\n foreach ($this->a as $rowA) {\n $rowB = [];\n\n foreach ($rowA as $valueA) {\n $rowB[] = -$valueA;\n }\n\n $b[] = $rowB;\n }\n\n return self::quick($b);\n }", "public function createMaskBuilder()\n {\n return new MaskBuilder();\n }", "function mirrorBits($a) {\n return bindec(strrev(decbin($a)));\n}", "public function setMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Firestore\\V1beta1\\DocumentMask::class);\n $this->mask = $var;\n\n return $this;\n }", "function dotbin($binin,$cdr_nmask){\n\tif ($binin==\"N/A\") return $binin;\n\t$oct=rtrim(chunk_split($binin,8,\".\"),\".\");\n\tif ($cdr_nmask > 0){\n\t\t$offset=sprintf(\"%u\",$cdr_nmask/8) + $cdr_nmask ;\n\t\treturn substr($oct,0,$offset ) . \"&nbsp;&nbsp;&nbsp;\" . substr($oct,$offset) ;\n\t} else {\n\treturn $oct;\n\t}\n}", "public function getComplement() \n {\n return $this->complement;\n }", "public function getInvisible()\n\t{\n\t\treturn $this->invisible;\n\t}", "public function getInvisibleFlag() {}", "public static function negInts()\n {\n return self::ints()->fmap(function ($x) {\n return -abs($x);\n });\n }", "function inet6_prefix_to_mask($prefix)\r\n{\r\n /* Make sure the prefix is a number between 1 and 127 (inclusive) */\r\n $prefix = intval($prefix);\r\n if ($prefix < 0 || $prefix > 128) return false;\r\n $mask = '0b';\r\n for ($i = 0; $i < $prefix; $i++) $mask .= '1';\r\n for ($i = strlen($mask) - 2; $i < 128; $i++) $mask .= '0';\r\n $mask = gmp_strval(gmp_init($mask), 16);\r\n for ($i = 0; $i < 8; $i++) {\r\n $result .= substr($mask, $i * 4, 4);\r\n if ($i != 7) $result .= ':';\r\n } // for\r\n return inet6_compress($result);\r\n}", "public static function maskLower(): BitMask\n {\n static $mask = null;\n if (empty($mask)) {\n $mask = self::maskAll()\n ->remove(self::ALERT)\n ->remove(self::CRITICAL)\n ->remove(self::EMERGENCY)\n ->remove(self::ERROR);\n }\n return clone $mask;\n }", "public static function maskHigher(): BitMask\n {\n static $mask = null;\n if (empty($mask)) {\n $mask = self::maskAll()\n ->remove(self::DEBUG)\n ->remove(self::INFO)\n ->remove(self::NOTICE)\n ->remove(self::WARNING);\n }\n return clone $mask;\n }", "function invert(callable $x): callable\n{\n return function ($y) use ($x): bool {\n return ! $x($y);\n };\n}", "public function modif_boolbin() \r\n\t{\r\n\t\t$this->boolbin = abs($this->boolbin-1);\t\r\n\t}", "public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "static function ip__mask__long_to_number($long_mask)\n\t{\n\t\t$num_mask = strpos((string)decbin($long_mask), '0');\n\t\treturn $num_mask === false ? 32 : $num_mask;\n\t}", "function mc_inverse_color( $color ) {\n\t$color = str_replace( '#', '', $color );\n\tif ( strlen( $color ) != 6 ) {\n\t\treturn '#000000';\n\t}\n\t$rgb = '';\n\t$total = 0;\n\t$red = 0.299 * ( 255 - hexdec( substr( $color, 0, 2 ) ) );\n\t$green = 0.587 * ( 255 - hexdec( substr( $color, 2, 2 ) ) );\n\t$blue = 0.114 * ( 255 - hexdec( substr( $color, 4, 2 ) ) );\n\t$luminance = 1 - ( ( $red + $green + $blue ) / 255 );\n\tif ( $luminance < 0.5 ) {\n\t\treturn '#ffffff';\n\t} else {\n\t\treturn '#000000';\n\t}\n}", "public function reset()\n {\n $this->mask = 0;\n\n return $this;\n }", "private static function InetToBits($inet)\n\t{\n\t\t$unpacked = @unpack('A16', $inet);\n\t\tif ($unpacked===false) {\n\t\t\treturn false;\n\t\t}\n\t\t$unpacked = str_split($unpacked[1]);\n\t\t$binaryip = '';\n\t\tforeach ($unpacked as $char) {\n\t\t\t$binaryip .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);\n\t\t}\n\t\treturn $binaryip;\n\t}", "public static function negate(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() * -1);\n\t\t}", "public static function maskAll(): BitMask\n {\n static $mask = null;\n if (\\is_null($mask)) {\n $mask = new BitMask();\n foreach (static::listLevels() as $level) {\n $mask->add($level);\n }\n }\n return clone $mask;\n }", "public function getComplement()\n {\n return $this->complement;\n }", "function findNet($ip,$sm) {\n\n $res = \"\";\n\n // divido gli ottetti\n $exip = explode('.',$ip);\n $exsm = explode('.',$sm);\n\n for($i=0; $i<4; $i++) {\n\n $subip=$exip[$i]; // ottetto del IP\n $subsm=$exsm[$i]; // ottetto della SM\n\n for($k=0; $k<8; $k++) {\n \n if($subip[$k] & $subsm[$k]) {\n $res.=\"1\";\n }\n else {\n $res.=\"0\";\n }\n }\n\n // rimetto i punti (tranne alla fine)\n if($i<3) {\n $res.=\".\";\n }\n \n }\n\n return $res;\n}", "public function getAllSetFieldsMask()\n {\n return isset($this->all_set_fields_mask) ? $this->all_set_fields_mask : null;\n }", "private function setIPv6( $addr, $mask )\n\t{\n\t\t$this->net_addr = @inet_pton($addr);\n\t\tif( $this->net_addr == false )\n\t\t{\n\t\t\tthrow new \\Exception( \"invalid ip address {$addr}\" );\n\t\t} \n\t\t$this->valid = true;\n\t\t$this->net_addr_long = $this->inet_ntogmp( $this->net_addr );\n\t\t//$this->inet_gmpton( $this->net_addr_long );\n\t\t\t\n\t\t// set the netmask\n\t\tif( preg_match( '/^[0-9]+$/', $mask ))\n\t\t{\n\t\t\t$this->net_mask_bits = intval( $mask );\n\t\t\tif( $this->ipv4 && $this->net_mask_bits != 0 ){\n\t\t\t\t$this->net_mask_bits += 96;\n\t\t\t}\n\t\t\t$this->net_mask_long = \\gmp_mul( \\gmp_sub( gmp_pow( 2, $this->net_mask_bits ), 1 ), \\gmp_pow( 2, 128-$this->net_mask_bits ));\n\t\t\t//\t\t\techo gmp_strval( $this->net_mask_long, 2 ).\"<br />\\n\";\n\t\t\t$this->net_mask = $this->inet_gmpton($this->net_mask_long);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->net_mask = inet_pton($mask);\n\t\t\t$this->net_mask_long = $this->inet_ntogmp($this->netmask);\n\t\t\t$this->net_mask_bits = \\gmp_scan0( $this->net_mask_long, 0 );\n\t\t}\n\t\t\t\n\t\t// normalize it...\n\t\t$this->net_addr_long = \\gmp_and( $this->net_addr_long, $this->net_mask_long );\n\t\t$this->net_addr = $this->inet_gmpton( $this->net_addr_long );\n\t\t$this->net_broadcast_long = \\gmp_or( $this->net_addr_long, \\gmp_sub( \\gmp_pow( 2, 128-$this->net_mask_bits ), 1 ));\n\t\t$this->net_broadcast = $this->inet_gmpton($this->net_broadcast_long );\n\t}", "public static function mask_to_prefix($mask)\n {\n if (false === filter_var($mask, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {\n throw new \\InvalidArgumentException(\"Invalid IP netmask \\\"$mask\\\"\");\n }\n return strrpos(IP::inet_ptob($mask, 32), '1') + 1;\n }", "public function negate()\n {\n return new self($this->amount->negated(), $this->currency->getCode());\n }", "public static function invert(array $array)\n {\n \t$return = array();\n \n \tforeach ($array as $base => $values)\n \t{\n \t\tif (!is_array($values))\n \t\t{\n \t\t\tcontinue;\n \t\t}\n \n \t\tforeach ($values as $key)\n \t\t{\n \t\t\t// If the key isn't scalar then ignore it.\n \t\t\tif (is_scalar($key))\n \t\t\t{\n \t\t\t\t$return[$key] = $base;\n \t\t\t}\n \t\t}\n \t}\n \n \treturn $return;\n }", "private function get_not() {\n\t\t$prefix = $this->not ? '!' : '';\n\t\tunset( $this->not );\n\t\treturn $prefix;\n\t}" ]
[ "0.6481294", "0.6447863", "0.63235265", "0.6158406", "0.6158406", "0.6158406", "0.609541", "0.5848408", "0.57776564", "0.5749856", "0.5649876", "0.56173724", "0.55995834", "0.5596441", "0.55600125", "0.5549641", "0.5507285", "0.5492938", "0.54663867", "0.5409502", "0.53976536", "0.52690107", "0.5249581", "0.52064276", "0.52008057", "0.5135327", "0.5135327", "0.5135327", "0.5135327", "0.5135327", "0.5135327", "0.5135327", "0.5135327", "0.5134883", "0.51321894", "0.5106122", "0.5106122", "0.50753963", "0.50617206", "0.5060879", "0.5054311", "0.5043895", "0.5039167", "0.5021794", "0.501109", "0.5009308", "0.50090724", "0.5007414", "0.49217585", "0.48743165", "0.48683184", "0.48481685", "0.48164365", "0.47766015", "0.47741577", "0.47396502", "0.4731995", "0.47240514", "0.47171527", "0.4691616", "0.46776655", "0.4652345", "0.46454298", "0.4644115", "0.46131718", "0.46114537", "0.46068183", "0.4596011", "0.4560064", "0.45591772", "0.45566535", "0.45508674", "0.45056802", "0.44776872", "0.4476391", "0.44717163", "0.44202477", "0.44020358", "0.44003838", "0.43976018", "0.43968925", "0.4394407", "0.43922982", "0.43919253", "0.434656", "0.4345361", "0.43441343", "0.43421882", "0.4339059", "0.43235573", "0.4312541", "0.43109784", "0.4307752", "0.43008846", "0.42916358", "0.42879674", "0.4287051", "0.42803237", "0.42740557", "0.42725036" ]
0.79440266
0
/ ocPortal Copyright (c) ocProducts, 20042012 See text/EN/licence.txt for full licencing information. NOTE TO PROGRAMMERS: Do not edit this file. If you need to make changes, save your changed file to the appropriate _custom folder If you ignore this advice, then your website upgrades (e.g. for bug fixes) will likely kill your changes /EXTRA FUNCTIONS: levenshtein Calculate Levenshtein distance between two strings, but work past the PHP function's character limit.
/ ocPortal Авторские права (c) ocProducts, 20042012 См. text/EN/licence.txt для полной информации о лицензировании. ПРИМЕЧАНИЕ ДЛЯ ПРОГРАММИСТОВ: Не редактируйте этот файл. Если вам нужно внести изменения, сохраните измененный файл в соответствующую папку _custom Если вы проигнорируете это предупреждение, то ваши обновления сайта (например, для исправления ошибок), скорее всего, уничтожат ваши изменения /ДОПОЛНИТЕЛЬНЫЕ ФУНКЦИИ: levenshtein Вычисляет расстояние Левенштейна между двумя строками, но работает за пределами ограничения по количеству символов функции PHP.
function fake_levenshtein($a,$b) { // Some stripping, for performance, and because white space doesn't matter so much in HTML anyway $a=preg_replace('#\s#','',$a); $b=preg_replace('#\s#','',$b); $a_len=strlen($a); $b_len=strlen($b); if (($a_len<255) && ($b_len<255)) { return levenshtein($a,$b); } $percent=0.0; return max($a_len,$b_len)-similar_text($a,$b,$percent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function levenshtein(\n string $str1,\n string $str2,\n int $insertionCost = 1,\n int $replacementCost = 1,\n int $deletionCost = 1\n ): int {\n $result = ASCII::to_ascii_remap($str1, $str2);\n\n return \\levenshtein($result[0], $result[1], $insertionCost, $replacementCost, $deletionCost);\n }", "function Similarity ($str, $a_link) \r\n{\t\r\n\t$str1=getDNSName($str);\r\n\t$adns1=getDNSName($a_link);\r\n $thresh=0.8;\r\n $pos=((strstr($adns1,$str1)) || (strstr($str1,$adns1)));\r\n if($pos===true)\r\n {\r\n\t\tglobal $v;\r\n\t\t$v=$str;\r\n\t\treturn true;\r\n\t}\r\n\t$maxlen=strlen($adns1);\r\n\t$minchanges = levenshtein($str1, $adns1);\r\n\t$temp=($maxlen-$minchanges)/$maxlen;\r\n\tif (($thresh<$temp) && ($temp<1))\r\n\t{ \t\r\n\t\tglobal $v;\r\n\t\t$v=$str;\r\n\t\treturn true; \r\n\t}\r\n\treturn false;\r\n}", "public function compute_string_distance($string1, $string2)\n {\n }", "function human_comparison(String $s1, String $s2, bool $mixedMode=true) :float {\n $s1 = strtoupper($s1);\n $s2 = strtoupper($s2);\n \n // replace alphanumeric charactors\n $s1clean = preg_replace(\"/[^A-Za-z0-9-]/\", '', trim($s1));\n $s2clean = preg_replace(\"/[^A-Za-z0-9-]/\", '', trim($s2));\n\n // remove double spaces\n while (strpos($s1clean, \" \") !== false) {\n $s1clean = str_replace(\" \", \" \", $s1clean);\n }\n \n while (strpos($s2clean, \" \") !== false) {\n $s2clean = str_replace(\" \", \" \", $s2clean);\n }\n \n // exact match\n if ($s1clean === $s2clean) {\n return 100;\n }\n\n // create arrays\n $ar1 = explode(\" \", $s1clean);\n $ar2 = explode(\" \", $s2clean);\n $s1_count = count($ar1);\n $s2_count = count($ar2);\n\n // flip the arrays if needed so ar1 is always largest.\n if ($s2_count > $s1_count) {\n $temp_ar = $ar2;\n $ar2 = $ar1;\n $ar1 = $temp_ar;\n }\n\n // flip array 2, to make the words the keys\n $ar2 = array_flip($ar2);\n\n $max_words = max($s1_count, $s2_count);\n $matches = 0;\n\n // find matching words\n foreach ($ar1 as $word) {\n if (array_key_exists($word, $ar2))\n $matches++;\n }\n \n // percentage of matching words\n $percent = ($matches / $max_words) * 50;\n \n // mix PHP's native similar text algorithm\n if ($mixedMode) {\n similar_text($s1clean, $s2clean, $similar);\n \n $similar = $matches>0 ? $similar * 0.5 : $similar;\n \n $percent = $percent + $similar;\n }\n \n return $percent;\n}", "function similarity($str1, $str2) {\r\n\t\t$len1 = strlen($str1);\r\n\t\t$len2 = strlen($str2);\r\n\t\t\r\n\t\t$max = max($len1, $len2);\r\n\t\t$similarity = $i = $j = 0;\r\n\t\t\r\n\t\twhile (($i < $len1) && isset($str2[$j])) {\r\n\t\t\tif ($str1[$i] == $str2[$j]) {\r\n\t\t\t\t$similarity++;\r\n\t\t\t\t$i++;\r\n\t\t\t\t$j++;\r\n\t\t\t} elseif ($len1 < $len2) {\r\n\t\t\t\t$len1++;\r\n\t\t\t\t$j++;\r\n\t\t\t} elseif ($len1 > $len2) {\r\n\t\t\t\t$i++;\r\n\t\t\t\t$len1--;\r\n\t\t\t} else {\r\n\t\t\t\t$i++;\r\n\t\t\t\t$j++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn round($similarity / $max, 2);\r\n\t}", "function phorum_api_diff_match($a, $b, $level=\"line\")\n{\n // set_time_limit(0); No, we don't like it.\n $answer = \"\";\n if ($level == \"line\" || $level == \"word\")\n {\n if ($level == \"line\") {\n $as = explode(\"\\n\", $a);\n $bs = explode(\"\\n\", $b);\n } else {\n $as = explode(\" \", $a);\n $bs = explode(\" \", $b);\n }\n\n $last = array();\n $next = array();\n $start = -1;\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < sizeof($as); $i++) {\n $start+= strlen($as[$i])+1;\n for ($j = 0; $j < sizeof($bs); $j++) {\n if ($as[$i] != $bs[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = strlen($bs[$j]) + 1;\n else\n $next[$j] = strlen($bs[$j]) + $last[$j-1] + 1;\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $start-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n else\n {\n $m = strlen($a);\n $n = strlen($b);\n $last = array();\n $next = array();\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < $m; $i++) {\n for ($j = 0; $j < $n; $j++) {\n if ($a[$i] != $b[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = 1;\n else\n $next[$j] = 1 + $last[$j-1];\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $i-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n\n if ($level == \"line\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"word\");\n } elseif ($level == \"word\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"letter\");\n } else {\n return $answer;\n }\n}", "public function testExactMatch()\n {\n $word = $this->randomString(10);\n\n $percent1 = 0;\n $percent2 = 0;\n $percent3 = 0;\n\n //Verify that we produce the same result for an exact match\n //as the core levenshtein function\n $this->assertEquals(\n similar_text($word, $word, $percent1),\n mb_similar_text($word, $word, $percent2)\n );\n\n $this->assertEquals($percent1, $percent2);\n\n //Verify that we produce an exact match result for strings\n //with multibyte characters.\n $this->assertEquals(5, mb_similar_text('nôtre', 'nôtre', $percent3));\n $this->assertEquals(100.0, $percent3);\n }", "public static function diff_match($a, $b, $level=\"line\")\n {\n // set_time_limit(0);\n $answer = \"\";\n if($level == \"line\" || $level == \"word\")\n {\n if($level == \"line\")\n {\n $as = explode(\"\\n\", $a);\n $bs = explode(\"\\n\", $b);\n }\n else\n {\n $as = explode(\" \", $a);\n $bs = explode(\" \", $b);\n }\n \n $last = array();\n $next = array();\n $start = -1;\n $len = 0;\n $answer = \"\";\n for($i = 0; $i < sizeof($as); $i++)\n {\n $start+= strlen($as[$i])+1;\n for($j = 0; $j < sizeof($bs); $j++)\n {\n if($as[$i] != $bs[$j])\n {\n if(isset($next[$j])) unset($next[$j]);\n }\n else\n {\n if(!isset($last[$j-1]))\n $next[$j] = strlen($bs[$j]) + 1;\n else\n $next[$j] = strlen($bs[$j]) + $last[$j-1] + 1;\n if($next[$j] > $len)\n {\n $len = $next[$j];\n $answer = substr($a, $start-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n else\n {\n $m = strlen($a);\n $n = strlen($b);\n $last = array();\n $next = array();\n $len = 0;\n $answer = \"\";\n for($i = 0; $i < $m; $i++)\n {\n for($j = 0; $j < $n; $j++)\n {\n if($a[$i] != $b[$j])\n {\n if(isset($next[$j])) unset($next[$j]);\n }\n else\n {\n if(!isset($last[$j-1]))\n $next[$j] = 1;\n else\n $next[$j] = 1 + $last[$j-1];\n if($next[$j] > $len)\n {\n $len = $next[$j];\n $answer = substr($a, $i-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n if($level == \"line\" && $answer == \"\") return self::diff_match($a, $b, \"word\");\n elseif($level == \"word\" && $answer == \"\") return self::diff_match($a, $b, \"letter\");\n else return $answer;\n }", "protected function calculateDistance($first, $second)\n {\n return \\levenshtein($first, $second);\n }", "private function wordMatch($words, $input, $sensitivity){ \r\n $shortest = -1; \r\n foreach ($words as $word) { \r\n //verifica a similaridade entre palavras\r\n $lev = levenshtein($input, $word); \r\n if ($lev == 0) { \r\n $closest = $word; \r\n $shortest = 0; \r\n break; \r\n } \r\n if ($lev <= $shortest || $shortest < 0) { \r\n $closest = $word; \r\n $shortest = $lev; \r\n } \r\n } \r\n if($shortest <= $sensitivity){ \r\n return $closest; \r\n } else { \r\n return 0; \r\n } \r\n }", "function find_similar_words($word, $threshold)\n {\n $similar = array();\n $tbl = 'babl_words_' . $this->lan;\n $word = addslashes( ( trim( $word ) ) );\n $sndx = substr($word, 0, 2);\n $query = \"select `word` AS word from `$tbl` where `di`=?\";\n @$result = $this->mDb->query($query, array($sndx));\n while ($res = $result->fetchRow() )\n {\n $tword = $res[\"word\"];\n $lev = levenshtein($tword, $word);\n if (count($similar) < $threshold)\n {\n $similar[$tword] = $lev;\n asort ($similar);\n }\n else\n {\n // If the array is full then if the lev is better than the worst lev\n // then update $keys = array_keys($similar);\n $last_key = $keys[count($keys) - 1];\n if ($lev < $similar[$last_key])\n {\n unset ($similar[$last_key]);\n $similar[$tword] = $lev;\n asort ($similar);\n }\n }\n }\n return $similar;\n }", "function abc($a,$b){return strnatcasecmp($a->getInfo(\"name\"),$b->getInfo(\"name\"));}", "function wordminer($str){\n include('include/stopwords.php');\n $mined = $results = $mined_data = array();\n $str = str_replace(array(',','\"','(',')','.',\"'\"),'',$str);\n $mined = preg_split(\"/[\\W,-]+/\",strtolower($str));\n //$mined = str_replace(array(',','\"','(',')','.',\"'\"),'',$mined);\n $mined = array_unique($mined);\n foreach($mined as $val){\n if(!in_array($val,$StopWords)){\n if(strlen($val)>2){\n $tmp=substr_count($str, ' '. $val.' ');\n if($tmp>2){\n $results[$val]=$tmp;}}}}\n arsort($results);\n foreach($results as $key=>$val){\n $abs=strtolower($key);\n if(!in_array($key,$StopWords)){\n $mined_data[$key]=$val;}}\n return $mined_data;\n }", "public static function getStringDistance($method, $a, $b)\n\t{\n\t\t$instance;\n\n\t\tif($method==\"Levenshtein\"){\n\t\t\trequire_once(\"LevenshteinDistance.php\");\n\t\t\t$instance = new LevenshteinDistance($a, $b);\n\t\t\treturn $instance->calculateDistance();\n\t\t}\n\t\telse if($method==\"Hamming\"){\n\t\t\trequire_once(\"HammingDistance.php\");\n\t\t\t$instance = new HammingDistance($a, $b);\n\t\t\treturn $instance->calculateDistance();\n\t\t}\n\n\t\treturn -999;\n\t}", "public function testSimilar($word1, $word2)\n {\n $percent1 = 0;\n $percent2 = 0;\n\n //Verify that we produce the same result for an exact match\n //as the core levenshtein function\n $this->assertEquals(\n similar_text($word1, $word2, $percent1),\n mb_similar_text($word1, $word2, $percent2)\n );\n\n $this->assertEquals($percent1, $percent2);\n }", "public function boxIDDistance(): string\n {\n\n $j = 0;\n $sizeOfArray = count($this->inputArray);\n $firstSimilarWord = '';\n $secondSimilarWord = '';\n\n foreach ($this->inputArray as $inputValue) {\n for ($i = $j; $i < $sizeOfArray - 1; $i++) {\n $wordCompare = $this->inputArray[$i + 1];\n if (levenshtein($inputValue, $wordCompare, 2, 1, 2) < 2) {\n $firstSimilarWord = $inputValue;\n $secondSimilarWord = $wordCompare;\n break 2;\n }\n }\n $j++;\n }\n\n $letterAppearsOnce = array_search(1, array_count_values(str_split($firstSimilarWord . $secondSimilarWord)), true);\n return str_replace($letterAppearsOnce,'',$firstSimilarWord);\n }", "function matchstr($string1, $string2 ){\n\t\t//$string2 = utf8_strtolower( preg_replace('/([\\s+])/', '', Encoding::fixUTF8($string2 )));\n\t\t$string1 = explode(\" \", utf8_strtolower(Encoding::fixUTF8($string1)) );\n\t\t$string2 = explode(\" \", utf8_strtolower(Encoding::fixUTF8($string2)) );\n\t\t\n\t\t$filterStr1 = array();\n\t\tforeach( $string1 as $str1 ){\n\t\t\tif( trim($str1,'.') == $str1 ){\n\t\t\t\t$filterStr1[] = $str1;\n\t\t\t}\n\t\t}\n\t\t$filterStr2 = array();\n\t\tforeach( $string2 as $str2 ){\n\t\t\tif( trim($str2,'.') == $str2 ){\n\t\t\t\t$filterStr2[] = $str2;\n\t\t\t}\n\t\t}\n\t\t$foundName = array_intersect( $filterStr1, $filterStr2 );\n\t\treturn (count($foundName)==count($filterStr1));\n\t}", "function yp_cmp_videos_maplestage_drama($a, $b) {\r\n\t\t$aexp = explode('/', $a[0]);\r\n\t\t$bexp = explode('/', $b[0]);\r\n\t\treturn yp_cmp_strings_length_first(trim($aexp[0]), trim($bexp[0]));\r\n\t}", "function string_compare_DP($str1, $str2) {\n $MATCH = 0;\n $INSERT = 1;\n $DELETE = 2;\n\n // init DP table, with Cell object inserted into each cell\n $temp = array_fill(0, strlen($str2)+1, 0);\n $compareTable = array_fill(0, strlen($str1)+1, $temp);\n \n for ($i=0; $i < strlen($str1)+1; $i++) { \n for ($j=0; $j < strlen($str2)+1; $j++) { \n // if 1st string is empty, the only option is to insert all char\n // of 2nd string\n if ($i == 0) {\n $compareTable[$i][$j] = $j;\n } elseif ($j == 0) { // if 2nd string is empty, the only option is to remove all char from 1st string\n $compareTable[$i][$j] = $i;\n } elseif ($str1[$i-1] == $str2[$j-1]) {\n $compareTable[$i][$j] = $compareTable[$i-1][$j-1];\n } else {\n $compareTable[$i][$j] = 1 + min($compareTable[$i-1][$j-1], $compareTable[$i-1][$j], $compareTable[$i][$j-1]);\n }\n }\n }\n print2DArray($compareTable);\n // return cost\n return $compareTable[strlen($str1)][strlen($str2)];\n}", "public function testLongMixedCaseWord() : void\n {\n $word = 'OxyphenButazone';\n $this->assertEquals(41, score($word));\n }", "function compare_length($string_1, $string_2){\r\n\tif(strlen($string_1) >= strlen($string_2)){\r\n\t\treturn $string_1;\r\n\t}else{\r\n\t\treturn $string_2;\r\n\t}\r\n}", "function compareStrings($string1, $string2){\n $newString1 = formatString($string1);\n $newString2 = formatString($string2);\n\n $result = false;\n if(strcmp($newString1, $newString2) == 0){\n $result = true;\n }\n\n ?>\n <section class=\"flex-container row resultStrings\">\n <div class=\"col col-2\">\n <p class=\"finalString1\"><?=$newString1?></p>\n </div>\n <div class=\"col col-2\">\n <p class=\"finalString2\"><?=$newString2?></p>\n </div>\n </section>\n <section class=\"row results\">\n <div class=\"col col-4\">\n <p class=\"result\">\n <?php\n if($result == true){\n ?>\n The above strings are identical to each other\n <?php\n }\n else{\n ?>\n The above strings are not identical to each other\n <?php\n }\n ?>\n </p>\n </div>\n </section>\n\n <?php\n }", "function OneEditApart($s1, $s2) {\n\t// only calc these once\n\t$s1Len = strlen($s1);\n\t$s2Len = strlen($s2);\n\n\t// 0 edits apart, return false\n\tif ($s1 == $s2) {\n\t\treturn false;\n\t}\n\n\t// we want the shorter as the first param\n\tif ($s1Len > $s2Len) {\n\t\treturn OneEditApart($s2, $s1);\n\t}\n\n\t// if lengths differ by more than 1, return false\n\tif ($s2Len - $s1Len > 1) {\n\t\treturn false;\n\t}\n\n\t// keep current indexes of both words\n\t$s1i = $s2i = $edits = 0;\n\n\twhile ($s1i < $s1Len && $s2i < $s2Len) {\n\t\t// break processing and return if we have achieved more than one edit\n\t\tif ($edits > 1) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// if letters match, next\n\t\tif ($s1[$s1i] == $s2[$s2i]) {\n\t\t\t$s1i++;\n\t\t\t$s2i++;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// insert case\n\t\tif ($s1[$s1i] == $s2[$s2i + 1]) {\n\t\t\t$edits++;\n\t\t\t$s1i++;\n\t\t\t$s2i = $s2i + 2;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// remove case\n\t\tif ($s1[$s1i + 1] == $s2[$s2i]) {\n\t\t\t$edits++;\n\t\t\t$s1i = $s1i + 2;\n\t\t\t$s2i++;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// replace case\n\t\t$edits++;\n\t\t$s1i++;\n\t\t$s2i++;\n\t}\n\n\t// get index difference, as it will impact our remaining length calc\n\t$iDiff = $s2i - $s1i;\n\n\t// add any differences in word lengths minus previous diff to inserts\n\t$edits = $edits + ($s2Len - $s1Len - $iDiff);\n\n\tif ($edits == 1) {\n\t\treturn true;\n\t}\n\n\t// more or less than 1\n\treturn false;\n\n}", "function distance($a, $b)\n{\n if (strlen($a) !== strlen($b)) {\n throw new \\InvalidArgumentException(\"DNA strands must be of equal length.\", 1);\n }\n //\n // YOUR CODE GOES HERE\n //\n if ($a === $b)\n return 0;\n\n $charArrayA = str_split($a);\n $charArrayB = str_split($b);\n $hammingDistance = 0;\n foreach ($charArrayA as $idx => $value) {\n if( $charArrayA[$idx] !== $charArrayB[$idx]) {\n $hammingDistance++;\n }\n }\n\n return $hammingDistance;\n}", "function strcmp_from_utf8($str1, $str2)\n{\n $array_of_string1 = utf8StringSplit($str1); \n $array_of_string2 = utf8StringSplit($str2);\n $i = 0; // index into str1\n $j = 0; // index into str2\n // for each char in str1\n while ($i < count($array_of_string1))\n {\n $val1 = char_translate($array_of_string1[$i]);\n $i ++;\n if ($val1 == 0) // error\n return 0;\n // if there are still chars in str2\n if ($j < count($array_of_string2)) \n { \n $val2 = char_translate($array_of_string2[$j]);\n $j ++;\n if ($val2 == 0) // error\n return 0;\n if ($val1 < $val2)\n return -1;\n else if ($val1 > $val2)\n return 1; \n }\n }\n if ($j < count($array_of_string2)) // str2 longer that str1\n return -1;\n return 0; // equal\n}", "function compareStrainByDistance($strainA, $strainB)\n{\n // Same hamming distance to reference\n if ($strainA['dist_to_ref'] == $strainB['dist_to_ref'])\n {\n //sort by alphetical order\n if($strainA['name'] != $strainB['name'])\n {\n return ($strainA['name'] < $strainB['name']) ? -1 : 1;\n }\n // in the other case, they are equal\n return 0;\n }\n return ($strainA['dist_to_ref'] < $strainB['dist_to_ref']) ? -1 : 1;\n}", "function prli_compare_stringlen_desc($val_1, $val_2)\n{\n $retVal = 0;\n\n // compare lengths\n $firstVal = strlen($val_1);\n $secondVal = strlen($val_2);\n\n if($firstVal > $secondVal)\n $retVal = -1;\n else if($firstVal < $secondVal)\n $retVal = 1;\n\n return $retVal;\n}", "function cmpr_strlen( $a, $b ) {\n\t\treturn strlen($b) - strlen($a);\n\t}", "function strposa($string, $words=array(), $offset=0) {\n $chr = array();\n //check by simlarity\n foreach($words as $word) {\n $res = checkExistanceBySimilarity($string,$word);\n if ($res !== false) $chr[$word] = $res;\n }\n // check exist\n /*foreach($words as $word) {\n $res = strpos($string, $word, $offset);\n if ($res !== false) $chr[$word] = $res;\n }*/\n if(empty($chr)) return false;\n return min($chr);\n}", "function wyz_cmp_listings_near_me( $a, $b ) {\n\tif ( $a['distance'] == $b['distance'] ) return 0;\n\treturn $a['distance'] < $b['distance'] ? -1 : 1;\n}", "function phorum_api_diff($a, $b, $min=3, $i=0)\n{\n $diff = array();\n\n if ($a == \"\" && $b == \"\") return $diff;\n\n $a = str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $a);\n $b = str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $b);\n\n if ($a == \"\") {\n array_push($diff, \"$i+\".$b);\n return $diff;\n }\n if ($b == \"\") {\n array_push($diff, \"$i-\".$a);\n return $diff;\n }\n\n $match = phorum_api_diff_match($a, $b);\n if (strlen($match) < $min) {\n array_push($diff, \"$i-\".$a);\n array_push($diff, \"$i+\".$b);\n return $diff;\n }\n\n $ap = strpos($a, $match);\n $bp = strpos($b, $match);\n $diff = phorum_api_diff(substr($a, 0, $ap), substr($b, 0, $bp), $min, $i);\n return array_merge(\n $diff,\n phorum_api_diff(\n substr($a, $ap+strlen($match)),\n substr($b, $bp+strlen($match)),\n $min, $i+$bp+strlen($match)\n )\n );\n}", "function cmp($a, $b)\n{\n if(strlen($a[1]) == strlen($b[1]))\n return 0;\n else return (strlen($a[1]) > strlen($b[1]) ? -1 : 1);\n}", "function getRevisiondifference($from_text, $to_text)\n{\n // limit input\n if (!empty($from_text) && is_string($from_text)) {\n $from_text = substr($from_text, 0, 1024 * 100);\n } else {\n return false;\n }\n if (!empty($to_text) && is_string($to_text)) {\n $to_text = substr($to_text, 0, 1024 * 100);\n } else {\n return false;\n }\n $granularity = 2; // 0: Paragraph/lines, 1: Sentence, 2: Word, 3: Character\n $granularityStacks = array(\n FineDiff::$paragraphGranularity,\n FineDiff::$sentenceGranularity,\n FineDiff::$wordGranularity,\n FineDiff::$characterGranularity\n );\n $diff_opcodes = FineDiff::getDiffOpcodes($from_text, $to_text, $granularityStacks[$granularity]);\n $difference = FineDiff::renderDiffToHTMLFromOpcodes($from_text, $diff_opcodes);\n return $difference;\n}", "function cmpByName($a, $b)\n{\n $an = utf8_strtolower($a);\n $bn = utf8_strtolower($b);\n if ($an == $bn) {\n return 0;\n }\n return($an < $bn) ? -1 : 1;\n}", "public function exportLanguage($locale, $min_similar_string_dist = 0.85) {\n \\set_time_limit(0);\n if (!\\array_key_exists($locale, $this->locale_data))\n trigger_error(\"Locale $locale does not exist!\", \\E_USER_ERROR);\n $old_locale_strings = $this->locale_data[$locale][\"strings\"];\n // Scan trough all source code and update locale strings.\n $new_locale_strings = array();\n $plural_ids = array();\n $references = array();\n $php_files = grep(APP_DIR, '#.*\\.php$#');\n $untranslated_strings = array();\n $used_old_locale_strings = array();\n foreach ($php_files as $php_file) {\n if ($php_file == \"localization.php\")\n continue;\n if (\\melt\\string\\starts_with($php_file, \"vendors/\"))\n continue;\n if (\\preg_match('#^modules/([^/]+)/#', $php_file, $matches)) {\n $module = $matches[1];\n if (!module_loaded($module))\n continue;\n }\n foreach ($this->parseTranslateInvokes($php_file) as $translate_invoke) {\n list($msgid, $plural_id, $context, $reference) = $translate_invoke;\n if (isset($new_locale_strings[$msgid][$context])) {\n // Translation exists in multiple locations.\n } else if (isset($old_locale_strings[$msgid][$context])) {\n // Translation already exists. Transfer old locale string to new.\n $new_locale_strings[$msgid][$context] = $old_locale_strings[$msgid][$context];\n // Mark this old translation as used.\n $used_old_locale_strings[$msgid][$context] = true;\n } else {\n // Translation is new. Find old, similar translation.\n $best_match = null;\n if (\\ceil($min_similar_string_dist * \\strlen($msgid)) < \\strlen($msgid)) {\n $record = $min_similar_string_dist;\n foreach ($old_locale_strings as $old_msgid => $old_contexts) {\n if (\\count($old_contexts) == 0)\n continue;\n $similarity = \\melt\\string\\lcs_similarity($msgid, $old_msgid, $record);\n if ($similarity !== false && $similarity > $record) {\n $best_match = $old_contexts;\n $record = $similarity;\n }\n }\n }\n if ($best_match !== null) {\n // Use same context or just pick one.\n if (\\array_key_exists($context, $best_match))\n $fuzzy_translation = $best_match[$context];\n else\n $fuzzy_translation = \\reset($best_match);\n $new_locale_strings[$msgid][$context] = $fuzzy_translation;\n $new_locale_strings[$msgid][$context][\"fuzzy\"] = true;\n // Mark this old translation as used.\n $used_old_locale_strings[$msgid][$context] = true;\n } else {\n // Translation is new and couldn't be matched, just add.\n $new_locale_strings[$msgid][$context] = array(\n \"fuzzy\" => true,\n \"translations\" => array(),\n );\n }\n }\n if (!isset($plural_ids[$msgid][$context]) || $plural_id != \"\")\n $plural_ids[$msgid][$context] = $plural_id;\n $references[$msgid][$context][] = $reference;\n }\n }\n // Add all translated deprecated strings.\n foreach ($old_locale_strings as $old_msgid => $old_contexts) {\n foreach ($old_contexts as $old_context => $tranlation_entry) {\n if (isset($used_old_locale_strings[$old_msgid][$old_context]))\n continue;\n if (count($tranlation_entry[\"translations\"]) == 0)\n continue;\n $new_locale_strings[$old_msgid][$old_context] = $old_locale_strings[$old_msgid][$old_context];\n $plural_ids[$old_msgid][$old_context] = \"\";\n $references[$old_msgid][$old_context] = array();\n }\n }\n $comment = \"Melt Framework Application Automatically Generated .PO Translation File\";\n $headers = array(\n \"Project-Id-Version\" => \"\",\n \"Report-Msgid-Bugs-To\" => \"http://meltframework.com/\",\n \"POT-Creation-Date\" => date(\"r\"),\n \"PO-Revision-Date\" => date(\"r\", $this->locale_data[$locale][\"last_import\"]),\n \"Last-Translator\" => $this->locale_data[$locale][\"last_translator\"],\n \"Language-Team\" => \"\",\n \"Language\" => $locale,\n \"Content-Type\" => \"text/plain; charset=UTF-8\",\n \"Content-Transfer-Encoding\" => \"8bit\",\n );\n if ($this->locale_data[$locale][\"plural_forms\"][\"indexformula\"] != null) {\n $nplurals = $this->locale_data[$locale][\"plural_forms\"][\"nplurals\"];\n $indexformula = $this->locale_data[$locale][\"plural_forms\"][\"indexformula\"];\n $headers[\"Plural-Forms\"] = \"nplurals=$nplurals; plural=$indexformula\";\n }\n $header = \"\";\n foreach ($headers as $key => $value)\n $header .= \"$key: $value\\n\";\n $po_file_content = self::getPoBlock(\"\", \"\", \"\", array($header), false, array(), true, $comment);\n foreach ($new_locale_strings as $msgid => $new_locale_contexts) {\n foreach ($new_locale_contexts as $context => $translation) {\n $msgid_plural = $plural_ids[$msgid][$context];\n $translations = $translation[\"translations\"];\n $fuzzy = $translation[\"fuzzy\"] == true;\n $entry_references = $references[$msgid][$context];\n $po_file_content .= self::getPoBlock($context, $msgid, $msgid_plural, $translations, $fuzzy, $entry_references);\n }\n }\n return $po_file_content;\n }", "function comparecsn($one, $two)\n{\n $one = preg_replace('/\\s*/m', '', strtolower($one));\n $two = preg_replace('/\\s*/m', '', strtolower($two));\n if ($one == $two) {\n return true;\n } else {\n return false;\n }\n}", "function cmp($line1, $line2){\n\t$line1elements = explode(\" \", $line1);\n\t$line2elements = explode(\" \", $line2);\n\t$score1 = $line1elements[3];\n\t$score2 = $line2elements[3];\n\tif($score1>$score2)\n\t\treturn -1;\n\telse if($score1<$score2)\n\t\treturn 1;\n\telse\t\n\t\treturn 0;\n}", "function cmp_slow_equals($a, $b)\n{\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0;\n}", "public function findLongestWord() {\n\n }", "protected function sort_by_string_length( $a, $b ) {\n\t\treturn strlen( $b ) - strlen( $a );\n\t}", "function levenshtein_strip_search($to_strip,$subject,$backwards,$i)\n\t{\n\t\t$best=mixed();\n\t\t$best_at=$i;\n\n\t\t// Find all tag start/end positions (comparison reference points), loading them into the search list, ordered by position\n\t\t$up_to=min(strlen($subject),intval(floatval(strlen($to_strip))*1.5));\n\t\t$positions=array();\n\t\tfor (;$i<$up_to;$i++)\n\t\t{\n\t\t\tif ($i!=0)\n\t\t\t{\n\t\t\t\tif ($backwards)\n\t\t\t\t{\n\t\t\t\t\t$next_tag_a=strrpos(substr($subject,0,strlen($subject)-$i),'<'); // Makes performance reasonable, by only checking at tag points\n\t\t\t\t\t$next_tag_b=strrpos(substr($subject,0,strlen($subject)-$i),'>');\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$next_tag_a=strpos($subject,'<',$i); // Makes performance reasonable, by only checking at tag points\n\t\t\t\t\t$next_tag_b=strpos($subject,'>',$i);\n\t\t\t\t}\n\t\t\t\t$next_tag=(($next_tag_b!==false) && (($next_tag_a===false) || ((!$backwards) && ($next_tag_b<$next_tag_a)) || (($backwards) && ($next_tag_b>$next_tag_a))))?($next_tag_b+1):$next_tag_a;\n\t\t\t\tif ($next_tag===false)\n\t\t\t\t{\n\t\t\t\t\t$i=(strlen($subject)-1);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$possible_i=$backwards?(strlen($subject)-$next_tag):$next_tag;\n\t\t\t\t\tif ($possible_i!=$i) $i=$possible_i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$lev=NULL;\n\t\t\t//$lev=fake_levenshtein($backwards?substr($subject,-$i):substr($subject,0,$i),$to_strip);\t\tFor efficiency the next loop has a more intelligent searching algorithm, to narrow down on the peak\n\t\t\t$positions[]=array($i,$lev);\n\t\t}\n\n\t\tdo\n\t\t{\n\t\t\t$cnt=count($positions);\n\t\t\t$point_a=intval(3.0*floatval($cnt)/8.0);\n\t\t\t$point_b=intval(5.0*floatval($cnt)/8.0);\n\t\t\tif (($cnt<24)/*The peak algorithm breaks down on small data sets due to integer rounding problems and local maxima*/ || ($point_a==$point_b)) break; // Okay now we need to scan manually over the few that are left\n\n\t\t\t// Take the 3/8 point of the search list, and find it's levenshtein distance\n\t\t\tif (is_null($positions[$point_a][1]))\n\t\t\t\t$positions[$point_a][1]=fake_levenshtein($backwards?substr($subject,-$positions[$point_a][0]):substr($subject,0,$positions[$point_a][0]),$to_strip);\n\n\t\t\t// Take the 5/8 point of the search list, and find it's levenshtein distance\n\t\t\tif (is_null($positions[$point_b][1]))\n\t\t\t\t$positions[$point_b][1]=fake_levenshtein($backwards?substr($subject,-$positions[$point_b][0]):substr($subject,0,$positions[$point_b][0]),$to_strip);\n\t\t\t// If the 3/8 point has a higher or equal levenshtein distance, throw away everything to the left of the 3/8 point\n\t\t\tif ($positions[$point_a][1]>=$positions[$point_b][1])\n\t\t\t{\n\t\t\t\tarray_splice($positions,0,$point_a);\n\t\t\t} else\n\t\t\t{\n\t\t\t\t// Therefore the 5/8 point has a higher levenshtein distance: throw away everything to the right of the 5/8 point\n\t\t\t\tarray_splice($positions,$point_b);\n\t\t\t}\n\t\t}\n\t\twhile (true);\t// Repeats until the 3/8 or 5/8 points are the same, due to indivisibility ('break' line does this)\n\n\t\t// Loop over the remaining results, finding the smallest levenshtein distance remaining- this is our result\n\t\tforeach ($positions as $p)\n\t\t{\n\t\t\tlist($i,$lev)=$p;\n\t\t\tif (is_null($lev)) $lev=fake_levenshtein(substr($subject,0,$i),$to_strip);\n\n\t\t\tif ((is_null($best)) || ($lev<$best))\n\t\t\t{\n\t\t\t\t$best=$lev;\n\t\t\t\t$best_at=$i;\n\t\t\t}\n\t\t}\n\t\t$ret=$backwards?substr($subject,0,(strlen($subject)-$best_at)):substr($subject,$best_at);\n\n\t\treturn $ret;\n\t}", "function uasort_by_length_callback($a,$b)\n {\n return strlen($b)-strlen($a);\n }", "function calculateDistance($first, $second)\r\n{\r\n return abs($first - $second);\r\n}", "function compare_title($a, $b) \n{ \n if (($a[$GLOBALS['MYLANGFIELDS'][1]] == DEFAULTLANG) && ($b[$GLOBALS['MYLANGFIELDS'][1]] == DEFAULTLANG))\n return strnatcmp($a[$GLOBALS['MYFIELDS'][1]], $b[$GLOBALS['MYFIELDS'][1]]);\n if ($a[$GLOBALS['MYLANGFIELDS'][1]] == DEFAULTLANG)\n return 1;\n if ($b[$GLOBALS['MYLANGFIELDS'][1]] == DEFAULTLANG)\n return -1;\n \n return strcmp_from_utf8($a[$GLOBALS['MYFIELDS'][1]], $b[$GLOBALS['MYFIELDS'][1]]); \n}", "public function longestCommonSubstring($otherStr)\n {\n // Uses dynamic programming to solve\n // http://en.wikipedia.org/wiki/Longest_common_substring_problem\n $encoding = $this->encoding;\n $stringy = static::create($this->str, $encoding);\n $strLength = $stringy->length();\n $otherLength = UTF8::strlen($otherStr, $encoding);\n\n // Return if either string is empty\n if ($strLength == 0 || $otherLength == 0) {\n $stringy->str = '';\n\n return $stringy;\n }\n\n $len = 0;\n $end = 0;\n $table = array_fill(\n 0, $strLength + 1,\n array_fill(0, $otherLength + 1, 0)\n );\n\n for ($i = 1; $i <= $strLength; $i++) {\n for ($j = 1; $j <= $otherLength; $j++) {\n $strChar = UTF8::substr($stringy->str, $i - 1, 1, $encoding);\n $otherChar = UTF8::substr($otherStr, $j - 1, 1, $encoding);\n\n if ($strChar == $otherChar) {\n $table[$i][$j] = $table[$i - 1][$j - 1] + 1;\n if ($table[$i][$j] > $len) {\n $len = $table[$i][$j];\n $end = $i;\n }\n } else {\n $table[$i][$j] = 0;\n }\n }\n }\n\n $stringy->str = UTF8::substr($stringy->str, $end - $len, $len, $encoding);\n\n return $stringy;\n }", "function compare_distance($a, $b) {\n return $a['distance'] - $b['distance'];\n }", "function compareAlphabetical($a,$b) {\n if (strpos($a[\"lastname\"],\"Dr.\")!==false)\n $a[\"lastname\"]=trim(substr($a[\"lastname\"], 2),\" .\");\n if (strpos($b[\"lastname\"],\"Dr.\")!==false)\n $b[\"lastname\"]=trim(substr($b[\"lastname\"], 2),\" .\");\n\n if (isset($a[\"birthname\"]) && $a[\"birthname\"]!=\"\")\n $aa=$a[\"birthname\"].\" \".$a[\"firstname\"];\n else\n $aa=$a[\"lastname\"].\" \".$a[\"firstname\"];\n\n if (isset($b[\"birthname\"]) && $b[\"birthname\"]!=\"\")\n $bb=$b[\"birthname\"].\" \".$b[\"firstname\"];\n else\n $bb=$b[\"lastname\"].\" \".$b[\"firstname\"];\n\n return strcmp(getNormalisedChars($aa), getNormalisedChars($bb));\n}", "function diff($text1, $text2) {\n__autoload('TextDiff');\ninclude_once 'Text/Diff.php';\ninclude_once 'Text/Diff/Renderer.php';\ninclude_once 'Text/Diff/Renderer/unified.php';\n\n\n $vtext1 = chunk_split(strip_tags($text1, '<p><div>'), 1, \"\\n\");\n $vtext2 = chunk_split(strip_tags($text2, '<p><div>'), 1, \"\\n\");\n\n $vlines1 = str_split($vtext1, 2);\n $vlines2 = str_split($vtext2, 2);\n $text1 = str_replace(\"\\n\",\" \\n\",$text1);\n $text2 = str_replace(\"\\n\",\" \\n\",$text2);\n\n $vlines1 = explode(\" \", $text1);\n $vlines2 = explode(\" \", $text2);\n $diff = new Text_Diff($vlines1, $vlines2);\n $renderer = new Text_Diff_Renderer_inline();\n $html = html_entity_decode($renderer->render($diff));\n\n return preg_replace(array('#(<ins>|<del>)(<[^\\>]+>)#i', '#(</[^\\>]+>)(</ins>|</del>)#i'), '$2$1', $html);\n}", "function patternChecker($firstWord,$secondWord){\n $firstWord = str_split(strtolower($firstWord));\n $secondWord = str_split(strtolower($secondWord));\n\n // Remove whitespace and quotation marks from the words\n // By filtering characters in the arrays through the\n // removeNonAlphabets callback function\n $firstWord = array_filter($firstWord,'removeNonAlphabets');\n $secondWord = array_filter($secondWord,'removeNonAlphabets');\n\n\n // Compare the length of the two words\n // If they are not the same, return false.\n if(count($firstWord) != count($secondWord)){\n return false;\n }\n else{\n // Sort the array containing the words in ascending order\n sort($firstWord);\n sort($secondWord);\n // If the two words are equal, they match our criteria\n if($firstWord === $secondWord){\n return true;\n }else{\n return false;\n }\n }\n}", "function version_compare_string($a, $b) {\n\t// (If either version lacks a string part, assume intended to match all release levels)\n\tif (isset($a) && isset($b)) {\n\t\treturn version_compare_numeric(version_get_string_value($a), version_get_string_value($b));\n\t} else {\n\t\treturn 0;\n\t}\n}", "static function CompWords($ary_in_srch, $ary_to_srch)\n\t\t{\n\t\t\t$index = 0;\n\t\t\t$count = count($ary_in_srch) ;\n\n\t\t\tforeach($ary_in_srch as $word_1)\n\t\t\t{\n\t\t\t\tforeach($ary_to_srch as $word_2)\n\t\t\t\t{\n\t\t\t\t\tif(strcmp($word_1, $word_2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$index++ ;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ($index*100/$count) ;\n\t\t}", "function compare_author($a, $b) \n{ \n if (($a[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG) && ($b[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG))\n return strnatcmp($a[$GLOBALS['MYFIELDS'][0]], $b[$GLOBALS['MYFIELDS'][0]]);\n if ($a[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG)\n return 1;\n if ($b[$GLOBALS['MYLANGFIELDS'][0]] == DEFAULTLANG)\n return -1;\n \n return strcmp_from_utf8($a[$GLOBALS['MYFIELDS'][0]], $b[$GLOBALS['MYFIELDS'][0]]); \n}", "function does_rhyme($str1, $str2) {\n $cmu_dict = CMUDict::get();\n $words_found = true;\n\n $phonemes1 = $cmu_dict->getPhonemes($str1);\n if ($phonemes1 === null) {\n $words_found = false;\n }\n\n $phonemes2 = $cmu_dict->getPhonemes($str2);\n if ($phonemes2 === null) {\n $words_found = false;\n }\n\n if (!$words_found) {\n $metaphone1 = metaphone($str1);\n $metaphone2 = metaphone($str2);\n $rhyme = substr($metaphone1, -1) === substr($metaphone2, -1);\n if (!$rhyme && OTTAVA_RIMA_FITNESS_DEBUG) {\n echo \"$str1 and $str2 don't rhyme (method: Metaphone).\\n\";\n }\n return $rhyme;\n }\n\n $last_phoneme1 = last($phonemes1);\n if ($last_phoneme1 === 'ER') {\n $last_phoneme1 = 'R';\n }\n\n $last_phoneme2 = last($phonemes2);\n if ($last_phoneme2 === 'ER') {\n $last_phoneme2 = 'R';\n }\n\n $rhymes = $last_phoneme1 === $last_phoneme2;\n\n if (!$rhymes && OTTAVA_RIMA_FITNESS_DEBUG) {\n echo \"$str1 and $str2 don't rhyme (method: CMUDict).\\n\";\n }\n\n return $rhymes;\n}", "public static function display_cmp($str1, $str2) {\n if ($str1 == $str2) {\n return 0;\n }\n\n // force Power attacks to be displayed first\n if ('Power' == $str1) {\n return -1;\n } elseif ('Power' == $str2) {\n return 1;\n }\n\n // force Skill attacks to be displayed first, except for Power\n if ('Skill' == $str1) {\n return -1;\n } elseif ('Skill' == $str2) {\n return 1;\n }\n\n // force Pass attacks to be displayed last\n if ('Pass' == $str1) {\n return 1;\n } elseif ('Pass' == $str2) {\n return -1;\n }\n\n return strcasecmp($str1, $str2);\n }", "function edDisRecursive($str1, $str2){\n $distanceMatrix=[[0]];\n // Filling the first row of the matrix.\n // If this is the first row then we're transforming empty string to str1.\n // In this case the number of transformations equals to size of str1 substring.\n for ($i = 1; $i <= strlen($str1); $i++){\n $distanceMatrix[0][$i]=$i; \n if($i<= strlen($str2)){\n array_push($distanceMatrix,[]);\n $distanceMatrix[$i][0]=$i; \n }\n }\n // Filling the first column of the matrix.\n // If this is the first column then we're transforming empty string to str2.\n // In this case the number of transformations equals to size of str2 substring.\n for ($i = strlen($str1); $i <= strlen($str2); $i++){\n array_push($distanceMatrix,[]);\n $distanceMatrix[$i][0]=$i; \n }\n for ($j = 1; $j <= strlen($str1); $j++){\n for ($i = 1; $i <= strlen($str2); $i++){\n if($str1[$j-1] == $str2[$i-1]) $distanceMatrix[$i][$j] = $distanceMatrix[$i-1][$j-1];\n else $distanceMatrix[$i][$j]= $this->min($distanceMatrix[$i-1][$j-1],$distanceMatrix[$i][$j-1],$distanceMatrix[$i-1][$j])+1;\n }\n }\n return $distanceMatrix[strlen($str2)][strlen($str1)];\n }", "function checkEntropy($data)\r\n {\r\n $score = 0;\r\n\r\n $len = strlen($data);\r\n\r\n if ($len > 0) {\r\n\r\n // remove spaces\r\n $data = str_replace(\" \", \"\", $data);\r\n\r\n\r\n // Compression test\r\n $compression = ((double)strlen(gzcompress($data)) - 9) / $len;\r\n if ($compression >= .80) {\r\n $score += .25;\r\n }\r\n if ($compression >= .85) {\r\n $score += .75;\r\n }\r\n if ($compression >= .90) {\r\n $score += .5;\r\n }\r\n if ($compression >= .95) {\r\n $score += .5;\r\n }\r\n if ($compression <= .50) {\r\n $score -= 1;\r\n }\r\n\r\n\r\n // Number of character sets\r\n $lower = preg_match_all('/[a-z]/', $data, $matches);\r\n $upper = preg_match_all('/[A-Z]/', $data, $matches);\r\n $num = preg_match_all('/[0-9]/', $data, $matches);\r\n $special = preg_match_all('/[^a-zA-Z0-9]/', $data, $matches);\r\n $charsets = ($lower >= 1) + ($upper >= 1) + ($num >= 1) + ($special >= 1);\r\n $score += ($charsets / 6);\r\n\r\n\r\n // Sequences from same charset\r\n $lower_seq = preg_match_all('/[a-z]{3}/', $data, $matches);\r\n $upper_seq = preg_match_all('/[A-Z]{3}/', $data, $matches);\r\n $num_seq = preg_match_all('/[0-9]{3}/', $data, $matches);\r\n $special_seq = preg_match_all('/[^a-zA-Z0-9]{3}/', $data, $matches);\r\n $total_seq = $lower_seq + $upper_seq + $num_seq + $special_seq;\r\n $score -= .25 * (int)$total_seq;\r\n if ($total_seq == 0) {\r\n $score += .25;\r\n }\r\n\r\n\r\n // Small bonus for uppercase in the middle of word\r\n $middleupper = preg_match_all('/[a-z0-9A-Z]{1,}[A-Z]/', $data, $matches);\r\n if ($middleupper) {\r\n $score .= .25;\r\n }\r\n\r\n\r\n // Four or more lowercase\r\n $lower_seq = preg_match_all('/[a-z]{4}/', $data, $matches);\r\n $score -= .25 * (int)$lower_seq;\r\n\r\n\r\n // But all numeric and hex and all uppercase sequences can still be random\r\n if (is_numeric($data)) {\r\n $score += .25 + (strlen($data) / 10);\r\n }\r\n if (preg_match('/^[abcdef01234567890]+$/i', $data, $matches)) {\r\n $score += 1;\r\n }\r\n if (preg_match('/^[A-Z]+$/i', $data, $matches)) {\r\n $score += .25;\r\n }\r\n\r\n\r\n // Single repeated characters\r\n $repeated = preg_match_all('/(.)\\1/', $data, $matches);\r\n $score -= .5 * (int)$repeated;\r\n\r\n\r\n // Single character repeated 3 times penalty\r\n $repeated = preg_match_all('/(.)\\1\\1/', $data, $matches);\r\n if ($total_seq <> 0) {\r\n $score -= 1.5 * $repeated;\r\n }\r\n\r\n\r\n // Trigraphs and common digraphs in the English language\r\n $trigraphs = preg_match_all(\r\n '/the|and|tha|ent|ion|tio|for|nde|has|nce|tis|oft|men|wor|row|qwe|123|234|345|456|567|678|789|890|abc|def|rty|asd|zxc|jkl|uio|321/',\r\n $data,\r\n $matches\r\n );\r\n $score -= ($trigraphs * 1.25);\r\n\r\n $digraphs = preg_match_all(\r\n '/th|he|an|in|er|on|re|ed|nd|ha|at|en|es|of|nt|ea|ti|to|io|le|is|ou|ar|as|ss|ee|tt|ff|ll|mm|oo|ng|99|00/',\r\n $data,\r\n $matches\r\n );\r\n $score -= ($digraphs * .25);\r\n\r\n\r\n if ($trigraphs + $digraphs + $repeated == 0) {\r\n $score += .5;\r\n }\r\n\r\n // Consonant, vowel, consonant\r\n $cvc = preg_match_all('/[bcdfghjklmnpqrstvwxy][aeiouy][bcdfghjklmnpqrstvwxy]/', $data, $matches);\r\n $score -= .25 * (int)$cvc;\r\n\r\n // consecutive character sets\r\n //preg_match_all('/(?:[a-z]){4,}(?:[0-9]){4,}|((?:[0-9]){4,}(?:[a-z]){4,})/', $data, $matches);\r\n //$score -= 1.5;\r\n\r\n\r\n // Vowels vs consonants\r\n $v = preg_match_all('/[aeiouy]/i', $data, $matches);\r\n $c = preg_match_all('/[bcdfghjklmnpqrstvwxy]/i', $data, $matches);\r\n if ($c == 0) {\r\n $vc_ratio = 1;\r\n } else {\r\n $vc_ratio = $v / $c;\r\n }\r\n if ((double)$vc_ratio < .5) {\r\n $score += .75;\r\n }\r\n\r\n\r\n if ($score >= 1.9) {\r\n $score = 1.9;\r\n }\r\n if ($score < 0) {\r\n $score = 0;\r\n }\r\n\r\n $score = round($score / 1.9, 2);\r\n\r\n return $score;\r\n }\r\n\r\n return true;\r\n }", "public function testShortValuableWord() : void\n {\n $word = 'zoo';\n $this->assertEquals(12, score($word));\n }", "public function longestCommonSubstring($otherStr)\n {\n // http://en.wikipedia.org/wiki/Longest_common_substring_problem\n $encoding = $this->encoding;\n $stringy = static::create($this->str, $encoding);\n $strLength = $stringy->length();\n $otherLength = \\mb_strlen($otherStr, $encoding);\n // Return if either string is empty\n if ($strLength == 0 || $otherLength == 0) {\n $stringy->str = '';\n return $stringy;\n }\n $len = 0;\n $end = 0;\n $table = array_fill(0, $strLength + 1,\n array_fill(0, $otherLength + 1, 0));\n for ($i = 1; $i <= $strLength; $i++) {\n for ($j = 1; $j <= $otherLength; $j++) {\n $strChar = \\mb_substr($stringy->str, $i - 1, 1, $encoding);\n $otherChar = \\mb_substr($otherStr, $j - 1, 1, $encoding);\n if ($strChar == $otherChar) {\n $table[$i][$j] = $table[$i - 1][$j - 1] + 1;\n if ($table[$i][$j] > $len) {\n $len = $table[$i][$j];\n $end = $i;\n }\n } else {\n $table[$i][$j] = 0;\n }\n }\n }\n $stringy->str = \\mb_substr($stringy->str, $end - $len, $len, $encoding);\n return $stringy;\n }", "private function _cmp($a, $b)\n {\n if ($a[0] != $b[0])\n {\n if ($a[0] == '*') {return 1;}\n else if ($b[0] == '*') {return -1;}\n else {if ($a[0] < $b[0]) {return -1;} else {return 1;}}\n }\n else\n {\n if ($a[1] != $b[1])\n {\n if ($a[1] == '*') {return 1;}\n else if ($b[1] == '*') {return -1;}\n else {if ($a[1] < $b[1]) {return -1;} else {return 1;}} \n }\n else\n {\n if ($a[2] != $b[2])\n {\n if ($a[2] == '*') {return 1;}\n else if ($b[2] == '*') {return -1;}\n else {\n $lga = strlen($a[2]); $lgb = strlen($b[2]);\n if ($lga > $lgb) {return -1;}\n else if ($lga < $lgb) {return 1;}\n else {if ($a[2] < $b[2]) {return -1;} else {return 1;}}\n }\n }\n else\n {\n if ($a[3] == '*') {return 1;}\n else if ($b[3] == '*') {return -1;}\n else if ($a[3] < $b[3]) {return -1;}\n else if ($a[3] > $b[3]) {return 1;}\n else {return 0;}\n }\n }\n }\n \n }", "function uksort_by_length_callback($a,$b)\n {\n return strlen($b)-strlen($a);\n }", "function cmp_len($a, $b){ \n\t return (strlen($a['name']) < strlen($b['name']));\n\t}", "function prli_compare_stringlen_asc($val_1, $val_2)\n{\n // initialize the return value to zero\n $retVal = 0;\n\n // compare lengths\n $firstVal = strlen($val_1);\n $secondVal = strlen($val_2);\n\n if($firstVal > $secondVal)\n $retVal = 1;\n else if($firstVal < $secondVal)\n $retVal = -1;\n\n return $retVal;\n}", "public function searchSort($a, $b)\n\t{\n\t\tglobal $excludedWords;\n\n\t\t$x = strlen($a) - (in_array($a, $excludedWords) ? 1000 : 0);\n\t\t$y = strlen($b) - (in_array($b, $excludedWords) ? 1000 : 0);\n\n\t\treturn $y < $x ? 1 : ($y > $x ? -1 : 0);\n\t}", "function windowString($str1, $str2) {\n if (empty($str1) || empty($str2)) {\n return \"\";\n }\n $expected = [];\n for ($i=0; $i < strlen($str2); $i++) { \n if (!isset($expected[$str2[$i]])) {\n $expected[$str2[$i]] = 1;\n } else {\n $expected[$str2[$i]]++;\n }\n }\n $actual = [];\n list($left, $right) = [0, 0];\n $result = []; // start and end index of the result string.\n while ($left < strlen($str1) && $right < strlen($str1)) {\n // all chars in str2 are in current left right boundaries in str1\n if (sizeof($expected) == sizeof($actual)) {\n // move ahead left pointer as long as char is not in expected table\n while (!isset($expected[$str1[$left]])) {\n $left++;\n }\n // left is now pointing to the first char that's also in expected\n if (empty($result) || $result[1] - $result[0] > $right - $left) {\n $result = [$left, $right];\n }\n // unset the char in actual table.\n if ($actual[$str1[$left]] == 1) {\n unset($actual[$str1[$left]]);\n } else {\n $actual[$str1[$left]]--;\n }\n $left++;\n } else { // not all chars are in yet\n if (isset($expected[$str1[$right]])) {\n if (!isset($actual[$str1[$right]])) {\n $actual[$str1[$right]] = 1;\n } else {\n $actual[$str1[$right]]++;\n }\n }\n if ($right < strlen($str1)-1) {\n $right++;\n } else {\n $left++;\n }\n }\n print_r($result);\n }\n return substr($str1, $result[0], $result[1] - $result[0]+1);\n}", "public static function str_longest_common_substring(\n string $str1,\n string $str2,\n string $encoding = 'UTF-8'\n ): string {\n if ($str1 === '' || $str2 === '') {\n return '';\n }\n\n // Uses dynamic programming to solve\n // http://en.wikipedia.org/wiki/Longest_common_substring_problem\n\n if ($encoding === 'UTF-8') {\n $str_length = (int) \\mb_strlen($str1);\n $other_length = (int) \\mb_strlen($str2);\n } else {\n $encoding = self::normalize_encoding($encoding, 'UTF-8');\n\n $str_length = (int) self::strlen($str1, $encoding);\n $other_length = (int) self::strlen($str2, $encoding);\n }\n\n // Return if either string is empty\n if ($str_length === 0 || $other_length === 0) {\n return '';\n }\n\n $len = 0;\n $end = 0;\n $table = \\array_fill(\n 0,\n $str_length + 1,\n \\array_fill(0, $other_length + 1, 0)\n );\n\n if ($encoding === 'UTF-8') {\n for ($i = 1; $i <= $str_length; ++$i) {\n for ($j = 1; $j <= $other_length; ++$j) {\n $str_char = \\mb_substr($str1, $i - 1, 1);\n $other_char = \\mb_substr($str2, $j - 1, 1);\n\n if ($str_char === $other_char) {\n $table[$i][$j] = $table[$i - 1][$j - 1] + 1;\n if ($table[$i][$j] > $len) {\n $len = $table[$i][$j];\n $end = $i;\n }\n } else {\n $table[$i][$j] = 0;\n }\n }\n }\n } else {\n for ($i = 1; $i <= $str_length; ++$i) {\n for ($j = 1; $j <= $other_length; ++$j) {\n $str_char = self::substr($str1, $i - 1, 1, $encoding);\n $other_char = self::substr($str2, $j - 1, 1, $encoding);\n\n if ($str_char === $other_char) {\n $table[$i][$j] = $table[$i - 1][$j - 1] + 1;\n if ($table[$i][$j] > $len) {\n $len = $table[$i][$j];\n $end = $i;\n }\n } else {\n $table[$i][$j] = 0;\n }\n }\n }\n }\n\n if ($encoding === 'UTF-8') {\n return (string) \\mb_substr($str1, $end - $len, $len);\n }\n\n return (string) self::substr($str1, $end - $len, $len, $encoding);\n }", "function sortWords($list) {\n\t\t$len = count($list);\n\t\tfor ($i = 0; $i < $len-1; $i++) \n\t\t\tfor ($j = $i+1; $j < $len; $j++) \n\t\t\t\tif (strnatcasecmp($list[$i], $list[$j]) > 0) {\n\t\t\t\t\t$temp = $list[$i];\n\t\t\t\t\t$list[$i] = $list[$j];\n\t\t\t\t\t$list[$j] = $temp;\n\t\t\t\t}\n\t\treturn $list;\n\t}", "static function extract_common_words($string) {\n\t\t$string = trim($string); // trim the string\n\t\t$string = preg_replace('/[^a-zA-Z\\d \\-\\_@#]/', '', $string); // only take alphabet characters, but keep the spaces and dashes too…\n\t\t$string = strtolower($string); // make it lowercase\n\n\t\t//preg_match_all('/\\b.*?\\b/i', $string, $match_words);\n\t\t$pattern = '/[ \\n]/';\n\t\t$match_words = preg_split( $pattern, $string );\n\n\t\t// $match_words = $match_words[0];\n\n\t\tforeach ( $match_words as $key => $item ) {\n\t\t\t$item = trim($item);\n\t\t\tif (substr($item, 0, 4) === 'http' || $item == '' || in_array(strtolower($item), config('stopwords')) || strlen($item) <= 3 ) {\n\t\t\t\t//echo $item; // PAS DE STRLEN NOG AAN :(\n\t\t\t\t//if($item == \"\")echo '\"' . $item . ','.$key.'\"+';\n\t\t\t\tunset($match_words[$key]);\n\t\t\t}\n\t\t}\n\n\n\t\t// $word_count = str_word_count( implode(\" \", $match_words) , 1);\n\t\t$frequency = array_count_values($match_words);\n\t\t//arsort($frequency)\n\n\t\t//dd($frequency);\n\t\treturn $frequency;\n\t}", "public function testForSmallWords2() {\n $ret = $this->resolucao->textWrap($this->baseString, 12);\n $this->assertEquals(\"Se vi mais\", $ret[0]);\n $this->assertEquals(\"longe foi\", $ret[1]);\n $this->assertEquals(\"por estar de\", $ret[2]);\n $this->assertEquals(\"pé sobre\", $ret[3]);\n $this->assertEquals(\"ombros de\", $ret[4]);\n $this->assertEquals(\"gigantes\", $ret[5]);\n $this->assertCount(6, $ret);\n }", "public function returnWords($input){\n\t\t//most common words from wikipedia\n\t\t$commonWords = array(\"the\",\"be\",\"to\",\"of\",\"and\",\"a\",\"in\",\"that\",\"have\",\"i\",\"it\",\n\t\t\"for\",\"not\",\"on\",\"with\",\"he\",\"as\",\"you\",\"do\",\"at\",\"this\",\"but\",\"his\",\"by\",\"from\",\n\t\t\"they\",\"we\",\"say\",\"her\",\"she\",\"or\",\"an\",\"will\",\"my\",\"one\",\"all\",\"would\",\"there\",\"their\",\n\t\t\"what\",\"so\",\"up\",\"out\",\"if\",\"about\",\"who\",\"get\",\"which\",\"go\",\"me\",\"when\",\"make\",\"can\",\n\t\t\"like\",\"time\",\"no\",\"just\",\"him\",\"know\",\"take\",\"people\",\"into\",\"year\",\"your\",\"good\",\"some\",\n\t\t\"could\",\"them\",\"see\",\"other\",\"than\",\"then\",\"now\",\"look\",\"only\",\"come\",\"its\",\"over\",\"think\",\n\t\t\"also\",\"back\",\"after\",\"use\",\"two\",\"how\",\"our\",\"work\",\"first\",\"well\",\"way\",\"even\",\"new\",\"want\",\n\t\t\"because\",\"any\",\"these\",\"give\",\"day\",\"most\",\"us\",\"s\",\"m\",\"ll\",\"ve\",\"is\",\"am\");\n\n\n\t\t//remove tags\n\t\t$input = preg_replace(\"/<[^>]*>/\", \" \", $input);\n\t\t$input = str_replace(\"<br />\", \" \", $input);\n\t\t$input = str_replace(\",\", \" \", $input);\n\t\t$input = str_replace(\".\", \" \", $input);\n\t\t$input = str_replace(\"?\", \" \", $input);\n\t\t$input = str_replace(\"!\", \" \", $input);\n\t\t$input = str_replace(\":\", \" \", $input);\n\t\t$input = str_replace(\";\", \" \", $input);\n\t\t$input = str_replace(\"\\\"\", \" \", $input);\n\t\t$input = str_replace(\"(\", \" \", $input);\n\t\t$input = str_replace(\")\", \" \", $input);\n\t\t$input = str_replace(\"\\n\", \" \", $input);\n\t\t$input = str_replace(\"'\", \" \", $input);\n\t\t$input = str_replace(\"-\", \" \", $input);\n\t\t$input = str_replace(\"*\", \" \", $input);\n\t\t$input = strtolower($input);\n\t\t//replace all multiple spaces into single space\n\t\t$output = preg_replace('!\\s+!', ' ', $input);\n\t\t//split into string\n\t\t$output = trim($output);\n\t\t$wordArray = explode(\" \",$output);\n\n\t\t//remove common words\n\n\t\tfor($i = count($wordArray) - 1 ; $i > -1; $i--){\n\t\t\tfor($j = 0; $j < count($commonWords); $j++){\n\t\t\t\tif($wordArray[$i] == $commonWords[$j]){\n\t\t\t\t\tunset($wordArray[$i]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$wordArray = array_count_values($wordArray);\n\t\tforeach($wordArray as $key => $value){\n\t\t\tif($key == \"\")\n\t\t\t\tunset($wordArray[$key]);\n\t\t}\n\t\treturn $wordArray;\n\n\t}", "function slow_equals($a, $b)\n{\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0; \n}", "private static function compare($a, $b) \n\t{\n\t\treturn min(max(strcmp($a,$b), -1), 1);\n\t}", "public static function doYouMean() {\r\n\t\t$aranan_kelime = 'ph'; //Bu değerin veritabanından geldiğini varsayalım\r\n\t\t$diziler = array('php', 'asp', '.net', 'jsp', 'java', 'javascript', 'html', 'c', 'css', 'xml');\r\n\t\t//$diziler dizisi, veritabanından çekilen birçok veri dizisi olduğu varsayalım\r\n\t\t$uzunluk = -1;\r\n\t\t\r\n\t\tforeach($diziler as $dizi) {\r\n\t\t\t$benzerlik = levenshtein($aranan_kelime, $dizi);\r\n\t\t\tif($benzerlik == 0) {\r\n\t\t\t\t$yakinlik = $dizi;\r\n\t\t\t\t$uzunluk = 0;\r\n\t\t\t}\r\n\t\t\tif(($benzerlik <= $uzunluk) || ($uzunluk < 0)) {\r\n\t\t\t\t$yakinlik = $dizi;\r\n\t\t\t\t$uzunluk = $benzerlik;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$op = \"Aranan Kelime: \".$aranan_kelime;\r\n\t\tif($uzunluk == 0) {\r\n\t\t\t$op .= $yakinlik.\" için herhangi bir sonuç bulunamadı!\";\r\n\t\t} else {\r\n\t\t\t$op .= \"Bunu mu demek istediniz? \".$yakinlik;\r\n\t\t}\r\n\t\treturn $op;\r\n\t}", "public function testForSmallWords() {\n $ret = $this->resolucao->textWrap($this->baseString, 8);\n $this->assertEquals(\"Se vi\", $ret[0]);\n $this->assertEquals(\"mais\", $ret[1]);\n $this->assertEquals(\"longe\", $ret[2]);\n $this->assertEquals(\"foi por\", $ret[3]);\n $this->assertEquals(\"estar de\", $ret[4]);\n $this->assertEquals(\"pé sobre\", $ret[5]);\n $this->assertEquals(\"ombros\", $ret[6]);\n $this->assertEquals(\"de\", $ret[7]);\n $this->assertEquals(\"gigantes\", $ret[8]);\n $this->assertCount(9, $ret);\n }", "public function updateStringsMaxCompare()\n {\n return $this->updateStringCollection($this->maxStringCompare());\n }", "function distance($v1, $v2)\r\n{\r\n return sqrt(pow(($v1[0]-$v2[0]),2)+pow(($v1[1]-$v2[1]),2));//計算座標2點的距離\r\n}", "function statuscomp($s1,$s2){\n $arr1 = explode(\" \",$s1);\n $arr2 = explode(\" \",$s2);\n $ret = 0;\n $ind = 0;\n while ($ind<22){\n if(is_null($arr1[$ind])){\n $arr1[$ind] = -1;\n }\n $ind++;\n }\n $ind = 0;\n while ($ind<22){\n if(is_null($arr2[$ind])){\n $arr2[$ind] = -1;\n }\n $ind++;\n }\n $ind = 0;\n while ($ind<22){\n if($arr1[$ind]<$arr2[$ind]){\n $ret--;\n }else if($arr1[$ind]>$arr2[$ind]){\n $ret++;\n }\n $ind++;\n }\n return $ret;\n}", "public function similStringhe($str1, $str2)\n\t\t{\n\t\t\tif( strlen($str1) == strlen($str2) )\n\t\t\t{\n\t\t\t\t$strlen = strlen($str1);\n\t\t\t\t$temp1 = $temp2 = 0;\n\t\t\t\n\t\t\t\tfor($i=0; $i<$strlen; $i++)\n\t\t\t\t{\n\t\t\t\t\tif( $str1[$i] == $str2[$i] )\n\t\t\t\t\t\t$temp1++;\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor($i=($strlen-1); $i>$temp1; $i--)\n\t\t\t\t{\n\t\t\t\t\tif( $str1[$i] == $str2[$i] )\n\t\t\t\t\t\t$temp2++;\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( abs($strlen-($temp1+$temp2)) <= 2 )\n\t\t\t\t\tif( is_numeric(substr($str1, $temp1, abs($strlen-($temp1+$temp2)))) )\n\t\t\t\t\t\treturn $temp1;\n\t\t\t\t\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public function cmpr_strlen($a, $b)\n {\n }", "function search_short($patt, $k, $text, $start_index = 0, $max_len = -1, $text_strlen = -1)\n {\n if ($text_strlen < 0) {\n $text_strlen = strlen($text);\n }\n\n if ($max_len < 0) {\n $max_len = $text_strlen;\n }\n\n $start_index = (int)max(0, $start_index);\n $n = min($max_len, $text_strlen - $start_index);\n $m = strlen($patt);\n $end_index = $start_index + $n;\n\n // If $text is shorter than $patt, use the built-in\n // levenshtein() instead:\n if ($n < $m) {\n $lev = levenshtein(substr($text, $start_index, $n), $patt);\n\n if ($lev <= $k) {\n return Array($start_index + $n - 1 => $lev);\n } else {\n return Array();\n }\n }\n\n $s = Array();\n\n for ($i = 0; $i < $m; $i++) {\n $c = $patt[$i];\n\n if (isset($s[$c])) {\n $s[$c] = min($i, $s[$c]);\n } else {\n $s[$c] = $i;\n }\n }\n\n if ($end_index < $start_index) {\n return Array();\n }\n\n $matches = Array();\n $da = $db = range(0, $m - $k + 1);\n\n $mk = $m - $k;\n\n for ($t = $start_index; $t < $end_index; $t++) {\n $c = $text[$t];\n $in_patt = isset($s[$c]);\n\n if ($t & 1) {\n $d = &$da;\n $e = &$db;\n } else {\n $d = &$db;\n $e = &$da;\n }\n\n for ($i = 1; $i <= $mk; $i++) {\n $g = min($k + 1, $e[$i] + 1, $e[$i + 1] + 1);\n\n // TODO: optimize this with a look-up-table?\n if ($in_patt)\n for ($j = $e[$i - 1]; ($j < $g && $j <= $mk); $j++) {\n if ($patt[$i + $j - 1] == $c) {\n $g = $j;\n }\n }\n\n $d[$i] = $g;\n }\n\n if ($d[$mk] <= $k) {\n $err = $d[$mk];\n $i = min($t-$err + $k + 1, $start_index + $n - 1);\n\n if (!isset($matches[$i]) || $err < $matches[$i]) {\n $matches[$i] = $err;\n }\n }\n }\n\n unset($da, $db);\n\n return $matches;\n }", "function hamDist($a ,$b) {\n\n $dist = 0;\n\n $a = str_split($a);\n $b = str_split($b);\n\n for ($i = 0; $i < count($a); $i++) {\n\n if (isset($a[$i]) && isset($b[$i])) { # While this won't give errors if the inputs aren't of the same length this function doesn't work properly for such use cases.\n\n $diff = ord($a[$i]) ^ ord($b[$i]);\n \n foreach (str_split(decbin($diff)) as $bit) {\n \n if ($bit) {\n \n $dist++;\n \n }\n \n }\n\n }\n \n }\n\n return $dist;\n\n}", "private function _cmpCysteines($a,$b){\n $indexA = explode('-',$a);\n $indexB = explode('-',$b);\n if((int)$indexA[0] > (int)$indexB[0]){\n return -1;\n }\n if((int)$indexA[0] < (int)$indexB[0]){\n return 1;\n }\n if((int)$indexA[0] == (int)$indexB[0]){\n if((int)$indexA[1] >= (int)$indexB[1]){\n return -1;\n }\n else{\n return 1;\n }\n }\n }", "function compareLC() {\n $beginMatch = 0;\n $beginSubjectMatch = 0;\n $beginClassMatch = 0;\n $beginCutter1Match = 0;\n $beginCutter2Match = 0;\n $beginCutter3Match = 0;\n $beginVersionMatch = 0;\n $beginCopyMatch = 0;\n\n //Check Subjects\n if ($GLOBALS['CN_Subject'] > $GLOBALS['BC_Subject']) {\n $beginMatch = 1;\n } else if ($GLOBALS['CN_Subject'] >= $GLOBALS['BC_Subject']) {\n $beginSubjectMatch = 1;\n }\n\n //Check Classification Number\n if ($beginSubjectMatch) {\n //if(strpos($GLOBALS['CN_ClassNum'], '.') !== false) {\n if ((double) $GLOBALS['CN_ClassNum'] > (double) $GLOBALS['BC_ClassNum']) {\n $beginMatch = 1;\n } else if ((double) $GLOBALS['CN_ClassNum'] >= (double) $GLOBALS['BC_ClassNum']) {\n $beginClassMatch = 1;\n }\n //}\n /*\n //else {\n $CN_Arr = str_split($GLOBALS['CN_ClassNum']);\n $BC_Arr = str_split($GLOBALS['BC_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n\n $n = 0;\n\n for ($n; $n < sizeof($CN_Arr); ++$n) {\n if ($n >= sizeof($BC_Arr)) {\n $beginClassMatch = 1;\n break;\n } else if ($n < sizeof($BC_Arr)) {\n if ($CN_Arr[$n] > $BC_Arr[$n]) {\n $beginMatch = 1;\n break;\n } else if ($CN_Arr[$n] < $BC_Arr[$n]) {\n break;\n } else { }\n } else { }\n }\n\n if ($n == sizeof($CN_Arr)) {\n $beginClassMatch = 1;\n }\n //}\n */\n\n \n }\n\n //Check Cutter 1\n if ($beginClassMatch) {\n $CN_Cutter1_Ltr = substr($GLOBALS['CN_Cutter1'], 1, 1);\n $CN_Cutter1_Num = (int) substr($GLOBALS['CN_Cutter1'], 2);\n\n $BC_Cutter1_Ltr = substr($GLOBALS['BC_Cutter1'], 1, 1);\n $BC_Cutter1_Num = (int) substr($GLOBALS['BC_Cutter1'], 2);\n\n if (empty($GLOBALS['CN_Cutter1']) || empty($GLOBALS['BC_Cutter1'])) {\n $beginCutter1Match = 1;\n } else {\n if ($CN_Cutter1_Ltr > $BC_Cutter1_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter1_Ltr, $BC_Cutter1_Ltr) == 0) {\n if ($CN_Cutter1_Num > $BC_Cutter1_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter1_Num, $BC_Cutter1_Num) == 0) {\n $beginCutter1Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 2\n if ($beginCutter1Match) {\n $CN_Cutter2_Ltr = substr($GLOBALS['CN_Cutter2'], 0, 1);\n $CN_Cutter2_Num = (int) substr($GLOBALS['CN_Cutter2'], 1);\n\n $BC_Cutter2_Ltr = substr($GLOBALS['BC_Cutter2'], 0, 1);\n $BC_Cutter2_Num = (int) substr($GLOBALS['BC_Cutter2'], 1);\n\n if (empty($GLOBALS['CN_Cutter2']) || empty($GLOBALS['BC_Cutter2'])) {\n $beginCutter2Match = 1;\n } else {\n if ($CN_Cutter2_Ltr > $BC_Cutter2_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter2_Ltr, $BC_Cutter2_Ltr) == 0) {\n if ($CN_Cutter2_Num > $BC_Cutter2_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter2_Num, $BC_Cutter2_Num) == 0) {\n $beginCutter2Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 3\n if ($beginCutter2Match) {\n $CN_Cutter3_Ltr = substr($GLOBALS['CN_Cutter3'], 0, 1);\n $CN_Cutter3_Num = (int) substr($GLOBALS['CN_Cutter3'], 1);\n\n $BC_Cutter3_Ltr = substr($GLOBALS['BC_Cutter3'], 0, 1);\n $BC_Cutter3_Num = (int) substr($GLOBALS['BC_Cutter3'], 1);\n\n if (empty($GLOBALS['CN_Cutter3']) || empty($GLOBALS['BC_Cutter3'])) {\n $beginCutter3Match = 1;\n } else {\n if ($CN_Cutter3_Ltr > $BC_Cutter3_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter3_Ltr, $BC_Cutter3_Ltr) == 0) {\n if ($CN_Cutter3_Num > $BC_Cutter3_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter3_Num, $BC_Cutter3_Num) == 0) {\n $beginCutter3Match = 1;\n }\n }\n }\n }\n\n //Check Version\n if ($beginCutter3Match) {\n $CN_Version_Num = substr($GLOBALS['CN_Version'], 2);\n $BC_Version_Num = substr($GLOBALS['BC_Version'], 2);\n\n if (empty($CN_Version_Num)) {\n $beginVersionMatch = 1;\n } else if ($CN_Version_Num >= $BC_Version_Num || empty($BC_Version_Num)) {\n $beginMatch = 1;\n }\n }\n\n //Check Copy\n if ($beginVersionMatch) {\n $CN_Copy_Num = substr($GLOBALS['CN_Copy'], 2);\n $BC_Copy_Num = substr($GLOBALS['BC_Copy'], 2);\n\n if (empty($CN_Copy_Num)) {\n $beginCopyMatch = 1;\n } else if ($CN_Copy_Num >= $BC_Copy_Num || empty($BC_Copy_Num)) {\n $beginMatch = 1;\n }\n }\n\n $endMatch = 0;\n $endSubjectMatch = 0;\n $endClassMatch = 0;\n $endCutter1Match = 0;\n $endCutter2Match = 0;\n $endCutter3Match = 0;\n $endVersionMatch = 0;\n $endCopyMatch = 0;\n\n //Check Subjects\n if ($GLOBALS['CN_Subject'] < $GLOBALS['EC_Subject']) {\n $endMatch = 1;\n } else if ($GLOBALS['CN_Subject'] <= $GLOBALS['EC_Subject']) {\n $endSubjectMatch = 1;\n }\n\n //Check Classification Number\n if ($endSubjectMatch) {\n //if (strpos($GLOBALS['CN_ClassNum'], '.') !== false) {\n if ((double) $GLOBALS['CN_ClassNum'] < (double) $GLOBALS['EC_ClassNum']) {\n $endMatch = 1;\n } else if ((double) $GLOBALS['CN_ClassNum'] <= (double) $GLOBALS['EC_ClassNum']) {\n $endClassMatch = 1;\n }\n /*\n } else {\n $CN_Arr = str_split($GLOBALS['CN_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n\n $n = 0;\n\n for ($n; $n < sizeof($CN_Arr); ++$n) {\n if ($n >= sizeof($EC_Arr)) {\n $endClassMatch = 1;\n break;\n } else if ($n < sizeof($EC_Arr)) {\n if ($CN_Arr[$n] < $EC_Arr[$n]) {\n $endMatch = 1;\n break;\n } else if ($CN_Arr[$n] > $EC_Arr[$n]) {\n break;\n } else { }\n } else { }\n }\n\n if ($n == sizeof($CN_Arr)) {\n $endClassMatch = 1;\n }\n }\n */\n }\n\n //Check Cutter 1\n if ($endClassMatch) {\n $CN_Cutter1_Ltr = substr($GLOBALS['CN_Cutter1'], 1, 1);\n $CN_Cutter1_Num = (int) substr($GLOBALS['CN_Cutter1'], 2);\n\n $EC_Cutter1_Ltr = substr($GLOBALS['EC_Cutter1'], 1, 1);\n $EC_Cutter1_Num = (int) substr($GLOBALS['EC_Cutter1'], 2);\n\n if (empty($GLOBALS['CN_Cutter1']) || empty($GLOBALS['EC_Cutter1'])) {\n $endCutter1Match = 1;\n } else {\n if ($CN_Cutter1_Ltr < $EC_Cutter1_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter1_Ltr, $EC_Cutter1_Ltr) == 0) {\n if ($CN_Cutter1_Num < $EC_Cutter1_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter1_Num, $EC_Cutter1_Num) == 0) {\n $endCutter1Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 2\n if ($endCutter1Match) {\n $CN_Cutter2_Ltr = substr($GLOBALS['CN_Cutter2'], 0, 1);\n $CN_Cutter2_Num = (int) substr($GLOBALS['CN_Cutter2'], 1);\n\n $EC_Cutter2_Ltr = substr($GLOBALS['EC_Cutter2'], 0, 1);\n $EC_Cutter2_Num = (int) substr($GLOBALS['EC_Cutter2'], 1);\n\n if (empty($GLOBALS['CN_Cutter2']) || empty($GLOBALS['EC_Cutter2'])) {\n $endCutter2Match = 1;\n } else {\n if ($CN_Cutter2_Ltr < $EC_Cutter2_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter2_Ltr, $EC_Cutter2_Ltr) == 0) {\n if ($CN_Cutter2_Num < $EC_Cutter2_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter2_Num, $EC_Cutter2_Num) == 0) {\n $endCutter2Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 3\n if ($endCutter2Match) {\n $CN_Cutter3_Ltr = substr($GLOBALS['CN_Cutter3'], 0, 1);\n $CN_Cutter3_Num = (int) substr($GLOBALS['CN_Cutter3'], 1);\n\n $EC_Cutter3_Ltr = substr($GLOBALS['EC_Cutter3'], 0, 1);\n $EC_Cutter3_Num = (int) substr($GLOBALS['EC_Cutter3'], 1);\n\n if (empty($GLOBALS['CN_Cutter3']) || empty($GLOBALS['EC_Cutter3'])) {\n $endCutter3Match = 1;\n } else {\n if ($CN_Cutter3_Ltr < $EC_Cutter3_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter3_Ltr, $EC_Cutter3_Ltr) == 0) {\n if ($CN_Cutter3_Num < $EC_Cutter3_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter3_Num, $EC_Cutter3_Num) == 0) {\n $endCutter3Match = 1;\n }\n }\n }\n }\n\n //Check Version\n if ($endCutter3Match) {\n $CN_Version_Num = substr($GLOBALS['CN_Version'], 2);\n $EC_Version_Num = substr($GLOBALS['EC_Version'], 2);\n\n if (empty($CN_Version_Num)) {\n $endVersionMatch = 1;\n } else if ($CN_Version_Num <= $EC_Version_Num || empty($EC_Version_Num)) {\n $endMatch = 1;\n }\n }\n\n //Check Copy\n if ($endVersionMatch) {\n $CN_Copy_Num = substr($GLOBALS['CN_Copy'], 2);\n $EC_Copy_Num = substr($GLOBALS['EC_Copy'], 2);\n\n if (empty($CN_Copy_Num)) {\n $endCopyMatch = 1;\n } else if ($CN_Copy_Num <= $EC_Copy_Num || empty($EC_Copy_Num)) {\n $endMatch = 1;\n }\n } \n\n //Check for match\n if($beginSubjectMatch && $beginClassMatch && $beginCutter1Match && $beginCutter2Match && $beginCutter3Match && $beginVersionMatch && $beginCopyMatch) {\n $beginMatch = 1;\n }\n if ($endSubjectMatch && $endClassMatch && $endCutter1Match && $endCutter2Match && $endCutter3Match && $endVersionMatch && $endCopyMatch) {\n $endMatch = 1;\n }\n\n if($beginMatch && $endMatch) {\n return 1;\n }\n else {\n return 0;\n }\n\n }", "function similarity($rep, $guessrep) {\r\n//usleep(15);\r\n if (stripos($rep, ';')) {\r\n $repExplodArray = explode(';', $rep);\r\n } elseif (stripos($rep, ',')) {\r\n $repExplodArray = explode(',', $rep);\r\n } else {\r\n $repExplodArray = array($rep);\r\n }\r\n if (stripos($guessrep, ';')) {\r\n $gpExplodArray = explode(';', $guessrep);\r\n } elseif (stripos($guessrep, ',')) {\r\n $gpExplodArray = explode(',', $guessrep);\r\n } else {\r\n $gpExplodArray = array($guessrep);\r\n }\r\n $rep_part_count = count($repExplodArray);\r\n $matchcount = 0;\r\n foreach ($repExplodArray as $key => $value) {\r\n $value = trim($value);\r\n for ($j = 0; $j < count($gpExplodArray); $j++) {\r\n $gpExplodArray[$j] = trim($gpExplodArray[$j]);\r\n if ($value === $gpExplodArray[$j]) {\r\n $matchcount = $matchcount + 1;\r\n }\r\n }\r\n }\r\n $similarityRatio = $matchcount / $rep_part_count;\r\n $percentage=($similarityRatio*100).'%';\r\n\t\r\n//\t//Something to write to txt log\r\n//\t$log = \"date: \".date(\"F j, Y, g:i a\").PHP_EOL.\r\n// \"Guessrep: \". $guessrep.PHP_EOL.\r\n// \"rep: \". $rep.PHP_EOL.\t\t\r\n// \"-------------------------\".PHP_EOL;\r\n////Save string to log, use FILE_APPEND to append.\r\n//\tfile_put_contents('./log_'.date(\"j.n.Y\").'.txt', $log, FILE_APPEND);\r\n\r\n return $percentage;\r\n}", "private function _compareAnsString($src, $target)\n {\n $nameSrc = $this->cleanNameText($src);\n $nameTarget = $this->cleanNameText($target);\n if ($this->ignorecase)\n $compResult = strcasecmp($nameSrc, $nameTarget);\n else\n $compResult = strcmp($nameSrc, $nameTarget);\n\n //echo $nameSrc, ' :: ', $nameTarget, ' / ', $compResult, ' ', $compResult === 0, '<br />';\n\n return ($compResult === 0)? 1: 0;\n }", "function vB_Text_Diff($data_old, $data_new)\n\t{\n\t\t$this->data_old = preg_split('#(\\r\\n|\\n|\\r)#', $data_old);\n\t\t$this->data_old_len = sizeof($this->data_old);\n\n\t\t$this->data_new = preg_split('#(\\r\\n|\\n|\\r)#', $data_new);\n\t\t$this->data_new_len = sizeof($this->data_new);\n\t}", "public function cmpr_strlen( $a, $b ) {\n\t\t\treturn strlen( $b ) - strlen( $a );\n\t\t}", "function match( $cad, $cad2 ) \n{\n\treturn strcasecmp( $cad, $cad2 ) == 0; // Son iguales\n}", "function RetiraAcentos($texto)\n{\n $array1 = array( \"á\", \"à\", \"â\", \"ã\", \"ä\", \"é\", \"è\", \"ê\", \"ë\", \"í\", \"ì\", \"î\", \"ï\", \"ó\", \"ò\", \"ô\", \"õ\", \"ö\", \"ú\", \"ù\", \"û\", \"ü\", \"ç\"\n , \"Á\", \"À\", \"Â\", \"Ã\", \"Ä\", \"É\", \"È\", \"Ê\", \"Ë\", \"Í\", \"Ì\", \"Î\", \"Ï\", \"Ó\", \"Ò\", \"Ô\", \"Õ\", \"Ö\", \"Ú\", \"Ù\", \"Û\", \"Ü\", \"Ç\" );\n $array2 = array( \"a\", \"a\", \"a\", \"a\", \"a\", \"e\", \"e\", \"e\", \"e\", \"i\", \"i\", \"i\", \"i\", \"o\", \"o\", \"o\", \"o\", \"o\", \"u\", \"u\", \"u\", \"u\", \"c\"\n , \"A\", \"A\", \"A\", \"A\", \"A\", \"E\", \"E\", \"E\", \"E\", \"I\", \"I\", \"I\", \"I\", \"O\", \"O\", \"O\", \"O\", \"O\", \"U\", \"U\", \"U\", \"U\", \"C\" );\n return str_replace( $array1, $array2, $texto );\n}", "public function stopwords()\n {\n //return array(' a ',' about ',' above ',' above ',' across ',' after ',' afterwards ',' again ',' against ',' all ',' almost ',' alone ',' along ',' already ',' also ',' although ',' always ',' am ',' among ',' amongst ',' amoungst ',' amount ',' an ',' and ',' another ',' any ',' anyhow ',' anyone ',' anything ',' anyway ',' anywhere ',' are ',' around ',' as ',' at ',' back ',' be ',' became ',' because ',' become ',' becomes ',' becoming ',' been ',' before ',' beforehand ',' behind ',' being ',' below ',' beside ',' besides ',' between ',' beyond ',' bill ',' both ',' bottom ',' but ',' by ',' call ',' can ',' cannot ',' cant ',' co ',' con ',' could ',' couldnt ',' cry ',' de ',' describe ',' detail ',' do ',' done ',' down ',' due ',' during ',' each ',' eg ',' eight ',' either ',' eleven ',' else ',' elsewhere ',' empty ',' enough ',' etc ',' even ',' ever ',' every ',' everyone ',' everything ',' everywhere ',' except ',' few ',' fifteen ',' fify ',' fill ',' find ',' fire ',' first ',' five ',' for ',' former ',' formerly ',' forty ',' found ',' four ',' from ',' front ',' full ',' further ',' get ',' give ',' go ',' had ',' has ',' hasnt ',' have ',' he ',' hence ',' her ',' here ',' hereafter ',' hereby ',' herein ',' hereupon ',' hers ',' herself ',' him ',' himself ',' his ',' how ',' however ',' hundred ',' ie ',' if ',' in ',' inc ',' indeed ',' interest ',' into ',' is ',' it ',' its ',' itself ',' keep ',' last ',' latter ',' latterly ',' least ',' less ',' ltd ',' made ',' many ',' may ',' me ',' meanwhile ',' might ',' mill ',' mine ',' more ',' moreover ',' most ',' mostly ',' move ',' much ',' must ',' my ',' myself ',' name ',' namely ',' neither ',' never ',' nevertheless ',' next ',' nine ',' no ',' nobody ',' none ',' noone ',' nor ',' not ',' nothing ',' now ',' nowhere ',' of ',' off ',' often ',' on ',' once ',' one ',' only ',' onto ',' or ',' other ',' others ',' otherwise ',' our ',' ours ',' ourselves ',' out ',' over ',' own ',' part ',' per ',' perhaps ',' please ',' put ',' rather ',' re ',' same ',' see ',' seem ',' seemed ',' seeming ',' seems ',' serious ',' several ',' she ',' should ',' show ',' side ',' since ',' sincere ',' six ',' sixty ',' so ',' some ',' somehow ',' someone ',' something ',' sometime ',' sometimes ',' somewhere ',' still ',' such ',' system ',' take ',' ten ',' than ',' that ',' the ',' their ',' them ',' themselves ',' then ',' thence ',' there ',' thereafter ',' thereby ',' therefore ',' therein ',' thereupon ',' these ',' they ',' thickv ',' thin ',' third ',' this ',' those ',' though ',' three ',' through ',' throughout ',' thru ',' thus ',' to ',' together ',' too ',' top ',' toward ',' towards ',' twelve ',' twenty ',' two ',' un ',' under ',' until ',' up ',' upon ',' us ',' very ',' via ',' was ',' we ',' well ',' were ',' what ',' whatever ',' when ',' whence ',' whenever ',' where ',' whereafter ',' whereas ',' whereby ',' wherein ',' whereupon ',' wherever ',' whether ',' which ',' while ',' whither ',' who ',' whoever ',' whole ',' whom ',' whose ',' why ',' will ',' with ',' within ',' without ',' would ',' yet ',' you ',' your ',' yours ',' yourself ',' yourselves ',' the ');\n\t\tif($this->user->option('language') == 0)\n\t\t{\n\t\t\treturn array();\n\t\t}\n $stopword = ORM::factory('Stopword', $this->user->option('language'));\n\t\t$words = explode($stopword->delimiter,$stopword->words);\n\t\treturn $words;\n }", "public function testEmptyString2()\n {\n $string1 = $this->randomString(rand(5, 10));\n\n $percent1 = 0;\n $percent2 = 0;\n\n $this->assertEquals(\n similar_text($string1, '', $percent1),\n mb_similar_text($string1, '', $percent2)\n );\n\n $this->assertEquals($percent1, $percent2);\n }", "public static function text_diff( $left_string, $right_string, $args = null ) {\n\t\t$defaults = array(\n\t\t\t'title' => '',\n\t\t\t'title_left' => '',\n\t\t\t'title_right' => '',\n\t\t\t'leading_context_lines' => 1,\n\t\t\t'trailing_context_lines' => 1,\n\t\t);\n\n\t\t$args = wp_parse_args( $args, $defaults );\n\n\t\tif ( ! class_exists( 'WP_Text_Diff_Renderer_Table' ) ) {\n\t\t\trequire ABSPATH . WPINC . '/wp-diff.php';\n\t\t}\n\n\t\t$left_string = normalize_whitespace( $left_string );\n\t\t$right_string = normalize_whitespace( $right_string );\n\n\t\t$left_lines = explode( \"\\n\", $left_string );\n\t\t$right_lines = explode( \"\\n\", $right_string );\n\t\t$text_diff = new \\Text_Diff( $left_lines, $right_lines );\n\n\t\t$renderer = new \\WP_Text_Diff_Renderer_Table( $args );\n\t\t$renderer->_leading_context_lines = $args['leading_context_lines'];\n\t\t$renderer->_trailing_context_lines = $args['trailing_context_lines'];\n\n\t\t$diff = $renderer->render( $text_diff );\n\n\t\tif ( $diff === '' ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$r = '';\n\n\t\t$r .= \"<div class='SimpleHistory__diff__contents' tabindex='0'>\";\n\t\t$r .= \"<div class='SimpleHistory__diff__contentsInner'>\";\n\n\t\t$r .= \"<table class='diff SimpleHistory__diff'>\\n\";\n\n\t\tif ( ! empty( $args['show_split_view'] ) ) {\n\t\t\t$r .=\n\t\t\t\"<col class='content diffsplit left' /><col class='content diffsplit middle' /><col class='content diffsplit right' />\";\n\t\t} else {\n\t\t\t$r .= \"<col class='content' />\";\n\t\t}\n\n\t\tif ( $args['title'] || $args['title_left'] || $args['title_right'] ) {\n\t\t\t$r .= '<thead>';\n\t\t}\n\t\tif ( $args['title'] ) {\n\t\t\t$r .= \"<tr class='diff-title'><th colspan='4'>$args[title]</th></tr>\\n\";\n\t\t}\n\t\tif ( $args['title_left'] || $args['title_right'] ) {\n\t\t\t$r .= \"<tr class='diff-sub-title'>\\n\";\n\t\t\t$r .= \"\\t<td></td><th>$args[title_left]</th>\\n\";\n\t\t\t$r .= \"\\t<td></td><th>$args[title_right]</th>\\n\";\n\t\t\t$r .= \"</tr>\\n\";\n\t\t}\n\t\tif ( $args['title'] || $args['title_left'] || $args['title_right'] ) {\n\t\t\t$r .= \"</thead>\\n\";\n\t\t}\n\n\t\t$r .= \"<tbody>\\n$diff</div>\\n</tbody>\\n\";\n\t\t$r .= '</table>';\n\n\t\t$r .= '</div>';\n\t\t$r .= '</div>';\n\n\t\treturn $r;\n\t}", "function sortByLength($a,$b){\n return strlen($b)-strlen($a);\n}", "function funnyString($s) {\n $str_array = str_split($s);\n $rev_array = array_reverse($str_array);\n $s_ascii = [];\n $r_ascii = [];\n for($i=0; $i<count($str_array); $i++) {\n array_push($s_ascii, ord($str_array[$i]));\n array_push($r_ascii, ord($rev_array[$i]));\n }\n $s_diff = [];\n $r_diff = [];\n for($j=0; $j<count($s_ascii)-1; $j++ ) {\n array_push($s_diff, abs($s_ascii[$j]-$s_ascii[$j+1]));\n array_push($r_diff, abs($r_ascii[$j]-$r_ascii[$j+1]));\n }\n if( $s_diff === $r_diff ) {\n return \"Funny\";\n }\n else {\n return \"Not Funny\";\n }\n}", "public function substrwords()\n {\n $longString = \"In this talk, we will show how to leverage InfluxDB to implement some solutions to tackle on the issues of time series forecasting at scale, including continuous accuracy evaluation and algorithm hyperparameters optimization.\";\n // echo strlen($longString);\n if (strlen($longString) > 160) {\n\n $this->truncated = substr($longString, 0, strpos(wordwrap($longString, 160), \"\\n\"));\n\n $this->truncated .= $this->end;\n echo $this->truncated;\n echo \"\\n\";\n\n $nd = $this->truncated = substr($longString, strpos(wordwrap($longString, 160), \"\\n\"));\n\n echo $this->end . $nd;\n\n #################\n # evans\n // $w = urldecode($MESSAGE);// remove special Characters\n // echo strlen($w);\n // $chars = 157;\n // while($w){\n // if (strlen($w) > $chars) {\n\n // // $chars += $chars; \n \n // $TruncMESSAGE = substr($w, 0, strpos($w, ' ', $chars)) . '...';// truncate from position 0-157\n // // $TruncMES = '...' . substr($w, strpos($w, ' ', 157));// truncate from position 157-...\n \n // $mes = array($TruncMESSAGE); // array with cut messages\n // foreach ($mes as $key) {\n // $encoded = urlencode($key);\n // $smsUrl = $emgUrl . \"&SOURCEADDR=\" . $SOURCEADDR . \"&DESTADDR=\" . $DESTADDR . \"&MESSAGE=\" . $encoded . \"&DLR=\" . $DLR . \"&USERNAME=\" . $smsuser . \"&PASSWORD=\" . $smspassword;\n // $smsResults = join('', file($smsUrl)); \n // echo $smsUrl; \n // echo \"\\n\"; \n \n // }\n \n // } else {\n \n // $smsUrl = $emgUrl . \"&SOURCEADDR=\" . $SOURCEADDR . \"&DESTADDR=\" . $DESTADDR . \"&MESSAGE=\" . $MESSAGE . \"&DLR=\" . $DLR . \"&USERNAME=\" . $smsuser . \"&PASSWORD=\" . $smspassword;\n \n // }\n #evans#\n #################################3\n }\n\n return $this->truncated;\n }", "function sortByLength($a,$b) {\n return strlen($b)-strlen($a);\n}", "function boyermoore_search( $haystack, $needle )\n{\n /*\n * Calc string sizes\n */\n// $needle_len;\n// $haystack_len;\n $needle_len = strlen( $needle );\n $haystack_len = strlen( $haystack );\n\n /*\n * Simple checks\n */\n if( $haystack_len == 0 )\n {\n return NULL;\n }\n if( $needle_len == 0 )\n {\n return $haystack;\n }\n\n $badcharacter = array();\n $goodsuffix = array();\n /*\n * Initialize heuristics\n */\n $badcharacter[ALPHABET_SIZE];\n $goodsuffix[$needle_len + 1];\n\n prepare_badcharacter_heuristic( $needle, $needle_len, $badcharacter );\n prepare_goodsuffix_heuristic( $needle, $needle_len, $goodsuffix );\n\n /*\n * Boyer-Moore search\n */\n $s = 0;\n while( $s <= ( $haystack_len - $needle_len ))\n {\n $j = $needle_len;\n while( $j > 0 && $needle[$j - 1] == $haystack[$s + $j - 1] )\n $j--;\n\n if( $j > 0 )\n {\n $k = $badcharacter[( int ) $haystack[$s + $j - 1]];\n if( $k < ( int ) $j && ( $m = $j - $k - 1 ) > $goodsuffix[$j] ) { $s += $m; }\n else { $s += $goodsuffix[$j]; }\n }\n else\n {\n return $haystack + $s;\n }\n }\n\n return NULL;\n}", "function FrequentWordsMismatches($genome, $k, $d)\n{\n\t$solution = array();\n\t$_max = -1;\n\tfor ($i = 0; $i <= strlen($genome) - $k; $i++)\n\t{\n\t\t$_text = substr($genome, $i, $k);\n\t\t$_indexes = ApproximatePatternMatching($_text, $genome, $d);\n\t\tif ($_indexes)\n\t\t{\n\t\t\t$_cnt = count($_indexes);\n\t\t\tif ($_cnt > $_max)\n\t\t\t{\n\t\t\t\t$solution = array();\n\t\t\t\t$solution[$_text] = $_text;\n\t\t\t\t$_max = $_cnt;\n\t\t\t}\n\t\t\telseif ($_cnt == $_max)\n\t\t\t{\n\t\t\t\t$solution[$_text] = $_text;\n\t\t\t}\n\t\t\t// echo $_max.'<hr>';\n\t\t}\n\t}\n\treturn $solution;\n}", "function getSimilarAuthors1($author) {\r\n $result = array();\r\n \r\n //return when this is a synonym of a main author.\r\n if ($author->synonym_of != '0')\r\n return $result;\r\n \r\n $CI = &get_instance();\r\n $CI->load->helper('utf8_to_ascii');\r\n \r\n //get database author array\r\n $CI->db->select('author_id, cleanname');\r\n \r\n //do not return synonyms of this author\r\n $CI->db->where('synonym_of !=', $author->author_id);\r\n $CI->db->orderby('cleanname');\r\n $Q = $CI->db->get('author');\r\n \r\n $db_cleanauthors = array();\r\n //retrieve results or fail \r\n foreach ($Q->result() as $R)\r\n {\r\n $db_cleanauthors[$R->author_id] = strtolower($R->cleanname); //why strtolower? because we want to check case insensitive.\r\n }\r\n //check on cleanname\r\n //create cleanname\r\n \r\n $cleanAuthorName = strtolower($author->cleanname);\r\n \r\n if (sizeof($cleanAuthorName) < 4)\r\n $dist_threshold = 2;\r\n else if (sizeof($cleanAuthorName) < 8)\r\n $dist_threshold = 3;\r\n else\r\n $dist_threshold = 4;\r\n \r\n $db_distances = array();\r\n foreach ($db_cleanauthors as $author_id => $db_author)\r\n {\r\n $distance = levenshtein($db_author, $cleanAuthorName);\r\n if (($distance < $dist_threshold) && ($author_id != $author->author_id))\r\n $db_distances[$author_id] = $distance;\r\n }\r\n \r\n //sort while keeping key relationship\r\n asort($db_distances, SORT_NUMERIC);\r\n \r\n foreach($db_distances as $key => $value)\r\n {\r\n $result[]= $this->getByID($key);\r\n }\r\n return $result;\r\n }", "function nearby_result_compare($a, $b) {\n\tif ($a[3] > $b[3]) {\n\t\treturn +1;\n\t} else if ($a[3] < $b[3]) {\n\t\treturn -1;\n\t} else {\n\t\treturn 0;\n\t}\n}", "function cmp_entries($a, $b){\n $a_nameparts = explode(\" \", $a[\"name\"], 2);\n $b_nameparts = explode(\" \", $b[\"name\"], 2);\n $result = 0;\n if( isset($a_nameparts[1]) && isset($b_nameparts[1]) ){\n $result = strcmp($a_nameparts[1], $b_nameparts[1]);\n }\n if( $result === 0 ) {\n $result = strcmp($a_nameparts[0], $b_nameparts[0]);\n }\n if( $result === 0 ) {\n $result = strcmp($a[\"number\"], $b[\"number\"]);\n }\n return $result;\n}" ]
[ "0.6785128", "0.6781519", "0.65867275", "0.65479004", "0.62977195", "0.6205906", "0.61821884", "0.6146887", "0.6087803", "0.599907", "0.59939563", "0.59591377", "0.5924997", "0.5919254", "0.5912637", "0.5811615", "0.58082855", "0.576025", "0.5753487", "0.57044023", "0.56999123", "0.56874824", "0.5681755", "0.5681581", "0.5677405", "0.56644905", "0.5649466", "0.56443375", "0.5623497", "0.56132895", "0.5580323", "0.55787647", "0.55714595", "0.5561865", "0.5555516", "0.55449176", "0.5526422", "0.5524659", "0.5519551", "0.5516761", "0.5487698", "0.54699874", "0.5463163", "0.5457878", "0.54520243", "0.5449607", "0.54414487", "0.5432234", "0.54322326", "0.5423728", "0.54210585", "0.54189605", "0.5410959", "0.540433", "0.54001063", "0.5370074", "0.53552604", "0.5346188", "0.53448856", "0.5340697", "0.53402257", "0.532795", "0.53176934", "0.53014696", "0.5257212", "0.5245564", "0.52403146", "0.5226795", "0.52053684", "0.51923925", "0.5190302", "0.51884705", "0.5187481", "0.5185474", "0.5178135", "0.5172671", "0.5170823", "0.5161829", "0.5161776", "0.5148591", "0.51470894", "0.5141847", "0.51346964", "0.5131406", "0.51290536", "0.51240957", "0.51209563", "0.51182616", "0.51154053", "0.51059246", "0.5105027", "0.50988495", "0.5098567", "0.5095782", "0.509055", "0.50837106", "0.50754964", "0.5066836", "0.5060401", "0.5059927" ]
0.7875869
0
Check if the token for the given platform should be updated.
Проверьте, нужно ли обновить токен для заданной платформы.
public function tokenShouldBeUpdated($platform) { $column = "{$platform}_token_expires_at"; if (is_null($this->{$column})) return false; return abs($this->{$column}->diffInDays(Carbon::now())) < 5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _checkToken(KCommandContext $context)\n {\n //Check the token\n if($context->caller->isDispatched())\n { \n $method = KRequest::method();\n \n //Only check the token for PUT, DELETE and POST requests (AND if the view is not 'ipn')\n if(($method != KHttpRequest::GET) && ($method != KHttpRequest::OPTIONS) && (KRequest::get('get.view', 'string') != 'ipn')) \n { \n if( KRequest::token() !== JUtility::getToken()) { \n return false;\n }\n }\n }\n \n return true;\n }", "private function validateTokens()\n {\n $whoami = $this->getJson('/ping/whoami');\n if (isset($whoami['authenticated']) && $whoami['authenticated'])\n {\n syslog(LOG_DEBUG, \"Monzo: Token is still valid\");\n return true;\n }\n else\n {\n return false;\n }\n }", "function media_theplatform_mpx_check_token() {\n if (!media_theplatform_mpx_variable_get('token')) {\n return FALSE;\n }\n // If idleTimeout date has passed, signIn again.\n if (media_theplatform_mpx_variable_get('date_idletimeout') < time()) {\n // Expire the current token.\n media_theplatform_mpx_expire_token();\n // Retrieve and return new token.\n return media_theplatform_mpx_signin();\n }\n else {\n return TRUE;\n }\n}", "public function checkToken( )\n {\n\n $this->getTokenPost();\n if ( $this->token_post && $this->is_active() ) {\n if (empty($this->project_id) || $this->project_id != $this->token_post['meta_data']['pr-projekt'][0]) {\n $this->set_result_error('notfound');\n return false;\n }\n return $this->result;\n } else {\n return false;\n }\n\n }", "function validarToken($token)\n{\n\trequire_once \"api_conf.php\";\n\tif($token == $api_token)\n\t{\n\t\treturn true;\n\t}\n\n\t//cambiar a False en producción\n\treturn true;\n}", "private function check_api_key() {\n return true;\n $post_token = $this->input->post('App-Request-Token');\n $post_datetime = $this->input->post('App-Request-Timestamp');\n if ($post_token && $post_datetime) {\n $date = gmdate('Y-m-d H:i:s');\n if (strtotime($post_datetime) >= (strtotime($date) - 300) && strtotime($post_datetime) <= strtotime($date)) {\n $token = sha1(config_item('api_request_key') . $post_datetime);\n if ($post_token === $token) {\n return true;\n }\n }\n } else {\n $this->send_error('ERROR');\n exit;\n }\n }", "function isValidToken($token){\r\n global $pdo;\r\n\t\t$select = $pdo->prepare(\"SELECT 1 FROM device_registry \r\n\t\t\tWHERE token = ?\");\r\n\t\t$select->execute(array($token));\r\n \tif($select->fetchColumn()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function validate ( $token ) { return $this->server->token2uid( $token ) > 0; }", "protected function check_tok($token)\r\n {\r\n if (isset($_SESSION['token']) && $token === $_SESSION['token'])\r\n {\r\n unset($_SESSION['token']);\r\n return true;\r\n }\r\n return false;\r\n }", "public static function check_token($token)\r\n {\r\n if ($token == $_SESSION['token'])\r\n return true;\r\n\r\n return false;\r\n }", "public function verify($token):bool;", "public function checkTokenAndAdmin($token)\n {\n return (!empty($token) && !empty($this->state['webToken'])\n && $token == $this->state['webToken'] && !empty($this->state['admin']));\n }", "public function checkToken() {\n if (!isset($this->requestToken)) {\n trigger_error(tr('Request token missing. Is the session module missing?'), E_USER_WARNING);\n return false;\n }\n if (!isset($this->data['access_token'])) {\n return false;\n }\n return $this->requestToken->getToken() === $this->data['access_token'];\n }", "function token_exist($token): bool\r\n{\r\n\tglobal $DATABASE;\r\n\t\r\n\ttoken_invalidate();\r\n\t\r\n\tif($token == NULL) return false;\r\n\t\r\n\tforeach($DATABASE->execute_query(\"SELECT token FROM `logged_in`\") as $value)\r\n\t\tif(strcmp($value[0], $token) == 0)\r\n\t\t\treturn true;\r\n\t\r\n\treturn false;\r\n}", "protected function _isNewToken()\n {\n $info = $this->_quote->getPayment();\n Mage::helper('ewayrapid')->unserializeInfoInstace($info);\n if ($token = Mage::getSingleton('core/session')->getData('newToken')) {\n Mage::getSingleton('core/session')->unsetData('newToken');\n return true;\n }\n return false;\n }", "private function tokenExist() {\n if (!$this->webhook->token) {\n // throw an exception\n $this->missingEx('token');\n }\n }", "function checkToken($token){\n\t\tif(checkTimeout($token)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\tif(isset($_SESSION[$token])){\n\t\t\t\tif($_SESSION[$token] == $_GET['token']){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function checkApiToken($token, $delete = false)\n\t{\n\t\t$max = config('auth.api_tokens.max');\n\n\t\tif ($max > 1) // if max tokens is greater than 1, use relationship (otherwise just use \"api_token\" column)\n\t\t{\n\t\t\t$apiTokens = $this->apiTokens()->onlyActive()->get();\n\n\t\t\tforeach ($apiTokens as $apiToken)\n\t\t\t{\n\t\t\t\tif ($apiToken->check($token))\n\t\t\t\t{\n\t\t\t\t\tif ($delete)\n\t\t\t\t\t{\n\t\t\t\t\t\t$apiToken->delete();\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$expired = !is_null($this->api_token_expired_at) && strtotime($this->api_token_expired_at) <= time();\n\n\t\t\tif (Hash::check($token, $this->api_token) && !$expired)\n\t\t\t{\n\t\t\t\tif ($delete)\n\t\t\t\t{\n\t\t\t\t\t$this->update([\n\t\t\t\t\t\t'api_token' => null,\n\t\t\t\t\t\t'api_token_expired_at' => null,\n\t\t\t\t\t]);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function checkDeviceToken()\n {\n $sql = $this->db->select('id')->where('deviceToken', $deviceToken)->get('users');\n if($sql->num_rows())\n {\n $id = array();\n foreach($sql->result() as $result)\n {\n $id[] = $result->id;\n }\n $this->db->where_in('id', $id);\n $this->db->update('users',array('deviceToken'=>''));\n\n if($this->db->affected_rows() > 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n return true;\n }", "public function supportedToken()\n {\n if (!$this->diffTokenTimeExpire()) {\n $newToken = $this->createToken($this->user->getId());\n\n $this->user->updateUserToken($newToken);\n }\n return true;\n }", "public function checkToken(string $token)\n {\n if ($token = Token::select()->where('token', $token)->first()) {\n if (new DateTime($token->getAttribute('expire')) < $this->timeService->getDate()) {\n $this->deleteToken($token);\n return false;\n } else {\n $this->renewToken($token);\n $token->save();\n return true;\n }\n }\n return false;\n }", "function is_valid_token($request)\n\t{\n\t\tif (!isset($request->token) || empty($request->token))\n\t\t\treturn [FALSE, ['message' => F::lang('err_token_invalid')]];\n\t\t// else\n\t\t\t// $request->token = urldecode($request->token);\n\t\t\n\t\tif ($request->agent == 'android') {\n\t\t\t$token = ['android_token' => $request->token];\n\t\t}\n\t\tif ($request->agent == 'ios') {\n\t\t\t$token = ['ios_token' => $request->token];\n\t\t}\n\t\tif ($request->agent == 'web') {\n\t\t\t$token = ['web_token' => $request->token];\n\t\t}\n\t\t\n\t\t$ci = &get_instance();\n\t\t$ci->load->model('auth_model');\n\t\t$row = $ci->auth_model->get_token($token);\n\t\tif (!$row)\n\t\t\treturn [FALSE, ['message' => F::lang('err_token_invalid')]];\n\n\t\tif ($request->agent == 'android') {\n\t\t\t$token = $row->android_token;\n\t\t\t$token_exp = $row->android_token_expired;\n\t\t}\n\t\tif ($request->agent == 'ios') {\n\t\t\t$token = $row->ios_token;\n\t\t\t$token_exp = $row->ios_token_expired;\n\t\t}\n\t\tif ($request->agent == 'web') {\n\t\t\t$token = $row->web_token;\n\t\t\t$token_exp = $row->web_token_expired;\n\t\t}\n\t\t\n\t\tif ($request->token != $token)\n\t\t\treturn [FALSE, ['result' => NULL, 'message' => F::lang('err_token_invalid')]];\n\t\t\n\t\tif ($token_exp < date('Y-m-d H:i:s'))\n\t\t\treturn [FALSE, ['result' => NULL, 'message' => F::lang('err_token_expired')]];\n\t\t\n\t\treturn [TRUE, ['result' => $row, 'message' => NULL]];\n\t}", "public function isTokenValid() {\n if (!isset($_SESSION['token']) || $this->_token != $_SESSION['token'])\n \n\t\t\t$this->_errors[] = 'invalid submission';\n\n // return true or false \n return count($this->_errors) ? 0 : 1;\n }", "public function update_token($uid, $token){\n $query = $this->db->where('01_id', $uid)\n ->set('01_token', $token)\n ->update('register_01');\n if($query){\n return true;\n }else{\n return false;\n }\n }", "public static function checkToken(string $api_token = null) : bool\n {\n $token = DB::table('api_tokens')\n ->where('token', $api_token)\n ->where('expires_at', '>', now()->toDateTimeString())\n ->first();\n if ($token) {\n return true;\n }\n return false;\n }", "public function check_for_update($token)\n {\n if ($this->checker->is_admin())\n {\n if ($token == $this->session->userdata('CSRF'))\n {\n $this->activity_log->create_activity_log('check_for_update', 'Mengecek Pembaharuan', null, $this->session->userdata('admin_login'));\n // comparing version\n //$url = 'http://muramasa.hol.es/app-updates/simakwapp';\n $url = $this->_update_app_host . '/updates';\n log_message('error' ,'URL: ' . $url);\n $app_s_ver = file_get_contents($url . '/asmpver.txt');\n $app_s_ver = explode(':', $app_s_ver);\n $app_s_ver = $app_s_ver[1];\n log_message('error', $app_s_ver);\n // if app version in server greater than current version\n if ($app_s_ver > $this->aboutapp->get_version())\n {\n set_time_limit(0);\n echo 'true-Versi:' . $app_s_ver . '-Ukuran:' . FileSizeConvert(strlen(file_get_contents($url . '/asmp-v' . $app_s_ver . '.zip')));\n }\n else\n {\n echo 'false-';\n }\n }\n else\n {\n echo 'token tidak sama';\n }\n }\n else\n {\n redirect('login/login_required', 'refresh');\n }\n }", "public static function check($token) \n{\n // set the `$tokenKey variable` by calling `get method` on `Config object`\n $tokenKey = Config::get('session.tokenKey'); // returns string\n\n /* checks whether `token` KEY exists in the `$_SESSION[] array` AND\n `form's token value` is equal to `token VALUE` in the `$_SESSION[] array` */\n if(Session::exists($tokenKey) && $token == Session::get($tokenKey)) {\n Session::delete($tokenKey);\n return true;\n }\n\n return false;\n}", "public function token_is_valid() {\n $token = $this->ci->input->post(\"token\");\n\n $this->ci->load->helper(\"access\");\n return check_token($token);\n }", "public function verifyApiToken($token)\n {\n $apiConsumer = $this->getApiConsumerFromToken($token);\n\n // If we cannot locate an ApiConsumer, return false, otherwise verify the token and return true or false\n $verified = !$apiConsumer ? false : Hash::check($token, $apiConsumer->api_token);\n\n return $verified;\n }", "private static function verify_token( $token, $timestamp )\n\t{\n\t\tif ( $token == self::create_token( $timestamp ) ) {\n\t\t\t$time = time();\n\t\t\tif ( $time > ($timestamp + 3) && $time < ($timestamp + 5*60) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function validateToken($token)\n\t{\n\t\t$valid = false;\n\t\t$passwordResetInfo = $this->entityManager->getRepository('BugglMainBundle:PasswordResetInfo')->findOneBy(array('token' => $token));\n\t\tif(!is_null($passwordResetInfo) and $token != ''){\n\t\t\t$valid = strtotime($passwordResetInfo->getTokenExpiration()->format('Y-m-d H:i:s')) >= strtotime(date('Y-m-d H:i:s'));\n\t\t}\n\n\t\treturn $valid;\n\t}", "public static function checkTokenRequestParam(): void\n {\n global $token_mismatch, $token_provided;\n\n $token_mismatch = true;\n $token_provided = false;\n\n if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST') {\n return;\n }\n\n if (isset($_POST['token']) && is_scalar($_POST['token']) && strlen((string) $_POST['token']) > 0) {\n $token_provided = true;\n $token_mismatch = ! @hash_equals($_SESSION[' PMA_token '], (string) $_POST['token']);\n }\n\n if (! $token_mismatch) {\n return;\n }\n\n // Warn in case the mismatch is result of failed setting of session cookie\n if (isset($_POST['set_session']) && $_POST['set_session'] !== session_id()) {\n trigger_error(\n __(\n 'Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.'\n ),\n E_USER_ERROR\n );\n }\n\n /**\n * We don't allow any POST operation parameters if the token is mismatched\n * or is not provided.\n */\n $allowList = ['ajax_request'];\n Sanitize::removeRequestVars($allowList);\n }", "private function matchAppToken($token=''){\n\t\tif($token!=''){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "function check_token($token, $form_name)\n{\n if (is_bool($token)) {\n return false;\n }\n return $token === get_token($form_name);\n}", "public function setup_check_security_token() {\n\t\tif ( ! $this->wsal->settings()->CurrentUserCan( 'edit' ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Access Denied.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\t$nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : false;\n\t\t$token = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : false;\n\n\t\tif ( empty( $nonce ) || ! wp_verify_nonce( $nonce, 'wsal-verify-wizard-page' ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Nonce verification failed.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\tif ( empty( $token ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Invalid input.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\techo wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'success' => true,\n\t\t\t\t'token' => $token,\n\t\t\t\t'tokenType' => esc_html( $this->get_token_type( $token ) ),\n\t\t\t)\n\t\t);\n\t\tdie();\n\t}", "public final function verify($token)\n {\n }", "static function tokenGatekeeper() {\n $token = getInput(\"token\");\n $session_token = Cache::get(\"token\", \"session\");\n if ($token == $session_token) {\n return true;\n }\n return false;\n }", "function validate_token() {\n\n global $token;\n\n // If the user passed a username and password in this request\n // and did not login via a session, then token validation is not\n // necessary, so return true.\n if (defined('API_USERNAME')) {\n return true;\n }\n\n // If the token does not exist in the session,\n // or the passed token does not match the token from the session,\n // then this might be a CSRF attack so respond with an error.\n if (\n ($_SESSION['software']['token'] == '')\n || ($token != $_SESSION['software']['token'])\n ) {\n respond(array(\n 'status' => 'error',\n 'message' => 'Invalid token.'));\n }\n}", "public function isRoundValid(\\Gems_Tracker_Token $token);", "public function hasToken(){\n return ( $this->token and $this->token->isValid() );\n }", "public function isTokenValid($token)\n {\n $pdo = static::getDB();\n\n $sql = \"select token, to_char(otp_last_date, 'YYYY-MM-DD HH24:MI:SS') as otp_last_date from users where email = :email\";\n $result = $pdo->prepare($sql);\n $result->execute([$this->email]);\n\n $result = $result->fetchObject();\n\n if($result->TOKEN !== $token){\n return false;\n }\n $currentTime = strtotime(Extra::getCurrentDateTime());\n $time = strtotime($result->OTP_LAST_DATE);\n\n $diff_in_seconds = ($currentTime - $time);\n\n // 7 days\n if($diff_in_seconds > 604800){\n return false;\n }\n return true;\n }", "function Check() {\n\t\t// Check if the token has been sent.\n\t\tif(isset($_REQUEST['spack_token'])) {\n\t\t\t// Check if the token exists\n\t\t\tif(isset($_SESSION[\"spackt_\".$_REQUEST['spack_token']])) {\n\t\t\t\t// Check if the token isn't empty\n\t\t\t\tif(isset($_SESSION[\"spackt_\".$_REQUEST['spack_token']])) {\n\t\t\t\t\t$age = time()-$_SESSION[\"spackt_\".$_REQUEST['spack_token']];\n\t\t\t\t\t// Check if the token did not timeout\n\t\t\t\t\tif($age > $this->timeout*60) $this->error = 4;\n\t\t\t\t}\n\t\t\t\telse $this->error = 3;\n\t\t\t}\n\t\t\telse $this->error = 2;\n\t\t}\n\t\telse $this->error = 1;\n\t\t// Anyway, destroys the old token.\n\t\t$this->tokenDelAll();\n\t\tif($this->error==0) return true;\n\t\telse return false;\n\t}", "public function update(Provider $provider)\n {\n\t if (Auth::guard('provider-web')->user()->id == $provider->id) return true;\n\t return false;\n }", "private static function validateAction($token){\n if( !isset($token) ) return false;\n //break down the csrf token into parts\n $parts = explode('-', $token);\n if( count($parts) != 3 ) return false;\n list($callback, $token, $hash) = $parts;\n \n $result = (sha1(config::$csrf_form_secret.'-'.$callback.'-'.$token) == $hash);\n if( $result ) $result = $callback;\n return $result;\n }", "function verifiyToken($username, $token) {\n $SECRET_KEY = 'Med1a_Cube$Even7';\n $splittedToken = split(\":\", $token);\n $token = $splittedToken[0];\n $timestamp = $splittedToken[1];\n\n $hash = sha1($username . $SECRET_KEY . $timestamp);\n $deltaTime = time() - $timestamp;\n\n if($deltaTime < 60 && $hash == $timestamp) {\n return true;\n }\n\n return false;\n}", "public function checkToken($BearedToken){\n //$authenticatedToken = $this->user_model->checkToken($BearedToken);\n if($authenticatedToken){\n return true;\n }\n return false;\n }", "public static function hasToken(Request $request);", "function verifyFormToken($form) {\n\t\tif (!isset($_SESSION[$form . '_token'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// check if the form is sent with token in it\n\t\tif (!isset($_POST['token'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// compare the tokens against each other if they are still the same\n\t\tif ($_SESSION[$form . '_token'] !== $_POST['token']) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "function isTokenValid($token){\n if(!empty($_SESSION['tokens'][$token])){\n unset($_SESSION['tokens'][$token]);\n return true;\n }\n return false;\n}", "public function hasToken();", "public function isValidToken( $token )\n {\n $count = $this->repo->getPasswordRemindersCount( $token );\n\n return ($count != 0);\n }", "public function verifyAdminToken($token)\n {\n // Verify that we have received an ApiConsumer from the token\n if (!$apiConsumer = $this->getApiConsumerFromToken($token)) {\n return false;\n }\n // Verify that the ApiConsumer's email address matches the admin email address\n if ($apiConsumer->email !== env('ADMIN_EMAIL')) {\n return false;\n }\n\n // Verify the validity of the token\n return Hash::check($token, $apiConsumer->api_token);\n }", "function check_update($current, $new) {\n\tif (!isset($current) || !isset($new) ||\n\t !isset($current['version']) || !isset($new['version']) ||\n\t !isset($new['platform'])) {\n\t\treturn false;\n\t}\n\n\tif ($new['platform'] == \"4100\") {\n\t\tif (strlen($current['version']) != 21 ||\n\t\t strlen($new['version']) != 21 ||\n\t\t strpos($current['version'], '-2Ct-uc-') != 11 ||\n\t\t strpos($new['version'], '-2Ct-uc-') != 11) {\n\t\t\treturn false;\n\t\t}\n\t\t$curver = str_replace(array(\".\", \"-2Ct-uc-\"), \"\", $current['version']);\n\t\t$newver = str_replace(array(\".\", \"-2Ct-uc-\"), \"\", $new['version']);\n\t} elseif ($new['platform'] == \"6100\") {\n\t\tif (strlen($current['version']) != 18 ||\n\t\t strlen($new['version']) != 18 ||\n\t\t strpos($current['version'], 't-uc-') != 11 ||\n\t\t strpos($new['version'], 't-uc-') != 11) {\n\t\t\treturn false;\n\t\t}\n\t\t$curver = str_replace(array(\".\", \"t-uc-\"), \"\", $current['version']);\n\t\t$newver = str_replace(array(\".\", \"t-uc-\"), \"\", $new['version']);\n\t} else {\n\t\treturn ($current['version'] != $new['version']);\n\t}\n\n\treturn (intval($newver) > intval($curver));\n}", "function verifyFormToken($form) {\n\n\t\t// check if a session is started and a token is transmitted, if not return an error\n\tif(!isset($_SESSION[$form.'_token'])) {\n\t\treturn false;\n\t\t}\n\n\t// check if the form is sent with token in it\n\tif(!isset($_POST['token'])) {\n\t\treturn false;\n\t\t}\n\n\t// compare the tokens against each other if they are still the same\n\tif ($_SESSION[$form.'_token'] !== $_POST['token']) {\n\t\treturn false;\n\t\t}\n\n\treturn true;\n}", "public static function check($token){\n\t\t$tokenName = Config::get('session/token_name');\t\t\t\t\t\t\t\t\n\n\t\tif(Session::exists($tokenName) && $token === Session::get($tokenName)){\t\t// Checkif the token supplied by the form is equal to the session token.\n\t\t\tSession::delete($tokenName);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Return false if none of the above is true.\n\t}", "function verifyFormToken($form) {\r\n\t\t\r\n\t\t// check if a session is started and a token is transmitted, if not return an error\r\n\t\tif(!isset($_SESSION[$form.'_token'])) { \r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// check if the form is sent with token in it\r\n\t\tif(!isset($_POST['token'])) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// compare the tokens against each other if they are still the same\r\n\t\tif ($_SESSION[$form.'_token'] !== $_POST['token']) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "protected function checkAndSyncTokens(&$auth_token, &$auth_secret)\n {\n if ($auth_token && $auth_secret) {\n return;\n }\n \n $this->checkOAuthTokenPresence();\n \n $auth_token = $this->getOAuthClient()->getOAuthToken();\n $auth_secret = $this->getOAuthClient()->getOAuthTokenSecret();\n }", "function verify_form_token($form) {\n\t// Check if a session is started and a token is transmitted,\n\t// if not return an error\n\tif(!isset($_SESSION[$form.'_token'])) {\n\t\treturn false;\n\t}\n\n\t// Check if the form is sent with token in it\n\tif(!isset($_POST['token'])) {\n\t\treturn false;\n\t}\n\n\t// Compare the tokens against each other if they are still the same\n\tif ($_SESSION[$form . '_token'] !== $_POST['token']) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "public static function check($token){\r\n $tokenName = Config::get('session/token_name');\r\n\r\n if (Session::exists($tokenName) && $token === Session::get($tokenName)) {\r\n Session::delete($tokenName);\r\n return true;\r\n }\r\n return false;\r\n }", "public static function check($token) {\r\n\t\t$tokenName = Config::get('session/token_name');\r\n\r\n\t\tif (Session::exists($tokenName) && $token === Session::get($tokenName)) {\r\n\t\t\tSession::delete($tokenName);//dont need it any more\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public function oauthRequestTokenVerify($token)\n {\n\t $sql = 'SELECT request_token FROM oauth_request_tokens\n WHERE request_token = ' . $this->db->escape($token) . '\n AND authorised_user_id IS NULL';\n $query = $this->db->query($sql);\n\n $result = $query->result();\n if(count($result) > 0) {\n return true;\n }\n return false;\n }", "private function isForgeRequest(){\n\t\t$isValidToken = true;\n\n\t\t$csrfTokenFromRq = isset($_POST[\"_token\"]) ? $_POST[\"_token\"] : (isset($_GET[\"_token\"]) ? $_GET[\"_token\"] : null);\n\n\t\t$csrfTokenFromRq = isset($_POST[\"_token\"]) ? $_SESSION[\"_token\"] : null;\n\n\t\techo \"csrf request : \".$csrfTokenFromRq.PHP_EOL;\n\t\techo \"csrf session : \".$csrfTokenFromSession.PHP_EOL;\n\t\tif($csrfTokenFromRq === null || $csrfTokenFromSession === null){\n\t\t\techo \"Tokens are null\".PHP_EOL;\n\t\t\t$isValidToken = false;\n\t\t}\n\t\tif($csrfTokenFromSession === $csrfTokenFromRq){\n\t\t\t$isValidToken = true;\n\t\t\techo \"Valid csrf token\".PHP_EOL;\n\t\t}\n\t\treturn !$isValidToken;\n\t}", "public function validate_new_version($token, $app_ver)\n {\n if ($this->aboutapp->get_version() == $app_ver)\n {\n //$url = 'http://muramasa.hol.es/app-updates/simakwapp/changelogs-html.txt';\n $url = $url = $this->_update_app_host . '/updates/changelogs-html.txt';\n $changelogs = file_get_contents($url);\n if ($changelogs)\n {\n $array = array(\n 'changelog-on' => 'on',\n );\n\n $this->session->set_userdata($array);\n\n if ($this->session->userdata('changelog-on'))\n {\n $array = array(\n 'changelogs' => $changelogs,\n );\n\n $this->session->set_userdata($array);\n }\n }\n\n echo 'complete';\n }\n else\n {\n echo 'failed';\n }\n }", "public function setToken($token)\n {\n $tokenValidator = new \\Paggi\\SDK\\TokenValidation(); //self::$container->get('TokenValidation');\n if ($tokenValidator->isValidToken($token)) {\n self::$token = $token;\n $this->setPartnerIdByToken($token);\n return true;\n }\n return false;\n }", "protected function _checkAuthToken($token)\n {\n $session = new Session();\n if ($session->get('token') === $token) {\n return true;\n }\n return false;\n }", "public function verifyFormToken($form)\n\t{\n\t\tif (!isset($_SESSION[$form.'_token'])) {\n\t\t\treturn false;\n\t\t}\n \n\t\t// check if the form is sent with token in it\n\t\tif (!isset($_POST['token'])) {\n\t\t\treturn false;\n\t\t}\n \n\t\t// compare the tokens against each other if they are still the same\n\t\tif ($_SESSION[$form.'_token'] !== $_POST['token']) {\n\t\t\treturn false;\n\t\t}\n \n\t\treturn true;\n\t}", "function checkToken($params = array()){\n\t\textract($params);\n\t\t$r = false;\n\t\t//generally does not need sleep as it's the first API call \n\t\t$response = $this->getSellerCount();\n\t\t//print_r($response);die();\n\t\t\n\t\tif( (isset($response['error']) AND $response['error'] != '') OR (isset($response['errors']) AND $response['errors'] != '')){\n\t\t\t// !new token\n\t\t\t$r = $this->newToken(); \n\n// \t\tprint_r($response); \n// \t\tdie('p');\n\n\t\t\t\n\t\t\t//if($r == '' OR $r === true OR $r === false) $r = $this->newToken();\n\t\t\t\n\t\t\t//if($r !== '' AND $r !== true AND $r !== false){\n\t\t\t\t// new access token\n\t\t\t\t//echo 'Notice: NEW access token was generated ' . $r;\n\t\t\t\t//die();\n\t\t\t//}\n\t\t\t\n\t\t}elseif(isset($response['total_sellers'])){\n\t\t\t// !existing access token\n\t\t\t$r = true;\n\t\t}\n\t\t\n\t\t\n\t\treturn $r;\n\t}", "function checkAuthToken() {\n if ( !isset( $_POST['authToken'] ) || $_POST['authToken'] != $_SESSION['authToken'] ) {\n logout();\n return false;\n } else {\n return true;\n }\n}", "public function conditionDoesMatchAndroidWithNewSystemKey() {}", "public function conditionDoesMatchAndroidWithNewSystemKey() {}", "private function can_continue_current_form(){\n if(!isset($_GET['token'])){ return false; }\n if(!is_user_logged_in()){ return false; }\n\n $allowed = false;\n\n //check token\n $token_from_url = sanitize_text_field($_GET['token']);\n $token_from_post_meta = get_post_meta((int) $_GET['post_id'], 'secret_token', true);\n\n //check author\n $author_id = get_post_field('post_author', $_GET['post_id']);\n $current_user_id = get_current_user_id();\n\n if(($token_from_url === $token_from_post_meta) && ($author_id == $current_user_id)){\n $allowed = true;\n }\n\n return $allowed;\n }", "protected function verify_token()\n {\n // lookup API Key record by value from HTTP header\n if (isset($this->rest->key) && is_null($this->rest->key)) {\n $key = $this->input->get_request_header(config_item('rest_key_name'));\n if (is_null($key)) {\n $key = $this->input->get_post('Token');\n }\n if (is_null($key)) {\n return;\n }\n $this->mApiKey = $this->api_keys->get_by(config_item('rest_key_column'), $key);\n if (!is_null($this->mApiKey)) {\n $this->rest->key = $this->mApiKey->{config_item('rest_key_column')};\n\n isset($this->mApiKey->user_id) && $this->rest->user_id = $this->mApiKey->user_id;\n isset($this->mApiKey->level) && $this->rest->level = $this->mApiKey->level;\n isset($this->mApiKey->ignore_limits) && $this->rest->ignore_limits = $this->mApiKey->ignore_limits;\n\n $this->_apiuser = $this->mApiKey;\n }\n\n } else {\n $this->mApiKey = $this->_apiuser;\n }\n\n if (!empty($this->mApiKey)) {\n $this->mUser = $this->users->get_by('username', $this->mApiKey->user_id);\n // only when the API Key represents a user\n if (!empty($this->mUser)) {\n $this->mUserRoles = $this->i2_auth->get_user_roles($this->mUser->id);\n// $this->mUserTenant = $this->users->get_user_tenant($this->mUser->id);\n $this->mUserTenant = $this->i2_auth->get_user_tenant($this->mUser->id);\n $this->tenant_table_prefix = $this->mUserTenant->tenant_name;\n $this->set_t_prefix();\n $this->mUserMainRole = $this->mUserRoles[0]->name;\n } else {\n // anonymous access via API Key\n $this->mUserMainRole = 'anonymous';\n }\n }\n }", "public function validateTokenTime($token) {\n \t// get token validation\n \tif(Reset::where('token', $token)->count() > 0) {\n\t \t$reset = Reset::where('token', $token)->first();\n\n\t \tdate_default_timezone_set('UTC'); \n\t $date_two = date('Y-m-d H:i:s ', time());\n\n\t $minutes = round((strtotime($date_two) - strtotime($reset->updated_at)) / 60,2);\n\t $hours = round((strtotime($date_two) - strtotime($reset->updated_at))/(60*60));\n\n\t if($hours >= 24) {\n\t return \"expired\";\n\t } else {\n\t return \"working\";\n\t }\n\t } else {\n\t \treturn \"working\";\n\t }\n }", "protected function checkSessionToken() {}", "function __validToken($token_created_at) {\n $expired = strtotime($token_created_at) + 86400;\n $time = strtotime(\"now\");\n if ($time < $expired) {\n return true;\n }\n return false;\n }", "function verify($token)\n {\n $this->purge();\n $exists = $this->exists($token);\n if (is_a($exists, 'PEAR_Error')) {\n return $exists;\n } elseif ($exists) {\n return false;\n } else {\n return $this->add($token);\n }\n }", "public function conditionDoesMatchAndroidWithOldSystemKey() {}", "public function isValidSession(string $token):bool;", "public function checkAuth() {\n $slack_correct_token = (0 == strcmp($this->input->token, $_ENV['SLACK_APPTOKEN']));\n //Check correct channel\n// $slack_correct_channel = (0 == strcmp($this->input->channel_id, $_ENV['SLACK_CHANNEL']));\n $slack_correct_channel = TRUE;\n return ($slack_correct_channel && $slack_correct_token);\n }", "public function conditionDoesMatchAndroidWithOldSystemKey() {}", "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }", "public function checkAccess()\n {\n // Check token in headers\n if (isset($_SERVER['HTTP_TOKEN'])) {\n return $_SERVER['HTTP_TOKEN'] === Configuration::get('MARMIADS_TOKEN');\n }\n\n // Check token in GET or POST\n return Tools::getValue('token') === Configuration::get('MARMIADS_TOKEN');\n }", "public function authorizeToken($token) {\r\n return ($token===\"ZGV2czppZHNs\");\r\n }", "public function hasToken(){\n return $this->_has(2);\n }", "public function hasToken(){\n return $this->_has(2);\n }", "public function processToken()\n {\n if (!$this->_token) {\n return false;\n }\n\n if ($this->_isPasswordRecoveryToken) {\n $this->_processPasswordRecoveryToken();\n } else {\n $this->_processAuthToken();\n }\n\n /**\n * just for case. e.g. some chosen page not exist anymore etc.\n * Lead should not stay on page with token, so move lead to 404\n */\n if (!$this->_redirectUrl) {\n $this->_redirectUrl = '/404';\n }\n\n return true;\n }", "private function validateTokenRequest(): bool\n {\n $validator = new Validator([\n 'required' => ':attribute — обязательное поле.',\n 'numeric' => ':attribute — поле должно содержать только цифры.',\n ]);\n\n $validator->addValidator('plain', new PlainRule());\n\n $validation = $validator->make([\n 'shop_id' => $this->getRouteParam('id'),\n 'secret_key' => $this->http_request->query->get('secret_key'),\n ], [\n 'shop_id' => 'required|numeric',\n 'secret_key' => 'required|plain',\n ]);\n\n $validation->setAliases([\n 'shop_id' => 'Идентификатор магазина',\n 'secret_key' => 'Секретный ключ',\n ]);\n\n $validation->validate();\n\n if ($validation->fails()) {\n $errors = $validation->errors()->toArray();\n\n foreach ($errors as $key => $error) {\n foreach ($error as $message) {\n $this->errors[] = [\n 'code' => 'invalid-field',\n 'message' => $message,\n 'field' => $key,\n ];\n }\n }\n\n return false;\n }\n\n return true;\n }", "private function checkTokenExpire()\n {\n if (new DateTime() > $this->tokenExpire) {\n $this->refreshToken();\n $this->getAuthorization();\n }\n }", "public function validateToken($token)\n {\n if (isset($_SESSION['MFW_csrf-token']) && $_SESSION['MFW_csrf-token'] == $token) {\n return true;\n }\n\n return false;\n }", "function updateDeviceTokens($token, $data){\r\n global $pdo;\r\n\t\t$update = $pdo->prepare(\"UPDATE device_registry \r\n\t\t\tSET apn_token = ?, c2dm_device_id = ?, wp7_channel_url = ?\r\n\t\t\tWHERE token=?\");\r\n $update->execute(array($data['apn_token'], $data['c2dm_device_id'], $data['wp7_channel_url'], $token));\r\n\t\t$log = debug_backtrace();\r\n\t\t$this->createActionLog($log);\r\n\t}", "public function update(Token $token): void;", "public static function validate(string $token = null): bool\n {\n if ($token === null) {\n $postData = HTTPRequest::postData();\n $valid = isset($postData[self::INPUT_NAME]) && $postData[self::INPUT_NAME] === static::get();\n } else {\n $valid = $token === static::get();\n }\n if (!$valid) {\n static::destroy();\n throw new RuntimeException('CSRF token not valid');\n }\n return $valid;\n }", "function validate_token($token, $procedure, $expiry = 5)\n\t{\n\t\t// parsing passed token, checking proper syntax\n\t\tif (is_array($strings = explode(\"\\n\", $token)))\n\t\t{\n\t\t\t[$token_time, $token_proc] = explode('|', $strings[0]);\n\t\t\t$token_mac = $strings[1];\n\n\t\t\t// something's wrong with the input\n\t\t\tif (!$token_time || !$token_proc || !$token_mac)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// recalculating MAC\n\t\t$new_mac = hash('sha1', $this->engine->db->system_seed . $this->sid . $token_time . $token_proc);\n\n\t\t// validating conditions. exact order is crucial!\n\t\tif ($token_mac !== $new_mac)\n\t\t{\n\t\t\t// MAC mismatch\n\t\t\treturn false;\n\t\t}\n\t\telse if ($token_proc !== $procedure)\n\t\t{\n\t\t\t// procedure mismatch\n\t\t\treturn false;\n\t\t}\n\t\telse if (time() > ($expiry * 60 + $token_time))\n\t\t{\n\t\t\t// token expired\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public function verify($token, $key, $time)\n {\n return $token && $key && $time && $token === $this->generateForKey($key, $time);\n }", "protected function serverSideValidateToken($token): bool\n {\n $facebook = $this->getFacebookApi();\n try {\n $response = $facebook->get('/me', $token);\n } catch (FacebookResponseException $exception) {\n return $this->handleFacebookException($exception);\n } catch (FacebookSDKException $exception) {\n return $this->handleFacebookException($exception);\n }\n $user = $response->getGraphUser();\n return $user->getId() == $this->getFieldIfExists(self::FACEBOOK_IDENTITY_STRING);\n }", "private function checkShopToken() \n\t{\t\n\t\t$shop_token = Shopware()->Front()->Request()->getParam('shop_token');\n\t\t\n if(isset($shop_token) && !empty($shop_token)) \n\t\t{\n $config = EasymarketingConfig::getInstance();\n\n if($shop_token != $config->getShopToken()) \n\t\t\t{\n header('HTTP/1.0 400 Bad Request');\n echo 'Wrong Shop Token!';\n die;\n }\n } else {\n header('HTTP/1.0 400 Bad Request');\n echo 'Shop Token Missing!';\n die;\n }\n \n return true;\n }", "public function isValid()\n {\n return !empty($this->_data[OAuth::PARAM_TOKEN])\n && !empty($this->_data[OAuth::PARAM_VERIFIER]);\n }", "public function canUseCheckout()\n {\n $token = \\Mage::getStoreConfig('payment/cryptomarket/cryptomkt_apikey');\n\n if (false === isset($token) || true === empty($token)) {\n $this->debugData('[ERROR] In Cryptomarket_Core_Model_Method_Redirect::canUseCheckout(): There was an error retrieving the token store param from the database or this Magento store does not have a CryptoMarket token.');\n\n return false;\n }\n\n $this->debugData('[INFO] Leaving Cryptomarket_Core_Model_Method_Redirect::canUseCheckout(): token obtained from storage successfully.');\n\n return true;\n }", "public function getDeviceTokenStatus(): bool\n {\n return $this->status;\n }", "protected function verify_token($request)\n {\n $header = $request->getHeaders();\n $token = $header['Authorization'][0];\n try{\n $current_user = $this->getDecodeJwt($token, getenv(\"APP_KEY\"));\n return (array)$current_user->data;\n }\n catch (\\Exception $e){\n return false;\n \n }\n }" ]
[ "0.6649083", "0.6447405", "0.64136004", "0.6374985", "0.6330699", "0.6250541", "0.6232401", "0.62169236", "0.60993737", "0.60864365", "0.60815614", "0.6073139", "0.60583574", "0.60432965", "0.6028193", "0.6021344", "0.6001476", "0.59973156", "0.5965654", "0.59267867", "0.5912293", "0.5886403", "0.5875252", "0.5868825", "0.5864817", "0.5856126", "0.5848717", "0.582754", "0.5816607", "0.5816264", "0.57934105", "0.5791921", "0.5777004", "0.5776739", "0.57648855", "0.5727781", "0.5717867", "0.5710751", "0.5684803", "0.56747556", "0.5671739", "0.5667233", "0.56633914", "0.566155", "0.5660974", "0.5654477", "0.5644358", "0.5640093", "0.5639564", "0.5639157", "0.56389254", "0.56309587", "0.56180406", "0.5614157", "0.5598433", "0.55950254", "0.5592473", "0.55856735", "0.5573712", "0.5566471", "0.5556775", "0.5553079", "0.5537905", "0.5535872", "0.55317926", "0.55283666", "0.5523855", "0.550183", "0.5500888", "0.55001473", "0.5492798", "0.54863244", "0.5483835", "0.54772395", "0.54733616", "0.5471058", "0.54706466", "0.5470411", "0.5470041", "0.5469851", "0.54630107", "0.5445305", "0.54403085", "0.54397327", "0.54397327", "0.543408", "0.54328954", "0.54318297", "0.54281646", "0.5425289", "0.5420486", "0.5419443", "0.54099697", "0.54092544", "0.54072607", "0.54010016", "0.5399107", "0.5397536", "0.53959465", "0.5386013" ]
0.777244
0
Update the token for the given platform.
Обновите токен для заданной платформы.
public function updateToken($platform, $token, $expiresAt) { $this->update([ "{$platform}_token" => $token, "{$platform}_token_expires_at" => $expiresAt, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Token $token): void;", "private function token_update(string $token)\n {\n $this->token_created = time();\n $this->token_expires = $this->token_created + 86399;\n $this->token = $token;\n $this->headers['Authorization'] = \" Bearer {$token}\";\n\n if ($this->debug) {\n $this->debug_message('Auth token has been updated.');\n }\n }", "public function updateToken(Profile $profile, $token);", "function updateDeviceTokens($token, $data){\r\n global $pdo;\r\n\t\t$update = $pdo->prepare(\"UPDATE device_registry \r\n\t\t\tSET apn_token = ?, c2dm_device_id = ?, wp7_channel_url = ?\r\n\t\t\tWHERE token=?\");\r\n $update->execute(array($data['apn_token'], $data['c2dm_device_id'], $data['wp7_channel_url'], $token));\r\n\t\t$log = debug_backtrace();\r\n\t\t$this->createActionLog($log);\r\n\t}", "public function actionUpdateDeviceToken() {\n //validate webservice\n $requiredParams = ['user_id', 'device_type', 'device_token'];\n try {\n CommonApiHelper::validateRequestParameters($requiredParams);\n\n $response = [];\n $post = Yii::$app->request->bodyParams;\n $post = array_map('trim', $post);\n //Fetch access token from HEAD\n $access_token = Yii::$app->request->headers->get('access_token');\n\n $response = [];\n //Fetch existing record\n $accessTokenDetails = UsersAccessTokens::find()->where(['user_id' => $post['user_id'], 'access_token' => $access_token])->one();\n if (!empty($accessTokenDetails)) {\n $accessTokenDetails->device_type = !empty($post['device_type']) ? $post['device_type'] : Yii::$app->params['DEVICE_TYPE']['android'];\n $accessTokenDetails->device_token = !empty($post['device_token']) ? $post['device_token'] : '';\n $accessTokenDetails->save(false);\n return CommonApiHelper::return_success_response(\"Device token has been updated successfully.\", \"\", []);\n } else {\n return CommonApiHelper::return_error_response('Sorry, Please try again.');\n }\n } catch (\\Exception $e) {\n return CommonApiHelper::return_error_response('Sorry, Please try again.');\n }\n }", "public function refreshToken()\n {\n $token = $this->getToken();\n }", "public function setToken($token);", "public function updateToken() {\n try {\n $db = Database::getInstance();\n $expirationDate = new DateTime(\"now\");\n $expirationDate->add(new DateInterval(\"P1D\"));\n $this->token_expiration = $expirationDate->format(\"Y-m-d H:i:s\");\n $this->token = generateToken();\n\n $sql = \"UPDATE `User`\n SET token = :token,\n token_expiration = :token_expiration\n WHERE username = :username\";\n $stmt = $db->prepare($sql);\n $stmt->execute([\n \"username\" => $this->username,\n \"token\" => $this->token,\n \"token_expiration\" => $this->token_expiration\n ]);\n return $this;\n } catch (PDOException $e) {\n exitError(500, \"Internal error.\");\n }\n }", "public function setToken(string $token): void;", "public function updateOrderUserId($token);", "function updateToken($token,$uid) {\n\tinclude('conn.php');\n\t$result = array();\n\t$auth_token = $token;\n\t$user_id = $uid;\n\t$datetime = date('Y-m-d H:i:s');\n\t$sql = \"UPDATE users SET session='$auth_token', last_login='$datetime' WHERE id=$user_id\";\n\t$exec = $conn->query($sql);\n}", "public final function update($token, $session)\n {\n }", "public function updateRememberToken(Authenticatable $entity, $token)\n {\n }", "function securityUpdateToken() {\n\tif (isset($_SESSION['security_token']['time']) && $_SESSION['security_token']['time'] + TOKEN_EXPIRATION > time()) {\n\t\t$_SESSION['security_token']['time'] = time();\n\t\treturn;\n\t}\n\n\t// update the token\n\t$_SESSION['security_token'] = array();\n\t$_SESSION['security_token']['value'] = md5(time());\n\t$_SESSION['security_token']['time'] = time();\n}", "public function set($token);", "private function UpdateToken($data)\n {\n $postUrl = 'https://api.patreon.com/oauth2/token';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL,$postUrl);\n curl_setopt($ch, CURLOPT_POST,1);\n curl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded'));\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n curl_close($ch);\n $userAuthData = json_decode($response,TRUE);\n\n\t // Grab the current access token then return the data\n\t $this->accessToken = $userAuthData['access_token'];\n\t return $userAuthData;\n }", "public function setToken($token, $token_secret) {}", "public function tokenShouldBeUpdated($platform)\n {\n $column = \"{$platform}_token_expires_at\";\n\n if (is_null($this->{$column})) return false;\n\n return abs($this->{$column}->diffInDays(Carbon::now())) < 5;\n }", "public function update(Request $request, Platform $platform)\n {\n $platform->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'driver_class' => $request->driver_class,\n 'updated_by' => auth()->id()\n ]);\n\n return redirect()->route('show-platform', $platform);\n }", "public function setDeviceTokenAction(){\n $data = $this->getRequestData();\n $this->getDeviceSession()->getUserId();\n if($data['device_token']){\n $session = Workapp_Session::getBySessionUid($data['session_uid']);\n if ($session) {\n $session->addDeviceToken($data['device_token']);\n } else {\n $this->setErrorResponse('This device has no running session which is required by service');\n }\n } else {\n $this->setErrorResponse('device_token is mandatory field for this request!');\n }\n $this->_helper->json(array('added' => true));\n }", "public function setToken($token){\n $this->token = $token;\n }", "public function setToken($token): void\n {\n $this->token = $token;\n }", "public function actionSetToken()\n {\n if (isset($this->request['token'])) {\n /* @var $userDetails UserDetails */\n $userDetails = UserDetails::model()->findByAttributes(['user_id' => $this->user->id]);\n $userDetails->push_token = $this->request['token'];\n if ($userDetails->save())\n $this->_sendResponse(200, CJSON::encode(['status' => true]));\n else\n $this->_sendResponse(400, CJSON::encode(['status' => false]));\n } else\n $this->_sendResponse(400, CJSON::encode(['status' => false, 'message' => 'Token variable is required.']));\n }", "protected function setConfigToken($token)\n {\n $siteConfig = SiteConfig::current_site_config();\n $siteConfig->VimeoFeed_Token = $token;\n $siteConfig->write();\n }", "public function updateTokenMobile($token) {\n $data = array(\n 'token' => $token->token,\n 'updated_at' => time()\n );\n\n $this->db->set($data);\n $this->db->where(\"email\", $token->email);\n if ($this->db->update(\"Tokens\", $data)) {\n return '\"true\"';\n } else {\n return '\"false\"';\n }\n }", "public function setToken($token)\n {\n $this->token = $token;\n }", "public function setToken($token)\n {\n $this->token = $token;\n }", "function setToken($token)\n {\n $this->token = $token;\n }", "abstract public function refreshAccessToken(OAuthToken $token);", "public function token()\n {\n\n\t\t$this->server->handleTokenRequest(OAuth2\\Request::createFromGlobals())->send();\n }", "public function update_token($uid, $token){\n $query = $this->db->where('01_id', $uid)\n ->set('01_token', $token)\n ->update('register_01');\n if($query){\n return true;\n }else{\n return false;\n }\n }", "public function setAccessToken($token);", "private function _populateToken()\n {\n //Populate token\n foreach ($this->tokenData as $token)\n {\n $this->token->create(\n $token['dashboard_account_ID'],\n $token['token']\n );\n }\n }", "abstract public function setNextAuthToken($token);", "public function update(Request $request, Token $token)\n {\n\t\t//$this->authorize('update', $token);\n $this->validate($request, [\n\t\t\t'user_id' => 'numeric|nullable|exits:users,id',\n\t\t\t'account_id' => 'numeric|required|exits:accounts,id',\n\t\t\t'name' => 'required|string|max:75',\n\t\t\t'contract_address' => 'nullable|string|max:42',\n\t\t\t'mainsale_address' => 'nullable|string|max:42',\n\t\t\t'contract_ABI_array' => 'nullable|string',\n\t\t\t'contract_Bin' => 'nullable|string',\n\t\t\t'token_price' => 'required|numeric',\n\t\t\t'symbol' => 'required|string',\n\t\t\t'decimals' => 'required|numeric',\n\t\t\t'logo' => 'nullable|file',\n\t\t\t'image' => 'nullable|file',\n\t\t\t'template' => 'nullable|string',\n\t\t\t'website' => 'required|string|url',\n\t\t\t'twitter' => 'required|string|url',\n\t\t\t'facebook' => 'required|string|url',\n\t\t\t'whitepaper' => 'nullable|string|url',\n\t\t\t'description' => 'required|string',\n\t\t\t'technology' => 'nullable|string',\n\t\t\t'features' => 'required|string',\n\t\t\t'sweepthreshold'=>'nullable|numeric',\n\t\t\t'sweeptoaddress'=>'nullable|string',\n\t\t\t\n\t\t]);\n\t\t$requestData['slug']= str_slug($request->name);\n $requestData = $request->all();\n if ($request->hasFile('logo')) {\n $requestData['logo'] = $request->file('logo')\n ->store('uploads', 'public');\n }\n if ($request->hasFile('image')) {\n $requestData['image'] = $request->file('image')\n ->store('uploads', 'public');\n }\n\n $token->update($requestData);\n\t\treturn response()->json(['status' => 'SUCCESS','message' => __('admin.action_ok',['item'=>__('tokens.Token'),'action'=> __('admin.Updated')])]);\n \n }", "public function setToken(string $token): void\n {\n $this->token = $token;\n }", "public function update_firebase_token($params)\n {\n $this->db->where('user_id', $params['user_id']);\n return($this->db->update('firebase_tokens', $params));\n }", "public function updatePaymenttoken(\n Requestmodels\\Paymenttokenupdate $requestModel\n ) {\n\n $chargeMapper = new Chargesmapper($requestModel);\n\n $requestPayload = array(\n 'authorization' => $this->apiSetting->getSecretKey(),\n 'mode' => $this->apiSetting->getMode(),\n 'postedParam' => $chargeMapper->requestPayloadConverter(),\n );\n\n $updateUri = sprintf(\n $this->apiUrl->getPaymenttokenupdateApiUri(),\n $requestModel->getId()\n );\n\n $processCharge = Apihttpclient::putRequest(\n $updateUri,\n $this->apiSetting->getSecretKey(), $requestPayload\n );\n\n return new Okresponse($processCharge);\n }", "public function update(Request $request)\n {\n $token = Str::random(60);\n\n $request->user()->forceFill([\n 'api_token' => hash('sha256', $token),\n ])->save();\n\n return ['token' => $token];\n }", "public static function setToken($token)\n {\n self::$_data[self::KEY_TOKEN] = $token;\n }", "public function regenerateToken();", "public function setOAuthToken($token)\n {\n $this->oauthToken->setToken($token);\n }", "public function refreshToken()\n {\n $client = new Client();\n\n try {\n $resp = $client->request('POST', 'https://bitbucket.org/site/oauth2/access_token', [\n 'auth' => [\n env('BITBUCKET_CLIENT_ID'),\n env('BITBUCKET_SECRET')\n ],\n 'form_params' => [\n 'grant_type' => 'refresh_token',\n \"refresh_token\" => $this->sourceProvider->refresh_token\n ]\n ]);\n\n $resp = json_decode($resp->getBody()->getContents());\n\n $this->sourceProvider->access_token = $resp->access_token;\n $this->sourceProvider->refresh_token = $resp->refresh_token;\n $this->sourceProvider->save();\n\n } catch (\\Exception $e) {\n \\Log::info($e);\n }\n }", "protected function updateToken(string $token)\n {\n return $this->user->updateUserToken($token);\n }", "public function createUpdateToken()\n {\n $pdo = static::getDB();\n\n $token = bin2hex(random_bytes(24));\n\n $sql = \"UPDATE users SET token = :token, otp_last_date = TO_DATE(:otp_last_date, 'YYYY-MM-DD HH24:MI:SS') WHERE email = :email\";\n\n $result = $pdo->prepare($sql);\n\n $result->execute([\n ':email' => $this->email,\n ':token' => $token,\n ':otp_last_date' => Extra::getCurrentDateTime()\n ]);\n\n return $token;\n }", "public function update(TokenUpdateResponseModel $responseModel): ViewModel;", "function updateDeviceIdToken($id,$deviceToken,$authToken,$deviceType='')\n {\n $req = $this->db->select('userId')->where('userId',$id)->get('users');\n if($req->num_rows())\n {\n $this->db->update('users',array('deviceToken'=>''),array('userId !='=>$id,'deviceToken'=>$deviceToken));\n $this->db->update('users',array('deviceToken'=>$deviceToken,'authToken'=>$authToken,'deviceType'=>$deviceType),array('userId'=>$id));\n return TRUE;\n }\n return FALSE;\n }", "public function updateUserToken(Request $request)\n {\n $api = new APIServiceRepository();\n if (!$request->input('idUser') || !$request->input('token')) {\n return $this->sendError('No existe la informacion solicitada');\n } else {\n //Verifico si existe el Usuario\n $dataUser = $api->existUser($request->input('idUser'));\n if (empty($dataUser)) {\n return $this->sendError('No existe el id del usuario');\n } else {\n $api->updateUserToken($request->input('idUser'), $request->input('token'));\n return $this->sendResponse('Token Modificado', '');\n }\n }\n }", "private function setToken() {\n\n /* valid register */\n $request = $this->post('/v1/register', [\n 'firstname' => 'John',\n 'lastname' => 'Doe',\n 'email' => 'john.doe@email.com',\n 'password' => 'secret',\n ]);\n\n /* valid login */\n $this->post('/v1/login', [\n 'email' => 'john.doe@email.com',\n 'password' => 'secret',\n ]);\n\n }", "public function enterToken(string $token): void;", "public function setApiToken($api_token)\n {\n $this->api_token = $api_token;\n }", "public function setToken($config)\n {\n $this->_token = Yii::createObject($config);\n }", "public function check_for_update($token)\n {\n if ($this->checker->is_admin())\n {\n if ($token == $this->session->userdata('CSRF'))\n {\n $this->activity_log->create_activity_log('check_for_update', 'Mengecek Pembaharuan', null, $this->session->userdata('admin_login'));\n // comparing version\n //$url = 'http://muramasa.hol.es/app-updates/simakwapp';\n $url = $this->_update_app_host . '/updates';\n log_message('error' ,'URL: ' . $url);\n $app_s_ver = file_get_contents($url . '/asmpver.txt');\n $app_s_ver = explode(':', $app_s_ver);\n $app_s_ver = $app_s_ver[1];\n log_message('error', $app_s_ver);\n // if app version in server greater than current version\n if ($app_s_ver > $this->aboutapp->get_version())\n {\n set_time_limit(0);\n echo 'true-Versi:' . $app_s_ver . '-Ukuran:' . FileSizeConvert(strlen(file_get_contents($url . '/asmp-v' . $app_s_ver . '.zip')));\n }\n else\n {\n echo 'false-';\n }\n }\n else\n {\n echo 'token tidak sama';\n }\n }\n else\n {\n redirect('login/login_required', 'refresh');\n }\n }", "public function refreshToken()\n\t{\n\t\tAuth::user()->generateToken()->didUpdate()->save();\n\n\t\t// Return token\n\t\treturn response()->json([\n\t\t\t'status' => 'Token updated',\n\t\t\t'token' => Auth::user()->token,\n\t\t], 200);\n\t}", "public function put($token)\n {\n $encryptedToken = $this->encryptor->encrypt($token);\n\n $this->storage->put('token', $encryptedToken);\n }", "public function create(Token $token): void;", "public function updateEmailTiedToToken($data)\n {\n $this->rave->eventHandler($this->getEventHandler())\n //set the endpoint for the api call\n ->setEndPoint(\"v3/gpx/tokens/embed_token/update_customer\");\n //returns the value from the results\n //you can choose to store the returned value in a variable and validate within this function\n return $this->rave->postURL($data);\n }", "public function setaccess_token($value);", "public function setTokens($data)\n {\n $data = json_decode($data);\n\n $data->access_token_expires_at = Carbon::now()\n ->addSeconds($data->access_token_expires_in)\n ->format('Y-m-d H:i:s');\n\n $data->refresh_token_expires_at = Carbon::now()\n ->addSeconds($data->refresh_token_expires_in)\n ->format('Y-m-d H:i:s');\n\n $this->preferences->hue_access_token = $data->access_token;\n $this->preferences->hue_access_token_expires_in = $data->access_token_expires_in;\n $this->preferences->hue_access_token_expires_at = $data->access_token_expires_at;\n\n $this->preferences->hue_refresh_token = $data->refresh_token;\n $this->preferences->hue_refresh_token_expires_in = $data->refresh_token_expires_in;\n $this->preferences->hue_refresh_token_expires_at = $data->refresh_token_expires_at;\n $this->preferences->update();\n }", "public function setAuthToken($token)\n {\n $this->authToken = $token;\n }", "public function updateToken($tokenExpiration = 0)\n {\n $expiration = new FrozenTime('now');\n $this->token_expires = $expiration->addSeconds($tokenExpiration);\n $this->token = bin2hex(Security::randomBytes(16));\n }", "public function update($token = null)\n {\n if (is_null($token)) {\n show_404();\n }\n\n if (!($result = $this->customer->isExistPasswordToken($token))) {\n $this->session->set_flashdata('flashdata', array('type' => 'error', 'text' => lang('token_expiry')));\n redirect('login', 'refresh');\n }\n\n if ($this->input->post('submit') && $this->input->post('submit') == 'CHANGE') {\n $this->form_validation->set_rules('new_pass', 'New Password', 'trim|required|max_length[255]|min_length[6]');\n $this->form_validation->set_rules('conf_pass', 'Confirm Password', 'trim|required|matches[new_pass]');\n\n $this->form_validation->set_message('required', 'This field is required');\n $this->form_validation->set_error_delimiters('<p class=\"help-block\">', '</p>');\n\n if ($this->form_validation->run()) {\n $data = [\n 'password' => $this->input->post('new_pass'),\n 'password_reset_token' => null,\n 'token_created' => null,\n ];\n\n if ($this->customer->updatePassword($data, $result['customer_id'])) {\n $this->session->set_flashdata('flashdata', array('type' => 'success', 'text' => lang('success_password_changed')));\n redirect('login', 'refresh');\n } else {\n $this->session->set_flashdata('flashdata', array('type' => 'error', 'text' => lang('error_message')));\n redirect('login', 'refresh');\n }\n }\n }\n\n $this->template->build('public/account/update_password');\n }", "public function save($token = null) {\n\n // Verify if the code exists\n if ($this->CI->input->get('code', TRUE)) {\n\n // Set params\n $params = array(\n 'grant_type' => 'authorization_code',\n 'code' => $this->CI->input->get('code', TRUE),\n 'redirect_uri' => $this->redirect_uri,\n 'client_id' => $this->client_id,\n 'client_secret' => $this->client_secret\n );\n\n // Get access token\n $response = json_decode(post($this->endpoint . '/accessToken', $params), true);\n\n // Verify if token exists\n if ( isset($response['access_token']) ) {\n\n // Get exiration time\n $expires = date('Y-m-d H:i:s', time() + $response['expires_in']);\n\n // Get linkedin profile\n $profile = json_decode(get('https://api.linkedin.com/v2/me?oauth2_access_token=' . $response['access_token']), true);\n\n if ($profile) {\n\n // Get linkedin organizations\n $organizations = json_decode(get('https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&state=APPROVED&projection=(*,elements*(*,organizationalTarget~(*)))&oauth2_access_token=' . $response['access_token']), true);\n\n if ( isset($organizations['elements']) ) {\n\n // Verify if must be refreshed a token\n if ( isset( $_SESSION['account'] ) ) {\n\n $acc = 0;\n $act = $_SESSION['account'];\n unset($_SESSION['account']);\n\n if (!is_numeric($act)) {\n\n exit();\n\n } else {\n\n // Get user social account\n $gat = $this->CI->networks->get_account($act);\n\n if ($gat) {\n $acc = $gat[0]->net_id;\n }\n\n }\n\n // Connect pages or refresh tokens\n $j = 0;\n $b1 = 0;\n foreach ($organizations['elements'] as $element) {\n\n if (\"urn:li:organization:\" . $element['organizationalTarget~']['id'] == $acc) {\n $j++;\n }\n\n $acci = 0;\n $gat = $this->CI->networks->get_account_field($this->CI->user_id, \"urn:li:organization:\" . $element['organizationalTarget~']['id'], 'network_id');\n\n if ($gat) {\n\n $acci = $gat;\n }\n\n if ($acci) {\n\n if ($this->CI->networks->update_network($acci, $this->CI->user_id, date('Y-m-d H:i:s', strtotime('+60 days')), $response['access_token'])) {\n\n $b1++;\n }\n\n } else {\n\n if ($this->CI->networks->add_network('linkedin_companies', \"urn:li:organization:\" . $element['organizationalTarget~']['id'], $response['access_token'], $this->CI->user_id, $expires, $element['organizationalTarget~']['localizedName'], '', '')) {\n\n $b1++;\n }\n\n }\n\n }\n\n if ($j > 0) {\n\n if ($b1 > 0) {\n\n // Display the success message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-success\">' . $this->CI->lang->line('networks_access_token_was_renewed') . '</p>', true);\n exit();\n\n } else {\n\n // Display the error message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-error\">' . $this->CI->lang->line('networks_access_token_was_not_renewed') . '</p>', false);\n exit();\n }\n } else {\n\n // Display the error message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-error\">' . $this->CI->lang->line('networks_seams_you_are_logged_different_account') . '</p>', false);\n exit();\n\n }\n\n }\n\n foreach ($organizations['elements'] as $element) {\n\n $this->CI->networks->add_network('linkedin_companies', \"urn:li:organization:\" . $element['organizationalTarget~']['id'], $response['access_token'], $this->CI->user_id, $expires, $element['organizationalTarget~']['localizedName'], '', '');\n\n }\n\n // Display the success message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-success\">' . $this->CI->lang->line('networks_all_linkedin_companies_connected') . '</p>', true);\n exit();\n\n }\n\n } else {\n\n // Display the error message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-error\">' . $this->CI->lang->line('networks_you_have_no_companies') . '</p>', false);\n exit();\n\n }\n\n }\n\n }\n \n // Display the error message\n echo $this->CI->ecl('Social_login_connect')->view($this->CI->lang->line('social_connector'), '<p class=\"alert alert-error\">' . $this->CI->lang->line('networks_an_error_occurred') . '</p>', false); \n \n }", "public function set_api_token( $api_token ) {\n\t\t$this->api_token = $api_token;\n\t}", "public function setDevicePlatform(?DevicePlatformType $value): void {\n $this->getBackingStore()->set('devicePlatform', $value);\n }", "function updateEmployeeRememberToken($uid,$token)\n {\n return $this->employee()\n ->where('uid',$uid)\n ->update(array('remember_token'=>$token));\n }", "public static function setToken($token, $iswebhook=false)\n {\n self::$_token = $token;\n self::$_iswebhook = $iswebhook;\n }", "public function setToken()\n\t{\n\t\t $args = phpSmug::processArgs( func_get_args() );\n\t\t $this->oauth_token = $args['id'];\n\t\t $this->oauth_token_secret = $args['Secret'];\n\t}", "public function updateRememberToken(Authenticatable $user, string $token): void;", "public static function updateToken($token)\n {\n $controller = new self;\n try {\n return $controller->getAccessToken('refresh_token', [\n 'refresh_token' => $token->getRefreshToken(),\n ]);\n } catch (IdentityProviderException $e) {\n return null;\n }\n }", "function UpdateDeviceGCMToken($LastToken, $IMEI, $NewToken)\n{\n WSSecurity::verifyAuthenticity();\n $response = new WSResponse();\n $successResult = DeviceManager::updateDeviceGCMToken($LastToken, $IMEI, $NewToken);\n if(!$successResult)\n {\n $response->addError(new WSValidationResult(\"InvalidDeviceException\",\"El token anterior y el IMEI no coinciden con ningun dispositivo registrado!\"));\n }\n $response->setResponse($successResult);\n return json_encode($response->JsonSerialize());\n}", "public function updateAction(){\n\n \n if ($this->user->updateProfile($_POST)) {\n\n $this->token = new Token($_POST['token']);\n \n if(isset($_POST['token']) && $_POST['token'] === $this->token->getValue()){\n\n \n Flash::addMessage('Profile was Update');\n $this->redirect('/profile/index');\n\n }else{\n\n\n Flash::addMessage('Profile was not Update', Flash::WARNING);\n\n View::renderTemplate('Profile/index.html', [\n 'user' => htmlspecialchars($this->user),\n 'token'=> $this->token->updateToken()\n ]);\n \n }\n\n\n } else {\n\n Flash::addMessage('Profile was not Update', Flash::INFO);\n\n View::renderTemplate('Profile/index.html', [\n 'user' => htmlspecialchars($this->user)\n ]);\n\n }\n }", "function update_device_token($user, $device_token) \n{\n global $conn;\n $user_id = $user['user_id'];\n // var_dump($device_token);\n $q['query'] = \"UPDATE `user_master` SET `device_token`='$device_token' WHERE user_id = '$user_id'\";\n $q['run'] = $conn->query($q['query']);\n\n return $q['run'];\n}", "protected function updateDeviceTokenRequest($api_key, $device_token, $device_type)\n {\n // verify the required parameter 'api_key' is set\n if ($api_key === null || (is_array($api_key) && count($api_key) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $api_key when calling '\n );\n }\n // verify the required parameter 'device_token' is set\n if ($device_token === null || (is_array($device_token) && count($device_token) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $device_token when calling '\n );\n }\n // verify the required parameter 'device_type' is set\n if ($device_type === null || (is_array($device_type) && count($device_type) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $device_type when calling '\n );\n }\n\n $resourcePath = '/rapi/update_device_token';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // form params\n if ($api_key !== null) {\n $formParams['api_key'] = ObjectSerializer::toFormValue($api_key);\n }\n // form params\n if ($device_token !== null) {\n $formParams['device_token'] = ObjectSerializer::toFormValue($device_token);\n }\n // form params\n if ($device_type !== null) {\n $formParams['device_type'] = ObjectSerializer::toFormValue($device_type);\n }\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/x-www-form-urlencoded']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function ssoUpdateToken($token, $user_ip)\n {\n $apiEndpoint = '/1/session/'.$token;\n $apiData = array(\n 'validationFactors' => array(\n 'name' => 'remote_address',\n 'value' => $user_ip\n ));\n $apiReturn = $this->runCrowdAPI($apiEndpoint, \"POST\", $apiData);\n if ($apiReturn['status'] == '200') {\n return $apiReturn['data']['token'];\n }\n return null;\n }", "public function setDeviceTokenAction($header_data,$data){\n if( !isset($data['device_token']) ) {\n Library::logging('alert',\"API : setDeviceToken : \".ERROR_INPUT.\": user_id : \".$header_data['id']);\n Library::output(false, '0', ERROR_INPUT, null);\n }\n try{\n $db = Library::getMongo();\n $query = $db->execute('db.users.update({\"device_token\" :\"'.$data[\"device_token\"].'\" }, {$set:{\"device_token\" :\"\"}}, {multi:true} )');\n if($query['ok'] == 0) {\n Library::logging('error',\"API : setDeviceToken (request sent query) mongodb error: \".$query['errmsg'].\" \".\": user_id : \".$userId);\n Library::output(false, '0', ERROR_REQUEST, null);\n }\n $user = Users::findById($header_data['id']);\n $user->device_token = $data['device_token']; // token used to send push notification to device\n $user->os = $header_data[\"os\"];\n if( $user->save() ){\n \n require 'components/JAXL3/jaxl.php';\n $client = new JAXL(array(\n 'jid' => $user->jaxl_id,\n 'pass' => $user->jaxl_password,\n 'log_level' => JAXL_ERROR\n ));\n $client->require_xep(array(\n '0077' // registration\n ));\n \n $client->add_cb('on_auth_success', function() {\n $client = $_SESSION[\"client\"];\n $os = $_SESSION[\"os\"];\n $deviceToken = $_SESSION[\"device_token\"];\n $appID = $_SESSION[\"appID\"];\n $client->xeps['0077']->registerPushToken( $os, $deviceToken, $appID, function(){\n Library::output(true, '1', DEVICE_TOKEN_UPDATED, null );\n });\n });\n $client->add_cb('on_auth_failure', function() {\n $userId = $_SESSION[\"userId\"];\n Library::logging('error',\"API : setDeviceToken -> registerPushToken : \".JAXL_AUTH_FAILURE.\" : user_id : \".$userId);\n Library::output(true, '1', DEVICE_TOKEN_UPDATED, null );\n });\n $client->add_cb('on_disconnect', function() {\n Library::output(true, '1', DEVICE_TOKEN_UPDATED, null );\n });\n $_SESSION[\"client\"] = $client;\n $_SESSION[\"userId\"] = $header_data['id'];\n $_SESSION[\"device_token\"] = $user->device_token;\n $_SESSION[\"os\"] = $user->os == 1 ? \"android\" : \"ios\";\n $_SESSION[\"appID\"] = $user->os == 1 ? \"\" : \"com.sociabile.sociabile\"; // requires actual app ID\n $client->start();\n /******* code for subscribe(add) user end **************************************/\n \n// Library::output(true, '1', DEVICE_TOKEN_UPDATED, null );\n }else{\n foreach ($user->getMessages() as $message) {\n $errors[] = $message->getMessage();\n }\n Library::logging('error',\"API : setDeviceToken : \".$errors.\" : user_id : \".$header_data['id']);\n Library::output(false, '0', ERROR_REQUEST, null);\n }\n } catch (Exception $e) {\n Library::logging('error',\"API : setDeviceToken : \".$e.\" \".\": user_id : \".$header_data['id']);\n Library::output(false, '0', ERROR_REQUEST, null);\n }\n }", "public function update_token(Request $request, $id)\n {\n $record = LanguageToken::where('id', $id)->get()->first();\n if($isValid = $this->isValidRecord($record))\n return redirect($isValid);\n\n $this->validate($request, [\n 'token_label' => 'bail|required|max:400|unique:language_tokens,token_label,'.$record->id,\n ]);\n\n $record->token_label = $request->token_label;\n $record->default_value = $request->default_value;\n $record->language_pages_id = $request->lpage;\n $record->save();\n LanguageHelper::flash('success','record_updated_successfully', 'success');\n return redirect(URL_LANGUAGE_TOKEN_LIST);\n }", "public function facebookStoreToken() {\n if ( ! empty( $_GET['access_token'] ) ) {\n $this->instagramCode = $_GET['access_token'];\n update_option( self::FACEBOOK_TOKEN, $_GET['access_token'] );\n }\n }", "public function setToken($token)\n {\n $tokenValidator = new \\Paggi\\SDK\\TokenValidation(); //self::$container->get('TokenValidation');\n if ($tokenValidator->isValidToken($token)) {\n self::$token = $token;\n $this->setPartnerIdByToken($token);\n return true;\n }\n return false;\n }", "function saveToken($token) {\r\n\t\t$_SESSION['token'] = $token;\r\n\t}", "public function refreshToken(Token $token)\n {\n return api(['data' => $token->generateDataForKey(current_app_key())]);\n }", "public function updateSessToken($obj_id, $mac_addr, $push_token) {\n\n $this->sess_token = $this->garbler($mac_addr);\n\n $curr_time = time();\n\n $exp_seconds = $this->expiry_in_hrs * 60 * 60;\n\n $local_exp_date = date($this->dateFormat, $curr_time + $exp_seconds);\n\n $gmt_exp_date = gmdate($this->dateFormat, $curr_time + $exp_seconds); //Converts date to GMT by adding expiry date in seconds\n\n $flag_after_insert = $this->update_in_db($obj_id, $this->sess_token, $mac_addr, $gmt_exp_date, $push_token);\n\n $return_obj = array('Token' => $this->sess_token, 'Expiry_local' => $local_exp_date, 'Expiry_GMT' => $gmt_exp_date, 'Flag' => $flag_after_insert);\n\n return $return_obj;\n }", "public function setPlatformType(?PolicyPlatformType $value): void {\n $this->getBackingStore()->set('platformType', $value);\n }", "public function setAToken($token)\n {\n $this->atoken = $token;\n }", "function updateAuthSubToken($singleUseToken)\n{\n try {\n $sessionToken = Zend_Gdata_AuthSub::getAuthSubSessionToken($singleUseToken);\n } catch (Zend_Gdata_App_Exception $e) {\n print 'ERROR - Token upgrade for ' . $singleUseToken\n . ' failed : ' . $e->getMessage();\n return;\n }\n\n $_SESSION['sessionToken'] = $sessionToken;\n header('Location: ' . HOME_URL);\n}", "public function update(Platform $platform, array $input)\n {\n $platform = Platform::updatePlatform($platform,$input);\n\n if (!is_null($platform)) {\n return true;\n }\n\n throw new GeneralException(trans('exceptions.backend.platforms.update_error'));\n }", "function refresh_token($db, $token) {\n \t$n = strpos($token, ':');\n \tif ($n !== false) {\n \t\t$selector = substr($token, 0, $n);\n \t\t$validator = substr($token, $n + 1);\n $result = $db->select('SELECT computer_id, validator FROM tbl_computer WHERE selector=:sel', ['sel/text' => $selector]);\n if (($row = reset($result)) !== false && $row['validator'] == hash('sha256', $validator)) {\n $validator = bin2hex(random_bytes(16));\n $db->execute('UPDATE tbl_computer SET validator=:val, atime=:atime WHERE computer_id=:id', ['id/int' => $row['computer_id'], 'val/text' => hash('sha256', $validator), 'atime/int' => time()]);\n return array(\"$selector:$validator\", $row['computer_id']);\n } else {\n \t\t\t$db->execute('UPDATE tbl_computer SET selector=NULL, validator=NULL WHERE computer_id=:id', ['id/int' => $row['computer_id']]);\n }\n }\n throw new NuboException(ERROR_FORBIDDEN);\n }", "function updatePasswordFromToken($password, $current_token) {\n // Check that token exists\n if (!valueExists(\"users\", \"activation_token\", $current_token)){\n addAlert(\"danger\", \"Invalid token specified.\");\n return false;\n }\n\n try {\n global $db_table_prefix;\n\n $db = pdoConnect();\n\n $sqlVars = array();\n\n $query = \"UPDATE \".$db_table_prefix.\"users\n SET password = :password,\n activation_token = :new_token\n WHERE\n activation_token = :current_token\";\n\n\t\t$stmt = $db->prepare($query);\n\n\t $sqlVars[':password'] = $password;\n $sqlVars[':new_token'] = generateActivationToken();\n $sqlVars[':current_token'] = $current_token;\n\n if (!$stmt->execute($sqlVars)){\n // Error: column does not exist\n return false;\n }\n\n return true;\n\n } catch (PDOException $e) {\n addAlert(\"danger\", \"Oops, looks like our database encountered an error.\");\n error_log(\"Error in \" . $e->getFile() . \" on line \" . $e->getLine() . \": \" . $e->getMessage());\n return false;\n } catch (ErrorException $e) {\n addAlert(\"danger\", \"Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.\");\n return false;\n } catch (RuntimeException $e) {\n addAlert(\"danger\", \"Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.\");\n error_log(\"Error in \" . $e->getFile() . \" on line \" . $e->getLine() . \": \" . $e->getMessage());\n return false;\n }\n}", "private function set_token_used()\n {\n update_post_meta($this->token_post['ID'], \"zbyva_hlasu\", 0);\n update_post_meta($this->token_post['ID'], \"hlasovani_zacatek\", $this->voting_start);\n update_post_meta($this->token_post['ID'], \"hlasovani_konec\", $this->voting_end);\n }", "public function updateRememberToken(\\Illuminate\\Auth\\UserInterface $user, $token){\n\t\t\n\t}", "public function updateToken($tokenId=false)\n {\n if (!$tokenId) {\n $this->token->setMessageSent();\n return;\n }\n \n $tokenData['gto_mail_sent_num'] = new \\Zend_Db_Expr('gto_mail_sent_num + 1');\n $tokenData['gto_mail_sent_date'] = \\MUtil_Date::format(new \\Zend_Date(), 'yyyy-MM-dd');\n\n $this->db->update('gems__tokens', $tokenData, $this->db->quoteInto('gto_id_token = ?', $tokenId));\n }", "public function setSessionTokenFromRegistry() {}", "public function updateRememberToken(Authenticatable $user, $token) {}", "public function token()\n {\n // echo 'pk';\n try {\n $this->heimdall->createToken();\n } catch (Exception $exception) {\n $this->heimdall->handleException($exception);\n }\n }", "public function setOath2Token($token)\n {\n $this->token = $token;\n\n // We need to reinitialize the SOAP client.\n $this->soap = null;\n }", "public function updateActive($token)\n {\n return $this->user->where('active_user' , '=' , $token)->update(['active_user' => true]);\n }", "public function save(\\Laravel\\Passport\\Contracts\\RefreshTokenContract $token)\n {\n $token->save();\n }", "public function updateRememberToken(Authenticatable $user, $token)\n {\n }", "public function updateRememberToken(Authenticatable $user, $token)\n {\n }", "private function tokenHandler()\n {\n // Prevent for infinite loop.\n // Because this method use post method to get JWT. And POST method also call this method itself.\n if (!$this->verifyToken) {\n return;\n }\n\n $this->checkConfiguration();\n\n $cachedJWT = $this->cache->getItem('jwt');\n\n if (!$cachedJWT->isHit()) { // Check JWT presence.\n $this->verifyToken = false;\n\n $this->cacheJsonWebToken($cachedJWT);\n\n $this->verifyToken = true;\n }\n\n if ($this->isTokenExpired($cachedJWT->get())) { // Check JWT expired.\n $this->verifyToken = false;\n\n $this->cacheJsonWebToken($cachedJWT);\n\n $this->verifyToken = true;\n\n }\n\n // Save JWT\n $this->jwt = $cachedJWT->get();\n }" ]
[ "0.695692", "0.6497835", "0.6494313", "0.6305641", "0.59625626", "0.58398116", "0.5798282", "0.577874", "0.5765891", "0.5718073", "0.55874026", "0.554934", "0.5528818", "0.55178976", "0.5502151", "0.5467011", "0.5462225", "0.5452806", "0.5438698", "0.5436424", "0.5375439", "0.53308964", "0.5294999", "0.5283139", "0.5266426", "0.52655685", "0.52655685", "0.5252545", "0.52515674", "0.52339625", "0.5228412", "0.52062", "0.5191181", "0.51770604", "0.51741856", "0.51686704", "0.5160776", "0.5150661", "0.5146336", "0.509122", "0.5081925", "0.507604", "0.5060199", "0.50387084", "0.50319445", "0.5009772", "0.5000943", "0.49979815", "0.49816877", "0.49801642", "0.495857", "0.49577457", "0.4946965", "0.49467492", "0.4932268", "0.4919688", "0.49124002", "0.49060303", "0.49013197", "0.48997363", "0.4886686", "0.4883661", "0.48826757", "0.48803636", "0.48610386", "0.48555678", "0.48478347", "0.484463", "0.48329294", "0.48260814", "0.48142916", "0.48142248", "0.47991222", "0.4797957", "0.4779164", "0.47739744", "0.47620353", "0.47562003", "0.4754745", "0.47462848", "0.4743753", "0.47364098", "0.47250023", "0.4719618", "0.47150457", "0.47147143", "0.47080263", "0.470188", "0.469858", "0.46795005", "0.46728766", "0.4667393", "0.4656275", "0.4654349", "0.4643656", "0.46416202", "0.4639981", "0.4637573", "0.4637573", "0.46374395" ]
0.75539255
0
Returns the content type based on the format. The format must exists on the map.
Возвращает тип содержимого на основе формата. Формат должен существовать в карте.
public function getContentTypeByFormat(string $format): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContentType(string $format = Header::FORMAT_RAW)\n {\n $value = $this->header_fields['Content-Type'] ?? null;\n if ($format === Header::FORMAT_RAW || empty($value))\n return $value;\n\n $type = $value['type'];\n $keywords = $value['parameters'];\n\n $values = [$type];\n foreach ($keywords as $key => $value)\n $values[] = sprintf('%s=\"%s\"', $key, $this->wrap($value));\n\n return 'Content-Type: ' . implode(';' . self::EOL_FOLD, $values);\n }", "public function getPreferredContentType()\n\t{\n\t\t$accept = explode(',', $this->getHeader('Accept'));\n\t\tforeach ($accept as $mimeType) {\n\t\t\tforeach ($this->formats as $formatMime) {\n\t\t\t\tif (Strings::contains($mimeType, $formatMime)) {\n\t\t\t\t\treturn $formatMime;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NULL;\n\t}", "public function contenttype() {\n return $this->info['content_type'];\n }", "public function get_content_type()\n {\n }", "public function getFormattedContentType();", "public function getType() {\n /* could not have header */\n return $this->payload->getFormatType();\n }", "public function GetFormat($formatType);", "public static function getContentType() {}", "private function get_content_type() {\n\n\t $ct = $this->content_types();\n\t $a = trim(reset(explode(',',$_SERVER['HTTP_ACCEPT'])));\n\t \n\t\theader('Content-type:'.$a); // Set header\n\t\n\t if (array_key_exists($a,$ct)) return $ct[$a];\n\t // throw error\n\t throw new Exception('Content type unknown - '.$a);\n\t \n }", "function getContentType();", "public function get_content_type( $type ) {\n $content_type = \"text/plain\";\n switch($type){\n case 'csv':\n $content_type = \"text/csv\";\n break;\n case 'txt':\n default:\n $break;\n }\n return $content_type;\n }", "abstract public function getContentType();", "private function getContentType() {\n return (is_array($this->curlInfo) && isset($this->curlInfo['content_type'])) ? $this->curlInfo['content_type'] : ContentType::JSON;\n }", "function get_content_type($url){\n\t\t\t\t\t\t$mime_types = array(\n\t\t\t\t\t\t\t\"pdf\"=>\"application/pdf\"\n\t\t\t\t\t\t\t,\"exe\"=>\"application/octet-stream\"\n\t\t\t\t\t\t\t,\"zip\"=>\"application/zip\"\n\t\t\t\t\t\t\t,\"docx\"=>\"application/msword\"\n\t\t\t\t\t\t\t,\"doc\"=>\"application/msword\"\n\t\t\t\t\t\t\t,\"xls\"=>\"application/vnd.ms-excel\"\n\t\t\t\t\t\t\t,\"ppt\"=>\"application/vnd.ms-powerpoint\"\n\t\t\t\t\t\t\t,\"gif\"=>\"image/gif\"\n\t\t\t\t\t\t\t,\"png\"=>\"image/png\"\n\t\t\t\t\t\t ,\"ico\"=>\"image/ico\"\n\t\t\t\t\t\t ,\"jpeg\"=>\"image/jpg\"\n\t\t\t\t\t\t ,\"jpg\"=>\"image/jpg\"\n\t\t\t\t\t\t ,\"mp3\"=>\"audio/mpeg\"\n\t\t\t\t\t\t ,\"wav\"=>\"audio/x-wav\"\n\t\t\t\t\t\t ,\"mpeg\"=>\"video/mpeg\"\n\t\t\t\t\t\t ,\"mpg\"=>\"video/mpeg\"\n\t\t\t\t\t\t ,\"mpe\"=>\"video/mpeg\"\n\t\t\t\t\t\t ,\"mov\"=>\"video/quicktime\"\n\t\t\t\t\t\t ,\"avi\"=>\"video/x-msvideo\"\n\t\t\t\t\t\t ,\"3gp\"=>\"video/3gpp\"\n\t\t\t\t\t\t ,\"css\"=>\"text/css\"\n\t\t\t\t\t\t ,\"jsc\"=>\"application/javascript\"\n\t\t\t\t\t\t ,\"js\"=>\"application/javascript\"\n\t\t\t\t\t\t ,\"php\"=>\"text/html\"\n\t\t\t\t\t\t ,\"htm\"=>\"text/html\"\n\t\t\t\t\t\t ,\"html\"=>\"text/html\"\n\t\t\t\t\t\t ,\"xml\"=>\"application/xml\"\n\t\t\t\t\t\t \n\t\t\t\t\t\t);\n\t\t\t\t\t\t$var = explode('.', $url);\n\t\t\t\t\t\t$extension = strtolower(end($var));\n\t\t\t\t\t\tif(isset($mime_types[$extension])){\n\t\t\t\t\t\t return $mime_types[$extension];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\treturn 'other';\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public function guessContentType($magic_file, $magic_mode = null) {}", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "function emc_get_post_format() {\r\n\r\n\t$format = get_the_terms( get_the_ID(), 'emc_content_format' );\r\n\r\n\tif ( is_wp_error( $format ) || ! $format ) return false;\r\n\r\n\t$format = array_shift( $format );\r\n\treturn $format->slug;\r\n\r\n}", "public static function guessContentType($magic_file, $magic_mode = null) {}", "public function get_content_type() {\n return $this->content_type;\n }", "function _file_get_type($file) {\n $ext = file_ext($file);\n if (preg_match(\"/$ext/i\", get_setting(\"image_ext\")))\n return IMAGE;\n if (preg_match(\"/$ext/i\", get_setting(\"audio_ext\")))\n return AUDIO;\n if (preg_match(\"/$ext/i\", get_setting(\"video_ext\")))\n return VIDEO;\n if (preg_match(\"/$ext/i\", get_setting(\"document_ext\")))\n return DOCUMENT;\n if (preg_match(\"/$ext/i\", get_setting(\"archive_ext\")))\n return ARCHIVE;\n }", "public function getFormatClass() {\n\t\t$formatClasses = array(\n\t\t\t'list' => 'CargoListFormat',\n\t\t\t'ul' => 'CargoULFormat',\n\t\t\t'ol' => 'CargoOLFormat',\n\t\t\t'template' => 'CargoTemplateFormat',\n\t\t\t'embedded' => 'CargoEmbeddedFormat',\n\t\t\t'csv' => 'CargoCSVFormat',\n\t\t\t'json' => 'CargoJSONFormat',\n\t\t\t'outline' => 'CargoOutlineFormat',\n\t\t\t'tree' => 'CargoTreeFormat',\n\t\t\t'table' => 'CargoTableFormat',\n\t\t\t'dynamic table' => 'CargoDynamicTableFormat',\n\t\t\t'googlemaps' => 'CargoGoogleMapsFormat',\n\t\t\t'openlayers' => 'CargoOpenLayersFormat',\n\t\t\t'calendar' => 'CargoCalendarFormat',\n\t\t\t'timeline' => 'CargoTimelineFormat',\n\t\t\t'category' => 'CargoCategoryFormat',\n\t\t\t'bar chart' => 'CargoBarChartFormat',\n\t\t);\n\n\t\tif ( array_key_exists( $this->mFormat, $formatClasses ) ) {\n\t\t\treturn $formatClasses[$this->mFormat];\n\t\t}\n\n\t\t$formatClass = null;\n\t\twfRunHooks( 'CargoGetFormatClass', array( $this->mFormat, &$formatClass ) );\n\t\tif ( $formatClass != null ) {\n\t\t\treturn $formatClass;\n\t\t}\n\n\t\tif ( count( $this->mFieldDescriptions ) > 1 ) {\n\t\t\t$format = 'table';\n\t\t} else {\n\t\t\t$format = 'list';\n\t\t}\n\t\treturn $formatClasses[$format];\n\t}", "public function getcontentType();", "public abstract function getContentType();", "public abstract function getContentType();", "public function getMime(): string\n {\n return $this->applicableFormat[$this->contentType];\n }", "abstract public function getFormat();", "public function getContentType()\n {\n return $this->info->content_type;\n }", "public function type() {\n\t\treturn $this->_cache(__FUNCTION__, function($file) {\n\t\t\t$type = null;\n\n\t\t\t// We can't use the file command on windows\n\t\t\tif (!defined('PHP_WINDOWS_VERSION_MAJOR')) {\n\t\t\t\t$type = shell_exec(sprintf(\"file -b --mime %s\", escapeshellarg($file->path())));\n\n\t\t\t\tif ($type && strpos($type, ';') !== false) {\n\t\t\t\t\t$type = strstr($type, ';', true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fallback because of fileinfo bug: https://bugs.php.net/bug.php?id=53035\n\t\t\tif (!$type) {\n\t\t\t\t$info = finfo_open(FILEINFO_MIME_TYPE);\n\t\t\t\t$type = finfo_file($info, $file->path());\n\t\t\t\tfinfo_close($info);\n\t\t\t}\n\n\t\t\t// Check the mimetype against the extension or $_FILES type\n\t\t\t// If they are different, use the upload type since fileinfo returns invalid mimetypes\n\t\t\t// This could be problematic in the future, but unknown better alternative\n\t\t\t$extType = $file->data('type') ?: MimeType::getTypeFromExt($file->ext());\n\n\t\t\tif ($type !== $extType) {\n\t\t\t\t$type = $extType;\n\t\t\t}\n\n\t\t\treturn $type;\n\t\t});\n\t}", "public function getTemplateType() : string\r\n {\r\n // After adding HEIC files, we also need to exclude them \r\n // from being displayed like regular images. \r\n $validImgMime = array(\r\n 'image/bmp',\r\n 'image/gif',\r\n 'image/jpg',\r\n 'image/jpeg',\r\n 'image/png',\r\n 'image/tiff'\r\n );\r\n\r\n $fileType = explode('/', $this->mime_type, 2)[0];\r\n if($fileType == 'image' && !in_array($this->mime_type, $validImgMime))\r\n {\r\n $fileType = 'file';\r\n }\r\n else if(!in_array($fileType, array('image', 'audio', 'video')))\r\n {\r\n $fileType = 'file';\r\n }\r\n return $fileType;\r\n }", "protected function getContentType() {\n\t\tforeach ( headers_list() as $header ) {\n\t\t\tif ( preg_match( '#^content-type: (\\w+/\\w+);?#i', $header, $m ) ) {\n\t\t\t\treturn $m[1];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected function getFormat(string $payload): string\n {\n if (\\is_file($file = $payload)) {\n $format = \\pathinfo($file, \\PATHINFO_EXTENSION);\n } else {\n // try if content is json\n \\json_decode($payload);\n\n if (\\json_last_error() === \\JSON_ERROR_NONE) {\n return 'json';\n }\n\n $format = (new finfo(\\FILEINFO_MIME_TYPE))->buffer($payload);\n }\n\n return self::$supportedMimeTypes[$format] ?? (string) $format;\n }", "function getTypeFormat($locale, $type, $key, $localizedFormats = null);", "public function getMimetype();", "public function contentType();", "public function contentType() {\n\t\treturn $this->getHeader('Content-Type');\n\t}", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function type(): ?string\n {\n if (isset($this->type)) {\n return $this->type;\n }\n if (Str::startsWith($this->mimeType(), 'image')) {\n return $this->type = 'image';\n }\n if (Str::startsWith($this->mimeType(), 'text')) {\n return $this->type = 'text';\n }\n if (Str::startsWith($this->mimeType(), 'audio')) {\n return $this->type = 'audio';\n }\n if (Str::startsWith($this->mimeType(), 'video')) {\n return $this->type = 'video';\n }\n if ($this->mimeType() === MimeType::fromExtension('pdf')) {\n return $this->type = 'pdf';\n }\n if ($this->matchExtensions(['doc', 'docx', 'odt', 'odm', 'ott'])) {\n return $this->type = 'document';\n }\n if ($this->matchExtensions(['ppt', 'pptx', 'pps', 'odp', 'otp'])) {\n return $this->type = 'presentation';\n }\n if ($this->matchExtensions(['xls', 'xlsx', 'ods', 'ots'])) {\n return $this->type = 'spreadsheet';\n }\n if ($this->matchExtensions(['gz', '7z', 'bz2', 'rar', 'tar', 'zip'])) {\n return $this->type = 'archive';\n }\n return null;\n }", "public function getType()\n {\n return MimeType::detectByFilename($this->fullPath);\n }", "function getContentType() {\n\t\treturn $this->getData('content_type');\n\t}", "public function test_getFormatType_unknowFormat_returnUnknown()\r\n\t{\r\n\t\t$expected = EContentFormatType::unknown;\r\n\t\t$this->prepareEContentMock(\"AdummyGenre\");\r\n\t\t$actual = $this->service->getFormatType($this->eContentRecordMock);\r\n\t\t$this->assertEquals($expected, $actual);\r\n\t}", "public function getFormatAction()\n {\n $content = null;\n try {\n $content = $this->dms()->getService()->getInfo($this->params('file'), 'format');\n } catch (NoFileException $e) {\n $content = $e->getMessage();\n }\n\n return $this->getResponse()->setContent($content);\n }", "public function getMimeType()\n {\n return Formats::getFormatMimeType($this->format);\n }", "abstract public function getContentType($filename, $bucket = false);", "public function type()\n\t{\n\t\treturn self::lookup($this->file);\n\t}", "public function getContentType()\n {\n $result = $this->getHeader('Content-Type');\n\n return $result ? $result[0] : null;\n }", "public function getFormat()\n {\n $taxonomy = $this->taxonomies()\n ->where('taxonomy', 'post_format')\n ->first();\n\n if (! is_null($taxonomy) && isset($taxonomy->term)) {\n return str_replace('post-format-', '', $taxonomy->term->slug);\n }\n\n return false;\n }", "function getContentType($imageID, $type=NULL) {\n\n\t\t// EXISTS IMAGE ID\n\t\tif (!isset($this->all_images[$imageID])) return false;\n\n\t\t// GET TYPE CODE OF CONTENT ITEM\n\t\tif (!$typeCode = (int)$this->all_images[$imageID][16] & 1023) {\n\t\t\t$fileName = $this->all_images[$imageID][6];\n\t\t\t$subDirec = $this->all_images[$imageID][7];\n\t\t\t$filePath = $this->get_path($fileName, $subDirec);\n\t\t\t$imageType = array(1=>'gif',2=>'jpg',3=>'png');\n\t\t\t$fileExt\t = ($fileInfo = @getimagesize($filePath))?\t// takes about 0.2 sec. for 50 MB\n\t\t\t\t\t\t\t $imageType[$fileInfo[2]]\t\t\t\t\t\t// video or sound file!\n\t\t\t\t\t\t\t :\n\t\t\t\t\t\t\t substr(strrchr($fileName, '.'), 1);\n\t\t\t$typeCode = $this->getContentCode($fileExt);\n\t\t}\n\n\t\t// SPLIT TYPE CODE IN FORMAT SECTIONS\n\t\t$formats = array (\n\t\t\t\t\t\t\t($typeCode & 63)\t=> 'base',\t// base format\n\t\t\t\t\t\t\t($typeCode & 448)\t=> 'meta',\t// meta format\n\t\t\t\t\t\t\t($typeCode & 512)\t=> 'plugin'\t// needed plug-in\n\t\t\t\t\t\t );\n\n\t\t// LOOK UP ONE FORMAT ONLY\n\t\tif (isset($type)) {\n\t\t\t$code = $this->contentCodeTable($type);\n\t\t\treturn (isset($formats[$code]))? true:false;\n\t\t}\n\t\t// GET ALL ITEM FORMATS\n\t\telse {\n\t\t\t$contentTypes = array();\n\t\t\tforeach ($this->contentCodeTable() as $type=>$code) {\n\t\t\t\tif (isset($formats[$code])) $contentTypes[$type] = $code;\n\t\t\t}\n\t\t\treturn $contentTypes;\n\t\t}\n\t}", "function get_content_type($html_test){\n\t\tif($html_test){\n\t\t\t$this->content_type = 'text/html';\n\t\t}else{\n\t\t\t$this->content_type = 'text/plain';\n\t\t}\n\t}", "public function getContentType() { return $this->content_type; }", "public function getContentType()\n {\n return $this->getHeaderFieldModel('Content-Type');\n }", "function isFormatTemplating($format);", "function get_file_format($file) {\n if(function_exists('finfo_open')) {\n $file_info = finfo_open(FILEINFO_MIME_TYPE);\n $mime_type = finfo_file($file_info, $file);\n finfo_close($file_info);\n if($mime_type) {\n return $mime_type;\n }\n }\n\n if(function_exists('mime_content_type')) {\n if($mime_type = @mime_content_type($file)) {\n return $mime_type;\n }\n }\n\n if($extension = get_file_extension($file)) {\n switch($extension) {\n case 'js' :\n return 'application/x-javascript';\n case 'json' :\n return 'application/json';\n case 'jpg' :\n case 'jpeg' :\n case 'jpe' :\n return 'image/jpg';\n case 'png' :\n case 'gif' :\n case 'bmp' :\n case 'tiff' :\n return 'image/'.$extension;\n case 'css' :\n return 'text/css';\n case 'xml' :\n return 'application/xml';\n case 'doc' :\n case 'docx' :\n return 'application/msword';\n case 'xls' :\n case 'xlt' :\n case 'xlm' :\n case 'xld' :\n case 'xla' :\n case 'xlc' :\n case 'xlw' :\n case 'xll' :\n return 'application/vnd.ms-excel';\n case 'ppt' :\n case 'pps' :\n return 'application/vnd.ms-powerpoint';\n case 'rtf' :\n return 'application/rtf';\n case 'pdf' :\n return 'application/pdf';\n case 'html' :\n case 'htm' :\n case 'php' :\n return 'text/html';\n case 'txt' :\n return 'text/plain';\n case 'mpeg' :\n case 'mpg' :\n case 'mpe' :\n return 'video/mpeg';\n case 'mp3' :\n return 'audio/mpeg3';\n case 'wav' :\n return 'audio/wav';\n case 'aiff' :\n case 'aif' :\n return 'audio/aiff';\n case 'avi' :\n return 'video/msvideo';\n case 'wmv' :\n return 'video/x-ms-wmv';\n case 'mov' :\n return 'video/quicktime';\n case 'zip' :\n return 'application/zip';\n case 'tar' :\n return 'application/x-tar';\n case 'swf' :\n return 'application/x-shockwave-flash';\n default:\n return 'unknown/'.trim($extension,'.');\n }\n }\n return false;\n}", "public function getContentType()\n {\n }", "public function getContent($format = null);", "public function contentTypeToFormat($contentType) {\n $format = null;\n if (strstr($contentType, ';')) {\n $contentType = current(explode(';', $contentType));\n }\n $contentTypes = self::reindexArrayBy(\\AbraFlexi\\Formats::$formats,\n 'content-type');\n $format = array_key_exists($contentType, $contentTypes) ? $contentTypes[$contentType]['suffix'] : null;\n return $format;\n }", "public function getContentType()\n {\n return $this->get(self::_CONTENT_TYPE);\n }", "private function _getFormat($request_path) {\n $format = 'html';\n if (!strpos($request_path, '.')) {\n return $format;\n }\n $pathInfo = explode('.', $request_path);\n $format = strtolower(array_pop($pathInfo));\n return $format;\n }", "public function getContentType(): string;", "private function getFormat(Request $request, array $formats): string\n {\n /** @var ?string $contentType */\n $contentType = $request->headers->get('CONTENT_TYPE');\n if (null === $contentType) {\n throw new UnsupportedMediaTypeHttpException('The \"Content-Type\" header must exist.');\n }\n\n $formatMatcher = new FormatMatcher($formats);\n $format = $formatMatcher->getFormat($contentType);\n if (null === $format) {\n $supportedMimeTypes = [];\n foreach ($formats as $mimeTypes) {\n foreach ($mimeTypes as $mimeType) {\n $supportedMimeTypes[] = $mimeType;\n }\n }\n\n throw new UnsupportedMediaTypeHttpException(sprintf('The content-type \"%s\" is not supported. Supported MIME types are \"%s\".', $contentType, implode('\", \"', $supportedMimeTypes)));\n }\n\n return $format;\n }", "public function getContentType()\n\t{\n\t\treturn isset($this->_response['headers']['content-type']) ? $this->_response['headers']['content-type'] : null;\n\t}", "public function getRfc2822ContentType(): string;", "public function getTypeFromMime(): string\n {\n $imageGenerator = $this->getImageGenerators()\n ->map(function (string $className) {\n return app($className);\n })\n ->first->canHandleMime($this->mime_type);\n\n return $imageGenerator\n ? $imageGenerator->getType()\n : static::TYPE_OTHER;\n }", "function feed_content_type($type = '')\n {\n }", "public function getContentType()\n {\n return $this->getHttpHeader('Content-Type', $this->options['content_type']);\n }", "public function getContentType () {\r\n\t\treturn $this->content_type;\r\n\t}", "protected function getFormat(Request $request) {\n $format = $request->query->get(MainContentViewSubscriber::WRAPPER_FORMAT, $request->getRequestFormat());\n\n // These are all JSON errors for our purposes. Any special handling for\n // them can/should happen in earlier listeners if desired.\n if (in_array($format, ['drupal_modal', 'drupal_dialog', 'drupal_ajax'])) {\n $format = 'json';\n }\n\n // Make an educated guess that any Accept header type that includes \"json\"\n // can probably handle a generic JSON response for errors. As above, for\n // any format this doesn't catch or that wants custom handling should\n // register its own exception listener.\n foreach ($request->getAcceptableContentTypes() as $mime) {\n if (strpos($mime, 'html') === FALSE && strpos($mime, 'json') !== FALSE) {\n $format = 'json';\n }\n }\n\n return $format;\n }", "public function determineContentType()\n {\n // step 1: are we in a browser at all?\n if (!isset($_SERVER))\n {\n // no, so we must be a console app\n return App_Request::CT_CONSOLE;\n }\n\n // TODO: detect content negotiation properly\n return App_Request::CT_XHTML;\n }", "public function getContentType()\n {\n $contentType = Config::get('view.content-type');\n return ($contentType !== null) ? $contentType : $this->contentType;\n }", "public function getFormatterType();", "public function getFormat() {}", "public function getFormat() {}", "public function getFormat() {}", "public static function getContentType($file_name)\n {\n $file_extension = strtolower(substr(strrchr($file_name, '.'), 1));\n switch($file_extension) {\n case \"gif\": return \"image/gif\";\n case \"png\": return \"image/png\";\n case \"jpeg\":\n case \"jpg\": return \"image/jpg\";\n case \"css\": return \"text/css\";\n case \"js\": return \"application/javascript\";\n case \"pdf\": return \"application/pdf\";\n default:\n }\n return false;\n }", "function _mime_content_type($filename) {\n if (!file_exists($filename) || !is_readable($filename)) return false;\n if(class_exists('finfo')){\n $result = new finfo();\n if (is_resource($result) === true) {\n return $result->file($filename, FILEINFO_MIME_TYPE);\n }\n }\n \n // Trying finfo\n if (function_exists('finfo_open')) {\n $finfo = finfo_open(FILEINFO_MIME);\n $mimeType = finfo_file($finfo, $filename);\n finfo_close($finfo);\n // Mimetype can come in text/plain; charset=us-ascii form\n if (strpos($mimeType, ';')) list($mimeType,) = explode(';', $mimeType);\n return $mimeType;\n }\n \n // Trying mime_content_type\n if (function_exists('mime_content_type')) {\n return mime_content_type($filename);\n }\n \n\n // Trying to get mimetype from images\n $imageData = getimagesize($filename);\n if (!empty($imageData['mime'])) {\n return $imageData['mime'];\n }\n // Trying exec\n if (function_exists('exec')) {\n $mimeType = exec(\"/usr/bin/file -i -b $filename\");\n if(strpos($mimeType,';')){\n $mimeTypes = explode(';',$mimeType);\n return $mimeTypes[0];\n }\n if (!empty($mimeType)) return $mimeType;\n }\n return false;\n }", "public function getTypeAction()\n {\n $content = null;\n try {\n $content = $this->dms()->getService()->getInfo($this->params('file'), 'type');\n } catch (NoFileException $e) {\n $content = $e->getMessage();\n }\n\n return $this->getResponse()->setContent($content);\n }", "public static function getContentType(): string\n {\n return static::CONTENT_TYPE;\n }", "public function getMimeType(){\n return (new \\finfo())->buffer($this->getContent(), FILEINFO_MIME_TYPE);\n }", "public function parseType()\n {\n if ( ! $this->type ) {\n $this->stream->resetPointer();\n\n switch ( $this->stream->read(2) ) {\n case \"BM\":\n return $this->type = 'bmp';\n case \"GI\":\n return $this->type = 'gif';\n case chr(0xFF) . chr(0xd8):\n return $this->type = 'jpeg';\n case \"\\0\\0\":\n switch ( $this->readByte($this->stream->peek(1)) ) {\n case 1:\n return $this->type = 'ico';\n case 2:\n return $this->type = 'cur';\n }\n\n return false;\n\n case chr(0x89) . 'P':\n return $this->type = 'png';\n case \"RI\":\n if ( substr($this->stream->read(10), 6, 4) == 'WEBP' ) {\n return $this->type = 'webp';\n }\n\n return false;\n case'8B':\n return $this->type = 'psd';\n case \"II\":\n case \"MM\":\n return $this->type = 'tiff';\n default:\n $this->stream->resetPointer();\n\n // Keep reading bytes until we find '<svg'.\n while ( true ) {\n $byte = $this->stream->read( 1 );\n if ( '<' === $byte && 'svg' === $this->stream->peek( 3 ) ) {\n $this->type = 'svg';\n return $this->type;\n }\n }\n return false;\n }\n }\n\n return $this->type;\n }", "function _validateFormat($format)\n {\n if (!array_key_exists($format, $this->conf['all_syntax']))\n $format = 'text';\n \n return $format; \n }", "private function getMimeTypeForImageFormat($imageFormat)\n {\n $formatMap = [\n 'jpg' => 'image/jpeg',\n 'jpeg' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'png' => 'image/png',\n 'wbmp' => 'image/vnd.wap.wbmp',\n 'xbm' => 'image/x-xbitmap',\n ];\n if (!isset($formatMap[$imageFormat])) {\n return null;\n }\n\n return $formatMap[$imageFormat];\n }", "protected function determineContentTypeByRaw($rawContent)\n\t{\n\t\tif (preg_match('/^\\\\{.*\\\\}$/is', $rawContent)) {\n\t\t\treturn self::CONTENT_TYPE_JSON;\n\t\t}\n\t\tif (preg_match('/^[^=|^&]+=[^=|^&]+(&[^=|^&]+=[^=|^&]+)*$/is', $rawContent)) {\n\t\t\treturn self::CONTENT_TYPE_URLENCODED;\n\t\t}\n\t\tif (preg_match('/^<.*>$/is', $rawContent)) {\n\t\t\treturn self::CONTENT_TYPE_XML;\n\t\t}\n\t\treturn self::CONTENT_TYPE_AUTO;\n\t}", "public function getFormat() {\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), array('format'));\n return $result;\n }", "function mimeType($path) {\n\t\tif ($file = $this->file($path)) {\n\t\t\treturn Mime_Type::guessType($file);\n\t\t}\n\t}", "function getType() {\n\t\treturn $this->data_array['filetype'];\n\t}", "public function type($type = null) {\n\t\tif ($type === false) {\n\t\t\tunset($this->headers['Content-Type']);\n\t\t\t$this->_type = false;\n\t\t\treturn;\n\t\t}\n\t\t$media = $this->_classes['media'];\n\n\t\tif (!$type && $this->_type) {\n\t\t\treturn $this->_type;\n\t\t}\n\t\t$headers = $this->headers + ['Content-Type' => null];\n\t\t$type = $type ?: $headers['Content-Type'];\n\n\t\tif (!$type) {\n\t\t\treturn;\n\t\t}\n\t\t$header = $type;\n\n\t\tif (!$data = $media::type($type)) {\n\t\t\t$this->headers('Content-Type', $type);\n\t\t\treturn ($this->_type = $type);\n\t\t}\n\t\tif (is_string($data)) {\n\t\t\t$type = $data;\n\t\t} elseif (!empty($data['content'])) {\n\t\t\t$header = is_string($data['content']) ? $data['content'] : reset($data['content']);\n\t\t}\n\t\t$this->headers('Content-Type', $header);\n\t\treturn ($this->_type = $type);\n\t}", "function fn_get_mime_content_type($filename, $check_by_extension = true, $not_available_result = 'application/octet-stream')\n{\n $type = '';\n\n if (class_exists('finfo')) {\n $finfo_handler = @finfo_open(FILEINFO_MIME);\n if ($finfo_handler !== false) {\n $type = @finfo_file($finfo_handler, $filename);\n list($type) = explode(';', $type);\n @finfo_close($finfo_handler);\n }\n }\n\n if (empty($type) && function_exists('mime_content_type')) {\n $type = @mime_content_type($filename);\n }\n\n if (empty($type) && $check_by_extension && strpos(fn_basename($filename), '.') !== false) {\n $type = fn_get_file_type(fn_basename($filename), $not_available_result);\n }\n\n return !empty($type) ? $type : $not_available_result;\n}", "function get_format_uri($format) {\n switch (strtolower($format)) {\n case 'audio': return 'http://purl.org/dc/dcmitype/Sound';\n case 'video': return 'http://purl.org/dc/dcmitype/MovingImage';\n case 'image': return 'http://purl.org/dc/dcmitype/StillImage';\n case 'text': return 'http://purl.org/dc/dcmitype/Text';\n case 'interactive': return 'http://purl.org/dc/dcmitype/Interactive';\n case 'other': return;\n default: return;\n }\n }" ]
[ "0.7052816", "0.6576673", "0.65522236", "0.6496637", "0.6467648", "0.64384794", "0.6351507", "0.62789536", "0.62630117", "0.62327254", "0.62106085", "0.61709976", "0.61629397", "0.61046547", "0.6102573", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.6060711", "0.6052449", "0.6047307", "0.602367", "0.60235906", "0.6014308", "0.60085714", "0.60085714", "0.60074407", "0.6000302", "0.5992511", "0.59755176", "0.5967636", "0.59479487", "0.594716", "0.5939544", "0.5934927", "0.5932541", "0.5924374", "0.5907903", "0.5907903", "0.5907903", "0.5907903", "0.5907903", "0.5907903", "0.5897662", "0.5888584", "0.5873637", "0.5856327", "0.58516717", "0.5849779", "0.5845798", "0.5840843", "0.583682", "0.5824755", "0.58110267", "0.58008724", "0.57963", "0.57941043", "0.57694185", "0.5767173", "0.57656515", "0.5765438", "0.57545745", "0.5751051", "0.57401264", "0.5733734", "0.5730154", "0.57097113", "0.5701051", "0.5688761", "0.5687677", "0.56867164", "0.5676646", "0.5672837", "0.56725866", "0.5657409", "0.5656325", "0.564508", "0.564508", "0.564508", "0.56353", "0.5632655", "0.56261367", "0.56182724", "0.5615117", "0.56148815", "0.56134915", "0.56095695", "0.55671716", "0.5565729", "0.5561936", "0.5557952", "0.555073", "0.5550428", "0.55494237" ]
0.8024541
0
Get state property name in database
Получить имя свойства состояния в базе данных
public function getStatePropertyName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatePropertyName()\n {\n // TODO: Implement getStatePropertyName() method.\n }", "function getName() \n {\n return $this->getValueByFieldName( 'statevar_name' );\n }", "public function getStateName() {\n return $this->getValueOrDefault('StateName');\n }", "public function getState()\n {\n return $this->state->name;\n }", "public function getOnStateName() {}", "public function getStateName()\n {\n return $this->state->getName();\n }", "public function getState()\n\t{\n\t\t$column = self::COL_STATE;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getName()\n {\n return $this->state->getName();\n }", "function GetStateByName($state)\n\t{\n\t\t$this->db->where('name_long', ucwords($state));\n\t\t$query = $this->db->get('states');\n\t\tif($query->num_rows() > 0) {\n\t\t\treturn $query->row()->name_short;\n\t\t}\n\n\t\treturn FALSE;\n\t}", "function getLabelField() \n {\n return 'statevar_name';\n }", "function getPropertyName() ;", "public function getName()\n {\n return 'us_states';\n }", "public function getState(): string\n {\n return $this->state;\n }", "public function getState(): string\n {\n return $this->state;\n }", "public function state(): string {\n return $this->_state;\n }", "public function getState(): string\n {\n return $this->_state;\n }", "public function getProperty()\n\t{\n\t\treturn empty($this->property) ? strtolower($this->getName()) : $this->property;\n\t}", "public function getStateAlias()\n {\n return $this->state->alias;\n }", "public function get_state()\n {\n return $this->get_default_property(self::PROPERTY_STATE);\n }", "public function getState() : string\n {\n return $this->state;\n }", "function get_name()\n {\n return $this->get_default_property(self :: PROPERTY_NAME);\n }", "function get_name()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_NAME);\r\n }", "function state_to_name($state) {\n\t\n\tswitch ($state) {\n\t \tcase 'water_demand': \t\t\treturn \"Water demand\"; \n\t\tcase 'water_supply': \t\t\treturn \"Water supply\";\n\t\tcase 'water_price': \t\t\treturn \"Water price\";\n\t\tcase 'water_quality': \t\t\treturn \"Water quality\";\n\t\tcase 'political_popularity': \treturn \"Political popularity\";\n\t\tcase 'lake_quality': \t\t\treturn \"Quality of the water in the lake\";\n\t\tcase 'env_awareness': \t\t\treturn \"Environmental awareness\";\n\t\t}\n}", "public function getName()\n {\n if (array_key_exists('name', $this->personState)) {\n return $this->personState['name'];\n } else {\n return null;\n }\n }", "public function getStateName()\n {\n $data = $this->soap(\"AVTransport\", \"GetTransportInfo\");\n return $data[\"CurrentTransportState\"];\n }", "public function getTaskStateText()\n {\n return $this->getTaskState()->get('name');\n }", "public function getStateByName($name) {\n\t\t// Build query, prep, and bind\n\t\t$sql = \"SELECT * FROM states WHERE name = :name \";\n\t\t$statement = $this->PDODB->prepare($sql);\n\t\t$statement->bindValue(\":name\", $name);\n\n\t\t// Execute the query\n\t\t$statement->execute();\n\n\t\t// Fetch object\n\t\t$state = $statement->fetchObject();\n\t\t\n\t\treturn $state;\n\t}", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getPropertyName() {}", "function getPropName() {\n return $this->propName;\n }", "private function getPropertyName(): string\n {\n $name = $this->foreignKey->getLocalTableName();\n if ($this->hasLocalUniqueIndex()) {\n $name = TDBMDaoGenerator::toSingular($name);\n }\n return TDBMDaoGenerator::toCamelCase($name);\n }", "protected function _getState($name) {}", "public function getSQLState()\n {\n return $this->state;\n }", "public function getStateName($stateId = NULL)\n {\n if (is_null($stateId)) {\n $stateId = $this->getState();\n }\n\n if (is_null(self::$_states)) {\n self::getStates();\n }\n if (isset(self::$_states[$stateId])) {\n return self::$_states[$stateId];\n }\n return Mage::helper('sales')->__('Unknown State');\n }", "protected function getState()\n {\n return $this->stateRaw[$this->name];\n }", "public function getState(){\n return $this->_getData(self::STATE);\n }", "public function getStateId();", "public function getStateId();", "public function getPropertyDBName(string $property) : string {\n\t\t// Only this class itself or EntityManager are allowed access\n\t\t$calling_class = debug_backtrace(1, 1)[0]['class'];\n\t\tif (!is_a($calling_class, 'Henri\\Framework\\Model\\Entity\\EntityManager', true) &&\n\t\t\t\t!is_a($calling_class, 'Henri\\Framework\\Model\\Entity\\Entity', true)) {\n\t\t\tthrow new Exception('Access to method not allowed', 500);\n\t\t}\n\n\t\tif (!$this->hasProperty($property)) {\n\t\t\tthrow new Exception('Property ' . $property . ' does not exist for ' . get_class($this), 500);\n\t\t}\n\n\t\treturn $this->propertyMap[$property];\n\t}", "public function getPropertyName();", "public function getPropertyName();", "public function getState(): string\n {\n }", "public function stateAdminName()\n {\n return $this->getActiveState()->adminName();\n }", "public function getName()\n {\n return $this->propertyName;\n }", "public static function getNameById($id_state)\n {\n }", "public function getState() { return $this->data->get(\"state\"); }", "public function getState()\n {\n return $this->getParameter('state');\n }", "public function getStateID()\n {\n return $this->StateID;\n }", "public function getOrganizationState(): string {\n\t\treturn ($this->organizationState);\n\t}", "public function getStateText()\n {\n $options = $this->getStateOptions();\n return isset($options[$this->state]) ? $options[$this->state] : '';\n }", "public function getState()\n {\n return $this->properties;\n }", "abstract public function getStateFromClass(): string;", "public static function getNameById($idState) {\n\n if (!$idState) {\n return false;\n }\n\n $cacheId = 'State::getNameById_' . (int) $idState;\n\n if (!Cache::isStored($cacheId)) {\n $result = Db::getInstance(_EPH_USE_SQL_SLAVE_)->getValue(\n (new DbQuery())\n ->select('`name`')\n ->from('state')\n ->where('`id_state` = ' . (int) $idState)\n );\n Cache::store($cacheId, $result);\n\n return $result;\n }\n\n return Cache::retrieve($cacheId);\n }", "public function get_state() {\n\t\treturn $this->data['state'];\n\t}", "public function getRegstateAttribute()\n\t{\n\t\tswitch (strtoupper($this->attributes['regstate'])) \n\t\t{\n\t\t\tcase \"VIC\":\n\t\t\t\techo \"Victoria\";\n\t\t\tbreak;\n\t\t\tcase \"NSW\":\n\t\t\t\techo \"New South Wales\";\n\t\t\tbreak;\n\t\t}\n\t}", "public function getState()\n {\n return $this->get(self::STATE);\n }", "public function getState()\n {\n return $this->get(self::STATE);\n }", "public static function getState(): string\n {\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "function GetProjectStateDetail($stateID=false,$languageID=false)\n\t{\n\t\t$qry=$this->db->query(\"select rp_state_details.stateName from rp_states,rp_state_details where rp_states.stateID='$stateID' and rp_states.stateStatus='Active' and rp_state_details.stateID='$stateID' and rp_state_details.languageID='$languageID'\");\n\t\treturn $qry->result();\n\t}", "function getDescription() \n {\n return $this->getValueByFieldName( 'statevar_desc' );\n }", "function GetStateByCode($state)\n\t{\n\t\t$this->db->where('name_short', strtoupper($state));\n\t\t$query = $this->db->get('states');\n\t\tif($query->num_rows() > 0) {\n\t\t\treturn $query->row()->name_short;\n\t\t}\n\n\t\treturn FALSE;\n\t}", "public static function getIdByName($state)\n {\n }", "public function getStatesProperty()\n {\n return State::where('name', 'LIKE', \"%{$this->searchTerm}%\")\n ->whereNotIn('id', $this->selectedStates)\n ->whereCountryId($this->country)->get();\n }", "public function getState() {}", "public function getState() {}", "public function getState() {}", "function _getDashboardStateKey() {\n return 'dashboard-state-' . $this->getId();\n }", "public function state(){\n return $this->state;\n }", "public function getState(){\n\t\treturn $this->state;\n\t}", "abstract public function getTradeStateLabel($forState);", "public function getConfigName(): string\n {\n return $this->getState()[ClusterState::CONFIG_NAME_PROP] ?? '';\n }", "public function getName()\n {\n return $this->getProperty('name');\n }", "public function getState() {\n\t\treturn $this->STATE;\n\t}", "public function getDefaultStateName() {\n return $this->values->get('DefaultStateName');\n }", "function getID() \n {\n return $this->getValueByFieldName( 'statevar_id' );\n }", "public function getState()\n {\n return MQStateKeys::get($this->state);\n }", "function feature_name($pid)\n{\n\t$fHead=mysql_fetch_array(mysql_query(\"select features from manage_property where pid='$pid' and status='active'\"));\n\treturn $fHead['features'];\n}", "protected function _stateTable()\n {\n return $this->_stateTable;\n }", "public function getGameState(): string\n {\n return $this->state;\n }", "public function getPropertyShort()\n\t{\n\t\t$property_short = NULL;\n\t\t\n\t\tif ($this->winnerExists())\n\t\t{\n\t\t\t$property_short = $this->winner->getStateData()->campaign_name;\n\t\t}\n\t\t\n\t\treturn $property_short;\n\t}", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getStateDetails()\n {\n return $this->state_details;\n }", "public function getProperty()\n {\n if (!$this->property) {\n $this->property = Inflector::underscore($this->alias);\n }\n\n return $this->property;\n }", "function getFieldName(DataProperty &$property)\n {\n if (!is_object($property)) debug($property); // <-- this throws an exception\n // support [database.]table.field syntax\n if (preg_match('/^(.+)\\.(\\w+)$/', $property->source, $matches)) {\n $table = $matches[1];\n $field = $matches[2];\n return $field;\n }\n }", "public function getState()\n {\n return $this->stateData['state'];\n }", "public function get_name() {\r\n\t\treturn 'status';\r\n\t}", "public function getState();", "public function getState();" ]
[ "0.74585956", "0.7376751", "0.73566014", "0.70646137", "0.7060109", "0.70086235", "0.69524527", "0.68009424", "0.6537173", "0.64801645", "0.635834", "0.6296718", "0.62672263", "0.62672263", "0.624579", "0.6240301", "0.62165886", "0.61909497", "0.618941", "0.6187186", "0.61827487", "0.61662954", "0.61658055", "0.6158587", "0.61434984", "0.6099584", "0.6091553", "0.6084687", "0.6084687", "0.6084687", "0.60519874", "0.6039721", "0.60344017", "0.60263586", "0.60228086", "0.60139626", "0.5988413", "0.59577984", "0.59577984", "0.59503883", "0.59352785", "0.59352785", "0.5931986", "0.5923378", "0.5919337", "0.59181327", "0.5908774", "0.59018624", "0.5876583", "0.58638066", "0.58556086", "0.58502126", "0.58492446", "0.5829575", "0.58127725", "0.58024555", "0.57924896", "0.57924896", "0.57861316", "0.57576346", "0.57576346", "0.57576346", "0.57576346", "0.57483613", "0.5741391", "0.5737313", "0.5736677", "0.57348335", "0.573011", "0.5729497", "0.57285327", "0.5723457", "0.56877035", "0.5675007", "0.5663674", "0.56592506", "0.5658315", "0.564508", "0.56424344", "0.56413686", "0.5641258", "0.56350714", "0.562946", "0.5617034", "0.56144327", "0.56074446", "0.56074446", "0.56074446", "0.56074446", "0.56074446", "0.56074446", "0.56074446", "0.56074446", "0.5602334", "0.56018865", "0.5599381", "0.5598171", "0.55923635", "0.5587088", "0.5587088" ]
0.8029509
0
Method to set the value of field nome_original
Метод установки значения поля nome_original
public function setNomeOriginal($nome_original) { $this->nome_original = $nome_original; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNomeOriginal()\n {\n return $this->nome_original;\n }", "public function setNome($valor){\n\t\t\t$this->nome = $valor;\n\t\t}", "public function setOriginal($original) {\n $this->original = $original;\n }", "public function setNome(string $nome)\n {\n $this->nome = $nome;\n }", "public function setNome($nome){$this->nome = $nome;}", "private function setNome($nomecompleto){\t\t\n\t\tif($nomecompleto = filter_var($nomecompleto, FILTER_SANITIZE_STRING)){\n\t\t\t$this->nomecompleto = $nomecompleto; \n\t\t} \n\t}", "final protected function setNome(string $Nome){\n $this->Nome = $Nome;\n }", "public function setNome($nome)\n\t\t{\n\t\t\t\t$this->nome = $nome;\n\t\t}", "public function setNome($nome)\n {\n $this->nome = $nome;\n\n \n }", "public function setOriginalLabel($originalLabel)\n {\n $this->originalLabel = $originalLabel;\n }", "public function setNome($nome)\n {\n $this->nome = $nome;\n }", "public function set_nome($nome) : void\n {\n try {\n $this->obj_contato_anunciante->set_nome(Validador::Contato_Anunciante()::validar_nome($nome));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['nome'] = \"erro\";\n }\n }", "public function getOriginalName();", "public function setNomeArea($nome) {\n $this->_nome = $nome; \n }", "public function setName($name){\n\t$this->nom = $name;\n}", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function setNome($nome){\r\n\t\t$this->_nome = str_replace(\"\\\\\\\\\", \"\\\\\", str_replace(\"\\\\\\\"\", \"\\\"\", $nome));\r\n\t\treturn $this;\r\n\t}", "public function setNom($value)\n\t{\n\t\t$this -> _nom = $value;\n\t}", "public function setNomeMedico($nome) {\n $this->_nome = $nome;\n }", "public function setNameEdit($name = NULL ){\n\t\t$this->nameEdit = $name ? $name : \"Editar \".$this->name;\n\t}", "public function setOriginal(string $original): self\n {\n if ($original !== $this->original) {\n $this->original = $original;\n $this->transliteration = null;\n }\n\n return $this;\n }", "private function SetName() {\n $where = (!empty($this->eventoID) ? \"e.id != {$this->eventoID} AND \" : '');\n\n $query = $this->createQueryBuilder('e')\n ->where(\"{$where} e.titulo = :n\")\n ->setParameter('n', $this->data->getTitulo())\n ->getQuery();\n\n $resEvento = $query->getResult();\n if ($resEvento) {\n $this->data->setName($this->data->getName() . \"-\" . count($resEvento));\n }\n }", "function setRealname($realname){\n $this->realname = $realname;\n }", "public function setChangeInternalName($value)\n {\n \t$this->_change_internal_name = $value;\n }", "public final function asigNombre($nombre){\r\n $this->nombre=$nombre;\r\n }", "function setName( $value )\n {\n $this->Name = $value;\n }", "public function editName() \n\t{\n\t\t$id = $_POST['id'];\n\t\t$nome = $_POST['name'];\n\n\t\t$data = array(\n\t\t\t'nome' => $nome\n\t\t );\n\t \n\t\t$this->model->editName($data, $id);\n\t}", "public function beforeSave() {\n\t\tif(isset(Yii::app()->params->admin)) {\n\t\t\t$admin = Yii::app()->params->admin;\n\t\t\tif(!empty($admin->contactNameFormat)) {\n\t\t\t\t$str = $admin->contactNameFormat;\n\t\t\t\t$str = str_replace('firstName',$this->firstName,$str);\n\t\t\t\t$str = str_replace('lastName',$this->lastName,$str);\n\t\t\t} else {\n\t\t\t\t$str = $this->firstName.' '.$this->lastName;\n\t\t\t}\n\t\t\tif($admin->properCaseNames)\n\t\t\t\t$str = $this->ucwords_specific($str,array('-',\"'\",'.'),'UTF-8');\n\t\t\t\n\t\t\t$this->name = $str;\n\t\t}\n\t\t\n\t\treturn parent::beforeSave();\n\t}", "public function getOriginal($name = null);", "public function setName()\n {\n $this->_role->name = '奥巴马';\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "public function getOriginalName(): string\n {\n return $this->originalName;\n }", "public function setNome_ano($nome_ano)\n {\n if (!empty($nome_ano) && !is_null($nome_ano))\n $this->nome_ano = $nome_ano;\n }", "public function setNome($nome)\n {\n $this->nome = $nome;\n\n return $this;\n }", "public function rename()\n\t{\n\t\t$newValue = $this->name;\n\t\t$previousValue = $this->getPreviousValue('name');\n\t\t$fieldName = $this->fieldModel->getName();\n\n\t\t$dbCommand = \\App\\Db::getInstance()->createCommand();\n\t\t$dataReader = (new \\App\\Db\\Query())->select(['tablename', 'columnname', 'fieldid', 'tabid'])\n\t\t\t->from('vtiger_field')\n\t\t\t->where(['fieldname' => $fieldName, 'uitype' => [15, 16, 33]])\n\t\t\t->createCommand()->query();\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$tableName = $row['tablename'];\n\t\t\t$columnName = $row['columnname'];\n\t\t\t$dbCommand->update($tableName, [$columnName => $newValue], [$columnName => $previousValue])\n\t\t\t\t->execute();\n\t\t\t$dbCommand->update('vtiger_field', ['defaultvalue' => $newValue], ['defaultvalue' => $previousValue, 'fieldid' => $row['fieldid']])\n\t\t\t\t->execute();\n\t\t\t$moduleName = \\App\\Module::getModuleName($row['tabid']);\n\n\t\t\t\\App\\Fields\\Picklist::clearCache($fieldName, $moduleName);\n\t\t\t$eventHandler = new \\App\\EventHandler();\n\t\t\t$eventHandler->setParams([\n\t\t\t\t'fieldname' => $fieldName,\n\t\t\t\t'oldvalue' => $previousValue,\n\t\t\t\t'newvalue' => $newValue,\n\t\t\t\t'module' => $moduleName,\n\t\t\t\t'id' => $this->getId(),\n\t\t\t]);\n\t\t\t$eventHandler->trigger('PicklistAfterRename');\n\t\t}\n\t\t\\App\\Fields\\Picklist::clearCache($fieldName, $this->fieldModel->getModuleName());\n\t}", "function setName($value) {\n $this->name = $value;\n }", "public function setNome($sNome) {\n $this->sNome = $sNome;\n }", "public function setNome($sNome) {\n $this->sNome = $sNome;\n }", "public function setCodeOriginal($value)\n {\n $this->codeOriginal = $value;\n }", "public function setNombre($nombre)\n {\n $this->nombre = $this->db->real_escape_string($nombre);\n\n \n }", "public function setNome($sNome) {\n $this->sNome = $sNome;\n }", "public function getOriginalName(): string\n {\n\t\treturn $this->originalName;\n\t}", "function setName($value) {\n $this->name = $value;\n }", "public function setNombre($nombre){\n $this->nombre = $nombre;\n }", "public function setNombre($nombre){\n $this->nombre = $nombre;\n }", "function setNombre_materia($nombre_materia){\n\t\t\n\t\t$this->nombre_materia = $nombre_materia;\n\t\t$this->cambios = true;\n\t}", "public function setName($name){\n $this->__set('name',$name);\n }", "public function setNombre($nombre){\n $this->nombre = $this->db->real_escape_string($nombre);\n }", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "public function setName($nombre)\n\t{\n\t\t \n\t\t if(!empty($nombre))\n\t\t {\n\n\t\t \t$name = trim($nombre);\n if(Auth::check())\n {\n $nameExiste=Account::find($this->account_id)->where('name',$name)->first();\n\n }else{\n\n $nameExiste=Account::find($this->getAccount_id())->where('name',$name)->first();\n } \n\t\t \t\n\t\t \tif($nameExiste)\n\t\t \t{\n\t\t \t\t$this->fv_error_message = $this->fv_error_message . '<br> - Nombre '.$name.ERROR_DUPLICADO;\n\t\t \t\treturn $this->fv_name=null;\n\t\t \t}\n\t\t \treturn $this->fv_name = $name;\n\t\t }\n\t\t \t// return null;\n\t\t \t$this->fv_error_message = $this->fv_error_message .'<br> - Nombre '.ERROR_NULL;\n\t\t \treturn $this->fv_name = null;\n\t\t \n\t}", "public function setItemName()\n {\n if ($product = $this->product) {\n $name = $product->productPrint->name;\n $name = $product->mailingOption->name . ' ' . $name;\n $name = $name . ' ' . $product->stockOption->name;\n $this->name = $name;\n $this->save();\n }\n }", "public function editName() \n {\n $id = $_POST['id'];\n $nome = $_POST['name'];\n\n $data = array(\n 'nome' => $nome\n );\n \n $this->model->editName($data, $id);\n }", "public function setNome($nome) {\n $this->nome = $nome;\n return true;\n }", "function _create_proper_name_field() {\r\n global $locale;\r\n $full_name = $locale->getLocaleFormattedName($this->first_name, $this->last_name, $this->salutation);\r\n $this->name = $full_name;\r\n $this->full_name = $full_name; \r\n\r\n\t}", "public function set_name($new_name) {\r\n\t\t$this->name = strtoupper($new_name);\r\n\t}", "public function setName($NewName){\n\t\t// public function __construct($NewName)\n\n\t\t$nameVar = $this->name = $NewName;\n\t\treturn $nameVar;\n\t\t\n\t}", "public function setName($x) { $this->name = $x; }", "public function setName()\n {\n $this->_role->name = '伊泽瑞尔';\n }", "public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}", "public function setName($newName){\n\t}", "public function setName($name){\n $this->_name = $name;\n }", "public function setNameAttribute($value){//\n $this->attributes['name'] = strtolower($value);\n }", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setName($value);", "function setName($name){\n\t\t$this->name=$name;\n\t}", "public function setName(string $name)\n\t{\n\t\t$this->name=$name; \n\t\t$this->keyModified['name'] = 1; \n\n\t}", "public function setNombre($_nombre)\n {\n $this->_nombre = $_nombre;\n\n return $this;\n }", "public function setNameNewItem($name = NULL){\n\t\t$this->nameNewItem = $name ? $name : $this->nameAddNew;\n\t}", "function setNom($nom) { if (is_string($nom)) {\r\n $this->_nom = $nom;\r\n }\r\n }", "function set_comusername($new_username)\n {\n $this->username = $new_username;\n }", "public function setName($_name)\n {\n if (is_string($_name)) {\n \t$this->_name = $_name;\n }\n }", "public function setName($_name = null) {\n\t\t$this->name = $_name;\n\t\treturn $this;\n\t}", "private function update_name($new_name) { \n\n\t\tif ($this->_update_item('name',$new_name,'50')) { \n\t\t\t$this->name = $new_name;\n\t\t}\n\n\t}", "public function setAsModified($name = NULL);", "public function setNom($Nom)\n{\n$this->Nom = $Nom;\n\nreturn $this;\n}", "public function setRealName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setNombreAttribute($value)\n\t{\n\t\t$this->attributes['nombre'] = mb_strtoupper($value);\n\t}", "public function setNombre($n){\n\t\t$this->nombre = $n;\n\t}", "private function resetInputFields(){\n $this->name = '';\n }", "function setNombre($nombre){\n\t\tif (is_string($nombre)){\n\t\t\t$this->nombre=$nombre;\n\t\t}else{\n\t\t\tthrow new Exception(\"Debe establecer una cadena para el nombre\");\n\t\t}\t\t\n\t}", "public function set_nom(string $_nom){\n $this->_nom = $_nom;\n\n return $this;\n }", "function setName( &$value )\n {\n $this->Name = $value;\n }", "function setId_nom_new($iid_nom_new = '')\n {\n $this->iid_nom_new = $iid_nom_new;\n }", "public function reSetFullName()\n\t{\n\t\t$this->setFullName($this->getActuallFullName());\n\t}", "function set_name($name) { \n $this->name = $name;\n }", "function setUserName($newVal)\r\n\t{\r\n\t\t$this->UserName = $newVal;\r\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function __set($nome, $valor) {\n $this->dados[$nome] = $valor;\n }", "public function setArl_nombre($arl_nombre){\n $this->arl_nombre = $arl_nombre;\n }", "function setFirstName($newVal)\r\n\t{\r\n\t\t$this->FirstName = $newVal;\r\n\t}", "public function setNombre($nom)\n {\n $this->nombre = $nom;\n }", "function setFromName($to_set=\"noreply\"){\n\t\t\t$this->from_name = $to_set;\n\t\t}", "public function asignarNombre($nombre){\n$this->nombre = self::mensaje().$nombre;\n}", "function setLname($name){\n $this->lname = $name;\n }" ]
[ "0.70677775", "0.682121", "0.6700084", "0.66432124", "0.6596507", "0.6540798", "0.64683306", "0.64674664", "0.6414192", "0.6398249", "0.63628215", "0.6355459", "0.6327835", "0.62343425", "0.62245715", "0.6217916", "0.62158847", "0.6193311", "0.61726695", "0.61005515", "0.6063411", "0.6055964", "0.59452075", "0.59369725", "0.59285706", "0.59229755", "0.58752954", "0.5869931", "0.5856714", "0.58563733", "0.58416456", "0.58416456", "0.58416456", "0.58416456", "0.58416456", "0.5838166", "0.583421", "0.58314127", "0.5825687", "0.58068013", "0.5805656", "0.5805656", "0.5778532", "0.5774553", "0.5757217", "0.5744562", "0.57341933", "0.572214", "0.572214", "0.571421", "0.5708931", "0.5706625", "0.569784", "0.569784", "0.5694281", "0.5693596", "0.56715995", "0.56673956", "0.5665048", "0.5664069", "0.565122", "0.56487143", "0.5647649", "0.56199396", "0.5608814", "0.56063616", "0.56052625", "0.55913275", "0.558958", "0.5588178", "0.55867785", "0.55683243", "0.5568143", "0.5565578", "0.5563727", "0.5563417", "0.55589306", "0.5546408", "0.55442095", "0.5543892", "0.5543839", "0.554016", "0.55397546", "0.5535621", "0.5528563", "0.5527593", "0.5524761", "0.5518776", "0.5516666", "0.5510346", "0.5509349", "0.54910785", "0.54910785", "0.54841197", "0.54827833", "0.54775363", "0.54710877", "0.546312", "0.54613817", "0.5460889" ]
0.7242172
0
Returns the value of field cd_upload
Возвращает значение поля cd_upload
public function getCdUpload() { return $this->cd_upload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "public function getUpload()\n {\n return $this->upload;\n }", "public function getUploadId()\n {\n return $this->data['upload_id'];\n }", "public function getCaminhoUpload()\n {\n return $this->caminhoUpload;\n }", "public function getValue(){\r\n\t\tif(\r\n\t\t\tisset($_FILES[$this->name]['tmp_name'])\r\n\t\t\t&& (strlen($_FILES[$this->name]['tmp_name']) > 0)\r\n\t\t\t&& ($_FILES[$this->name]['size'] > 0)\r\n\t\t\t&& ($_FILES[$filedataName]['error'] == UPLOAD_ERR_OK)\r\n\t\t){\r\n\t\t\treturn $_FILES[$this->name]['name'];\r\n\t\t} else {\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}", "public function getUploadField()\n {\n return $this->component->bulkUploadField($this->gridField);\n }", "function tf_file_upload_option_customizer_get_value() {\r\n\r\n if ( ! empty( $_POST['nonce'] ) && ! empty( $_POST['id'] ) ) {\r\n\r\n $nonce = sanitize_text_field( $_POST['nonce'] );\r\n $attachmentID = sanitize_text_field( $_POST['id'] );\r\n // $size = sanitize_text_field( $_POST['size'] );\r\n\r\n if ( wp_verify_nonce( $nonce, 'tf_file_upload_option_nonce' ) ) {\r\n $attachment = $attachmentID;\r\n if ( ! empty( $attachment ) ) {\r\n wp_send_json_success( $attachment );\r\n }\r\n }\r\n }\r\n\r\n // Instead of doing a wp_send_json_error, send a blank value instead so.\r\n // Javascript adjustments still get executed.\r\n wp_send_json_success( '' );\r\n }", "public function getUploadName(){\n\t\treturn $this->uploadName;\n\t}", "public function getUploadUrl()\n {\n \treturn $this->getForm()->getUploadUrl();\n }", "public function getUploadName(){\n if( isset( $this->uploadName ) )\n return $this->uploadName;\n }", "public function uploadsize() {\n return $this->info['size_upload'];\n }", "function getUploadDirectory() {\r\n return $this->directory;\r\n }", "public function uploadlength() {\n return $this->info['upload_content_length'];\n }", "public function getMediaFieldValue()\n {\n return $this->isBinary() ? base64_encode($this->{$this->getMediaField()}) : $this->{$this->getMediaField()};\n }", "public function getUploadDate() {\n\t\treturn $this->uploadDate;\n\t}", "public function getUpload() {\n\t\treturn $this->loadMediaUploadView();\n\t}", "public function content_for_upload();", "function wck_get_entry_field_upload($id){\r\n\t\tif( !empty ( $id ) && is_numeric( $id ) ){\t\t\t\t\r\n\t\t\t$file_src = wp_get_attachment_url($id);\r\n\t\t\t$thumbnail = wp_get_attachment_image( $id, array( 80, 60 ), true );\r\n\t\t\t$file_name = get_the_title( $id );\r\n\t\t\t\r\n\t\t\tif ( preg_match( '/^.*?\\.(\\w+)$/', get_attached_file( $id ), $matches ) )\r\n\t\t\t\t$file_type = esc_html( strtoupper( $matches[1] ) );\r\n\t\t\telse\r\n\t\t\t\t$file_type = strtoupper( str_replace( 'image/', '', get_post_mime_type( $id ) ) );\r\n\t\t\t\r\n\t\t\treturn $display_value = '<div class=\"upload-field-details\">'. $thumbnail .'<p><span class=\"file-name\">'. $file_name .'</span><span class=\"file-type\">'. $file_type . '</span></p></div>';\t\r\n\t\t} else {\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}", "function print_upload($value){\n\t\techo $this->before_option_title.$value['name'].$this->after_option_title;\n\t\t$input_value = $this->get_field_value($value['id']);\n\t\techo '<input class=\"option-input upload hana-upload\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\" type=\"text\" value=\"'.$input_value.'\" />';\n\t\techo '<div id=\"'.$value['id'].'_button\" class=\"upload-button upload-logo hana-upload-btn\" ><a class=\"hana-button alignright\"><span>Upload</span></a></div><br/>';\n\t\t\n\t\t$this->close_option($value);\n\t}", "protected function getUploadDir() {\n return self::$UPLOAD_DIR;\n }", "public function getUploadPath()\n\t{\n\t\t// return Yii::app()->params->upload.'/';\n\t\treturn Yii::app()->config->fixedValues['upload_path'];\n\t}", "public function getRawValue ()\n {\n return $this->files->getFile( $this->getName() );\n }", "public function getUploadUrl()\n {\n if (array_key_exists(\"uploadUrl\", $this->_propDict)) {\n return $this->_propDict[\"uploadUrl\"];\n } else {\n return null;\n }\n }", "public function getUploadedFile(){\n\t\t\t$pic = isset($this->EMP_IMG) ? $this->EMP_IMG : 'default.jpg';\n\t\t\treturn Yii::$app->params['HRD_EMP_UploadUrl'].$pic;\n\t\t}", "abstract protected function getUploadDir(): string;", "public function getUploadcomment() {}", "public function getSize() {\n return $_FILES['uploadfile']['size'];\n }", "function doUpload(){\n if(count($_FILES) > 0){\n if(array_key_exists($this->name,$_FILES) AND $_FILES[$this->name]['name'] != \"\"){\n\n $this->CI->upload->initialize($this->config);\n\n if (!$this->CI->upload->do_upload($this->name)){\n show_error($this->CI->upload->display_errors());\n } \n else{\n $data = $this->CI->upload->data();\n $this->CI->codexmessages->add('info',$this->CI->lang->line('codexforms_file').' '.$_FILES[$this->name]['name'].' '.$this->CI->lang->line('codexforms_uploaded_correctly'),'',true);\n return $data['file_name'];\n }\n }\n }\n }", "public function getUploadedFileName() {\n\t \t return $this->uploadedFileName;\n\t }", "public function getDateUpload()\n {\n if (!isset($this->dateUpload)) {\n $this->dateUpload = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getDateUploadQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->dateUpload;\n }", "function value_from_datadict($data, $name)\n\t{\n\t\tglobal $HTTP_REQUEST,$_FILES;\n\t\t$out = $HTTP_REQUEST->getUploadedFile($name); // HTTPUploadedFile\n\t\tif(!$out){\n\t\t\t$error = $HTTP_REQUEST->getUploadedFileError($name);\n\t\t\tif($error>0 && $error!=4){ // 4 means \"No file was uploaded\" which is OK for us\n\t\t\t\t$out = $error;\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "public function setCdUpload($cd_upload)\n {\n $this->cd_upload = $cd_upload;\n\n return $this;\n }", "public function getDocumentUploadDate() {\n return $this->document['uploadDate'];\n }", "function _field_file($val) \n {\n $res = \"\";\n $size = $this->_get_field_size();\n $size -= 12; // compensate for Browse.. button\n\n if (isset($this->attribs['ws_path'])) {\n $path = $this->attribs['ws_path'];\n }\n\n\n $res .= sprintf(\"<input type=\\\"file\\\" name=\\\"%s\\\" id=\\\"%s\\\" size=\\\"%d\\\" maxlength=\\\"%d\\\" class=\\\"%s\\\" %s/>\\n\",\n $this->fname,\n $this->fname,\n $size,\n $this->attribs['maxlength'],\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n if (isset($this->attribs['show_current']) and !empty($val)) {\n $res .= sprintf('<br /><span style=\"font-size: 9px\">current file: <a href=\"%s/%s\" target=\"flashWin\">%s</a></span>', $path, $val, $val);\n }\n\n return $res;\n }", "public function getFileUploadLocation()\n {\n $config = $this->getServiceLocator()->get('config');\n return $config['module_config']['upload_location'];\n }", "public function getName() {\n return $_GET['uploadfile'];\n }", "public function getAvatarUploadMeta()\n {\n return $this->avatarUploadMeta;\n }", "public function getName() {\n return $_FILES['uploadfile']['name'];\n }", "protected function _getRemoteStoredPath() {\r\n $value = null;\r\n\r\n if (is_uploaded_file($_FILES[$this->_name]['tmp_name']) || file_exists($this->_tmpFile)) {\r\n\r\n $isStorageModEnabled = Engine_Api::_()->zulu()->isModEnabled('storage');\r\n\r\n if ($isStorageModEnabled &&\r\n ($service = Engine_Api::_()->getDbtable('services', 'storage')->getService()) instanceof Storage_Service_S3) {\r\n\r\n $path = $this->_generatePath();\r\n\r\n $value = $path;\r\n }\r\n } else {\r\n if (($item = $this->_item) instanceof Core_Model_Item_Abstract) {\r\n $values = Engine_Api::_()->fields()->getFieldsValues($item);\r\n $field_id = $this->{'data-field-id'};\r\n\r\n $valueRow = $values->getRowMatching(array(\r\n 'field_id' => $field_id,\r\n 'item_id' => $item->getIdentity(),\r\n 'index' => 0\r\n ));\r\n\r\n if ($valueRow) {\r\n $value = $valueRow->value;\r\n }\r\n }\r\n }\r\n\r\n return $value;\r\n }", "public function getUploadedPath()\n {\n return $this->uploadedPath;\n }", "public function get_full_uploaded_file_path()\n {\n return $this->full_uploaded_file_path;\n }", "public function getDisplayUploadAd()\n {\n return $this->readOneof(33);\n }", "public function getUploadFileName() {\n if ($this->_field != null) {\n return (isset($_FILES[$this->_field]['name']))\n ? $_FILES[$this->_field]['name'] : false;\n }\n\n return false;\n }", "protected function getFullPathToUploadFile()\n {\n return $this->fullPathToUploadFile;\n }", "function wp_get_upload_dir()\n {\n }", "protected function _getUploadDir()\n {\n return $this->_mediaDirectory->getAbsolutePath($this->_appendScopeInfo(self::UPLOAD_DIR));\n }", "public function getFile() {\n\t\treturn $this->data['file'];\n\t}", "public function getSource()\n {\n return 'upload';\n }", "public function renderUploadForm() {}", "function do_upload($field_name , $path = '') {\n $config = array(\n 'upload_path' => $this->config->item ( 'admin_upload_path' ).$path,\n 'upload_url' => base_url() . $this->config->item ( 'admin_upload_path' ).$path,\n 'allowed_types' => \"gif|jpg|png|jpeg\"\n );\n $this->load->library('upload', $config);\n // create folder\n if (! is_dir ( $config ['upload_path'] )) {\n mkdir ( $config ['upload_path'], 0777, TRUE );\n }\n\n if ($this->upload->do_upload($field_name)) {\n //If image upload in folder, set also this value in \"$image_data\".\n $image_data = $this->upload->data();\n return $image_data;\n }\n else\n {\n $this->session->set_flashdata ( 'error', lang ( 'badge_upload_failure' ) . $this->upload->display_errors () );\n return false;\n }\n }", "private function _file()\n {\n return Html::getAttributeValue($this->model, $this->attribute);\n }", "public function getAvatarUploadFileName()\n {\n return $this->avatarUploadFileName;\n }", "private function determineUploadLocation(FieldItemListInterface $field): string {\n return (new FileItem($field->getItemDefinition()))->getUploadLocation();\n }", "public function get_uploaded_file_name()\n {\n return $this->uploaded_filename;\n }", "public function getUploadedFilePath()\n {\n return !empty($this->filepath) ? $this->filepath : \n (!empty($this->filename) ? (Yii::$app->params['uploadPath'] . $this->filename) : null);\n }", "public function getMediaField()\n {\n return config('facematch.recognize.'.$this->getModelConfigArrayKey().'.media.field');\n }", "protected function getUploadDir()\n {\n // when displaying uploaded doc/image in the view.\n return static::UPLOAD_DIRECTORY;\n }", "public function getFileUploadInfo($upload_id)\n {\n return $this->_process('file/upload_info', ['upload_id' => $upload_id])->upload;\n }", "protected function getUploadDir()\n {\n // when displaying uploaded doc/image in the view.\n return 'uploads/devis';\n }", "public function getUploaderFolder (){\n\t\treturn $this->uploadFolder ;\n\t}", "public function fileInfo()\n {\n return R::findAll('uploaddetail');\n }", "function acf_upload_file($uploaded_file)\n{\n}", "public function getUploadedFileInfo();", "public static function getUploadPath()\n {\n return '';\n }", "public function get_uploaded_files(/* ... */)\n {\n return $this->_uploaded;\n }", "public function getUploadType() {\r\n $type = $this->getSession()->getUploadType();\r\n return $type ? $type : 'image';\r\n }", "public function getMaxUploadFileSize()\n\t{\n\t\t$objResult = \\Database::getInstance()->prepare(\"SELECT MAX(maxlength) AS maxlength FROM tl_form_field WHERE pid=? AND invisible='' AND type='upload' AND maxlength>0\")\n\t\t\t\t\t\t\t\t\t\t\t ->execute($this->id);\n\n\t\tif ($objResult->numRows > 0 && $objResult->maxlength > 0)\n\t\t{\n\t\t\treturn $objResult->maxlength;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \\Config::get('maxFileSize');\n\t\t}\n\t}", "function wpc_client_shortcode_uploadf( $atts, $contents = null ) {\r\n global $wpc_client;\r\n //checking access\r\n $client_id = wpc_client_checking_page_access();\r\n\r\n if ( false === $client_id ) {\r\n return '';\r\n }\r\n\r\n return $wpc_client->shortcode_message;\r\n }", "public function getUploadPath()\n {\n return Yii::$app->params['upload_dir'] . DIRECTORY_SEPARATOR . $this->path;\n }", "public function getAttachFileContent() {\n return $this->file_content;\n }", "public function get_uploadBasePath()\n {\n return $this->_uploadBasePath;\n }", "public function getUploadDir()\n {\n return 'documents';\n //return $this->uploadDir;\n }", "public function data() {\n return $this->uploadedData;\n }", "public function getUploadDir()\n {\n return 'uploads/img/category';\n }", "public function getUploadedFileUrl()\n {\n return !empty($this->fileurl) ? $this->fileurl : \n (!empty($this->filename) ? $this->uploadUrl . $this->filename : null);\n }", "public static function determineUploadLocation(FieldItemListInterface $field): string {\n return (new FileItem($field->getItemDefinition()))->getUploadLocation();\n }", "public static function prepare_file_upload_meta( $prev_value, $field, $entry_id ) {\n\t\t// remove temp tag on uploads\n\t\tself::remove_meta_from_media( $prev_value );\n\n\t\t$last_saved_value = self::get_previous_file_ids( $field, $entry_id );\n\t\tself::delete_removed_files( $last_saved_value, $prev_value, $field );\n\t\treturn $prev_value;\n\t}", "protected function getUploadDir() {\n return '/uploads';\n }", "protected function getUploadDir() {\n // al mostrar el documento/imagen cargada en la vista.\n return 'bundles/mascotasmascotas/uploaded';\n }", "protected function getUploadDir() {\n // when displaying uploaded doc/image in the view.\n return 'uploads/';\n }", "function shortcode_field() {\n\n\t\t$shortcode = '[file id=\"' . get_the_ID() . '\" ]';\n\n\t\t?>\n\t\t<div class=\"misc-pub-section\">\n\t\t\t<label for=\"attachment_url\"><?php _e( 'File Shortcode:' ); ?></label>\n\t\t\t<input type=\"text\" class=\"widefat urlfield\" readonly=\"readonly\" name=\"attachment_url\" value=\"<?php echo esc_attr($shortcode); ?>\" />\n\t\t</div>\n\t\t<?php\n\t}", "public function file() { return $this->input_file; }", "public function shortcodeUploadImage()\n {\n if ($this->settings->has('formerror')) {\n $form = $this->model->getSubmittedForm();\n } else {\n $form = $this->model->getNewForm();\n }\n\n return $this->view->fetch('upload.html.twig', ['form' => $form->createView()]);\n }", "public function getf() {\n return $this->file;\n }", "protected function getDateUploadQuery()\n {\n return $this->dateUploadQuery;\n }", "public function get_uploadBaseUrl()\n {\n return $this->_uploadBaseUrl;\n }", "function _field_image_upload ($val) {\n\n $name = $this->fname;\n $path = '';\n $max = (!empty($this->attribs['displaysize']))? $this->attribs['displaysize'] : 64;\n\n if (isset($this->attribs['ws_path'])) {\n $path = $this->attribs['ws_path'];\n }\n elseif (defined('SITE_MEDIA_URLPATH')) {\n $path = SITE_MEDIA_URLPATH;\n }\n\n $res = '<div class=\"fieldImageW\">';\n\n if (!empty($val)) {\n $val = preg_replace('/^\\//', '', $val); // rid of a pesky leading slash now\n $url = \"$path/\" . urlencode($val);\n\n if (preg_match('/\\.swf$/', $val)) { // its a F'en Flash - just pop a new friggin windowz\n $res .= \"<span class='ffimg'><a href=\\\"$url\\\" target=\\\"flashWin\\\"><img src=\\\"/gfx/icons/flash.gif\\\"></a></span>\";\n }\n else {\n $size = '';\n $tw = $max;\n $th = $max;\n if (list($w, $h) = @getimagesize(UPLOAD_SAVE_PATH . '/' . $val)) {\n if ($w > $h) {\n $th = floor($h * ($tw / $w));\n }\n else {\n $tw = floor($w * ($th / $h));\n }\n $size = sprintf(\" [%dx%d]\", $w, $h);\n }\n $res .= sprintf('<img src=\"%s\" width=\"%d\" height=\"%d\" title=\"%s%s\">', \n $url, \n $tw,\n $th,\n htmlspecialchars($val),\n $size);\n }\n }\n\n $res .= $this->_field_file($val);\n $res .= \"</div>\";\n return $res;\n }", "public function getUploadTmpDir()\n {\n return $this->upload_tmp_dir;\n }", "protected function getUploadDir(): string\n {\n // when displaying uploaded doc/image in the view.\n return 'image_room_directory';\n }", "public function getWholeFile()\n {\n \treturn isset($_FILES) ? $_FILES : null;\n }", "public function getRelativeUploadPath(): string;", "protected function getUploadDir()\n {\n // when displaying uploaded doc/image in the view.\n return 'uploads/images/agancy';\n }", "public function getValue()\n {\n if (is_array($this->value)) {\n if (0 == count($this->value)) {\n return;\n } elseif (1 === count($this->value)) {\n return $this->value[0];\n } else {\n return $this->getRawMimeDirValue();\n }\n } else {\n return $this->value;\n }\n }", "function inputted_to_field_value($editing,$field,$upload_dir='uploads/catalogues',$old_value=NULL)\n\t{\n\t\t$id=$field['id'];\n\t\t$tmp_name='field_'.strval($id);\n\t\treturn post_param($tmp_name,$editing?STRING_MAGIC_NULL:'');\n\t}", "public function getFileUploads()\n {\n return $this->file_uploads;\n }", "public function getTag()\n {\n return parent::getTag()\n ->unsetAttr('value')\n ->setAttr(\"type\", \"file\");\n }", "protected function getUploadDir()\n {\n return 'upload/files';\n }", "public function do_upload()\n {\n if (!class_exists('WPCP_UploadHandler')) {\n require USEYOURDRIVE_ROOTDIR.'/vendors/jquery-file-upload/server/UploadHandler.php';\n }\n\n if ('1' === $this->get_processor()->get_shortcode_option('demo')) {\n // TO DO LOG + FAIL ERROR\n exit(-1);\n }\n\n $shortcode_max_file_size = $this->get_processor()->get_shortcode_option('maxfilesize');\n $shortcode_min_file_size = $this->get_processor()->get_shortcode_option('minfilesize');\n $accept_file_types = '/.('.$this->get_processor()->get_shortcode_option('upload_ext').')$/i';\n $post_max_size_bytes = min(Helpers::return_bytes(ini_get('post_max_size')), Helpers::return_bytes(ini_get('upload_max_filesize')));\n $max_file_size = ('0' !== $shortcode_max_file_size) ? Helpers::return_bytes($shortcode_max_file_size) : $post_max_size_bytes;\n $min_file_size = (!empty($shortcode_min_file_size)) ? Helpers::return_bytes($shortcode_min_file_size) : -1;\n $use_upload_encryption = ('1' === $this->get_processor()->get_shortcode_option('upload_encryption') && (version_compare(phpversion(), '7.1.0', '<=')));\n\n $options = [\n 'access_control_allow_methods' => ['POST', 'PUT'],\n 'accept_file_types' => $accept_file_types,\n 'inline_file_types' => '/\\.____$/i',\n 'orient_image' => false,\n 'image_versions' => [],\n 'max_file_size' => $max_file_size,\n 'min_file_size' => $min_file_size,\n 'print_response' => false,\n ];\n\n $error_messages = [\n 1 => esc_html__('The uploaded file exceeds the upload_max_filesize directive in php.ini', 'wpcloudplugins'),\n 2 => esc_html__('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 'wpcloudplugins'),\n 3 => esc_html__('The uploaded file was only partially uploaded', 'wpcloudplugins'),\n 4 => esc_html__('No file was uploaded', 'wpcloudplugins'),\n 6 => esc_html__('Missing a temporary folder', 'wpcloudplugins'),\n 7 => esc_html__('Failed to write file to disk', 'wpcloudplugins'),\n 8 => esc_html__('A PHP extension stopped the file upload', 'wpcloudplugins'),\n 'post_max_size' => esc_html__('The uploaded file exceeds the post_max_size directive in php.ini', 'wpcloudplugins'),\n 'max_file_size' => esc_html__('File is too big', 'wpcloudplugins'),\n 'min_file_size' => esc_html__('File is too small', 'wpcloudplugins'),\n 'accept_file_types' => esc_html__('Filetype not allowed', 'wpcloudplugins'),\n 'max_number_of_files' => esc_html__('Maximum number of files exceeded', 'wpcloudplugins'),\n 'max_width' => esc_html__('Image exceeds maximum width', 'wpcloudplugins'),\n 'min_width' => esc_html__('Image requires a minimum width', 'wpcloudplugins'),\n 'max_height' => esc_html__('Image exceeds maximum height', 'wpcloudplugins'),\n 'min_height' => esc_html__('Image requires a minimum height', 'wpcloudplugins'),\n ];\n\n $this->upload_handler = new \\WPCP_UploadHandler($options, false, $error_messages);\n $response = @$this->upload_handler->post(false);\n\n // Upload files to Google\n foreach ($response['files'] as &$file) {\n // Set return Object\n $file->listtoken = $this->get_processor()->get_listtoken();\n $file->name = Helpers::filter_filename(stripslashes(rawurldecode($file->name)), false);\n $file->hash = $_POST['hash'];\n $file->path = $_REQUEST['file_path'];\n $file->description = sanitize_textarea_field(wp_unslash($_REQUEST['file_description']));\n\n // Set Progress\n $return = ['file' => $file, 'status' => ['bytes_up_so_far' => 0, 'total_bytes_up_expected' => $file->size, 'percentage' => 0, 'progress' => 'starting']];\n self::set_upload_progress($file->hash, $return);\n\n if (isset($file->error)) {\n $file->error = esc_html__('Uploading failed', 'wpcloudplugins').': '.$file->error;\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Uploading failed: %s', $file->error));\n\n exit();\n }\n\n if ($use_upload_encryption) {\n $return['status']['progress'] = 'encrypting';\n self::set_upload_progress($file->hash, $return);\n\n $result = $this->do_encryption($file);\n\n if ($result) {\n $file->name .= '.aes';\n clearstatcache();\n $file->size = filesize($file->tmp_path);\n }\n }\n\n // Create Folders if needed\n $upload_folder_id = $this->get_processor()->get_last_folder();\n if (!empty($file->path)) {\n $upload_folder_id = $this->create_folder_structure($file->path);\n }\n\n // Write file\n $chunkSizeBytes = 1 * 1024 * 1024;\n\n // Update Mime-type if needed (for IE8 and lower?)\n $fileExtension = pathinfo($file->name, PATHINFO_EXTENSION);\n $file->type = Helpers::get_mimetype($fileExtension);\n\n // Overwrite if needed\n $current_entry_id = false;\n if ('1' === $this->get_processor()->get_shortcode_option('overwrite')) {\n $parent_folder = $this->get_client()->get_folder($upload_folder_id);\n $current_entry = $this->get_client()->get_cache()->get_node_by_name($file->name, $parent_folder['folder']);\n\n if (!empty($current_entry)) {\n $current_entry_id = $current_entry->get_id();\n }\n }\n\n // Create new Google File\n $googledrive_file = new \\UYDGoogle_Service_Drive_DriveFile();\n $googledrive_file->setName($file->name);\n $googledrive_file->setMimeType($file->type);\n $googledrive_file->setDescription($file->description);\n\n if ('1' === $this->get_processor()->get_shortcode_option('upload_keep_filedate') && isset($_REQUEST['last_modified'])) {\n $last_modified = date('c', ($_REQUEST['last_modified'] / 1000)); // Javascript provides UNIX time in milliseconds, RFC 3339 required\n $googledrive_file->setModifiedTime($last_modified);\n }\n\n // Convert file if needed\n $file->convert = false;\n if ('1' === $this->get_processor()->get_shortcode_option('convert')) {\n $importformats = $this->get_processor()->get_import_formats();\n $convertformats = $this->get_processor()->get_shortcode_option('convert_formats');\n if ('all' === $convertformats[0] || in_array($file->type, $convertformats)) {\n if (isset($importformats[$file->type])) {\n $file->convert = $importformats[$file->type];\n $filename = pathinfo($file->name, PATHINFO_FILENAME);\n $googledrive_file->setName($filename);\n }\n }\n }\n\n // Call the API with the media upload, defer so it doesn't immediately return.\n $this->get_app()->get_client()->setDefer(true);\n\n try {\n if (false === $current_entry_id) {\n $googledrive_file->setParents([$upload_folder_id]);\n $request = $this->get_app()->get_drive()->files->create($googledrive_file, ['supportsAllDrives' => true, 'enforceSingleParent' => true]);\n } else {\n $request = $this->get_app()->get_drive()->files->update($current_entry_id, $googledrive_file, ['supportsAllDrives' => true, 'enforceSingleParent' => true]);\n }\n } catch (\\Exception $ex) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins').': '.$ex->getMessage();\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud on line %s: %s', __LINE__, $ex->getMessage()));\n\n exit();\n }\n\n // Create a media file upload to represent our upload process.\n $media = new \\UYDGoogle_Http_MediaFileUpload(\n $this->get_app()->get_client(),\n $request,\n $file->type,\n null,\n true,\n $chunkSizeBytes\n );\n\n $filesize = filesize($file->tmp_path);\n $media->setFileSize($filesize);\n\n /* Start partialy upload\n Upload the various chunks. $status will be false until the process is\n complete. */\n try {\n $upload_status = false;\n $bytesup = 0;\n $handle = fopen($file->tmp_path, 'rb');\n while (!$upload_status && !feof($handle)) {\n @set_time_limit(60);\n $chunk = fread($handle, $chunkSizeBytes);\n $upload_status = $media->nextChunk($chunk);\n $bytesup += $chunkSizeBytes;\n\n // Update progress\n // Update the progress\n $status = [\n 'bytes_up_so_far' => $bytesup,\n 'total_bytes_up_expected' => $file->size,\n 'percentage' => (round(($bytesup / $file->size) * 100)),\n 'progress' => 'uploading-to-cloud',\n ];\n\n $current = self::get_upload_progress($file->hash);\n $current['status'] = $status;\n self::set_upload_progress($file->hash, $current);\n }\n\n fclose($handle);\n } catch (\\Exception $ex) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins').': '.$ex->getMessage();\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud on line %s: %s', __LINE__, $ex->getMessage()));\n\n exit();\n }\n\n $this->get_app()->get_client()->setDefer(false);\n\n if (empty($upload_status)) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins');\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud'));\n\n exit();\n }\n\n // check if uploaded file has size\n usleep(500000); // wait a 0.5 sec so Google can create a thumbnail.\n $api_entry = $this->get_app()->get_drive()->files->get($upload_status->getId(), ['fields' => $this->get_client()->apifilefields, 'supportsAllDrives' => true]);\n\n if ((0 === $api_entry->getSize()) && (false === strpos($api_entry->getMimetype(), 'google-apps'))) {\n $deletedentry = $this->get_app()->get_drive()->files->delete($api_entry->getId(), ['supportsAllDrives' => true]);\n $file->error = esc_html__('Not succesfully uploaded to the cloud', 'wpcloudplugins');\n $return['status']['progress'] = 'upload-failed';\n\n return;\n }\n\n // Add new file to our Cache\n $entry = new Entry($api_entry);\n $cachedentry = $this->get_processor()->get_cache()->add_to_cache($entry);\n $file->completepath = $cachedentry->get_path($this->get_processor()->get_root_folder());\n $file->account_id = $this->get_processor()->get_current_account()->get_id();\n $file->fileid = $cachedentry->get_id();\n $file->filesize = Helpers::bytes_to_size_1024($file->size);\n $file->link = urlencode($cachedentry->get_entry()->get_preview_link());\n $file->folderurl = false;\n\n $folderurl = $cachedentry->get_parent()->get_entry()->get_preview_link();\n $file->folderurl = urlencode($folderurl);\n }\n\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-finished';\n $return['status']['percentage'] = '100';\n self::set_upload_progress($file->hash, $return);\n\n // Create response\n echo json_encode($return);\n\n exit();\n }", "public static function getTargetUploadDir()\n {\n $dir = basename(Env::getVideoUploadDir());\n return $dir;\n }" ]
[ "0.68408227", "0.68408227", "0.66643214", "0.66268486", "0.6564458", "0.6535333", "0.6522831", "0.63106287", "0.6280272", "0.6131156", "0.60866815", "0.60702777", "0.6067642", "0.60273373", "0.5986972", "0.5936652", "0.5916832", "0.5899086", "0.58965564", "0.5895438", "0.58585507", "0.5807853", "0.5766712", "0.5707047", "0.5699256", "0.5666325", "0.5661412", "0.5642882", "0.5634854", "0.56329584", "0.56289774", "0.56179476", "0.56114334", "0.55885375", "0.55819935", "0.5574994", "0.5553075", "0.5550451", "0.5539417", "0.55334175", "0.5505487", "0.549636", "0.5491816", "0.5473923", "0.5457176", "0.54493165", "0.5448588", "0.54448617", "0.5437658", "0.54373705", "0.5431641", "0.54312843", "0.5423929", "0.54236865", "0.5423468", "0.54226846", "0.54222196", "0.5396384", "0.5383164", "0.53712744", "0.53684956", "0.5359552", "0.5344143", "0.5342872", "0.5338716", "0.53348005", "0.5334162", "0.53309715", "0.53237534", "0.53106076", "0.5309778", "0.52920884", "0.5288629", "0.52855086", "0.527867", "0.52658886", "0.526457", "0.526457", "0.5261796", "0.5256918", "0.5249873", "0.5245478", "0.5245102", "0.5242945", "0.5242001", "0.5239742", "0.52392226", "0.5226331", "0.5220326", "0.52180403", "0.5213381", "0.5208238", "0.52030057", "0.51903564", "0.51886517", "0.51857406", "0.51847154", "0.5177283", "0.5166587", "0.51618516" ]
0.8222352
0
Returns the value of field nome_original
Возвращает значение поля nome_original
public function getNomeOriginal() { return $this->nome_original; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOriginalName();", "public function getOriginalName(): string\n {\n\t\treturn $this->originalName;\n\t}", "public function getOriginalName(): string\n {\n return $this->originalName;\n }", "public function getOrigName()\n\t{\n\t\treturn $this->orig_name;\n\t}", "public function getOriginal($name = null);", "public function getNome() {\n return $this->sNome;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getOriginal(): ?string\n {\n return $this->original;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function setNomeOriginal($nome_original)\n {\n $this->nome_original = $nome_original;\n\n return $this;\n }", "public function getNome(){\n \treturn $this->nome;\n }", "private function retrieve_name() {\n\t\t$replacement = null;\n\n\t\t$user_id = $this->retrieve_userid();\n\t\t$name = get_the_author_meta( 'display_name', $user_id );\n\t\tif ( $name !== '' ) {\n\t\t\t$replacement = $name;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function getNomAlternatif()\n {\n $this->logDebug(\" [\".__FUNCTION__.\"] /Ligne: \".__LINE__.\"/ DEBUT; \");\n\n $strNomAlter = \"\";\n \n if ($this->getId() == Budget_typeTable::RESTITUE)\n {\n $strNomAlter = libelle('msg_libelle_restitution');\n } else\n {\n $strNomAlter = libelle('msg_libelle_allocation');\n }\n\n $this->logDebug(\" [\".__FUNCTION__.\"] /Ligne: \".__LINE__.\"/ FIN; \");\n\n return $strNomAlter;\n }", "public function getNome();", "public function getNome();", "public function getNome(){\n\t\t\treturn $this->nome;\n\t\t}", "public function getOriginalContentField()\n {\n $model = $this->owner->getCustomisedObj();\n if (!$model) {\n $model = $this->owner->data();\n }\n if (!$model) {\n return null;\n }\n\n $field = $this->contentField();\n if (!$model->hasField($field)) {\n return null;\n }\n\n return $model->getField($field);\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome() {\r\n return $this->nome;\r\n }", "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 getNome(){\n return $this->nome;\n }", "public function getOriginalTitle() {\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), array('originalTitle' => array('originalTitleHeader' => 'header', \"originalTitleElement\")));\n return (is_array($result)) ? reset($result) : $result;\n }", "public function getNome(){\r\n return $this->nome;\r\n }", "public function getNome()\r\n {\r\n return $this->nome;\r\n }", "public function getNome() {\r\n\t\treturn $this->_nome;\r\n\t}", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getOriginalLabel()\n {\n return $this->originalLabel;\n }", "public function getNome() {\n return $this->nome;\n }", "public function getNome() {\n return $this->nome;\n }", "public function getNom() {\n return strval($this->nom);\n }", "public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}", "public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}", "public function getNom(): string\r\n {\r\n return $this->nom;\r\n }", "public function getNome()\n\t\t{\n\t\t\t\treturn $this->nome;\n\t\t}", "public function get_original() : ?string\n {\n return $this->original;\n }", "public function recuperaNome(){\n $nome = \"\";\n if(isset($_POST['nomericetta'])){\n $nome = $_POST['nomericetta'];\n }\n return $nome;\n }", "function getNom() {\r\n\t\treturn $this->_nom;\r\n\t}", "public function getNome_moeda()\n {\n return $this->nome_moeda;\n }", "public function getNom();", "public function getOriginal()\n {\n return $this->original;\n }", "public function getName(){ return $this->getField('name'); }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNom()\n {\n return $this->Nom;\n }", "public function getNom() { return $this->nom; }", "public function getOriginal() {\n return $this->original;\n }", "public function __get( $name )\n {\n return isset( $this->_original[ $name ] ) ? $this->_original[ $name ] : '';\n }", "function getName () {return $this->getFieldValue ('name');}", "public function getNom() : string{\n return $this->nom;\n }", "function getSubmittedRealName() {\n\t\treturn $this->data_array['submitted_realname'];\n\t}", "public function getNome() {\n return $this->oCgm->getNome();\n }", "public function getNom()\n { \n \n return $this->_nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\r\n {\r\n return $this->nom;\r\n }", "public function getNom()\r\n {\r\n return $this->nom;\r\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getNomOpe()\n {\n return $this->nomOpe;\n }", "function getNom()\n {\n return $this->_Nom;\n }", "public function getNom():string{\r\n\r\n\r\n\r\n return $this->nom;\r\n\r\n\r\n\r\n\r\n \t\t\t}", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "function getAssignedRealName() {\n\t\treturn $this->data_array['assigned_realname'];\n\t}", "public function getNome_ano()\n {\n return $this->nome_ano;\n }", "public function get_nom()\n {\n return $this->_nom;\n }", "public function get_nom()\n {\n return $this->_nom;\n }", "public final function getNom()\n\t{\n\t\treturn $this->nom;\n\t}", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNom()\n\t{\n\t\treturn $this->nom;\n\t}", "public function get_field_name();", "protected function _getRealName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "public function GetPrestaNom() {\n\t\treturn $this -> prestaNom;\n\t}", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom() \n {\n return $this->nom;\n }", "public function getNomeMedico() {\n return ucwords($this->_nome); // imposta la lettera maiuscola a tutte le parole\n }", "public function getArl_nombre(){\n return $this->arl_nombre;\n }", "public function getOriginalSearchValue(): ?string\n {\n return $this->originalValue;\n }" ]
[ "0.73793334", "0.7119979", "0.7117137", "0.6848476", "0.6753146", "0.6499393", "0.6499393", "0.6499393", "0.6494902", "0.64807713", "0.64557254", "0.6444984", "0.64137906", "0.6411266", "0.6394351", "0.6394351", "0.63934386", "0.6386252", "0.6360294", "0.63450533", "0.6331429", "0.6322536", "0.63165736", "0.630448", "0.6292094", "0.62863696", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.62821406", "0.6261374", "0.62555313", "0.62555313", "0.62309945", "0.6230038", "0.6230038", "0.6227178", "0.622531", "0.62032574", "0.6200869", "0.61981046", "0.6196153", "0.61859995", "0.6183388", "0.61536413", "0.61408997", "0.6140869", "0.61342734", "0.61341494", "0.61277425", "0.6122993", "0.61188245", "0.6111731", "0.61032337", "0.61030006", "0.6093291", "0.6093291", "0.6087342", "0.6087342", "0.6084787", "0.60780287", "0.60754895", "0.60616004", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.60558987", "0.6045747", "0.6044035", "0.603894", "0.603894", "0.6038241", "0.6027369", "0.6027369", "0.60246444", "0.6006303", "0.6003978", "0.5986368", "0.59806216", "0.59789056", "0.59779346", "0.59722024", "0.59716624" ]
0.8355088
0
Returns the value of field nome_servidor
Возвращает значение поля nome_servidor
public function getNomeServidor() { return $this->nome_servidor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCodServico()\n {\n return $this->cod_servico;\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getNomeCliente()\n {\n return $this->nomeCliente;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getSobrenome()\n {\n return $this->sobrenome;\n }", "public function recuperaNome(){\n $nome = \"\";\n if(isset($_POST['nomericetta'])){\n $nome = $_POST['nomericetta'];\n }\n return $nome;\n }", "public function getNome() {\n return $this->sNome;\n }", "public function getNome(){\n \treturn $this->nome;\n }", "function Obtener_Nombre_ComprobanteVenta($prm){\n $Obj=new mysqlhelper;\n $result= $Obj->consulta(\"SELECT Concat(co.sgo_vch_serie,'-',co.sgo_vch_numero) as sgo_vch_nrofacturaventa FROM tbl_sgo_comprobanteventa co WHERE co.sgo_int_comprobanteventa=\" . $prm);\n while ($row = mysqli_fetch_array($result))\n {\n return $row[\"sgo_vch_nrofacturaventa\"];\n }\n return \"\";\n }", "public function setNomeServidor($nome_servidor)\n {\n $this->nome_servidor = $nome_servidor;\n\n return $this;\n }", "public function getNome(){\r\n return $this->nome;\r\n }", "public function getServicioId() {\n return $this->servicio_id;\n }", "public function consultarNombreServicio($idServicio){\n\n\t\t\n\t\t$resultado = \"\";\n\t\t\t\n\t\t$conexion = parent::conexionCliente();\t\n\t\t\n\t\t$query = \"SELECT nombre FROM tb_servicios where idServicio = '$idServicio' \";\n\t\t\n\t\tif($res = $conexion->query($query)){\n\t\t\t\n\t\t\twhile ($filas = $res->fetch_assoc()) {\n\t\t\t\t\t\t\t\n\t\t\t\t$resultado = $filas['nombre'];\n\t\t\t\t\t\n\t\t\t}//fin while\n\t\t\t\n\t\t\t/* liberar el conjunto de resultados */\n\t\t\t$res->free();\n\t\t\t\n\t\t}//fin if\n\t\t\n\t\treturn $resultado;\n\t\t\n\t}", "public function getNombreEmpresa(){\n $empresa=DatosEmpresa::datosGenerales($this->idempresa);\n if($empresa==null)\n return '';\n else\n return $empresa->razonsocial;\n }", "public function getNome(){\n return $this->nome;\n }", "public function getNombre_empresa(){\n return $this->nombre_empresa;\n }", "public function getNom_client()\n {\n return $this->nom_client;\n }", "public function getNome() {\r\n return $this->nome;\r\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNomeFantasiaCliente()\n {\n return $this->nomeFantasiaCliente;\n }", "public function getNome(){\n\t\t\treturn $this->nome;\n\t\t}", "function nombreEmpresa($usuario){\n $db = obtenerBaseDeDatos();\n $sentencia = $db->prepare(\"SELECT * FROM proveedores WHERE id = ?\");\n $sentencia->execute([$usuario]);\n return $sentencia->fetchObject();\n }", "public function getNome();", "public function getNome();", "public function getNome()\r\n {\r\n return $this->nome;\r\n }", "public function getNom_partner()\n {\n return $this->nom_partner;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function get_service_name_for_mail(){\r $query=\"select `title` from `ct_services` where `id`='\".$this->id.\"'\";\r $result=mysqli_query($this->conn,$query);\r $value=mysqli_fetch_row($result);\r return $value[0];\r }", "public function getNomeClinicaClinica() {\r\n return $this->_nomeClinica;\r\n }", "public function getIdcliente() {\n\t\t\t\treturn $this->id_cliente ?? \"Id do Cliente não solicitado !!\";\n\t\t\t}", "public function getObservacao(){\n return $this->sObservacao;\n }", "public function getCdNfservico()\n {\n return $this->cd_nfservico;\n }", "public function getNome() {\n return $this->nome;\n }", "public function getNome() {\n return $this->nome;\n }", "public function getCdOrdemServicoReparo()\n {\n return $this->cd_ordem_servico_reparo;\n }", "function consultarNombreServicio($idServicio)\n\t{\n\t\t$objconexionBD = new conexionBD();\n\t\t$objconexionBD->abrirConexion();\n\t\t$res =\"\";\n\t\t$query= \"select * from services where \\\"ID_service\\\"=\".$idServicio.\";\";\n\t\t$result= $objconexionBD->enviarConsulta($query);\n\t\n\t\twhile ($row = pg_fetch_array ($result))\n\t\t{\n\t\t\t$res = $row[\"services_name\"];\n\t\t}\n\t\tpg_free_result($result);\n\t\t\n\t\t$objconexionBD->cerrarConexion();\n\t\treturn $res;\n\t\t\n\t}", "public function getNombreCompleto() {\n\t\treturn $this->txt_username . ' ' . $this->txt_apellido_paterno . ' ' . $this->txt_apellido_materno;\n\t}", "public function getNombrePedido()\r\n {\r\n return $this->NombrePedido;\r\n }", "public function verificaNome($nome){\n try{\n $SQL =\"SELECT * FROM cliente WHERE nomeCliente = :nome AND status > 0\"; \n $sqlSelect = $this->conecta->conectar()->prepare($SQL);\n $NOME = $nome;\n $sqlSelect->bindParam('nome', $NOME, PDO::PARAM_STR);\n $sqlSelect->execute();\n return $sqlSelect->fetchALL(PDO::FETCH_OBJ);\n }catch (PDOException $ex) {\n return 'erro '.$ex->getMessage();\n }\n }", "public function selecionarServidor($servidorId)\n {\n\n $campos = Servidor::TABELA . \".\" . Servidor::COL_COD_PESSOA . \", \" .\n \"PESSOAS.\" . Servidor::COL_EMAIL . \", \" . \n // \"CONCAT(SUBSTRING(PESSOAS.NOME_PESSOA, 1, CHARINDEX(' ', PESSOAS.NOME_PESSOA) - 1),' ', REVERSE(SUBSTRING(REVERSE(PESSOAS.NOME_PESSOA), 1, CHARINDEX(' ', REVERSE(PESSOAS.NOME_PESSOA)) - 1))) as nome\";\n \"{fn CONCAT(SUBSTRING(PESSOAS.NOME_PESSOA, 1, CHARINDEX(' ', PESSOAS.NOME_PESSOA) - 1), {fn CONCAT(' ', REVERSE(SUBSTRING(REVERSE(PESSOAS.NOME_PESSOA), 1, CHARINDEX(' ', REVERSE(PESSOAS.NOME_PESSOA)) - 1)))})} as nome\";\n\n $busca = [Servidor::COL_COD_PESSOA => $servidorId];\n\n $s = new Servidor();\n\n $servidor = ($s->listar($campos, $busca, null, null))[0];\n\n return $servidor;\n }", "public static function getNombreServicioPorIdModel($idServicio, $table)\n {\n $statement = Conexion::conectar()->prepare(\"SELECT nombre FROM $table WHERE id_servicio = :id_servicio\");\t\n //Definicion de parametros para la actualizacion en la base de datos tabla categorias\n $statement->bindParam(\":id_servicio\", $idServicio, PDO::PARAM_INT);\n //Ejecutar la sentencia\n $statement->execute();\n //Asociar resiultados y eevolver el arraty al controller\n return $statement->fetch();\n //Cerrar conexion al final\n $statement->close();\n }", "public function getNome()\n {\n return $this->nome;\n }", "static public function ctrMostrarIdCliente($valor){\n\n $respuesta = ModeloClientes::mdlMostrarIdCliente($valor);\n\t\treturn $respuesta;\n }", "public function getcliente()\r\n {\r\n return $this->cliente;\r\n }", "public function getNome() {\r\n\t\treturn $this->_nome;\r\n\t}", "public function getNome()\n {\n return $this->nome;\n }", "public function nomeCliente($id){\n\t\treturn $this->Cliente->find('first', array(\n\t\t\t'fields' => array('Cliente.Nome'),\n\t\t\t'conditions' => array('Cliente.removed'=>'N', 'Cliente.id'=>$id)\n\t\t));\n\t}", "public function getNomOpe()\n {\n return $this->nomOpe;\n }", "function get_usuario_nome()\n {\n if (empty($this->usuario))\n {\n $this->usuario = new Usuario($this->usuario_id);\n }\n \n return $this->usuario->nome;\n }", "public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}", "public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}", "public function getNome()\n\t\t{\n\t\t\t\treturn $this->nome;\n\t\t}", "function getNombre(){\n //Creamos la consulta\n $sql = \"SELECT nombre FROM usuarios WHERE id_usuario = \".$this->id_user.\";\";\n //obtenemos el array\n $data = $this->getArraySQL($sql);\n //obtenemos el primer elemento, ya que así no tenemos que extraerlo posteriormente\n return $data[0][0];\n }", "public function getNombreEmpresa()\n {\n return $this->nombreEmpresa;\n }", "public function getNomUsuario() {\n return $this->nomUsuario;\n }", "public function getNom(): string\r\n {\r\n return $this->nom;\r\n }", "public function getNom() : string{\n return $this->nom;\n }", "function getSorpresa(){\r\n return $this->sorpresa;\r\n }", "public function getNome()\n {\n return $this->nome;\n }", "public function getNome()\n {\n return $this->nome;\n }", "public static function getClienteNombre($nombre)\n {\n // Consulta de la meta\n $consulta = \"SELECT * FROM clientes WHERE nombre = ?\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(array($nombre));\n // Capturar primera fila del resultado\n $row = $comando->fetch(PDO::FETCH_ASSOC);\n return $row;\n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }", "public function retornaNombreRepvolvo() {\n $isAjax = $this->getRequest()->isXMLHttpRequest();\n if ($isAjax) {\n $id = $this->getRequest()->get('id');\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('SistemaAdminBundle:Repvolvo')->findOneByCodigo($id);\n return new Response($entity->getId());\n }\n return new Response('Error. This is not ajax!', 400);\n }", "public function getNomClient() {\n return $this->nomClient;\n }", "public function getNomConnecter()\n\t{\n\n\t\treturn $this->nom;\n\t}", "public function serviceName(): string\n {\n return $this->serviceName ??= $this->pluck('npServiceName');\n }", "public function getCompanyNameByCompanyCode()\n {\n $nombre = $this->db->select(\"t.empresa as value\")\n ->from(\"token t\") \n ->where(\"t.codigo\", $this->codigo)\n ->get()->row();\n\n // echo '<pre>' . var_dump($nombre) . '</pre>';\n return $nombre;\n }", "public function getPersona()\n\t{\n\t $persona=Persona::model()->find(\"id_usuario = \".$this->id);\n\t if($persona)\n\t \treturn $persona->nombre.', '.$persona->apellido;\n\t else\n\t \treturn \"Falta completar datos\";\n\t}", "public function getDocumentoNombre(){\n return $this->docPersona.' - '.$this->nombre.' '.$this->apellidos;\n \n }", "public function getUserVisibleName(){\n $info = $this->getInfo();\n\n if (isset($info[\"nombre\"])) {\n return $info[\"nombre\"];\n }\n\n error_log(\"no name for company {$this->getUID()}\");\n return \"\";\n }", "public function utenteCognome($idu){\r\n $idu = self::$conn->real_escape_string($idu);\r\n $query = \"SELECT cognome FROM \".$this->tables['utentetable'].\r\n \" WHERE nickname='$idu'\";\r\n\t\t$result = self::$conn->query($query);\r\n if(!$result || $result->num_rows != 1)\r\n return ''; \r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n return $row[0];\r\n }", "function getNome($codice) {\n\t$nome=\"\";\n\t$connessione=dbConnectionData::getMysqli();\t//CONNESSIONE AL DATABASE\n\ttry {\n\t\tif ($connessione->connect_errno) {\n\t\t\tthrow new Exception(\"Connessione fallita: \".$connessione->connect_error.\".\");\n\t\t} else {\n\t\t\t$query=\"SELECT nome FROM Gruppi WHERE idGruppo=\\\"\".$codice.\"\\\"\";\t//CREAZIONE DELLA QUERY\n\t\t\tif (!$result=$connessione->query($query)) {\n\t\t\t\t$page .= \"Query non valida: \".$connessione->error.\".\";\n\t\t\t} else {\n\t\t\t\tif ($result->num_rows>0) {\n\t\t\t\t\t$row=$result->fetch_array(MYSQLI_ASSOC);\n\t\t\t\t\t$nome=$row['nome'];\n\t\t\t\t}\n\t\t\t\t$result->free();\n\t\t\t}\n\t\t\t$connessione->close();\t//CHIUSURA CONNESSIONE\n\t\t}\n\t} catch (Exception $e){\n\t\t$page .= \"Errore: dati non recuperati (\".$e->getMessage().\").\";\n\t}\n\treturn $nome;\n}", "function get_service_name($id){\n $answer=$GLOBALS['connect']->query(\"SELECT name FROM SERVICES WHERE id='$id'\");\n $data=$answer->fetch();\n return $data[\"name\"];\n }", "public function getNome_moeda()\n {\n return $this->nome_moeda;\n }", "public function getSurname(){\n return $this->_getModelProperty('surname');\n }", "public function getNom();", "function qualificationServ(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_servicio') : '-';\n}", "function getSoporte() {\r\n return $this->soporte;\r\n }", "public function getNombre(){\n \n return $this->_nombre;\n \n }", "function ServicioFolio($codigo){\n\t\t\t\t\t$condicion = \"id_servicio = \".$codigo;\n\t\t\t\t\t$this->db->where($condicion);\n\t\t\t\t\t$query = $this->db->get('t_dat_servicios');\n\t\t\t\t\tif ($query->num_rows() == 1) {\n\t\t\t\t\t\treturn $query->result();\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}", "public function getNomeUsuario()\n\t{\n\t\treturn $this->nome_usuario;\n\t}", "public function getNombre(){\n\t\treturn $this->nombre;\n\t}", "public function getcliente() {\n \n $procedure = \"call sp_appweb_pt_getclienteinterno()\";\n\t\t$query = $this->db-> query($procedure);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\"></option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->CCLIENTE.'\">'.$row->RAZONSOCIAL.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "public function getNombre_usuario()\n {\n return $this->nombre_usuario;\n }", "public function getUsername(): string\n {\n return $this->getCorreo();\n }", "public function getNom() { return $this->nom; }", "public function getNombreUsuario(){\n return $this->nombreUsuario;\n }", "public function getServit()\n {\n return $this->servit;\n }", "function getDesc_teleco()\n {\n if (!isset($this->sdesc_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->sdesc_teleco;\n }", "public function getCriadoEm()\n {\n return $this->criadoEm;\n }", "public function getNom():string{\r\n\r\n\r\n\r\n return $this->nom;\r\n\r\n\r\n\r\n\r\n \t\t\t}" ]
[ "0.69079536", "0.6736135", "0.64302427", "0.6347406", "0.6347406", "0.6347406", "0.6346834", "0.63139397", "0.630358", "0.6301365", "0.62405103", "0.62099123", "0.62091714", "0.62060136", "0.61876327", "0.61823", "0.6175906", "0.6166591", "0.61536473", "0.6127688", "0.6127506", "0.61209", "0.61008036", "0.6087459", "0.60537976", "0.60537976", "0.60401464", "0.60342705", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.6029646", "0.60102034", "0.60083", "0.6007525", "0.6003879", "0.60000205", "0.59886235", "0.59886235", "0.5976561", "0.59485143", "0.5943645", "0.592822", "0.59237057", "0.59217626", "0.5915685", "0.5905412", "0.589263", "0.589205", "0.58680195", "0.5867024", "0.5860156", "0.58420134", "0.58384746", "0.58175963", "0.58175963", "0.58018506", "0.57979447", "0.57885313", "0.57874084", "0.57743186", "0.5763437", "0.57614934", "0.5761239", "0.5761239", "0.571849", "0.5715368", "0.57061964", "0.5693622", "0.5690435", "0.56878346", "0.5683418", "0.5679933", "0.5679274", "0.5677823", "0.5674301", "0.5670428", "0.56593305", "0.565784", "0.5639692", "0.5635707", "0.56336266", "0.5633033", "0.56289893", "0.5628461", "0.56267506", "0.5622692", "0.5619513", "0.561657", "0.56120664", "0.56114787", "0.56106687", "0.56082743", "0.5607157", "0.5606947" ]
0.7344503
0
Returns the value of field criacao
Возвращает значение поля criacao
public function getCriacao() { return $this->criacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function getDataCriacao()\n {\n return $this->data_criacao;\n }", "public function getCriadoEm()\n {\n return $this->criadoEm;\n }", "public function getCdCaixa()\n {\n return $this->cd_caixa;\n }", "public function GetCadastroNoticia(){\r\n return $this -> __cadastro; \r\n \r\n }", "public function getCidade(){\n return $this->cidade;\n }", "public function getComentario()\n {\n return $this->comentario;\n }", "public function getComentario()\n {\n return $this->comentario;\n }", "public function getVarComentario()\n {\n return $this->varComentario;\n }", "public function getCarrera() {\n return $this->carrera;\n }", "public function getIdCadeira()\n {\n return $this->idCadeira;\n }", "public function getCdUsuarioCriacao()\n {\n return $this->cd_usuario_criacao;\n }", "public function getCodcaj(){\n\t\treturn $this->codcaj;\n\t}", "function getId_carrera(){\n\t\treturn $this->id_carrera;\n\t}", "public function getCodigoComentario()\n {\n return $this->codigoComentario;\n }", "public function getCedente() {\n return $this->oCedente;\n }", "public function getCARGO()\r\n {\r\n return $this->CARGO;\r\n }", "public function getCodare(){\n\t\treturn $this->codare;\n\t}", "public function getIdComentario()\n {\n return $this->id_comentario;\n }", "public function getStatutCadre() {\n return $this->statutCadre;\n }", "public function getCognome()\n {\n return $this->cognome;\n }", "public function getCodice() \n\t{\n return $this->codice;\n }", "public function getUserIdCriado() {\n return $this->userIdCriado;\n }", "public function getCognome() {\n return $this->cognome;\n }", "public function getContrato_id() {\n return $this->contrato_id;\n }", "public function getCodiCasa($value) {\n\t\treturn $this->codi_casa;\n\t}", "public function getIdContratoFinanceiroNota()\n {\n return $this->id_contrato_financeiro_nota;\n }", "public function getCodigo(){\n return $this->codigo;\n }", "public function getCosto()\n {\n return $this->costo;\n }", "public function getNao_Circulante(){\n\t\t$this->setNao_Circulante();\n\t\t\n\t\treturn $this->Nao_Circulante;\t\n\t}", "public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }", "public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }", "public function getValor($atributo){//retornar algún valor\n \treturn $this->$atributo;\n }", "public function getCodice()\n {\n return $this->codice;\n }", "public function getCedula()\r\n {\r\n return $this->cedula;\r\n }", "public function getFechaComentario()\n {\n return $this->fecha_comentario;\n }", "private function getFiltroCidade()\n {\n $nomeCidade = explode(',', $this->filtros['cidade'])[0];\n\n return $this->repository->geo->getIdCidadeByNome($nomeCidade);\n }", "public function getIdContrato()\n {\n return $this->id_contrato;\n }", "public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }", "function get_nome_cidade()\n {\n if (empty($this->cidade))\n $this->cidade = new Cidade($this->id_cidade);\n \n return $this->cidade->nome;\n }", "public function getCodigo()\n {\n return $this->codigo;\n }", "public function getCodigo()\n {\n return $this->codigo;\n }", "public function getCodigo()\n {\n return $this->codigo;\n }", "public function getCoEdificio()\n\t{\n\t\treturn $this->co_edificio;\n\t}", "public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }", "public function getCodage()\n {\n return $this->codage;\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function BuscarCadastro()\n\t{\n\t\treturn TableFactory::getInstance('Cadastro')->incluirCadastro();\n\t}", "public function getCesta()\n {\n return $this->cesta;\n }", "public function getCesta()\n {\n return $this->cesta;\n }", "public function getCodigo()\n {\n return $this->codigo;\n }", "public function getCodiceFiscale(){ return $this->codiceFiscale;}", "public function getFkMonetarioContaCorrente()\n {\n return $this->fkMonetarioContaCorrente;\n }", "public function getFkMonetarioContaCorrente()\n {\n return $this->fkMonetarioContaCorrente;\n }", "public function recuperaNome(){\n $nome = \"\";\n if(isset($_POST['nomericetta'])){\n $nome = $_POST['nomericetta'];\n }\n return $nome;\n }", "function geraCodigo(){\r\n\t\t$fComp = new fachada_logcomprovante();\r\n\t\treturn $fComp->geraCodigo();\r\n\t}", "public function getTipoCompra(){\n return $this->iTipoCompra;\n }", "public function getCodope(){\n\t\treturn $this->codope;\n\t}", "public static function getAvaliacaoByCodigo($iCodigoAvaliacao) {\n \n if (!array_key_exists($iCodigoAvaliacao, AvaliacaoRepository::getInstance()->aAvaliacao)) {\n AvaliacaoRepository::getInstance()->aAvaliacao[$iCodigoAvaliacao] = new Avaliacao($iCodigoAvaliacao);\n }\n return AvaliacaoRepository::getInstance()->aAvaliacao[$iCodigoAvaliacao];\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getCD_Empresa()\n {\n return $this->CD_Empresa;\n }", "public function getFkConcursoConcursoCargo()\n {\n return $this->fkConcursoConcursoCargo;\n }", "public function getDataNascimentoConjuge() {\n\n if (!empty($this->oDataNascimentoConjuge)) {\n return $this->oDataNascimentoConjuge->getDate(DBDate::DATA_PTBR);\n }\n }", "public function getGiroComercial()\n {\n return $this->giroComercial;\n }", "public function getPlaca() {\n return $this->oPlaca;\n }", "public function getCorVeiculo()\n {\n return $this->corVeiculo;\n }", "public function getIdade() {\r\n return $this->idade;\r\n }", "public function valor() {\n return $this->hasOne('App\\CursoValor', 'fk_curso');\n }", "public function getCompetenciaInicial()\n {\n return $this->competencia_inicial;\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function obterCor($nome){\n $cores = Mage::getModel('cores/cores')->getCollection();\n $cor = $cores->addFieldToFilter('nome', $nome)->getFirstItem();\n\n if($cor->getImagem()){\n return $cor->getImagem();\n }else{\n return $cor->getCor();\n }\n }", "public function getValorDocumento()\n {\n return $this->ValorDocumento;\n }", "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}", "public function getCodCliFrm()\r\n {\r\n return $this->codCliFrm;\r\n }", "public function getCidadeId() {\r\n return $this->cidadeId;\r\n }", "public function get_comercial(){\n\t\t\treturn $this->comercial;\n\t\t}", "public function getFkPessoalCausaRescisao()\n {\n return $this->fkPessoalCausaRescisao;\n }", "public function getCodActividadComercial()\n {\n return $this->codActividadComercial;\n }", "public function getFechaCierre() {\n return $this->fechaCierre;\n }", "public function getValorAnulado() {\n return $this->nValorAnulado;\n }", "function getCodUsu() {\n return $this->codUsu;\n }", "public function getFkLicitacaoDocumentoAtributoValor()\n {\n return $this->fkLicitacaoDocumentoAtributoValor;\n }", "public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }", "public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }", "public function getNomeClinicaClinica() {\r\n return $this->_nomeClinica;\r\n }", "public function getConta() {\n return $this->conta;\n }", "public function getValidade()\n\t{\n\t\treturn $this->validade;\n\t}", "public function setCriacao($criacao)\n {\n $this->criacao = $criacao;\n\n return $this;\n }", "public function registroCredito($id_usuario_credi, $id_cliente_credito, $fecha_credito, $nombre_produc, $precios_produc, $cantidades_produc, $total_factura, $total_creditar, $total_adeudado){\n $this->id_usuario_credi = $id_usuario_credi;\n $this->id_cliente_credito = $id_cliente_credito; \n $this->fecha_credito = $fecha_credito;\n $this->nombre_produc = $nombre_produc;\n $this->precios_produc = $precios_produc;\n $this->cantidades_produc = $cantidades_produc;\n $this->total_factura = $total_factura;\n $this->total_creditar = $total_creditar;\n $this->total_adeudado = $total_adeudado;\n $this->estado_factura = \"p\";\n \n return $this->db->insert('factura_credito', $this);\n }", "public function getAgenciaConta();", "public function getCoBanco()\n {\n return $this->_coBanco;\n }", "public function create()\n {\n return view('form_candidatas', ['acao'=>1]);\n }", "public function mostrarCarro(Coche $carrro){\n if(is_object($carrro)){\n $mostrar = $carrro->modelo;\n $mostrar .= $carrro->color;\n $mostrar .= $carrro->velocidad;\n }\n\n\n return $mostrar;\n\n\n }", "function getCreditosComprometidos(){ return $this->getOEstats()->getTotalCreditosSaldo(); }", "public function getCodigo(){\n\t\treturn $this->rg_codigo;\n\t}", "public function getCodigo() {\n return $this->iCodigo;\n }", "public function getCodigo() {\n return $this->iCodigo;\n }", "public function getCodigo() {\n return $this->iCodigo;\n }" ]
[ "0.71624106", "0.71624106", "0.71553564", "0.67221636", "0.6653139", "0.66279083", "0.65327036", "0.63310283", "0.62943107", "0.62517685", "0.62043154", "0.61702466", "0.6147272", "0.6122027", "0.61099327", "0.6057166", "0.6003059", "0.5984513", "0.5976216", "0.5925433", "0.5920401", "0.5904051", "0.58937395", "0.58878535", "0.5864971", "0.5850053", "0.5845566", "0.58361745", "0.58147025", "0.5804073", "0.57758033", "0.57727927", "0.57727927", "0.5747709", "0.5746746", "0.57464534", "0.5737643", "0.5734079", "0.57340074", "0.5731707", "0.5717076", "0.5712003", "0.5712003", "0.5712003", "0.5699437", "0.5695781", "0.56951505", "0.5695071", "0.5683387", "0.5676404", "0.5676404", "0.5674863", "0.56696916", "0.5668004", "0.5668004", "0.56612474", "0.5655943", "0.5655553", "0.5641569", "0.5640689", "0.5639147", "0.56341124", "0.5630912", "0.5630718", "0.56235874", "0.5620229", "0.5619177", "0.5607776", "0.5605387", "0.55984426", "0.5588993", "0.5586704", "0.5585889", "0.5575201", "0.5574791", "0.5573782", "0.5564438", "0.55606407", "0.5554244", "0.5553968", "0.5542473", "0.5534286", "0.55272126", "0.5523", "0.55211866", "0.55211866", "0.5519818", "0.5519283", "0.55180854", "0.5516823", "0.55161875", "0.55115217", "0.5508666", "0.5504152", "0.549683", "0.5489995", "0.5489752", "0.54874766", "0.54874766", "0.54874766" ]
0.7461751
0
get all leave type
получить все типы отпусков
public function get_all_leave_type(){ $this->db->select('*'); $this->db->from('leave_type'); $query=$this->db->get(); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLeaveTypes()\n {\n $leaveTypes = [];\n $leaves = DB::table('dbo.LEAVE_TYPE')->lists('leave_type');\n $userGender = Employee::find(Auth::user()->Emp_id)->Emp_Gender;\n \n foreach ($leaves as $leaveType )\n {\n array_push($leaveTypes, $leaveType);\n }\n\n if($userGender == \"M\")\n {\n $leaveTypes = array_diff($leaveTypes , array(\"Maternity\"));\n }\n\n if($userGender == \"F\")\n {\n $leaveTypes = array_diff($leaveTypes , array(\"Paternity\"));\n }\n\n return $leaveTypes;\n }", "public function get_leave_type(){\n \t$this->db->select('*');\n \t$this->db->from('leave_type');\n \t$query=$this->db->get();\n \t$data=$query->result();\n $list = array('' => 'Select One...');\n \tif(!empty($data)){\n \t\tforeach ($data as $value) {\n \t\t\t$list[$value->leave_type_id]=$value->leave_type;\n \t\t}\n \t}\n \treturn $list;\n }", "public function index()\n {\n return LeaveTypeResource::collection($this->leaveType->all());\n }", "public function leaveType()\n {\n return $this->belongsTo(LeaveType::class, 'leave_type_id');\n }", "public function index()\n {\n $leave_types = LeaveType::orderBy('name')\n ->paginate();\n\n $data = [\n 'title' => 'All Leave Types',\n 'meta_desc' => 'All leave types',\n 'body_class' => null,\n 'user' => $this->user,\n 'menu' => 'hr',\n 'notifications' => notifications($this->user),\n 'new_notification' => countNewNotifications($this->user),\n 'crumbs' => [\n 'performance/leave' => 'Leave',\n 'active' => 'Leave types'\n ],\n 'leave_types' => $leave_types,\n ];\n return view('customer.performance.leave.leave-type.index', $data);\n }", "public function index()\n {\n\n $leave_types=LeaveType::orderBy('id','ASC')->get();\n return view('admin.leave.leave_types',['leave_types'=> $leave_types]);\n }", "public function get_leave_type_by_id($id){\n $this->db->where('leave_type_id',$id);\n $query = $this->db->get('leave_type');\n return $query->row();\n }", "public function getLeave()\n {\n return $this->get(self::_LEAVE);\n }", "public function getAllType()\n {\n $q=\"SELECT type_id FROM `status`\";\n $result = $this->fetchAll($q);\n return $result;\n }", "public function f_get_leaveAlloaction_table()\r\n {\r\n\r\n $sql = $this->db->query(\" SELECT * FROM td_leave_dtls WHERE trans_type = 'O'\r\n AND YEAR(trans_dt) = YEAR(CURDATE()) \");\r\n return $sql->result();\r\n\r\n }", "public function getRoomTypesList()\n {\n return RoomType::all()->pluck('name', 'id');\n }", "function GetLeaveMonthList($type = NULL) {\n $companyid = $this->companyID;\n //$emp_seqno = $this->empSeqNo;\n $emp_seqno = $_SESSION [\"user\"] [\"emp_seq_no\"];\n $_where = empty($type) ? \" and emp_seq_no = '$emp_seqno'\" : \"\";\n $sql_string = <<<_LeaveYearList_\n select distinct substrb(to_char(my_day,'YYYY-MM-DD'), 6,2) as month1,\n substrb(to_char(my_day,'YYYY-MM-DD'), 6,2) as month2\n from ehr_absence_v\n where company_id = '$companyid'\n $_where\n order by substrb(to_char(my_day,'YYYY-MM-DD'), 6,2) asc\n_LeaveYearList_;\n //print $sql_string;\n return $this->DBConn->GetArray($sql_string);\n }", "public function index()\n {\n $title = trans('staff_leave_type.staff_leave_types');\n return view('staff_leave_type.index', compact('title'));\n }", "public function getLeave()\n {\n return view('leave.list');\n }", "public function equipment_type(){\n\t\t\t$equip_type_qry = $this->db->prepare(\"SELECT * FROM truck_type WHERE status = '1'\");\n\t\t\t$equip_type_qry->execute();\n\t\t\t$fetch= array();\n\t\t\twhile($equip_type_row = $equip_type_qry->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$fetch[]=$equip_type_row;\n\t\t\t}\n\t\t\treturn $fetch;\n\t\t}", "public function get_all(){\n\t\t\t$query = $this->db->get_where('point_type', array('delete_flag' => 0));\n\n\t\t\t$table= $query->result();\t\t\n\t\t\treturn $table;\n\t\t}", "public function get_all_message_type()\n\t{\n\t\t$query = $this->db->get('message_type');\n\t\treturn $query;\n\t}", "public function getLeaveList()\n {\n $uid = isset($_REQUEST['uid']) ? $_REQUEST['uid'] : 0;\n $query = $this->db->query(\"SELECT Id,`ApplyDate`, `LeaveFrom`, `LeaveTo`, LeaveValidDays, `LeaveReason`, `LeaveStatus`, `ApproverComment` FROM `EmployeeLeave` WHERE EmployeeId=? order by Id desc limit 30\",\n\t\tarray(\n $uid\n ));\n $res = array();\n\t\t\n foreach ($query->result() as $row) {\n $data = array();\n\t\t\t$data['leaveid'] = $row->Id;\n\t\t\t$todaydate=date(\"Y-m-d\");\n\t\t\t$data['withdrawlsts'] = true;\n\t\t\tif(strtotime($todaydate)>strtotime($row->LeaveFrom))\n\t\t\t\t$data['withdrawlsts'] = false;\n $data['date'] = date(\"dS M'y\", strtotime($row->ApplyDate));\n $data['from'] = date(\"dS M'y\", strtotime($row->LeaveFrom));\n $data['to'] = date(\"dS M'y\", strtotime($row->LeaveTo));\n $data['days'] = ' (' . $row->LeaveValidDays . ')';\n $data['status'] = $this->getpendingatstatus($row->LeaveStatus, $row->Id);// TODO dynamic with the status pending on which employee.\n $data['reason'] = $row->LeaveReason != '' || $row->LeaveReason != null ? $row->LeaveReason : '-';\n $data['comment'] = $row->ApproverComment != '' || $row->ApproverComment != null ? $row->ApproverComment : '-';\n //$data['comment']=$row->ApproverComment;\n $res[] = $data;\n }\n echo json_encode($res);\n }", "public function getAllTypes(){\n return $this->find()->asArray()->orderBy('typeDesc ASC')->all();\n }", "public function index()\n {\n $data['leaves'] = Leave::AllLeave();\n return view(\"leave.list\",$data);\n }", "public function index()\n {\n $business_id = request()->session()->get('user.business_id');\n $is_admin = $this->moduleUtil->is_admin(auth()->user(), $business_id);\n\n if (!(auth()->user()->can('superadmin') || $this->moduleUtil->hasThePermissionInSubscription($business_id, 'essentials_module')) && !$is_admin) {\n abort(403, 'Unauthorized action.');\n }\n\n if (request()->ajax()) {\n $leave_types = EssentialsLeaveType::where('business_id', $business_id)\n ->select(['leave_type', 'max_leave_count', 'id']);\n\n return Datatables::of($leave_types)\n ->addColumn(\n 'action',\n '<button data-href=\"{{action(\\'\\Modules\\Essentials\\Http\\Controllers\\EssentialsLeaveTypeController@edit\\', [$id])}}\" class=\"btn btn-xs btn-primary btn-modal\" data-container=\".view_modal\"><i class=\"glyphicon glyphicon-edit\"></i> @lang(\"messages.edit\")</button>'\n )\n ->removeColumn('id')\n ->rawColumns([2])\n ->make(false);\n }\n\n return view('essentials::leave_type.index');\n }", "public function leaves()\n {\n return $this->hasMany('App\\Models\\Absence', 'personnel_no', 'personnel_no')\n ->leavesOnly();\n }", "private function getEvents($type)\r\n {\r\n if ($type == Stat::TYPE_INQUIRY) {\r\n $inqs = $this->container->get('jcs.ds')->getGroup('inquiry');\r\n return !empty($inqs) ? $inqs : [];\r\n }\r\n elseif ($type == Stat::TYPE_FAMILY_HELP) {\r\n $events = $this->container->getParameter('stat_events');\r\n\r\n return isset($events[$type]) ? $events[$type] : [];\r\n }\r\n }", "public function getEventTypes()\n {\n return $this->event_types;\n }", "public function listAllType(){\n try {\n return $this->identityTypeGateway->getAllTypes();\n } catch (Exception $ex) {\n throw $ex;\n }catch (PDOException $e){\n throw $e;\n }\n }", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function get_event_types()\n {\n return array(0 => 'miscellaneous', 1 => 'appointment', 2 => 'holiday'\n ,3 => 'birthday', 4 => 'personal', 5 => 'education'\n ,6 => 'travel', 7 => 'anniversary', 8 => 'not in office'\n ,9 => 'sick day', 10 => 'meeting', 11 => 'vacation'\n ,12 => 'phone call', 13 => 'business'\n ,14 => 'non-working hours', 50 => 'special occasion'\n );\n }", "public function save_leave_type($data = array()){\n \treturn $this->db->insert('leave_type', $data);\n }", "public function get_types()\n {\n }", "public function getLeaveForUser(User $user, $leaveType=\"Annual\")\n {\n $leave = $this->dbService->getByField(array('username'=>$user->getUsername(), 'leavetype'=>$leaveType), 'Leave');\n if (!$leave && $user) {\n // Need to create new\n $params = array('username'=>$user->getUsername(), 'days'=>0, 'leavetype'=>$leaveType);\n $leave = $this->dbService->saveObject($params, 'Leave');\n }\n\n if (!$leave) {\n throw new Exception(\"Could not retrieve Leave details for \".$user->getUsername());\n }\n\n return $leave;\n }", "public function lead_type_list()\n {\n \n $result = $this->db->query(\"call lead_type_list()\")->result();\n \n save_query_in_log();\n return $result;\n }", "public function index()\n {\n $leaves= Leave::all();\n $leavetypes= Leavetype::all();\n\n /* $mostleaves = Leave::\n \n where('status','ACTIVO')\n \n ->select('user_id', DB::raw('COUNT(id) as mostleaves'))\n ->groupBy('user_id')\n ->orderBy(DB::raw('COUNT(id)'), 'DESC')\n ->take(5)\n ->get(); */\n\n $mostleaves = DB::table('users as u')\n ->join('leaves as l','u.id','=','l.user_id')\n ->select('u.name','u.ap_paterno','u.ap_materno', DB::raw('COUNT(l.id) as mostleaves'))\n ->where('l.status','ACTIVO')\n ->whereMonth('l.created_at', Carbon::now()->format('m'))\n ->where('l.resp_status','AUTORIZADO')\n ->groupBy('name','ap_paterno','ap_materno')\n ->orderBy(DB::raw('COUNT(l.id)'), 'DESC')\n ->take(10)\n ->get();\n \n\n $leavesaut=Leave::where('resp_status','AUTORIZADO')\n ->where('user_id','auth'()->user()->id)\n ->where('status','ACTIVO')\n ->get();\n $leavesrec=Leave::where('resp_status','RECHAZADO')\n ->where('user_id','auth'()->user()->id)\n ->where('status','ACTIVO')\n ->get();\n $leavespen=Leave::where('resp_status','EN ESPERA')\n ->where('user_id','auth'()->user()->id)\n ->where('status','ACTIVO')\n ->get();\n\n //$max_leaves_for_user_for_offices = auth()->user()->office;\n /* $offices = Office::all();\n //return $users = auth()->user()->office->take(2)->get();\n foreach($offices as $office){\n \n foreach($office->users as $user){\n foreach( $user->leaves as $leave){\n\n return $leave;\n }\n }\n } */\n /* Select Top 1 IDCELULAR, COUNT(IDCELULAR) AS VENTAS \n from Venta \n Group by IdCelular \n Order by count(2) desc */\n /* dd($mostleaves ); */\n return view('home',compact('leaves','leavetypes','leavesaut','leavesrec','leavespen','mostleaves'));\n }", "public function employee_leave_status()\n\t{\n\t\t/* Define return | here result is used to return user data and error for error message */\n\t\t$Return = array('accepted'=>'', 'accepted_count'=>'','pending'=>'', 'pending_count'=>'','rejected'=>'', 'rejected_count'=>'');\n\t\t\n\t\t//accepted\n\t\t$Return['accepted'] = $this->lang->line('xin_approved');\n\t\t$Return['accepted_count'] = accepted_leave_request();\n\t\t// pending\n\t\t$Return['pending'] = $this->lang->line('xin_pending');\n\t\t$Return['pending_count'] = pending_leave_request();\n\t\t// rejected\n\t\t$Return['rejected'] = $this->lang->line('xin_rejected');\n\t\t$Return['rejected_count'] = rejected_leave_request();\n\t\t$this->output($Return);\n\t\texit;\n\t}", "protected function getTypes() {}", "function getFilterType(){\n\t$data = M('event');\n\t$type_set = Array();\n\t$result = $data->group('type')->order('type asc')->select();\n\tforeach($result as $value)\n\t\tarray_push($type_set, $value['type']);\n\n\treturn $type_set;\n}", "public static function getAllEventsByType($type)\n {\n $db = new Database();\n // Create an admin DB connection to get data from Events_Details table\n $adminDB = $db->getAdminDBConnection();\n // Query database for eid and get all details\n $query = \"SELECT * FROM Event_Details WHERE Type='\" . $type . \"' AND status=1;\";\n // Prepare query statement\n $stmt = $adminDB->prepare($query);\n // Execute query\n $stmt->execute();\n // Fetch all rows as associative array\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }", "public function openmeetings_getRoomTypes() {\n\t\t//global $CFG;\n\n\t\t$a_name=array();\n\t\t$a_id=array();\n\t\t$a_roomTypes=array();\n\t\t$restService = new openmeetings_rest_service();\n\n\t\t$call = $this->getUrl().\"/services/RoomService/getRoomTypes?SID=\".$this->session_id;\n\t\t$result = $restService->call($call,\"\");\n\t\tif ($this->b_logWrite == true) $GLOBALS['ilLog']->write(__METHOD__.': call: '.$call);\n\t\tif ($restService->getError()) {\n\t\t\techo '<h2>Fault : Rest Service Error</h2><pre>'; print_r($result); echo '</pre>';\n\t\t} else {\n\t\t\t$err = $restService->getError();\n\t\t\tif ($err) {\n\t\t\t\techo '<h2>Error</h2><pre>' . $err . '</pre>';\n\t\t\t} else {\n\t\t\t\t$dom = $result;\n\t\t\t\t$returnNodeList = $dom->getElementsByTagName(\"name\");\n\t\t\t\tforeach ($returnNodeList as $returnNode) {\n\t\t\t\t\tif ($returnNode->nodeValue != \"conference_room_type\") array_push($a_name,$returnNode->nodeValue);\n\t\t\t\t}\n\t\t\t\t$returnNodeList = $dom->getElementsByTagName(\"roomtypes_id\");\n\t\t\t\tforeach ($returnNodeList as $returnNode) {\n\t\t\t\t\tarray_push($a_id,$returnNode->nodeValue);\n\t\t\t\t}\n\t\t\t\tfor($i=0;$i<count($a_id);$i++) {\n\t\t\t\t\t$a_roomTypes[$i]=array( (string)$a_id[$i] => (string)$a_name[$i] );\n\t\t\t\t}\n\t\t\t\treturn $a_roomTypes;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public function run()\n {\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'VL';\n $leave_type->leave_description = 'Vacation Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'SL';\n $leave_type->leave_description = 'Sick Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'ML';\n $leave_type->leave_description = 'Maternity Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'BL';\n $leave_type->leave_description = 'Birthday Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'PL';\n $leave_type->leave_description = 'Paternity Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'SIL';\n $leave_type->leave_description = 'Service Incentive Leave';\n $leave_type->save();\n\n $leave_type = new \\App\\LeaveType();\n $leave_type->leave_code = 'SPL';\n $leave_type->leave_description = 'Single Parent Leave';\n $leave_type->save();\n\n }", "public function getOfferTypes() {\n\t\t##\n\t\t##\tRETURN\n\t\t##\t\tAn array containing all the offer type keys and names\n\t\t##\n\t\t$sql = <<<EOD\n\t\tSELECT\n\t\t\t{$this->wpdb->prefix}topspin_offer_types.type,\n\t\t\t{$this->wpdb->prefix}topspin_offer_types.name,\n\t\t\t{$this->wpdb->prefix}topspin_offer_types.status\n\t\tFROM {$this->wpdb->prefix}topspin_offer_types\nEOD;\n\t\t$data = $this->wpdb->get_results($this->wpdb->prepare($sql),ARRAY_A);\n\t\t## Store as Class Property\n\t\t$this->offer_types['data'] = $data; ## Raw Data\n\t\tforeach($data as $row) { $this->offer_types['key'][$row['type']] = $row['name']; } ## Key Data\n\t\treturn $data;\n\t}", "public function getAllTypes() {\n\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from(\n array('t' => 'NEWAGENTTYPELOOKUP')\n );\n $allTypes = $this->fetchAll($select);\n $returnVal = array();\n foreach ($allTypes as $typeRow) {\n $returnVal[$typeRow->NEWAGENTTYPELOOKUPID] = $typeRow->LABEL;\n }\n\n return $returnVal;\n }", "public function get_types() {\n\n $q = $this->db->query('SELECT DISTINCT `rgl_type` , `vtr_type` \n FROM `t_reglements` \n LEFT JOIN `v_types_reglements` ON `vtr_id` = `rgl_type` ');\n if ($q->num_rows() > 0) {\n $resultat = $q->result();\n return $resultat;\n }\n else {\n return array();\n }\n }", "function monitor_list_activity_types() {\n $query = \"select distinct(`wf_type`) from `\".GALAXIA_TABLE_PREFIX.\"activities`\";\n $result = $this->query($query);\n $ret = Array();\n while($res = $result->fetchRow()) {\n $ret[] = $res['wf_type'];\n }\n return $ret; \n }", "public function getWarehouseTypes();", "public function getLeaveList(Request $request)\n {\n $offset = $request->input('start');\n $limit = $request->input('length');\n $keyword = $request->input('search');\n $keyword = strtolower($keyword['value']);\n $leave = DB::table('leaves');\n if (isset($keyword) && trim($keyword) != '') {\n $leave->where('leaves.leave_type', 'LIKE', '%' . $keyword . '%')\n ->orwhere('leaves.leave_total_duration', 'LIKE', '%' . $keyword . '%')\n ->orwhere('leaves.leave_description', 'LIKE', '%' . $keyword . '%');\n }\n\n $columns = $request->input('order');\n $columnIndex = $request->input('columns');\n $columnIndex = $columnIndex[$columns[0]['column']]['data'] == 'id' ? $columnIndex[1]['data'] : $columnIndex[$columns[0]['column']]['data'];\n $orderType = $columns[0]['dir'];\n $leaveCount = $leave->get()->count();\n $leaves = $leave->skip($offset)->take($limit)->orderBy($columnIndex, $orderType)->get();\n $data = [];\n $i = $offset > 0 ? ($offset + 1) : 1;\n foreach ($leaves as $leave) {\n $data[] = [\n 'id' => $i++,\n 'leave_type' => $leave->leave_type,\n 'leave_duration' => $leave->leave_total_duration,\n 'leave_description' => $leave->leave_description,\n 'action' => $leave = '<i class=\"fa fa-edit edit-leave pointer btn btn-sm btn-info\" id=\"' . $leave->id . '\"></i> <i class=\"fa fa-trash pointer delete-leave btn btn-sm btn-danger\" id=\"' . $leave->id . '\"></i>'\n ];\n }\n $count = [\n 'draw' => $request->input('draw') ?? 0,\n 'data' => $data,\n 'recordsTotal' => $leaveCount,\n 'recordsFiltered' => $leaveCount\n ];\n return response()->json($count);\n }", "public function getLeaveReasonAllowableValues()\n {\n return [\n self::LEAVE_REASON__NAME_LEFT_THE_MEETING,\n self::LEAVE_REASON__NAME_GOT_DISCONNECTED_FROM_THE_MEETING,\n self::LEAVE_REASON_HOST_ENDED_THE_MEETING,\n self::LEAVE_REASON_HOST_CLOSED_THE_MEETING,\n self::LEAVE_REASON_HOST_STARTED_A_NEW_MEETING,\n self::LEAVE_REASON_NETWORK_CONNECTION_ERROR,\n self::LEAVE_REASON_HOST_DID_NOT_JOIN,\n self::LEAVE_REASON_EXCEEDED_FREE_MEETING_MINUTES_LIMIT,\n self::LEAVE_REASON_REMOVED_BY_HOST,\n self::LEAVE_REASON_UNKNOWN_REASON,\n self::LEAVE_REASON_LEAVE_WAITING_ROOM,\n self::LEAVE_REASON_REMOVED_BY_HOST_FROM_WAITING_ROOM,\n ];\n }", "public static function types()\n\t{\n\t\t$states = array(\n\t\t\t'blog' => __('Blog'),\n\t\t\t'page' => __('Page'),\n\t\t\t'user' => __('User')\n\t\t);\n\n\t\t$values = Module::action('gleez_types', $states);\n\n\t\treturn $values;\n\t}", "public function getPointEventType()\n {\n return PointEventType::all();\n }", "private function _make_leave_event($data) {\n\n return array(\n \"title\" => $data->applicant_name,\n \"start\" => $data->start_date . \" \" . \"00:00:00\",\n \"end\" => $data->end_date . \" \" . \"23:59:59\", //show leave applications for the full day\n \"backgroundColor\" => $data->leave_type_color,\n \"borderColor\" => $data->leave_type_color,\n \"extendedProps\" => array(\n \"icon\" => \"log-out\",\n \"leave_id\" => $data->id, //to make is secure we'll use the encrypted id\n \"cycle\" => 0,\n \"event_type\" => \"leave\",\n )\n );\n }", "public function menuType()\n {\n return ProductType::all();\n }", "public function requestStatus()\n {\n\n //$leaves = LeaveType::with('history')->get();\n $request_status = RequestStatus::all();\n // dd($leave_type);\n return view('pages.requestStatus.request_status_list')->with('request_status', $request_status);\n }", "function getTypesMenu(){\n\t\t$sql=\"SELECT gd.TenGD, ctgd.MaCTGD, ctgd.TenCTGD FROM giaidoan gd, chitietgiaidoan ctgd WHERE gd.MaGD = ctgd.MaGD\";\n\t\t$this->setQuery($sql);\n\t\treturn $this->loadAllRows();\n\t}", "public function getLeaveDetails($userid, $type, $status)\n {\n if($status == 'total')\n $where = \" AND status IN ('inprocess','refused', 'approved') \";\n else\n $where = \" AND status = '\".$status.\"' \";\n $query = \"select * FROM \".$this->_name.\" WHERE created_by = '\".$userid.\"' AND type = '\".$type.\"' $where\";\n if(($result = $this->getQuery($query,true)) != NULL)\n return $result;\n else\n return \"NO\";\n }", "function get_all_types()\n {\n return $this->db->get('card_types')->result();\n }", "public function all()\n {\n return $this->type->all();\n }", "public function get_menu_type(){\n $this->db->where('user_role_id', 4);\n $menu_types = parent::get();\n return $menu_types;\n }", "public function list()\n {\n return $this->getResult($this->client->get('linode/types'));\n }", "public static function getAllEventTypes()\n {\n return [\n 'complete' => 'complete',\n 'fail' => 'fail'\n ];\n }", "public function getTypes(){\r\n \r\n $options[\"\"] = \"--Select--\";\r\n //Query all users(Lecturers) not assigned to other departments\r\n $types = $this->em->getRepository(\"\\Application\\Entity\\Assessmenttype\")->findBy(array(\"systemGenerated\"=>0));\r\n \r\n foreach($types as $type ){\r\n $options[$type->getPkAtid()] = $type->getTypeName();\r\n }\r\n \r\n return $options;\r\n }", "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 get_all($type = 'App') \n {\n // Lowercase the type\n $type = strtolower($type);\n \n // Check if the variable exists\n if(isset($this->data[$type]))\n {\n return $this->data[$type];\n }\n return NULL;\n }", "public function getEventTypeAttribute() {\n return $this->eventType()->getResults();\n }", "public function all()\n {\n return IncomeTypes::all();\n }", "public static function getList($idle=null,$idEmployee=null) {\r\n $lvEarned = new EmployeeLeaveEarned();\r\n $crit=[];\r\n if ($idle!==null) {\r\n $crit[\"idle\"]=\"$idle\";\r\n }\r\n if($idEmployee){\r\n $crit[\"idEmployee\"]=$idEmployee;\r\n }\r\n $lvEarnedList = $lvEarned->getSqlElementsFromCriteria($crit);\r\n return $lvEarnedList;\r\n }", "public static function getTypes();", "public function get_available_days($type){\n $sql = \"SELECT DISTINCT `day` FROM wp_dcms_reservation_config\n WHERE `type`='{$type}' and qty > 0\";\n $result = $this->wpdb->get_results( $sql );\n\n error_log(print_r($result,true));\n\n $res = [];\n foreach ($result as $item){\n $res[] = $item->day;\n }\n\n return $res;\n }", "public function findAll() {\n $sql = \"select * from eventtype order by num_ET\";\n $result = $this->getDb()->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $entities = array();\n foreach ($result as $row) {\n $id = $row['num_ET'];\n $entities[$id] = $this->buildDomainObject($row);\n }\n return $entities;\n }", "function GetLeaveYearList($type = NULL) {\n $companyid = $this->companyID;\n $emp_seqno = $this->empSeqNo;\n $_where = empty($type) ? \" and emp_seq_no = '$emp_seqno'\" : \"\";\n $sql_string = <<<eof\n select distinct substrb(to_char(my_day,'YYYY-MM-DD'), 0,4) as year1,\n substrb(to_char(my_day,'YYYY-MM-DD'), 0,4) as year2\n from ehr_absence_v\n where company_id = '$companyid'\n $_where\n order by substrb(to_char(my_day, 'YYYY-MM-DD'), 0, 4) desc\neof;\n return $this->DBConn->GetArray($sql_string);\n }", "public static function getTypes()\n {\n return [\n ModelRegistry::TRANSACTION => ModelRegistry::getById(ModelRegistry::TRANSACTION)->label,\n ModelRegistry::PRODUCT => ModelRegistry::getById(ModelRegistry::PRODUCT)->label,\n ];\n }", "public function types() {\n return [\n self::TYPE_NONE => 'none',\n self::TYPE_WECHAT => 'wechat',\n self::TYPE_ALIPAY => 'alipay',\n self::TYPE_CASH => 'cash',\n ];\n }", "public function getTypeEvenement()\n {\n return $this->typeEvenement;\n }", "public function getAll () {\n return $this->curl->get('activityTypes')['data'];\n }", "function getTypes() {\n\t\treturn $this->types;\n\t}", "public static function getAll()\r\n {\r\n return self::$typeRegistry;\r\n }", "public function getAllMealTypes()\n {\n return MealFoodType::all();\n }", "public function model()\n {\n return LeaveRequest::class;\n }", "public function findByType($type){\r\n $stmt = $this->db->prepare(\"SELECT * FROM event WHERE type =?\");\r\n $stmt->execute(array($type));\r\n\r\n $events_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n $events = array();\r\n\r\n foreach($events_db as $event){\r\n array_push($events, new Event($event[\"id_event\"], $event[\"type\"], $event[\"name\"],$event[\"moment\"], $event[\"date\"],\r\n $event[\"guests\"], $event[\"children\"], $event[\"sweet_table\"], $event[\"observations\"],\r\n $event[\"restaurant\"], $event[\"phone\"],$event[\"price\"] ));\r\n }\r\n\r\n return $events;\r\n }", "function get_all_service_type()\n {\n $this->db->order_by('ID_SERVICE_TYPE', 'desc');\n return $this->db->get('SERVICE_TYPE')->result_array();\n }", "function grabTypes(){\n\t\t$d=$this->find('all',array('order'=>array('id ASC')));\n\t\treturn $d;\n\t}", "public function getAllTypes()\n {\n $this->db->select('*', FALSE);\n $this->db->from('item_type');\n $query = $this->db->get();\n return $query->result();\n }", "public static function types()\n {\n return [\n self::TYPE_PERSONAL => Yii::t('app', 'Personal'),\n self::TYPE_BUSINESS => Yii::t('app', 'Business'),\n self::TYPE_CUSTOM => Yii::t('app', Yii::$app->holidaySettings->customHolidayName)\n ];\n }", "public static function getLogs($type='_all_')\n\t{\n\t\tif($type == '_all_') return self::$_logs;\n\t}", "public function get_types()\n\t{\n\t\treturn array();\n\t}", "public function index()\n {\n $data['leaves']=LeaveEmployee::all();\n return view('leave.index',$data);\n }", "public static function getTypes()\n {\n $sql = 'SELECT * FROM location_type';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }", "public function getEnumTypes()\n {\n return $this->postRequest('GetEnumTypes');\n }", "public function viewleave(){\n\n\t\t $this->load->database();\n\t\t $this->load->model('Employee_leave');\n\t\t $leaves = $this->Employee_leave->get_all_data();\n\t\t $data = array(\n\t\t\t 'leaves' => $leaves,\n\t\t );\n\t\t $this->load->view('admin/base');\n\t\t $this->load->view('admin/viewleave', $data);\n\t }", "static public function get_restore_types() {\n return array(\n 'default' => get_string('default', 'grades'),\n 'ignore' => get_string('ignore', 'grades'),\n 'username' => get_string('username', 'moodle'),\n 'fullnameuser' => get_string('fullnameuser', 'moodle'), // User full name\n 'groupname' => get_string('groupname', 'group'),\n 'activityname' => get_string('basicltiname', 'lti'), // Moodle >= 2.2\n 'coursename' => get_string('coursename', 'grades'),\n );\n }", "public function Get_aTypeDrive() {\n\t\t// use count from 1! in smarty tlp check 0 and not set equal\n\t\treturn array(\n\t\t\t1 => Language::GetMessage('Привод на все колеса'),\n\t\t\t2 => Language::GetMessage('Привод на все колеса постоянный'),\n\t\t\t3 => Language::GetMessage('Привод на задние колеса'),\n\t\t\t4 => Language::GetMessage('Привод на передние колеса'),\n\t\t);\n\t}", "public function get_types()\n {\n return self::$TYPES;\n }", "public function etatListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Etat\");//type array\n\t}", "public function index()\n {\n //returning the leaves applied by an employess\n $leaves = Auth::user()->leave()->latest()->get();\n return view('employee/leave/index',compact('leaves'));\n }", "public function getLegPassengerTypes()\n {\n return $this->LegPassengerTypes;\n }", "public function get_pending($id, $leave_type){\r\n\t\r\n\t\t$id1 = ($id != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($id).\"'\":'NULL';\r\n\t\t\t$leav_type = ($leave_type != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($leave_type).\"'\":'NULL';\r\n\t\t$one = 1;\r\n\t$stat = ($one != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($one).\"'\":'NULL';\r\n\t$sql = $this->hrm_mysql_connect->query(\"SELECT status FROM leave_request_2018 WHERE user_id=$id1 AND status=$stat AND leave_type=$leav_type\");\r\n\tif($sql->num_rows==0){\r\n\t\treturn 0;\r\n\t\t}else {\r\n\t\t\treturn 1;\r\n\t\t\t}\r\n\t\r\n\t}", "public static function getAllFestivalTypes()\n\t{\n\t\t$database = DatabaseFactory::getFactory()->getConnection();\n\n\t\t$sql = \"SELECT * FROM fest_type\";\n\t\t$query = $database->query($sql);\n\n\t\t// fetchAll() is the PDO method that gets all result rows\n\t\treturn $query->fetchAll();\n\t}", "public static function getBottomMenu(){\n return ObjectDB::getAllOnField(self::$table, __CLASS__, \"type\", false,\"id\");\n\n }", "function list_revenue_type() \n\t\t{\n\t\t\t\n\t\t\t$this->db->order_by('revenue_type_value','ASC');\n\t\t\t\n\t\t\t$query\t\t\t\t\t=\t\t$this->db->get($this->table_name);\n\t\t\t\n\t\t\treturn $query->result();\n\t\t\t\n\t\t}", "static function getTypes(): array\n\t{\n return self::$types;\n }" ]
[ "0.75516534", "0.71069634", "0.66632444", "0.6558683", "0.62703604", "0.6269362", "0.6228708", "0.61700433", "0.5946417", "0.590239", "0.58780676", "0.57982624", "0.5764007", "0.57404125", "0.570456", "0.566397", "0.5626214", "0.55968493", "0.556556", "0.55309695", "0.5529872", "0.55267906", "0.55090743", "0.55090684", "0.5502596", "0.5499046", "0.5499046", "0.5499046", "0.5499046", "0.54967433", "0.5484204", "0.5482912", "0.5477162", "0.5476099", "0.5464208", "0.5453286", "0.5445711", "0.5445065", "0.5444146", "0.544303", "0.5440841", "0.54398924", "0.543359", "0.5432557", "0.5429458", "0.5429127", "0.542078", "0.5411518", "0.54095775", "0.53786445", "0.53627974", "0.53588617", "0.5358156", "0.5355441", "0.534821", "0.53137094", "0.5298041", "0.52929896", "0.5290256", "0.52897847", "0.52794045", "0.527773", "0.52758265", "0.5275429", "0.5251919", "0.525008", "0.5247746", "0.52462393", "0.5243665", "0.5242873", "0.5235866", "0.52354383", "0.52151173", "0.5211041", "0.5207747", "0.5205059", "0.5204559", "0.518977", "0.51872265", "0.518386", "0.51777345", "0.517615", "0.5157654", "0.5156568", "0.51534146", "0.5152193", "0.51494163", "0.514871", "0.5147342", "0.5144197", "0.5140551", "0.5135036", "0.5132331", "0.51253116", "0.51248664", "0.51243407", "0.51191384", "0.51129454", "0.51115906", "0.51074886" ]
0.801312
0
get leave type by leave type id
получить тип отпуска по идентификатору типа отпуска
public function get_leave_type_by_id($id){ $this->db->where('leave_type_id',$id); $query = $this->db->get('leave_type'); return $query->row(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leaveType()\n {\n return $this->belongsTo(LeaveType::class, 'leave_type_id');\n }", "public function get_leave_type(){\n \t$this->db->select('*');\n \t$this->db->from('leave_type');\n \t$query=$this->db->get();\n \t$data=$query->result();\n $list = array('' => 'Select One...');\n \tif(!empty($data)){\n \t\tforeach ($data as $value) {\n \t\t\t$list[$value->leave_type_id]=$value->leave_type;\n \t\t}\n \t}\n \treturn $list;\n }", "public function get_pending($id, $leave_type){\r\n\t\r\n\t\t$id1 = ($id != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($id).\"'\":'NULL';\r\n\t\t\t$leav_type = ($leave_type != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($leave_type).\"'\":'NULL';\r\n\t\t$one = 1;\r\n\t$stat = ($one != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($one).\"'\":'NULL';\r\n\t$sql = $this->hrm_mysql_connect->query(\"SELECT status FROM leave_request_2018 WHERE user_id=$id1 AND status=$stat AND leave_type=$leav_type\");\r\n\tif($sql->num_rows==0){\r\n\t\treturn 0;\r\n\t\t}else {\r\n\t\t\treturn 1;\r\n\t\t\t}\r\n\t\r\n\t}", "public function estateType($id)\n {\n return $this->where('estate_type_id', $id);\n }", "function lookupEventType($event_id){\n\t$data = M('event');\n\tif((int)$event_id>=1){\n\t\t$condition['id'] = (int)$event_id;\n\t\t$eventdate = $data->where($condition)->find();\n\t\treturn $eventdate['type'];\n\t}\n\telse return false;\n}", "public function findDevoirType($id,$type)\n\t{\n\t\t$qb = $this->_em->createQueryBuilder();\n\t\n\t\t$qb->select('d')\n\t\t->from('ProjetCoursBundle:Devoir', 'd')\n\t\t->where('d.enseignement = :id')\n\t\t->setParameter('id', $id)\n\t\t->join('d.type', 't')\n\t\t->andWhere('t.nom = :type')\n\t\t->setParameter('type', $type)\n\t\t;\n\t\n\t\n\t\treturn $qb->getQuery()\n\t\t->getResult();\n\t}", "public function edit($id)\n {\n $this->middleware('permission:leave-super-admin|leave-admin');\n\n $leave_type = LeaveType::findOrFail(hashDecode($id));\n\n $data = [\n 'title' => 'Edit Leave type',\n 'meta_desc' => 'Edit a leave type',\n 'body_class' => null,\n 'user' => $this->user,\n 'menu' => 'hr',\n 'notifications' => notifications($this->user),\n 'new_notification' => countNewNotifications($this->user),\n 'crumbs' => [\n 'performance/leave' => 'Leave',\n 'performance/leave/type' => 'Leave types',\n 'active' => 'Edit'\n ],\n 'leave_type' => $leave_type,\n ];\n return view('customer.performance.leave.leave-type.edit', $data);\n }", "public function get_all_leave_type(){\n \t$this->db->select('*');\n \t$this->db->from('leave_type');\n \t$query=$this->db->get();\n \treturn $query->result();\n }", "private function getType($id) {\n \n $this->loadTypes();\n \n foreach ($this->types as $type) {\n \n if ($type->getId() === $id) return $type;\n }\n \n return NULL;\n }", "public function getLeave($id) {\n try {\n $objLeave = new Base_Model_ObtorLib_App_Core_Employee_Dao_Leave();\n $leave = $objLeave->getLeave($id);\n return $leave;\n } catch (Exception $e) {\n throw new Base_Model_ObtorLib_App_Core_Employee_Exception($e);\n }\n }", "public function find($id) {\n $sql = \"select * from eventtype where num_ET=?\";\n $row = $this->getDb()->fetchAssoc($sql, array($id));\n\n if ($row)\n return $this->buildDomainObject($row);\n else\n throw new \\Exception(\"No type matching id \" . $id);\n }", "public function getLeaveForUser(User $user, $leaveType=\"Annual\")\n {\n $leave = $this->dbService->getByField(array('username'=>$user->getUsername(), 'leavetype'=>$leaveType), 'Leave');\n if (!$leave && $user) {\n // Need to create new\n $params = array('username'=>$user->getUsername(), 'days'=>0, 'leavetype'=>$leaveType);\n $leave = $this->dbService->saveObject($params, 'Leave');\n }\n\n if (!$leave) {\n throw new Exception(\"Could not retrieve Leave details for \".$user->getUsername());\n }\n\n return $leave;\n }", "public function getById($id, $type) {\n switch ($type) {\n case 'nsf': $sql = ROLETYPE_GETBYID_NSF; break;\n case 'local': $sql = ROLETYPE_GETBYID_LOCAL; break;\n default: throw new Exception(\"Type must be 'nsf' or 'local'\"); break;\n }\n\n $list = $this->makeEntityArray('RoleType', $sql, array($id));\n return isset($list[0]) ? $list[0] : null;\n }", "public function edit($id)\n {\n $business_id = request()->session()->get('user.business_id');\n $is_admin = $this->moduleUtil->is_admin(auth()->user(), $business_id);\n\n if (!(auth()->user()->can('superadmin') || $this->moduleUtil->hasThePermissionInSubscription($business_id, 'essentials_module')) && !$is_admin) {\n abort(403, 'Unauthorized action.');\n }\n\n $leave_type = EssentialsLeaveType::where('business_id', $business_id)\n ->find($id);\n\n return view('essentials::leave_type.edit')->with(compact('leave_type'));\n }", "function getTipoMasa($id){\n\tif($id == 1) return \"delgada\";\n\tif($id == 2) return \"normal\";\n}", "public function get($typeId);", "public function lead_type_by_id($l_t_id)\n {\n \n $result = $this->db->query(\"call lead_type_by_id('\".$l_t_id.\"')\")->row();\n save_query_in_log();\n \n return $result;\n }", "function getLeaveTypes()\n {\n $leaveTypes = [];\n $leaves = DB::table('dbo.LEAVE_TYPE')->lists('leave_type');\n $userGender = Employee::find(Auth::user()->Emp_id)->Emp_Gender;\n \n foreach ($leaves as $leaveType )\n {\n array_push($leaveTypes, $leaveType);\n }\n\n if($userGender == \"M\")\n {\n $leaveTypes = array_diff($leaveTypes , array(\"Maternity\"));\n }\n\n if($userGender == \"F\")\n {\n $leaveTypes = array_diff($leaveTypes , array(\"Paternity\"));\n }\n\n return $leaveTypes;\n }", "public function type() {\n return $this->hasOne(EventType::class, 'id', 'events_types_id');\n }", "public function getSingleRoomType($id)\n {\n $type = RoomType::find($id);\n if(!$type) {\n abort(404, 'Room type not found');\n }\n\n return $type;\n }", "public function get_type()\n {\n return self::$_id;\n }", "function project_type($id)\n{\n\t$name=mysql_fetch_array(mysql_query(\"select type_name from manage_property_type where ptype='$id'\"));\n\treturn $name['type_name'];\n\t}", "public function getLeaveDetails($userid, $type, $status)\n {\n if($status == 'total')\n $where = \" AND status IN ('inprocess','refused', 'approved') \";\n else\n $where = \" AND status = '\".$status.\"' \";\n $query = \"select * FROM \".$this->_name.\" WHERE created_by = '\".$userid.\"' AND type = '\".$type.\"' $where\";\n if(($result = $this->getQuery($query,true)) != NULL)\n return $result;\n else\n return \"NO\";\n }", "public function delete_leave_type($id = null)\n\t{\n\t\t$this->db->where('leave_type_id',$id)\n\t\t\t->delete('leave_type');\n\n\t\tif ($this->db->affected_rows()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_individual_leave($individual_id)\n\t{\n\t\t//retrieve all users\n\t\t$this->db->from('leave_duration, leave_type');\n\t\t$this->db->select('leave_duration.*, leave_type.leave_type_name');\n\t\t$this->db->order_by('start_date', 'DESC');\n\t\t$this->db->where(array('leave_duration.individual_id' => $individual_id, 'leave_duration.leave_type_id' => 'leave_type.leave_type_id'));\n\t\t$query = $this->db->get();\n\t\t\n\t\treturn $query;\n\t}", "public function type($id)\n {\n return $this->where('user_type_id', $id);\n }", "public function save_leave_type($data = array()){\n \treturn $this->db->insert('leave_type', $data);\n }", "function edit_revenue_type($id) \n\t\t{\n\t\t\t\n\t\t\t\t $this->db->where('revenue_id',$id);\n\t\t\t\t\t\t\n\t\t\t\t $query=$this->db->get($this->table_name);\n\t\t\t\n\t\t\t\t return $query->result();\n\t\t\t\t\t\t\t\n\t\t}", "public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }", "public function get_message_type($id)\n\t{\n\t\t$sql=\"SELECT * FROM message_type ORDER BY (`message_type_id` = $id) DESC\";\n\t\t$query=$this->db->query($sql);\n\t\treturn $query->result_object();\n\n\t}", "protected function getTypeName($id) {\n\t\t$beerType = M('beer_type', 'ac_')->where(array('id' => $id))->find();\n\t\treturn $beerType;\n\t}", "function findItem($type, $id)\n {\n foreach ($this->getItems() as $item)\n if ($item->item_id == $id && $item->item_type == $type)\n return $item;\n return null;\n }", "function get($id) {\n foreach ($this->body as $node) {\n if ($node instanceof Type) {\n if ($node->getID() == $id) {\n return $node;\n }\n }\n }\n }", "function get_type($type,$lang_id = NULL)\n\t{\n\t\t$list = $this->cache_get($type);\n\n\t\t// Loc danh sach cat theo cat hien tai\n\t\tif ($lang_id == NULL)// neu truyen lang\n\t\t{\n\t\t\t$lang_id = lang_get_cur()->id;\n\t\t}\n\t\t//pr($lang_id);\n\t\t//pr($list);\n\t\t// Them ten cua cac the content vao de tien lay thong tin\n\t\tforeach ($list as $row)\n\t\t{\n\t\t\t// lay lang mac dinh\n\t\t\tif(isset($row->_content[$lang_id])) {\n\t\t\t\t$content = (array)$row->_content[$lang_id];\n\t\t\t\tforeach ($content as $k => $v)\n\t\t\t\t\t$row->$k = $v;\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "public function getEntityTypeId();", "function getTypeName($id){\n return sqlSelectOne(\"SELECT * FROM types WHERE type_id={$id}\", 'type_name');\n}", "function get_type($id,$config,$lang)\r\n\t{\r\n\t\tif($this->get_children($id,$config,$lang))\t{ \r\n\t\t\treturn 1; \r\n\t\t}\telse { \r\n\t\t\treturn 0; \r\n\t\t}\r\n\t}", "public function getLeave()\n {\n return $this->get(self::_LEAVE);\n }", "public function edit(Leave $leave)\n {\n //\n }", "public function edit(Leave $leave)\n {\n //\n }", "public function get_type();", "function get_type_name_by_id($type, $type_id = '', $field = 'name')\n {\n if ($type_id != '') {\n $l = $this->db->get_where($type, array(\n $type . '_id' => $type_id\n ));\n $n = $l->num_rows();\n if ($n > 0) {\n return $l->row()->$field;\n }\n }\n }", "function get_booktype($id)\n {\n return $this->db->get_where('booktypes',array('id'=>$id))->row_array();\n }", "protected function get_type_from_id($id)\n\t{\n\t\treturn $this->types->get($id);\n\t}", "public function index()\n {\n return LeaveTypeResource::collection($this->leaveType->all());\n }", "public function get_type_of_scope($eid){\n\t\t$this->db->select('st.name,st.description,es.id,es.scope_typeFK');\n\t\t$this->db->from('event_scope AS es');\n\t\t$this->db->join('scope_type AS st', 'st.id = es.scope_typeFK', 'INNER');\n\t\t$this->db->where(\"es.eventFK = $eid\");\n\t\t$this->db->order_by(\"es.scope_typeFK ASC\");\n\t\t$result = $this->db->get();\n return $result->result();\n\t}", "public function getTypeIdentifier();", "public function getLeaveNameById($absid){\n $sql = <<<eof\n select absence_name\n\t\t from hr_absence_type\n\t\t where seg_segment_no = :companyid\n\t\t and absence_type_id = :absid\neof;\n //$this->DBConn->debug = 1;\n return $this->DBConn->CacheGetOne(self::DATA_CACHE_SECONDS,$sql,array('companyid' => $this->companyID,'absid'=>$absid));\n }", "static private function _get($type, $id) {\n $objects = self::getStack($type);\n if (empty($objects)) {\n return FALSE;\n }\n if (isset($objects[$id])) {\n return self::convertToOriginalObject($objects[$id]);\n }\n return FALSE;\n }", "function backup_migrate_crud_get_item($type, $id) {\n if ($type = backup_migrate_crud_type_load($type)) {\n return $type->item($id);\n }\n}", "public function target_type($type){\n\t\tif($type == 'I'){\n\t\t\t$sub = 'Individual';\n\t\t}else{\t\n\t \t\t$sub = 'Team';\n\t\t}\n\t\treturn $sub;\n\t}", "public function edit(Leave $Leave)\n {\n //\n }", "function get_request_type($id_request_type){\n $this->db->where('id', $id_request_type);\n $query = $this->db->get('type_request');\n return($query->result());\n }", "function get_type_name_by_id_custom($type,$type_id='',$field='name')\n\t{\t$type1='comp_type'; //table field name\n\t\treturn\t$this->db->get_where($type,array($type1.'_id'=>$type_id))->row()->$field;\t\n\t}", "public function fetchFieldTypeFromID($id){\n\t\t\treturn Symphony::Database()->fetchVar('type', 0, \"SELECT `type` FROM `tbl_fields` WHERE `id` = '$id' LIMIT 1\");\n\t\t}", "function get_by_type( $type_id )\n {\n $this->db->where('type_id', $type_id);\n $this->db->limit(1);\n return $this->db->get('card_types')->row();\n }", "function get_type_name_by_id($type, $type_id = null, $field = 'name') {\n $this->db->where($type . '_id', $type_id);\n $query = $this->db->get($type);\n $result = $query->result_array();\n\n foreach ($result as $key => $row)\n return $row [$field];\n }", "function TestPlan_lookup_type_name_by_id($type_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.lookup_type_name_by_id', array(new xmlrpcval($type_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "function getEarnedLeavesRecord($emp_id)\n\t{\n\t\treturn $this->getRow($this->tb3_name,'*','emp_id='.$emp_id.' and leave_type_id='.EARNED_TYPE,$is_active=1,$is_join=0,$showQuery=false) ;\n\t}", "public function update(PerformanceLeaveTypeRequest $request, $id)\n {\n $this->middleware('permission:leave-super-admin|leave-admin');\n\n $leave_type = LeaveType::findOrFail(hashDecode($id));\n $this->leaveTypeRepository->store($leave_type, $request);\n\n logUser(LogType::Update, $this->logDetail, $leave_type->id);\n\n return redirect('performance/leave/type')->with('theme-success', 'Leave type updated');\n }", "function getType() ;", "function getType() ;", "function getType() ;", "public static function get($id) {\n // Set the predefined list that can be mapped\n self::$types = [\n 0 => 'Légkondícionáló',\n 1 => 'WC',\n 2 => 'Napelem',\n 3 => 'Kert',\n ];\n\n return (isset(self::$types[$id])) ? self::$types[$id] : ' - ';\n }", "function getType($id)\n\t{\n\t\tif (empty($id)) //safe because we never use 0 as an id\n\t\t{\n\t\t\t$currentID = $this->getID();\n\t\t\tif (empty($currentID)) return false;\n\t\t\t$id = $currentID;\n\t\t}\n\t\t$result = $this->find('first', array(\n\t\t\t'conditions' => array('id' => $id),\n\t\t\t'fields' => array('ans_type')\n\t\t));\n\t\tif (empty($result)) return false;\n\t\treturn $result['Answer']['ans_type'];\n\t}", "public function setIdType(string $idType): static;", "public static function TotTypeEvents($type){\r\n $type = self::$conn->real_escape_string($type);\r\n $query = \"SELECT id FROM tipoevento WHERE nome='$type'\";\r\n $result = self::$conn->query($query);\r\n if($result->num_rows != 1)\r\n return -1;\r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n $type = $row[0];\r\n $query = \"SELECT count(*) FROM evento WHERE tipo='$type' AND blocked=FALSE\";\r\n\t\t$result = self::$conn->query($query); \r\n if($result){\r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n return (int)$row[0]; \r\n }\r\n return 0;\r\n }", "public function get_type(): string;", "function getRoomType($result){\n\t\t//get record corresponding to that id_vehicle\n\t\t\t\t\t//$data=$this->Common_model->select_fields_where($tbl, '*', array('id_vehicle'=>$result), true);\n\t\t$tbl=$this->session->userdata('prefix').'roomtypes';\n\t\t$where=array($tbl.'.id_room'=>$result);\n\t\t// get the db tables list\n\t\t$tableList=getTables(); // define in custom helper\n\t\t// check if the tbl exist in db \n\t\tif(in_array($tbl, $tableList)){\n\t\t\t$data=$this->Common_model->select_fields_where($tbl, '*', $where, true);\n\t\t\treturn $data;\n\t\t} \n\n\t}", "public function get_message_type_by_id($id)\n\t{\n\t\t$query = $this->db->get_where('message_type', array('message_type_id' => $id));\n\t\treturn $query;\n\t}", "public function getLoanType()\n\t\t{\n\t\t\t$loan_type_id = $this->getLoanTypeId();\n\t\t\t$ref_list = ECash::getFactory()->getReferenceList('LoanType');\n\t\t\treturn $ref_list[$loan_type_id];\n\t\t}", "Public function get_ididtypeexp()\n\t\t{\n\t\t\tReturn $this ->idtypeexp;\n\t\t}", "function getType();", "function getType();", "function getType();", "function getType();", "function getType();", "public function getTypeId()\n {\n return $this->type_id;\n }", "public function getTypeId()\n {\n return $this->type_id;\n }", "public function getTypeId()\n {\n return $this->type_id;\n }", "function get_type_name_by_id_custom1($type,$type_id='',$field='name')\n \t{ $type1='surgery'; //table field name\n \t return $this->db->get_where($type,array($type1.'_id'=>$type_id))->row()->$field; \n \t}", "public function get_job_type_by_id($id){\n\t\t$query = $this->db->get_where('xx_job_type', array('id' => $id));\n\t\treturn $result = $query->row_array();\n\t}", "public function index()\n {\n\n $leave_types=LeaveType::orderBy('id','ASC')->get();\n return view('admin.leave.leave_types',['leave_types'=> $leave_types]);\n }", "public function getClass($typeId);", "public function getTypeId()\n {\n return $this->get(self::_TYPE_ID);\n }", "public function show($id)\n {\n return $this->type->findOrFail($id);\n }", "public static function getTypeName($id){\n return Types::findOne($id);\n }", "public function user_type($id){\n\t\tglobal $con;\n\t\t$query=\"SELECT * FROM user_admin WHERE id='$id' LIMIT 1\";\n\t\t$result=array();\n\t\t$user_type='';\n\t\t$result=$this->select($con,$query);\n\t\tforeach ($result as $key => $value) {\n\t\t\t$user_type=$value['type'];\n\t\t}\n\t\treturn $user_type;\n\t}", "public function show(Leave $leave)\n {\n //\n }", "abstract protected function get_typeid();", "abstract protected function getTradeType();", "function get_type_name($type_name) {\nglobal $db;\n$query = 'SELECT * FROM types\n WHERE typeID = :type_id';\n$statement = $db->prepare($query);\n$statement->bindValue(':type_id', $type_id);\n$statement->execute();\n$type = $statement->fetch();\n$type_name = $type['vehicleTypes'];\n$statement->closeCursor();\nreturn $type_name;\n}", "public function find($id)\n {\n return IncomeTypes::find($id);\n }", "public function getAdType($id)\n {\n $query = \"SELECT ALL FROM adv_type WHERE id = $id\";\n return $this->getQueryData($query, $this->getConnection());\n }", "private function inflateType($identifier, $type = Scope::class)\n {\n if ($identifier === null) {\n return null;\n }\n\n return $this->entityManager->find($type, $identifier);\n }", "public function findDevoirTypeAutre($id)\n\t{\n\t\t$qb = $this->_em->createQueryBuilder();\n\t\n\t\t$qb->select('d')\n\t\t->from('ProjetCoursBundle:Devoir', 'd')\n\t\t->where('d.enseignement = :id')\n\t\t->setParameter('id', $id)\n\t\t->join('d.type', 't')\n\t\t->addSelect('t')\n\t\t->andWhere('t.nom <> :type')\n\t\t->setParameter('type', 'TP')\n\t\t->andWhere('t.nom <> :type1')\n\t\t->setParameter('type1', 'TD')\n\t\t->andWhere('t.nom <> :type2')\n\t\t->setParameter('type2', 'Projet')\n\t\t->andWhere('t.nom <> :type3')\n\t\t->setParameter('type3', 'Exercice')\n\t\t;\n\t\n\t\n\t\treturn $qb->getQuery()\n\t\t->getResult();\n\t}", "public function show(Leave $Leave)\n {\n //\n }", "function getUserType(){\r\n\t\t$select = \"SELECT user_types.type FROM user_types \r\n\t\t\tLEFT JOIN users ON user_types.id = users.type\r\n\t\t\tWHERE users.id = $this->user_id\";\r\n\r\n global $pdo;\r\n $stmt = $pdo->query($select);\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\t\treturn $row['type'];\r\n\t}", "private function get_type() {\n\n\t}", "public function get_page_type_idstring($id) {\n foreach ($this->types as $pagetype) {\n if ((int)$pagetype->typeid === (int)$id) {\n return $pagetype->idstring;\n }\n }\n return 'unknown';\n }" ]
[ "0.6812724", "0.62546927", "0.6137966", "0.6058944", "0.60555565", "0.60231405", "0.5924666", "0.5854124", "0.58376056", "0.5781426", "0.57241917", "0.56991005", "0.5622433", "0.55524373", "0.5545866", "0.5536764", "0.55139154", "0.549001", "0.54735565", "0.54720604", "0.5447745", "0.5425619", "0.5415671", "0.54099905", "0.5391776", "0.5378769", "0.53748924", "0.53349316", "0.5327084", "0.5316617", "0.5315397", "0.5290837", "0.5290127", "0.52420884", "0.52324545", "0.52187276", "0.5201782", "0.51958936", "0.51798296", "0.51798296", "0.51627207", "0.5144774", "0.51399463", "0.5113257", "0.51119083", "0.50978804", "0.5089359", "0.50829995", "0.50807273", "0.50471324", "0.50469035", "0.5032516", "0.50295514", "0.50216705", "0.5021661", "0.50185245", "0.5017767", "0.5009239", "0.5008198", "0.50060403", "0.50057936", "0.5005275", "0.5005038", "0.5003023", "0.4990448", "0.4974415", "0.49714652", "0.49637336", "0.49577105", "0.49547574", "0.49542046", "0.49454942", "0.49434844", "0.49434844", "0.49434844", "0.49434844", "0.49434844", "0.4940489", "0.4940489", "0.4940489", "0.49378508", "0.4937818", "0.49358246", "0.4934193", "0.4928679", "0.49215657", "0.4920079", "0.49200043", "0.4918129", "0.49109122", "0.49085575", "0.4901425", "0.48874375", "0.48867565", "0.48842412", "0.4882799", "0.48764363", "0.48759687", "0.48721394", "0.4869714" ]
0.8029744
0
delete leave type by id
удалить тип оставки по идентификатору
public function delete_leave_type($id = null) { $this->db->where('leave_type_id',$id) ->delete('leave_type'); if ($this->db->affected_rows()) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_type($id)\n\t\t{\n\t\t\n\t\t$this->db->where('revenue_id',$id);\n\t\t\n\t\t$this->db->delete($this->table_name);\n\t\t\n\t\t}", "public function deleteByIdType($id, $type);", "public function delete($id) {\n // Delete the type\n $this->getDb()->delete('eventtype', array('num_ET' => $id));\n }", "function deleteType($id) {\n \t$sql = \"DELETE FROM type WHERE id=:id\";\n try {\n $db = getConnection(\"alcapp\");\n $stmt = $db->prepare($sql);\n $stmt->bindParam(\"id\", $id);\n $stmt->execute();\n $db = null;\n } catch(PDOException $e) {\n echo '{\"error\":{\"text\":'. $e->getMessage() .'}}';\n }\n }", "public function delete_type_record($id){\n\t\t$this->db->where('training_type_id', $id);\n\t\t$this->db->delete('training_types');\n\t\t\n\t}", "public function delete($id){\n $this->autorender=false;\n if($this->Session->read('LOGEDTYPE')=='True') {\n if($id=='')\n { \n $this->Session->setFlash(' SECURITY ERROR ! ');\n $this->redirect(array('controller'=>'leaves','action'=>'index'));\n }\n else\n {\n $this->Leavetype->delete($id);\n $this->Session->setFlash(' Record deleted ');\n $this->redirect(array('controller'=>'leaves','action'=>'index'));\n }\n \n } \n }", "public function destroy($id)\n {\n $this->middleware('permission:leave-super-admin');\n\n $leave_type = LeaveType::findOrFail(hashDecode($id));\n logUser(LogType::Delete, $this->logDetail, $leave_type->id);\n $leave_type->delete();\n return 1;\n }", "public function actionDelete($id,$type)\n {\n if($type=='dept'){\n $model=$this->findModel($id);\n $model->setAttribute('dept_delete',1);\n $model->save(false);\n }else{\n $model=$this->findModel($id);\n $model->setAttribute('branch_delete',1);\n $model->save(false);\n }\n\n return $this->redirect(['index']);\n }", "function timetracking_type_delete(timetrackingType $type) {\n $type->delete();\n}", "public function delete($id, $type)\n {\n $stmt = $this->db()->prepare(\"DELETE FROM toys WHERE id=:id AND type=:type\");\n return $stmt->execute(array(':type' => $type, ':id' => $id));\n }", "protected static function deleteData($id, $type)\n\t{\n\t\t$id = intval($id);\n\n\t\t$res = HookData::getList(array(\n\t\t\t'select' => array(\n\t\t\t\t'ID'\n\t\t\t),\n\t\t\t'filter' => array(\n\t\t\t\t'ENTITY_ID' => $id,\n\t\t\t\t'=ENTITY_TYPE' => $type\n\t\t\t)\n\t\t));\n\t\twhile ($row = $res->fetch())\n\t\t{\n\t\t\tHookData::delete($row['ID']);\n\t\t}\n\t}", "function delete_booktype($id)\n {\n return $this->db->delete('booktypes',array('id'=>$id));\n }", "public function removeData($type, $id)\n { \n if($type == 'section'){\n Category_sections::destroy($id);\n }elseif($type == 'question'){\n Section_questions::destroy($id);\n }elseif($type == 'answer'){\n Question_answers::destroy($id);\n }\n \n return response()->json(['success' => 1]); \n \n }", "public function deleteAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Fanli_Service_Ptype::getType($id);\n\t\tif ($info && $info['id'] == 0) $this->output(-1, '无法删除');\n\t\t$result = Fanli_Service_Ptype::deleteType($id);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功');\n\t}", "public function destroy($type=null,$item_id,$id)\n {\n //\n }", "public function remove($typeId);", "public function deleteroom($id)\n { \n\n DB::table(\"opos_ftype\")\n ->where(\"id\",$id)\n ->update([\n \"deleted_at\"=>Carbon::now()\n ]);\n return $id;\n }", "public function DeleteType($manager_id,$id){\n $type=$this->IsOwn($manager_id,$id);\n if($type)\n {\n /* determine if the type has children */\n if($type->parent_id)\n {\n $child=$this->where(['parent_id'=>$type->id,'manager_id'=>$manager_id])->first();\n if($child)\n {\n return false;\n }\n }\n\n /* determine if the type has good */\n $good=Good::where('type_id',$type->id)->first();\n if($good)\n {\n return false;\n }\n $type->delete();\n return true;\n\n }\n return false;\n }", "public function deleteType($id)\n {\n $this->db->select('COUNT(*) AS count');\n $this->db->from('items');\n $this->db->where('item_type_id', $id);\n $query = $this->db->get();\n\n $result = $query->result()[0];\n if($result->count > 0)\n {\n return 'FALSE';\n }\n else {\n $this->db->where('id', $id);\n $this->db->delete('item_type');\n return 'TRUE';\n }\n }", "function objDeleteType($dbh, $otid)\r\n{\r\n $dbh->Query(\"delete from app_object_types where id = '$otid' and f_system='f';\");\r\n return true;\r\n}", "function eliminarTipoDeMatricula($id){\n \t$pdo = DatabaseCao::connect();\n mysql_query(\"DELETE FROM ca_tipo_matricula WHERE id = ? ;\");\n $sql = \"DELETE FROM ca_tipo_matricula WHERE id = ?\";\n $q = $pdo->prepare($sql);\n $q->execute(array($id));\n DatabaseCao::disconnect();\n }", "public function delete($id)\n {\n $query=\"DELETE FROM label_alias_type WHERE id=\".$id;\n\n $this->executeQuery($query);\n }", "public function destroy($id)\n {\n $typeevent = TypeEvent::find($id);\n if($typeevent)\n $typeevent->delete();\n return redirect('/typeevent')->with(['success' => \"Type d'evenement Supprimé\"]);\n }", "function delete($id);", "public function del($id)\n {\n }", "public function removeFromIndexByTypeAndId($type, $id)\n {\n $this->elasticsearch->delete(\n [\n 'index' => $this->indexName,\n 'type' => $type,\n 'id' => $id,\n ]\n );\n }", "public function delRoomType(){\n\t\tif($this->input->post('roomId') and !empty($this->input->post('roomId'))){\n\t\t\t// delete row where vehicleid_vehicle match\n\t\t\t$tbl=$this->session->userdata('prefix').'roomtypes';\n\t\t\t$result=$this->Common_model->delete($tbl, array('id_room'=> $this->input->post('roomId')));\n\t\t\tif($result>0){ // in case when record successfully deleted\n\t\t\t\techo 'OK::Room Type has been deleted Successfully::success';\n\t\t\t} else {\n\t\t\t\techo 'OK::Room Type Not Deleted. Try again::error';\n\t\t\t}\n\t\t} // end of if\n\t}", "public function deleteType($typeId) {\n\t\tthrow new CmisNotImplementedException(\"deleteType\");\t\t\n\t}", "public function destroy($id)\n {\n DB::table('tblLeaves')->where('leaveNum', $id)->delete();\n return back()->with('success', 'Deleted');\n }", "function delete($id) {\n $this->db->where('id', $id);\n $this->db->delete('rit');\n }", "public function policy_delete($id){\n $this->autorender=false;\n if($this->Session->read('LOGEDTYPE')=='True') {\n if($id=='')\n { \n $this->Session->setFlash(' SECURITY ERROR ! ');\n $this->redirect(array('controller'=>'leaves','action'=>'leavePolicy'));\n }\n else\n {\n $this->Policyleave->delete($id);\n $this->Session->setFlash(' Record deleted ');\n $this->redirect(array('controller'=>'leaves','action'=>'leavePolicy'));\n }\n \n } \n }", "abstract public function delete($id);", "abstract public function delete($id);", "abstract public function delete($id);", "public function eliminarPorId($id)\n {\n }", "function delete($rowid='')\n {\n \tif (empty($rowid)) $rowid=$this->id;\n\n $sql = \"DELETE FROM \".MAIN_DB_PREFIX.\"adherent_type WHERE rowid = \".$rowid;\n\n $resql=$this->db->query($sql);\n if ($resql)\n {\n if ($this->db->affected_rows($resql))\n {\n return 1;\n }\n else\n\t\t\t{\n return 0;\n }\n }\n else\n {\n print \"Err : \".$this->db->error();\n return 0;\n }\n }", "function remove_id_type($id_type_id = '')\n\t{\n\t\t$this->db->where('id_type_id', $id_type_id);\n\t\t$this->db->delete('id_type');\n\n\t\t$this->session->set_flashdata('success', 'ID type has been deleted successfully.');\n\n\t\tredirect(base_url() . 'id_type_settings', 'refresh');\n\t}", "public function delete($id){\n\t\t\t$this->db->set('delete_flag', '1', FALSE);\n\t\t\t$this->db->where('point_type_id', $id);\n\t\t\t$delete = $this->db->update('point'); // gives UPDATE point_type SET delete_flag = 1 WHERE id = $id\n\n\t\t\tif($delete)\n\t\t\t{\n\t\t\t\t//delete point_type by id\n\t\t\t\t$this->db->set('delete_flag', '1', FALSE);\n\t\t\t\t$this->db->where('id', $id);\n\t\t\t\t$delete = $this->db->update('point_type'); // gives UPDATE point_type SET delete_flag = 1 WHERE id = $id\n\t\t\t}\n\n\t\t\treturn $delete ?true:false;\n\t\t}", "public function destroy($id)\n\t{\n\t\t$this->etype->find($id)->delete();\n\n\t\treturn Redirect::route('etypes.index');\n\t}", "public function delete($idAttrEam);", "function delete_user_type($user_type_id)\n\t\t{\n\t\t\t$eventlogbol = new eventlogbol();\n\t\t\t$old_values='';\n\t\t\t$new_values_arr = array();\n\t\t\t$new_values_arr['user_type_id'] = $user_type_id;\n\t\t\t$event_result = $eventlogbol->save_eventlog('Delete','tbl_user_type',$new_values_arr,$old_values);\n\t\t\tif($event_result)\n\t\t\t{\n\t\t\t\t$query=\"DELETE FROM tbl_user_type WHERE user_type_id=:user_type_id \";\t\t\n\t\t\t\t$result = execute_non_query($query, array(':user_type_id' => $user_type_id));\n\t\t\t\treturn $result;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}", "public function destroy($id)\n {\n Leave::where('id',$id)->delete();\n return redirect('/leave')->with('info','Leave Deleted Successfully');\n }", "public function delete($id){\r\n }", "public function destroy($id)\n\t{\n\t\t//dd($award_type);\n\t\t$award_type = AwardType::find($id);\n\t\t\n\t\t/*\tImportante!\n\t\t\tCuando se intenta borrar un tipo de premio que ya ha sido asignado\n\t\t\ta algún registro de la tabla awards, el sistema devuelve una excepción \n\t\t\tdebido a la clave externa type_id que vincula la tabla awards con la \n\t\t\ttabla award_types. \n\t\t\t\n\t\t\tEs necesario filtrar este caso.\n\t\t\t*/\n\t\t\n\t\t$award_type->delete();\n\t\t\n\t\treturn redirect('admin/awardtypes');\n\t}", "public function delete(int $id): void\n {\n try {\n //Suppression de l'article en fonction de son identifiant\n (new TypeDao())->delete($id);\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "public function deleteSlider($type, $id)\n {\n try{\n $slider = $this->model->where('type','=',$type)->where('uniqueId','=',$id)->first();\n\n $slider->delete();\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function destroy($id)\n {\n Type::find($id)->delete();\n return redirect()->route('types.index')\n ->with('success','Tipo di utente eliminato!');\n }", "public function delete_leave_category($id) {\n $where = array('leave_category_id' => $id);\n // check existing leave category into tbl_application_list\n $check_existing_ctgry = $this->settings_model->check_by($where, 'tbl_application_list');\n // check existing leave category into tbl_attendance\n $check_into_attendace = $this->settings_model->check_by($where, ' tbl_attendance');\n if (!empty($check_into_attendace) || !empty($check_existing_ctgry)) { // if not empty do not delete this else delete\n // messages for user\n $type = \"error\";\n $message = \"Leave Category Information Already Used!\";\n set_message($type, $message);\n } else {\n $this->settings_model->_table_name = \"tbl_leave_category\"; //table name \n $this->settings_model->_primary_key = \"leave_category_id\"; //id\n $this->settings_model->delete($id);\n $type = \"success\";\n $message = \"Leave Category Information Successfully Delete!\";\n set_message($type, $message);\n }\n redirect('admin/settings/leave_category'); //redirect page\n }", "public function destroy($id)\n { \n modelMst::where((new modelMst)->getKeyName(), $id)->update(['sys_status_aktif'=>'N']); \n }", "public function destroy($id)\n {\n Leave::findOrFail($id)->delete();\n return redirect()->back()->with('success','Leave deleted successfully !');\n }", "abstract public function deleteById($id);", "public function destroy($id)\n {\n $data = Leave::findOrFail($id);\n\n foreach(json_decode($data->date_leave) as $date){\n $datePermit = Carbon::parse($date);\n $getDays = Days::where('name_day', $datePermit->format('l'))->first();\n $getSchedule = Schedule::where('users_id', $data->users_id)->where('days_id', $getDays->id)->first();\n \n if($getSchedule){ // jika ada jadwalnya, maka create\n $dataAttend = Attendance::whereDate('start',$date)->where('user_id', $data->users_id)->first();\n if($dataAttend){\n $dataAttend->delete();\n }\n }\n }\n\n $data->delete();\n\n return redirect()->route('leave.index')->with('success','Data berhasil dihapus!');\n }", "public function destroy($id)\n\t{\n\t\tif(!Auth::user()->hasPermission('deleteType')){\n\t\t\treturn redirect()->route('admin.getHome')->with('flash_message_error', '403! Không thể Delete Type');\n\t\t}\n\t\t//\n\t\t$film_type = FilmType::findOrFail($id);\n\t\t$film_type->delete();\n\t\t//forget cache\n\t\tif(Cache::has('film_type')){\n\t\t\tCache::forget('film_type');\n\t\t}\n\t\treturn redirect()->route('admin.type.index')->with(['flash_message' => 'Thành công! Xóa Type id: '.$id]);\n\t}", "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n //\n }", "public function deleteById($id,$addressType=null){\n\t\t$where = $this->quoteInto('agency_id = ?', $id);\n\t\tif(!is_null($addressType)){\n\t\t\t$where .= $this->quoteInto(' AND address_type = ?', $addressType);\n\t\t}\n\t\t//die($where);\n\t\t$this->delete($where);\n \n\t}", "function del ($id) {\r\n // PARAM $id - user ID\r\n \r\n $sql = \"DELETE FROM `lffntitleblock` WHERE `id`=?\";\r\n try {\r\n $this->stmt = $this->pdo->prepare($sql);\r\n $this->stmt->execute([$id]);\r\n } catch (Exception $ex) {\r\n return false;\r\n }\r\n return true;\r\n }", "public function delete($id)\n {\n $activity_type = ActivityType::find($id);\n $activity_type->delete();\n return redirect('/activity-types')->with('status','Activity Type Deactivated');\n }", "public function delete($id) {\r\n\r\n }", "public function delete($id)\n {\n return IncomeTypes::find($id)->delete();\n }", "public abstract function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "protected function eliminar($id)\n {\n }", "public static function delById($id) \n { // se genera el metodo borra por ID, complementar\n $sql = \"delete from \".self::$tablename.\" where idnitHotel=$id\";\n }", "public function deleteVesti($id){\n\t\t\t$this->db->where('skolaId', $id);\n\t\t\t$this->db->delete('vesti');\n\t\t}", "function deleteMileageForVehicle(int $id);" ]
[ "0.74041224", "0.72852546", "0.72507405", "0.70398813", "0.6975743", "0.66140383", "0.65837365", "0.6570395", "0.6519953", "0.64907527", "0.6439085", "0.64206415", "0.64180046", "0.63894266", "0.6370687", "0.6369166", "0.629657", "0.6261063", "0.6260483", "0.62580913", "0.6250553", "0.62263", "0.62218", "0.6208952", "0.6207631", "0.6202492", "0.61949587", "0.615742", "0.6139313", "0.61274177", "0.61245114", "0.6104944", "0.6104944", "0.6104944", "0.6095611", "0.60888535", "0.60885775", "0.60881484", "0.60814923", "0.6075346", "0.60668135", "0.6059655", "0.6052016", "0.60382324", "0.6031997", "0.60297126", "0.602902", "0.602902", "0.602902", "0.602744", "0.60244226", "0.60235417", "0.6022451", "0.601888", "0.6013743", "0.6009991", "0.60067344", "0.60067344", "0.6005332", "0.6000284", "0.5996389", "0.5994362", "0.5986976", "0.5984286", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5984127", "0.5981839", "0.59801775", "0.5978604", "0.59770054" ]
0.7647829
0
getPalette method returns a value between 15 depending on which paletter the user wants to plot the chart with. Here, we just read from Session variable and show it In your application, you could read this configuration from your User Configuration Manager, database, or global application settings
Метод getPalette возвращает значение от 15 в зависимости от того, какой палитры пользователь хочет использовать для построения графика. Здесь мы просто считываем значение из переменной Session и отображаем его. В вашем приложении вы можете считать эту конфигурацию из вашего менеджера пользовательских настроек, базы данных или глобальных настроек приложения.
function getPalette() { //Return return (((!isset($_SESSION['palette'])) || ($_SESSION['palette']=="")) ? "2" : $_SESSION['palette']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColorPalette() {\n\t\treturn 'XLSConfig::$systemPalette';\n\t}", "public function tcb_get_palettes_from_config() {\n\t\treturn ! empty( $this->skin_palettes_config['palette'] ) ? $this->skin_palettes_config['palette'] : [];\n\t}", "public function getPaletteColours() {\n\t\treturn array(\n\t\t\t'PaletteColour1' => $this->PaletteColour1,\n\t\t\t'PaletteColour2' => $this->PaletteColour2,\n\t\t\t'PaletteColour3' => $this->PaletteColour3,\n\t\t\t'PaletteColour4' => $this->PaletteColour4,\n\t\t\t'PaletteColour5' => $this->PaletteColour5,\n\t\t\t'PaletteColour6' => $this->PaletteColour6,\n\t\t);\n\t}", "public function getPaletteColors($id){\n $palette = Palette::find($id);\n return $palette -> colors;\n }", "private function getPlotColor() {\n\t\treturn $this->plotColor;\n\t}", "public function getFullPalette() {\n\t\treturn array(\n\t\t\t\"ContrastColour1\" => $this->ContrastColour1,\n\t\t\t\"ContrastColour2\" => $this->ContrastColour2,\n\t\t\t\"ContrastColour3\" => $this->ContrastColour3,\n\t\t\t\"ContrastColour4\" => $this->ContrastColour4,\n\t\t\t'PaletteColour1' => $this->PaletteColour1,\n\t\t\t'PaletteColour2' => $this->PaletteColour2,\n\t\t\t'PaletteColour3' => $this->PaletteColour3,\n\t\t\t'PaletteColour4' => $this->PaletteColour4,\n\t\t\t'PaletteColour5' => $this->PaletteColour5,\n\t\t\t'PaletteColour6' => $this->PaletteColour6\n\t\t);\n\t}", "public function index()\n {\n return PalettesResource::collection(Palette::all());\n\n }", "protected function _getColour() {\n return $this->_getFromConfig(\"button_colour\");\n }", "function generateLevelBarChart($pays,$ind,$agr,$con,$it)\n {\n $MyData = new pData(); \n $MyData->addPoints($it,\"IT solution\");\n $MyData->addPoints($ind ,\"Industrie\");\n $MyData->addPoints($con,\"Construction\");\n $MyData->addPoints($agr,\"Agriculture\");\n $MyData->setAxisName(0,\"Nombre de partenaires\");\n $MyData->addPoints($pays,\"Labels\");\n $MyData->setSerieDescription(\"Labels\",\"Months\");\n $MyData->setAbscissa(\"Labels\");\n $Palette = array(\"0\"=>array(\"R\"=>46,\"G\"=>151,\"B\"=>224,\"Alpha\"=>100),\n \"1\"=>array(\"R\"=>128,\"G\"=>128,\"B\"=>128,\"Alpha\"=>100),\n \"2\"=>array(\"R\"=>204,\"G\"=>102,\"B\"=>0,\"Alpha\"=>100),\n \"3\"=>array(\"R\"=>0,\"G\"=>153,\"B\"=>0,\"Alpha\"=>100),\n );\n $MyData->setPalette(\"IT solution\",array(\"R\"=>46,\"G\"=>151,\"B\"=>224,\"Alpha\"=>100)) ; \n $MyData->setPalette(\"Industrie\",array(\"R\"=>128,\"G\"=>128,\"B\"=>128,\"Alpha\"=>100)) ; \n $MyData->setPalette(\"Construction\",array(\"R\"=>204,\"G\"=>102,\"B\"=>0,\"Alpha\"=>100)) ;\n $MyData->setPalette(\"Agriculture\",array(\"R\"=>0,\"G\"=>153,\"B\"=>0,\"Alpha\"=>100)) ;\n\n\n $myPicture = new pImage(700,230,$MyData);\n $Settings = array(\"R\"=>194, \"G\"=>92, \"B\"=>4, \"Dash\"=>1, \"DashR\"=>204, \"DashG\"=>102, \"DashB\"=>14);\n $myPicture->drawFilledRectangle(0,0,700,390,$Settings);\n /* Create the pChart object */\n $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,array(\"StartR\"=>240,\"StartG\"=>240,\"StartB\"=>240,\"EndR\"=>180,\"EndG\"=>180,\"EndB\"=>180,\"Alpha\"=>100));\n $myPicture->drawGradientArea(0,0,700,230,DIRECTION_HORIZONTAL,array(\"StartR\"=>240,\"StartG\"=>240,\"StartB\"=>240,\"EndR\"=>180,\"EndG\"=>180,\"EndB\"=>180,\"Alpha\"=>20));\n /* Set the default font properties */\n $myPicture->setFontProperties(array(\"FontName\"=>\"../app/includes/pChart/fonts/pf_arma_five.ttf\",\"FontSize\"=>6));\n /* Draw the scale and the chart */\n $myPicture->setGraphArea(60,20,680,190);\n $myPicture->drawScale(array(\"DrawSubTicks\"=>TRUE,\"Mode\"=>SCALE_MODE_ADDALL_START0));\n $myPicture->setShadow(FALSE);\n \n\n $myPicture->drawStackedBarChart(array(\"DisplayPos\"=>LABEL_POS_INSIDE,\"DisplayValues\"=>false ,\"Rounded\"=>TRUE,\"Surrounding\"=>30));\n /* Write the chart legend */\n $myPicture->drawLegend(380,210,array(\"Style\"=>LEGEND_NOBORDER,\"Mode\"=>LEGEND_HORIZONTAL));\n /* Render the picture (choose the best way) */\n $myPicture->Render(\"assets/images/barLevelChart1.png\");\n }", "function generateSocialColorPalette()\n {\n $socialnetworks = array(\"twitter\", \"instagram\", \"facebook\", \"storify\");\n \n $properties = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"ctmtb\", \"ctmlr\");\n /*$properties[$socialnetowks[1]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n $properties[$socialnetowks[2]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n $properties[$socialnetowks[3]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n */\n // Twitter default values\n $default_properties[$socialnetworks[0]] = array(\"#ffffff\", \"#ffffff\", \"#002957\", \"#4099ff\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Instagram default values\n $default_properties[$socialnetworks[1]] = array(\"#ffffff\", \"#000000\", \"#ffffff\", \"#517fa4\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Facebook default values\n $default_properties[$socialnetworks[2]] = array(\"#ffffff\", \"#000000\", \"#ffffff\", \"#3B5998\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Storify default values\n $default_properties[$socialnetworks[3]] = array(\"#3a96db\", \"#3a96db\", \"#dfe5ea\", \"#a9bbcc\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n \n \n $db = JFactory::getDBO();\n\n foreach($socialnetworks as $socialnetwork)\n {\n $category_id = self::checkCategoryExists($socialnetwork);\n if($category_id)\n {\n $propertyIndex = 0;\n foreach($properties as $property)\n {\n $value = $default_properties[$socialnetwork][$propertyIndex++]; \n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \n {\n $sql = \"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\".$property.\"_\".$category_id.\"', '{$value}');\";\n $db->setQuery($sql);\n $db->execute();\n }\n }\n }\n }\n \n \n // Default properties for other categories\n $default_properties[\"other\"] = array(\"#000000\", \"#000000\", \"#002bff\", \"#ebebeb\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n \n // Other categories \n $sql = \"SELECT id FROM #__categories WHERE extension='com_content' AND title <> 'twitter' AND title <> 'facebook' AND title <> 'instagram' AND title <> 'storify'\";\n $db->setQuery($sql);\n $db->execute();\n $result = $db->loadObjectList();\n foreach($result as $category)\n { \n $category_id = $category->id; \n $propertyIndex = 0;\n foreach($properties as $property)\n {\n $value = $default_properties[\"other\"][$propertyIndex++]; \n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \n {\n $sql = \"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\".$property.\"_\".$category_id.\"', '{$value}');\";\n $db->setQuery($sql);\n $db->execute();\n }\n }\n }\n }", "private function getColors(): array\n {\n $colors = $this->website->getConfiguration()->getColors();\n $choices = [];\n foreach ($colors as $color) {\n if ($color->getCategory() === \"background\" && $color->getIsActive()) {\n $choices[$color->getAdminName()] = $color->getSlug();\n $this->colors[$color->getSlug()] = $color->getColor();\n }\n }\n return $choices;\n }", "function get_at_colors() {\n $scheme = theme_get_setting('color_schemes');\n if (!$scheme) {\n $scheme = 'colors-default.css';\n }\n if (isset($_COOKIE[\"atcolors\"])) {\n $scheme = $_COOKIE[\"atcolors\"];\n }\n return $scheme;\n}", "function expense_tracker_pie_chart()\n{\n\t\tif($this->RequestHandler->isAjax()){\n\t\t$this->layout='blank';\n\t\t}else{\n\t\t$this->layout='session';\n\t\t}\n\t$this->ath();\n\t$this->check_user_privilages();\t\n\t\n\t\t$s_role_id=$this->Session->read('role_id');\n\t\t$s_society_id = (int)$this->Session->read('society_id');\n\t\t$s_user_id=$this->Session->read('user_id');\t\n\n}", "public static function getPaletteCount($app): int\n {\n $mapper = $app['spot']->mapper('Entity\\Palette');\n $num = $mapper->all()->count();\n\n return $num;\n\n }", "public function getColors()\n\t{\n\t\treturn [\n\t\t\t'AliceBlue',\n\t\t\t'AntiqueWhite',\n\t\t\t'Aqua',\n\t\t\t'Aquamarine',\n\t\t\t'Azure',\n\t\t\t'Beige',\n\t\t\t'Bisque',\n\t\t\t'Black',\n\t\t\t'BlanchedAlmond',\n\t\t\t'Blue',\n\t\t\t'BlueViolet',\n\t\t\t'Brown',\n\t\t\t'BurlyWood',\n\t\t\t'CadetBlue',\n\t\t\t'Chartreuse',\n\t\t\t'Chocolate',\n\t\t\t'Coral',\n\t\t\t'CornflowerBlue',\n\t\t\t'Cornsilk',\n\t\t\t'Crimson',\n\t\t\t'Cyan',\n\t\t\t'DarkBlue',\n\t\t\t'DarkCyan',\n\t\t\t'DarkGoldenRod',\n\t\t\t'DarkGray',\n\t\t\t'DarkGreen',\n\t\t\t'DarkKhaki',\n\t\t\t'DarkMagenta',\n\t\t\t'DarkOliveGreen',\n\t\t\t'Darkorange',\n\t\t\t'DarkOrchid',\n\t\t\t'DarkRed',\n\t\t\t'DarkSalmon',\n\t\t\t'DarkSeaGreen',\n\t\t\t'DarkSlateBlue',\n\t\t\t'DarkSlateGray',\n\t\t\t'DarkTurquoise',\n\t\t\t'DarkViolet',\n\t\t\t'DeepPink',\n\t\t\t'DeepSkyBlue',\n\t\t\t'DimGray',\n\t\t\t'DodgerBlue',\n\t\t\t'FireBrick',\n\t\t\t'FloralWhite',\n\t\t\t'ForestGreen',\n\t\t\t'Fuchsia',\n\t\t\t'Gainsboro',\n\t\t\t'GhostWhite',\n\t\t\t'Gold',\n\t\t\t'GoldenRod',\n\t\t\t'Gray',\n\t\t\t'Green',\n\t\t\t'GreenYellow',\n\t\t\t'HoneyDew',\n\t\t\t'HotPink',\n\t\t\t'IndianRed',\n\t\t\t'Indigo',\n\t\t\t'Ivory',\n\t\t\t'Khaki',\n\t\t\t'Lavender',\n\t\t\t'LavenderBlush',\n\t\t\t'LawnGreen',\n\t\t\t'LemonChiffon',\n\t\t\t'LightBlue',\n\t\t\t'LightCoral',\n\t\t\t'LightCyan',\n\t\t\t'LightGoldenRodYellow',\n\t\t\t'LightGreen',\n\t\t\t'LightGrey',\n\t\t\t'LightPink',\n\t\t\t'LightSalmon',\n\t\t\t'LightSeaGreen',\n\t\t\t'LightSkyBlue',\n\t\t\t'LightSlateGray',\n\t\t\t'LightSteelBlue',\n\t\t\t'LightYellow',\n\t\t\t'Lime',\n\t\t\t'LimeGreen',\n\t\t\t'Linen',\n\t\t\t'Magenta',\n\t\t\t'Maroon',\n\t\t\t'MediumAquaMarine',\n\t\t\t'MediumBlue',\n\t\t\t'MediumOrchid',\n\t\t\t'MediumPurple',\n\t\t\t'MediumSeaGreen',\n\t\t\t'MediumSlateBlue',\n\t\t\t'MediumSpringGreen',\n\t\t\t'MediumTurquoise',\n\t\t\t'MediumVioletRed',\n\t\t\t'MidnightBlue',\n\t\t\t'MintCream',\n\t\t\t'MistyRose',\n\t\t\t'Moccasin',\n\t\t\t'NavajoWhite',\n\t\t\t'Navy',\n\t\t\t'OldLace',\n\t\t\t'Olive',\n\t\t\t'OliveDrab',\n\t\t\t'Orange',\n\t\t\t'OrangeRed',\n\t\t\t'Orchid',\n\t\t\t'PaleGoldenRod',\n\t\t\t'PaleGreen',\n\t\t\t'PaleTurquoise',\n\t\t\t'PaleVioletRed',\n\t\t\t'PapayaWhip',\n\t\t\t'PeachPuff',\n\t\t\t'Peru',\n\t\t\t'Pink',\n\t\t\t'Plum',\n\t\t\t'PowderBlue',\n\t\t\t'Purple',\n\t\t\t'Red',\n\t\t\t'RosyBrown',\n\t\t\t'RoyalBlue',\n\t\t\t'SaddleBrown',\n\t\t\t'Salmon',\n\t\t\t'SandyBrown',\n\t\t\t'SeaGreen',\n\t\t\t'SeaShell',\n\t\t\t'Sienna',\n\t\t\t'Silver',\n\t\t\t'SkyBlue',\n\t\t\t'SlateBlue',\n\t\t\t'SlateGray',\n\t\t\t'Snow',\n\t\t\t'SpringGreen',\n\t\t\t'SteelBlue',\n\t\t\t'Tan',\n\t\t\t'Teal',\n\t\t\t'Thistle',\n\t\t\t'Tomato',\n\t\t\t'Turquoise',\n\t\t\t'Violet',\n\t\t\t'Wheat',\n\t\t\t'White',\n\t\t\t'WhiteSmoke',\n\t\t\t'Yellow',\n\t\t\t'YellowGreen',\n\t\t];\n\t}", "function timezonecalculator_get_admin_colors() {\r\n\r\n\t/*\r\n\tdefault colors = fresh\r\n\t*/\r\n\r\n\t$available_admin_colors=array(\"fresh\" => array(\"#464646\", \"#6D6D6D\", \"#F1F1F1\", \"#DFDFDF\"), \"classic\" => array(\"#073447\", \"#21759B\", \"#EAF3FA\", \"#BBD8E7\") );\r\n\r\n\t$current_color = get_user_option('admin_color');\r\n\tif (strlen($current_color)<1)\r\n\t\t$current_color=\"fresh\";\r\n\r\n\t/*\r\n\tinclude user-defined color schemes\r\n\t*/\r\n\r\n\t$timezonecalculator_available_admin_colors = apply_filters('timezonecalculator_available_admin_colors', array());\r\n\r\n\tif (!empty($timezonecalculator_available_admin_colors) && is_array($timezonecalculator_available_admin_colors))\r\n\t\tforeach($timezonecalculator_available_admin_colors as $key => $available_admin_color)\r\n\t\t\tif (is_array($available_admin_color) && sizeof($available_admin_color)==4)\r\n\t\t\t\tif (!array_key_exists($key, $available_admin_colors))\r\n\t\t\t\t\t$available_admin_colors[$key]=$timezonecalculator_available_admin_colors[$key];\r\n\r\n\tif (!array_key_exists($current_color, $available_admin_colors))\r\n\t\treturn $available_admin_colors[\"fresh\"];\r\n\telse\r\n\t\treturn $available_admin_colors[$current_color];\r\n}", "function GetAllColors () {\n $colors = array (\"#00FFFF\",\"#000000\",\"#0000FF\",\"#8A2BE2\",\"#A52A2A\",\"#DEB887\",\"#5F9EA0\",\"#7FFF00\",\"#D2691E\",\"#FF7F50\",\"#6495ED\",\"#00FFFF\",\"#00008B\",\"#008B8B\",\"#B8860B\",\"#A9A9A9\",\"#006400\",\"#BDB76B\",\"#8B008B\",\"#556B2F\",\"#FF8C00\",\"#9932CC\",\"#8B0000\",\"#E9967A\",\"#8FBC8F\",\"#483D8B\",\"#2F4F4F\",\"#2F4F4F\",\"#00CED1\",\"#9400D3\",\"#FF1493\",\"#00BFFF\",\"#696969\",\"#696969\",\"#1E90FF\",\"#B22222\",\"#228B22\",\"#FF00FF\",\"#FFD700\",\"#DAA520\",\"#808080\",\"#808080\",\"#008000\",\"#ADFF2F\",\"#FF69B4\",\"#CD5C5C\",\"#4B0082\",\"#7CFC00\",\"#ADD8E6\",\"#F08080\",\"#E0FFFF\",\"#D3D3D3\",\"#90EE90\",\"#FFB6C1\",\"#FFA07A\",\"#20B2AA\",\"#87CEFA\",\"#778899\",\"#778899\",\"#B0C4DE\",\"#00FF00\",\"#32CD32\",\"#FF00FF\",\"#800000\",\"#66CDAA\",\"#0000CD\",\"#BA55D3\",\"#9370D8\",\"#3CB371\",\"#7B68EE\",\"#00FA9A\",\"#48D1CC\",\"#C71585\",\"#191970\",\"#FFE4E1\",\"#FFE4B5\",\"#000080\",\"#808000\",\"#6B8E23\",\"#FFA500\",\"#FF4500\",\"#DA70D6\",\"#EEE8AA\",\"#98FB98\",\"#AFEEEE\",\"#D87093\",\"#FFDAB9\",\"#CD853F\",\"#FFC0CB\",\"#DDA0DD\",\"#B0E0E6\",\"#800080\",\"#FF0000\",\"#BC8F8F\",\"#4169E1\",\"#8B4513\",\"#FA8072\",\"#F4A460\",\"#2E8B57\",\"#A0522D\",\"#C0C0C0\",\"#87CEEB\",\"#6A5ACD\",\"#708090\",\"#708090\",\"#00FF7F\",\"#4682B4\",\"#D2B48C\",\"#008080\",\"#D8BFD8\",\"#FF6347\",\"#40E0D0\",\"#EE82EE\",\"#F5DEB3\",\"#FFFFFF\",\"#F5F5F5\",\"#FFFF00\",\"#9ACD32\");\n return($colors);\n}", "private function getAxisColor() {\n\t\treturn $this->axisColor;\n\t}", "function get_RGB($i,$iMax,$palette){\n $r = 0 ;\n $g = 0 ;\n $b = 0 ;\n $i = $i/$iMax ;\n switch($palette){\n case 2: // Red \n $r = $i*255*1 ; $g = $i*255*0 ; $b = $i*255*0 ;\n break ;\n case 3: // Green \n $r = $i*255*0 ; $g = $i*255*1 ; $b = $i*255*0 ;\n break ;\n case 4: // Blue \n $r = $i*255*0 ; $g = $i*255*0 ; $b = $i*255*1 ;\n break ;\n case 5: // Cyan\n $r = $i*255*0 ; $g = $i*255*1 ; $b = $i*255*1 ;\n break ;\n case 6: // Magenta \n $r = $i*255*1 ; $g = $i*255*0 ; $b = $i*255*1 ;\n break ;\n case 7: // Yellow\n $r = $i*255*1 ; $g = $i*255*1 ; $b = $i*255*0 ;\n break ;\n case 12: // Hot red\n if ($i<1/2) { $r = $i*255*2 ; $g = $i*255*0 ; $b = $i*255*0 ; }\n else if($i<2/2) { $r = 255*1 ; $g = ($i-1/2)*255*2 ; $b = ($i-1/2)*255*2 ; }\n break ;\n case 13: // Hot green\n if ($i<1/2) { $r = $i*255*0 ; $g = $i*255*2 ; $b = $i*255*0 ; }\n else if($i<2/2) { $r = ($i-1/2)*255*2 ; $g = 255*1 ; $b = ($i-1/2)*255*2 ; }\n break ;\n case 14: // Hot blue\n if ($i<1/2) { $r = $i*255*0 ; $g = $i*255*0 ; $b = $i*255*2 ; }\n else if($i<2/2) { $r = ($i-1/2)*255*2 ; $g = ($i-1/2)*255*2 ; $b = 255*1 ; }\n break ;\n case 15: // Hot cyan\n if ($i<1/2) { $r = $i*255*0 ; $g = $i*255*2 ; $b = $i*255*2 ; }\n else if($i<2/2) { $r = ($i-1/2)*255*2 ; $g = 255*1 ; $b = 255*1 ; }\n break ;\n case 16: // Hot magenta\n if ($i<1/2) { $r = $i*255*2 ; $g = $i*255*0 ; $b = $i*255*2 ; }\n else if($i<2/2) { $r = 255*1 ; $g = ($i-1/2)*255*2 ; $b = 255*1 ; }\n break ;\n case 17: // Hot yellow\n if ($i<1/2) { $r = $i*255*2 ; $g = $i*255*2 ; $b = $i*255*0 ; }\n else if($i<2/2) { $r = 255*1 ; $g = 255*1 ; $b = ($i-1/2)*255*2 ; }\n break ;\n case 22: // Very hot red\n $r = 255*1 ; $g = $i*255*1 ; $b = $i*255*1 ;\n break ;\n case 23: // Very hot green\n $r = $i*255*1 ; $g = 255*1 ; $b = $i*255*1 ;\n break ;\n case 24: // Very hot blue\n $r = $i*255*1 ; $g = $i*255*1 ; $b = 255*1 ;\n break ;\n case 25: // Very hot cyan\n $r = $i*255*1 ; $g = 255*1 ; $b = 255*1 ;\n break ;\n case 26: // Very hot magenta\n $r = 255*1 ; $g = $i*255*1 ; $b = 255*1 ;\n break ;\n case 27: // Very hot yellow\n $r = 255*1 ; $g = 255*1 ; $b = $i*255*1 ;\n break ;\n case 8: // Grey\n $r = $i*255*1 ; $g = $i*255*1 ; $b = $i*255*1 ;\n break ;\n case 9: $r = $i*255*0 ; $g = 255*abs(sin($i*pi()*8)) ; $b = 255*abs(sin($i*pi()*8)) ; break ; // Wave\n case 10: $r = 255*abs(sin($i*pi()*3)) ; $g = $i*255*0 ; $b = $i*255*0 ; break ; // Pulse\n case 11: // Flame\n if ($i>=0/3 AND $i<1/3) { $r=(3*$i-0)*255 ; $g=(3*$i-0)*255 ; $b=(3*$i-0)*255 ; } // Black to white 0/0-1/3\n else if($i>=1/3 AND $i<2/3) { $r=255 ; $g=255 ; $b=(1-(3*$i-1))*255 ; } // White to Yellow 1/3-2/3\n else if($i>=2/3 AND $i<3/3) { $r=255 ; $g=(1-(3*$i-2))*255 ; $b=0 ; } // Yellow to red 2/3-3/3\n else { $r=0 ; $g=0 ; $b=0 ; } // Black\n break ;\n case 12: // Log\n $i = log(1+$i) ;\n $r = $i*255*0 ; $g = $i*255*1 ; $b = $i*255*0 ;\n break ;\n case 20: // Aqua\n $r = $i*255*0 ; $g = 255*1 ; $b = (1-$i)*255*1 ;\n break ;\n case 21: // Cheese and onion\n $r = $i*255*1 ; $g = 255*1 ; $b = 255*0 ;\n break ;\n case 102: // Red to blue\n if ($i>=0/2 AND $i<1/2) { $r=255 ; $g=(2*$i-0)*255 ; $b=(2*$i-0)*255 ; } // Red to white 0/0-1/2\n else { $r=(1-(2*$i-1))*255 ; $g=(1-(2*$i-1))*255 ; $b=255 ; } // White to Blue 1/2-2/2\n break ;\n case 103: // Fireworks\n $r=0 ; $g=0 ; $b=0 ;\n if($i>0.12 AND $i<0.13 ) { $r=205+10*abs($i-0.125) ; $g=0 ; $b=0 ; }\n if($i>0.245 AND $i<0.255) { $r=0 ; $g=205+10*abs($i-0.25) ; $b=0 ; }\n if($i>0.37 AND $i<0.38 ) { $r=0 ; $g=0 ; $b=205+10*abs($i-0.375) ; }\n if($i>0.495 AND $i<0.505) { $r=205+10*abs($i-0.5) ; $g=205+10*abs($i-0.5) ; $b=0 ; }\n if($i>0.62 AND $i<0.63 ) { $r=205+10*abs($i-0.625) ; $g=0 ; $b=205+10*abs($i-0.625) ; }\n if($i>0.745 AND $i<0.755) { $r=0 ; $g=205+10*abs($i-0.75) ; $b=205+10*abs($i-0.75) ; }\n if($i>0.87 AND $i<0.88 ) { $r=205+10*abs($i-0.875) ; $g=205+10*abs($i-0.875) ; $b=205+10*abs($i-0.875) ; }\n break ;\n case 104: // Roulette\n if ($i>=0/10 AND $i<1/10) { $r=0 ; $g=0 ; $b=0 ; }\n\telse if($i>=1/10 AND $i<2/10) { $r=255 ; $g=0 ; $b=0 ; }\n\telse if($i>=2/10 AND $i<3/10) { $r=0 ; $g=0 ; $b=0 ; }\n\telse if($i>=3/10 AND $i<4/10) { $r=255 ; $g=0 ; $b=0 ; }\n\telse if($i>=4/10 AND $i<5/10) { $r=0 ; $g=0 ; $b=0 ; }\n\telse if($i>=5/10 AND $i<6/10) { $r=255 ; $g=0 ; $b=0 ; }\n\telse if($i>=6/10 AND $i<7/10) { $r=0 ; $g=0 ; $b=0 ; }\n\telse if($i>=7/10 AND $i<8/10) { $r=255 ; $g=0 ; $b=0 ; }\n\telse if($i>=8/10 AND $i<9/10) { $r=0 ; $g=0 ; $b=0 ; }\n\telse if($i>=9/10 AND $i<10/10) { $r=255 ; $g=0 ; $b=0 ; }\n\telse { $r=0 ; $g=0 ; $b=0 ; }\n\tbreak ;\n case 105: // Contours\n $r=255 ; $g=255 ; $b=255 ;\n if($i>0.095 AND $i<0.105) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.195 AND $i<0.205) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.295 AND $i<0.305) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.395 AND $i<0.405) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.495 AND $i<0.505) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.595 AND $i<0.605) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.695 AND $i<0.705) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.795 AND $i<0.805) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.895 AND $i<0.905) { $r=0 ; $g=0 ; $b=0 ;}\n if($i>0.995 AND $i<1.005) { $r=0 ; $g=0 ; $b=0 ;}\n break ;\n default:\n if($palette>=1000){\n $r=0 ; $g=0 ; $b=0 ;\n if($iIn==$palette-1000) $r=255 ;\n break ;\n }\n if($palette==100){ // Low\n $i = pow($i,1/5) ;\n }\n if($palette==101){ // High\n $i = pow($i,5) ;\n }\n if ($i>=0/7 AND $i<1/7) { $r= (7*$i-0)*255 ; $g=0 ; $b=(7*$i-0)*255 ; } // Black to magenta 0/0-1/7\n else if($i>=1/7 AND $i<2/7) { $r=(1-(7*$i-1))*255 ; $g=0 ; $b=255 ; } // Magenta to blue 1/7-2/7\n else if($i>=2/7 AND $i<3/7) { $r=0 ; $g=(7*$i-2)*255 ; $b=255 ; } // Blue to cyan 2/7-3/7\n else if($i>=3/7 AND $i<4/7) { $r=0 ; $g=255 ; $b=(1-(7*$i-3))*255 ; } // Cyan to green 3/7-4/7\n else if($i>=4/7 AND $i<5/7) { $r=(7*$i-4)*255 ; $g=255 ; $b=0 ; } // Green to yellow 4/7-5/7\n else if($i>=5/7 AND $i<6/7) { $r=255 ; $g=(1-(7*$i-5))*255 ; $b=0 ; } // Yellow to red 5/7-6/7\n else if($i>=6/7 AND $i<7/7) { $r=255 ; $g=(7*$i-6)*255 ; $b=(7*$i-6)*255 ; } // Red to white 6/7-7/7\n else{\n if($palette==1){ $r=255 ; $g=255 ; $b=255 ; } // Pure as driven snow\n else { $r=0 ; $g=0 ; $b=0 ; } // Black, like my soul\n }\n }\n $rgb[0] = floor($r) ;\n $rgb[1] = floor($g) ;\n $rgb[2] = floor($b) ;\n return $rgb ;\n}", "private function getGraphColor() {\n\t\treturn $this->graphColor;\n\t}", "public function get_variables_for_css() {\n\t\t$data = '';\n\n\t\tif ( ! empty( $this->skin_palettes_config ) && is_array( $this->skin_palettes_config ) ) {\n\t\t\t$palette = $this->skin_palettes_config ['palette'];\n\n\t\t\tforeach ( $palette as $variable ) {\n\n\t\t\t\t$color_name = static::SKIN_COLOR_VARIABLE_PREFIX . $variable['id'];\n\n\t\t\t\tif ( ! empty( $variable['hsla_code'] ) && ! empty( $variable['hsla_vars'] ) && is_array( $variable['hsla_vars'] ) ) {\n\t\t\t\t\t$data .= $color_name . ':' . $variable['hsla_code'] . ';';\n\n\t\t\t\t\tforeach ( $variable['hsla_vars'] as $var => $css_variable ) {\n\t\t\t\t\t\t$data .= $color_name . '-' . $var . ':' . $css_variable . ';';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$data .= $color_name . ':' . $variable['color'] . ';';\n\n\t\t\t\t\tif ( function_exists( 'tve_rgb2hsl' ) && function_exists( 'tve_print_color_hsl' ) ) {\n\t\t\t\t\t\t$data .= tve_print_color_hsl( $color_name, tve_rgb2hsl( $variable['color'] ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( function_exists( 'tve_prepare_master_variable' ) ) {\n\t\t\t$palettes = $this->get_smart_lp_palettes_v2();\n\t\t\t$active_id = (int) $palettes['active_id'];\n\t\t\t$master_variable = $palettes['palettes'][ $active_id ]['modified_hsl'];\n\t\t\t$general_master_variable = tve_prepare_master_variable( array( 'hsl' => $master_variable ) );\n\t\t\t$theme_master_variable = str_replace( '--tcb-main-master', '--tcb-theme-main-master', $general_master_variable );\n\n\t\t\t$data .= $general_master_variable;\n\t\t\t$data .= $theme_master_variable;\n\t\t}\n\n\t\treturn $data;\n\t}", "public function changeEditorColorPalette(): void\n\t{\n\t\t// Unable to use state due to this method is used in JS and store is not registered there.\n\t\t$colors = $this->getSettingsManifest()['globalVariables']['colors'] ?? [];\n\n\t\tif ($colors) {\n\t\t\t\\add_theme_support('editor-color-palette', $colors);\n\t\t}\n\t}", "protected function getCouponColor()\n {\n return Mage::getStoreConfig(\n Dotdigitalgroup_Email_Helper_Config::XML_PATH_CONNECTOR_DYNAMIC_COUPON_COLOR\n );\n }", "public function getLookAndFeelSettingsDefaultData()\n {\n $settings = array(\n 'image_url' => Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'vss_spinandwin' . DS . 'front_image.png',\n 'try_luck_color' => '00c74c',\n 'try_luck_text_color' => 'ffffff',\n 'feel_lucky_text_color' => 'fffbf8',\n 'continue_color' => 'd6042e',\n 'next_time_color' => 'ff8400',\n 'background_color' => '007aa7',\n 'text_color' => 'ffffff',\n 'wheel_color' => '4497bb',\n 'wheel_text_color' => 'ffffff',\n 'theme' => 0,\n 'wheel_design' => 1\n );\n return $settings;\n }", "public function getFigured()\n\t{\n\t\tif(!Storage::has('json/wristband/colors/figured.json')) {\n\t\t\t// generate and save .json file.\n\t\t\tStorage::put('json/wristband/colors/figured.json', json_encode($this->figured()));\n\t\t}\n\t\t// return data from .json file.\n\t\treturn json_decode(Storage::get('json/wristband/colors/figured.json'), true);\n\t}", "public function colors()\n {\n $section = self::$panel . '_colors';\n\n /**\n * Add Section and fields for Colors\n */\n Customizer::addSection($section, array(\n 'title' => esc_html__('Colors', 'stage'),\n 'description' => esc_html__('Set color settings for your website', 'stage'),\n 'priority' => 60,\n 'panel' => self::$panel,\n ));\n\n // Fields are calculated from ColorsPanel.php\n }", "public function get_color_scheme() {\r\n\r\n return \tarray(\r\n 'epsilon_general_separator' => array(\r\n 'label' => esc_html__( 'Accent Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_accent_color' => array(\r\n 'label' => esc_html__( 'Accent Color #1', 'unapp' ),\r\n 'description' => esc_html__( 'Theme main color.', 'unapp' ),\r\n 'default' => '#798eea',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_accent_color_second' => array(\r\n 'label' => esc_html__( 'Accent Color #2', 'unapp' ),\r\n 'description' => esc_html__( 'The second main color.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n 'epsilon_accent_color_third' => array(\r\n 'label' => esc_html__( 'Accent Color #3', 'unapp' ),\r\n 'description' => esc_html__( 'The third main color.', 'unapp' ),\r\n 'default' => '#499bea',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_text_separator' => array(\r\n 'label' => esc_html__( 'Typography Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_title_color' => array(\r\n 'label' => esc_html__( 'Title Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for titles.', 'unapp' ),\r\n 'default' => '#303133',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_text_color' => array(\r\n 'label' => esc_html__( 'Text Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for paragraphs.', 'unapp' ),\r\n 'default' => '#808080',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_link_color' => array(\r\n 'label' => esc_html__( 'Link Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for links.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_link_hover_color' => array(\r\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for hovered links.', 'unapp' ),\r\n 'default' => '#5ed092',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_separator' => array(\r\n 'label' => esc_html__( 'Navigation Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n \r\n\r\n 'epsilon_menu_item_color' => array(\r\n 'label' => esc_html__( 'Menu item color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_item_hover_color' => array(\r\n 'label' => esc_html__( 'Menu item hover color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_item_active_color' => array(\r\n 'label' => esc_html__( 'Menu item active color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_background' => array(\r\n 'label' => esc_html__( 'Dropdown background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu background.', 'unapp' ),\r\n 'default' => '#000000',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\r\n 'default' => '#999999',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_hover_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item hover color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_active_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item active color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_separator' => array(\r\n 'label' => esc_html__( 'Footer Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_footer_contact_background' => array(\r\n 'label' => esc_html__( 'Footer Widget Background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer widget background.', 'unapp' ),\r\n 'default' => '#303133',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_background' => array(\r\n 'label' => esc_html__( 'Footer Copyright Background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer copyright background.', 'unapp' ),\r\n 'default' => '#262626',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_title_color' => array(\r\n 'label' => esc_html__( 'Footer Title Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer widget title.', 'unapp' ),\r\n 'default' => '#e6e6e6',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_text_color' => array(\r\n 'label' => esc_html__( 'Text Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer text.', 'unapp' ),\r\n 'default' => '#808080',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_link_color' => array(\r\n 'label' => esc_html__( 'Link Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer link.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_link_hover_color' => array(\r\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer link hover.', 'unapp' ),\r\n 'default' => '#5ed092',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n );\r\n\t}", "public static function summaryChartColouring()\n {\n return [ '#f1592c', '#f3724c', '#f58b6c', '#f7a48c' ];\n }", "private function getColor() {\n $randomNumber = rand(0, 7);\n $colors = array(0 => 'green',\n 1 => 'orange',\n 2 => 'blue', \n 3 => 'orange',\n 4 => 'yellow',\n 5 => 'purple',\n 6 => 'red',\n 7 => 'cyan');\n //$this->changeColor($colors[$randomNumber]);\n return $colors[$randomNumber]; \n \n }", "function getColor(){\n\t\treturn $this->color_ficha;\n\t}", "function tc_get_skin_color() {\r\n $_skin_map = TC_init::$instance -> skin_color_map;\r\n $_active_skin = str_replace('.min.', '.', basename( TC_init::$instance -> tc_active_skin() ) );\r\n //falls back to blue ( default #08c ) if not defined\r\n return ( false != $_active_skin && isset($_skin_map[$_active_skin]) ) ? $_skin_map[$_active_skin] : '#08c';\r\n }", "public static function getColors()\n {\n $db = DataBase::connect();\n\n $result = $db->query('SELECT * FROM `color`');\n\n $colors = [];\n\n $i = 1;\n\n while($row = $result->fetch()) {\n $colors[$i]['color'] = $row['color'];\n $colors[$i]['ukr_title'] = $row['ukr_title'];\n $colors[$i]['upper_ukr_title'] = $row['upper_ukr_title'];\n $colors[$i]['default'] = $row['default'];\n\n $i++;\n }\n return $colors;\n }", "public function color()\n {\n $color = $this->customer->color;\n\n $r = substr($color, 1, 2);\n $g = substr($color, 3, 2);\n $b = substr($color, 5, 2);\n $luma = (float)0.2126 * hexdec($r)\n + 0.7152 * hexdec($g)\n + 0.0722 * hexdec($b);\n\n return ['color' => $this->customer->color, 'luma' => $luma];\n }", "public static function plantuml_colour_scheme(): array\n\t{\n\t\treturn [\n\t\t\t'background' => 'FireBrick',\n\t\t\t'border' => 'DarkRed',\n\t\t\t'text' => 'White',\n\t\t];\n\t}", "protected function getChartIndexColor( $index ){\n\n\t\t$chartColors = array(\n\t\t\tarray( 248 , 139 , 0 ),\n\t\t\tarray( 0 , 0 , 248 ),\n\t\t\tarray( 248 , 0 , 248 ),\n\t\t\tarray( 248 , 0 , 0 ),\n\t\t\tarray( 248 , 248 , 0 ),\n\t\t\tarray( 0 , 248 , 0 ),\n\t\t\tarray( 0 , 248 , 248 ),\n\t\t\tarray( 123 , 248 , 0 ),\n\t\t\tarray( 135 , 0 , 72 ),\n\t\t\tarray( 102 , 135 , 0 )\n\t\t);\n\n\t\t$colorCount = count( $chartColors ) ;\n\t\t$colorIndex = ( $index + $colorCount ) % $colorCount ;\n\n\t\treturn ( $chartColors[ $colorIndex ] );\n\n\t}", "public function getFavColour();", "protected function get_config()\n {\n \n if( !isset($this->_config) ){\n $this->_config = array(\n 'color-base' => array(\n 'less_var' => true,\n 'setting' => array(\n 'default' => '#147BB8'\n ),\n 'control' => array(\n 'type' => 'WP_Customize_Color_Control',\n 'args' => array(\n 'label' => 'Theme Base',\n 'section' => 'colors'\n )\n )\n )\n );\n }\n return $this->_config;\n }", "public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public function generatePictureBar() \n {\n $values = $this->data;\n\n // Get the total number of columns we are going to plot\n $columns = count($values);\n\n // Get the height and width of the diagram itself\n $width = round($this->w*0.7);\n $height = round($this->h*0.7);\n\n $padding = 0;\n $padding_h = round(($this->w - $width) / 2);\n $padding_v = round(($this->h - $height) / 2); \n\n // Get the width of 1 column\n $column_width = round ($width / $columns) ;\n\n\n // Fill in the background of the image\n imagefilledrectangle($this->im,0,0,$this->w,$this->h,$this->white);\n\n $maxv = 0;\n\n // Calculate the maximum value we are going to plot\n\n foreach($values as $key => $value) \n {\n $maxv = max($value,$maxv); \n }\n \n $this->drawAxesLabels($width, $height, $column_width, $padding_h,$padding_v, $maxv);\n\n //diagram itself\n $i = 0;\n foreach ($values as $key => $value)\n {\n $column_height = ($height / 100) * (( $value / $maxv) *100);\n\n $x1 = $i*$column_width + $padding_h;\n $y1 = $height-$column_height + $padding_v;\n $x2 = (($i+1)*$column_width)-$padding + $padding_h;\n $y2 = $height + $padding_v;\n\n imagefilledrectangle($this->im,$x1,$y1,$x2,$y2,$this->color_helper->img_colorallocate($this->im, $this->color_helper->nextColor()));\n\n $i++;\n }\n\n return $this->im;\n }", "function generateHistoryChart($result,$graph_type,$graph_file_name,$gateway,$chart_path)\r\n\t{\r\n \r\n\t\tif ($graph_type==\"pie_chart\") {\r\n\t\t\r\n\t\t$f_name = split(\"\\,\", $graph_file_name);\r\n\t\t$file_name_len = count($f_name);\r\n\t\t\r\n\t\t$file_name=\"\";\r\n\t\tfor ($i=0;$i<$file_name_len;$i++) {\r\n\t\t if ($file_name==\"\")\r\n\t\t\t\t$file_name= $f_name[$i];\r\n\t\t\telse\r\n\t\t\t\t$file_name= $file_name.\"_\".$f_name[$i];\r\n\t\t}\r\n\t\t\r\n\t\t$_SESSION[\"file_name\"] = $_SERVER[\"PHP_AUTH_USER\"].\"_\".$file_name.\"_history\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t$image_name= $_SESSION[\"file_name\"].\".png\";\r\n\r\n\t\t$DataSet = new pData; \r\n\t\t\r\n\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t \t\t \r\n\r\n\t\t\t\t \t$DataSet->AddPoint($row[\"total_login\"],\"Serie1\"); \r\n\t\t\t\t \tif ($gateway!=\"\") {\r\n\t\t\t\t \t\t$_SESSION[\"historyBased\"] = \"per_month\";\r\n\t\t\t\t\t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t$yr \t\t\t= \t date('Y', strtotime($row[\"login\"]));\r\n\t\t\t\t\t\t$DataSet->AddPoint(\"$mon-$yr\",\"Serie2\"); \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t$_SESSION[\"historyBased\"] = \"per_gw\";\r\n\t\t\t\t\t$DataSet->AddPoint($row[\"gw_name\"],\"Serie2\"); \r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\r\n\t\t\r\n\r\n \t\t$DataSet->AddAllSeries(); \r\n\t\t$DataSet->SetAbsciseLabelSerie(\"Serie2\"); \r\n \r\n\t\t // Initialise the graph\r\n\t\t $Test = new pChart(740,520); \r\n\t\t $Test->drawFilledRoundedRectangle(7,7,673,513,5,240,240,240); \r\n\t\t $Test->drawRoundedRectangle(5,5,575,515,5,230,230,230); \r\n \r\n\t\t // Draw the pie chart \r\n\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t$Test->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),150,90,110,PIE_PERCENTAGE,TRUE,50,20,5); \r\n\t\t$Test->drawPieLegend(410,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250); \r\n \r\n\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t}\r\n\t\telse {\r\n\t\t$f_name = split(\"\\,\", $graph_file_name);\r\n\t\t//echo $graph_file_name;\r\n\t\t$file_name_len = count($f_name);\r\n\t\t//echo $file_name_len;\r\n\t\t$file_name=\"\";\r\n\t\tfor ($i=0;$i<$file_name_len;$i++) {\r\n\t\t if ($file_name==\"\")\r\n\t\t\t\t$file_name= $f_name[$i];\r\n\t\t\telse\r\n\t\t\t\t$file_name= $file_name.\"_\".$f_name[$i];\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t//echo $file_name;\r\n\t\t\t\t$_SESSION[\"file_name\"] = $_SERVER[\"PHP_AUTH_USER\"].\"_\".$file_name.\"_history_bar\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t$image_name= $_SESSION[\"file_name\"].\".png\";\r\n\t\t//echo $image_name;\r\n\t\t//echo $gateway;\r\n\t\t\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t $DataSet->AddPoint($row[\"total_login\"],\"Serie.$j\"); \r\n\t\t\t \t\t \tif ($gateway!=\"\") {\r\n\t\t\t \t\t \t$_SESSION[\"historyBased\"] = \"per_month\";\r\n\t\t\t\t\t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t$yr \t\t\t= \t date('Y', strtotime($row[\"login\"]));\r\n\t\t\t\t\t\t$DataSet->SetSerieName(\"$mon-$yr\",\"Serie.$j\"); \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t$_SESSION[\"historyBased\"] = \"per_gw\";\r\n\r\n\t\t\t\t\t $DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t }\r\n\t\t\t\t\t $j++;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \t\r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"Load Graph \",50,50,50,430); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\r\n\t\t}\r\n\t \r\n}", "function getColor(): string\n{\n $arrColors = [\n 'AliceBlue',\n 'AntiqueWhite',\n 'Aqua',\n 'Aquamarine',\n 'Azure',\n 'Beige',\n 'Bisque',\n 'Black',\n 'BlanchedAlmond',\n 'Blue',\n 'BlueViolet',\n 'Brown',\n 'BurlyWood',\n 'CadetBlue',\n 'Chartreuse',\n 'Chocolate',\n 'Coral',\n 'CornflowerBlue',\n 'Cornsilk',\n 'Crimson',\n 'Cyan',\n 'DarkBlue',\n 'DarkCyan',\n 'DarkGoldenRod',\n 'DarkGray',\n 'DarkGrey',\n 'DarkGreen',\n 'DarkKhaki',\n 'DarkMagenta',\n 'DarkOliveGreen',\n 'Darkorange',\n 'DarkOrchid',\n 'DarkRed',\n 'DarkSalmon',\n 'DarkSeaGreen',\n 'DarkSlateBlue',\n 'DarkSlateGray',\n 'DarkSlateGrey',\n 'DarkTurquoise',\n 'DarkViolet',\n 'DeepPink',\n 'DeepSkyBlue',\n 'DimGray',\n 'DimGrey',\n 'DodgerBlue',\n 'FireBrick',\n 'FloralWhite',\n 'ForestGreen',\n 'Fuchsia',\n 'Gainsboro',\n 'GhostWhite',\n 'Gold',\n 'GoldenRod',\n 'Gray',\n 'Grey',\n 'Green',\n 'GreenYellow',\n 'HoneyDew',\n 'HotPink',\n 'IndianRed',\n 'Indigo',\n 'Ivory',\n 'Khaki',\n 'Lavender',\n 'LavenderBlush',\n 'LawnGreen',\n 'LemonChiffon',\n 'LightBlue',\n 'LightCoral',\n 'LightCyan',\n 'LightGoldenRodYellow',\n 'LightGray',\n 'LightGrey',\n 'LightGreen',\n 'LightPink',\n 'LightSalmon',\n 'LightSeaGreen',\n 'LightSkyBlue',\n 'LightSlateGray',\n 'LightSlateGrey',\n 'LightSteelBlue',\n 'LightYellow',\n 'Lime',\n 'LimeGreen',\n 'Linen',\n 'Magenta',\n 'Maroon',\n 'MediumAquaMarine',\n 'MediumBlue',\n 'MediumOrchid',\n 'MediumPurple',\n 'MediumSeaGreen',\n 'MediumSlateBlue',\n 'MediumSpringGreen',\n 'MediumTurquoise',\n 'MediumVioletRed',\n 'MidnightBlue',\n 'MintCream',\n 'MistyRose',\n 'Moccasin',\n 'NavajoWhite',\n 'Navy',\n 'OldLace',\n 'Olive',\n 'OliveDrab',\n 'Orange',\n 'OrangeRed',\n 'Orchid',\n 'PaleGoldenRod',\n 'PaleGreen',\n 'PaleTurquoise',\n 'PaleVioletRed',\n 'PapayaWhip',\n 'PeachPuff',\n 'Peru',\n 'Pink',\n 'Plum',\n 'PowderBlue',\n 'Purple',\n 'Red',\n 'RosyBrown',\n 'RoyalBlue',\n 'SaddleBrown',\n 'Salmon',\n 'SandyBrown',\n 'SeaGreen',\n 'SeaShell',\n 'Sienna',\n 'Silver',\n 'SkyBlue',\n 'SlateBlue',\n 'SlateGray',\n 'SlateGrey',\n 'Snow',\n 'SpringGreen',\n 'SteelBlue',\n 'Tan',\n 'Teal',\n 'Thistle',\n 'Tomato',\n 'Turquoise',\n 'Violet',\n 'Wheat',\n 'White',\n 'WhiteSmoke',\n 'Yellow',\n 'YellowGreen'\n ];\n\n return array_rand(array_flip($arrColors));\n}", "function echoColors($pallet)\n{ // OUTPUT COLORSBAR\n foreach ($pallet as $key => $val) {\n echo '<div style=\"display:inline-block;width:50px;height:20px;background:#' . $val . '\"> </div>';\n }\n}", "public function getAppearanceCanvas() {}", "function lalita_enqueue_color_palettes() {\n\t\t// Old versions of WP don't get nice things\n\t\tif ( ! function_exists( 'wp_add_inline_script' ) )\n\t\t\treturn;\n\n\t\t// Grab our palette array and turn it into JS\n\t\t$palettes = json_encode( lalita_get_default_color_palettes() );\n\n\t\t// Add our custom palettes\n\t\t// json_encode takes care of escaping\n\t\twp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $palettes . ';' );\n\t}", "public function getStyle() {\n // have to handle it here if set, so we can show apps in dark mode.\n $darkmode = '';\n if ($this->getRequest()->getSession()->get('darkmode') === 'true') {\n statsd_bump('dagd_dark_mode_active');\n }\n\n return array(\n $darkmode,\n );\n }", "public function modifyPalette()\n\t{\n\t\tif (version_compare(VERSION . '.' . BUILD, '2.11.0', '<'))\n\t\t\t{\n\t\t\t\t$GLOBALS['TL_DCA']['tl_module']['fields']['newslist_comments_avatarSize'] = array\n\t\t\t\t(\n\t\t\t\t\t'label' => &$GLOBALS['TL_LANG']['tl_content']['size'],\n\t\t\t\t\t'exclude' => false,\n\t\t\t\t\t'inputType' => 'imageSize',\n\t\t\t\t\t'options' => array('crop', 'proportional', 'box'),\n\t\t\t\t\t'reference' => &$GLOBALS['TL_LANG']['MSC'],\n\t\t\t\t\t'eval' => array('rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50')\n\t\t\t\t);\n\t\t}\n\t}", "function get_account_color($acc_number)\n\t{\n\t return $this->db->select('color')\n\t\t ->from('pamm_accounts') \n\t\t ->where(\"login\",$acc_number)\n\t\t ->get()->result();\n\t}", "function get_peepso_color_template() {\n $color = \"\";\n\n if (class_exists( 'PeepSo' )) {\n $color = PeepSo::get_option('site_css_template','');\n }\n\n return $color;\n}", "function generateDetailChart($chartType,$result,$criteria,$chart_path)\r\n\t{\r\n \r\n\tif ($chartType==\"gw_load\") {\r\n\t\t\t\t\r\n\t\t\t\t$_SESSION[\"gw_criteria\"] = $criteria;\r\n\t\t\t\t$_SESSION[\"gwLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"gw_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name =$_SERVER[\"PHP_AUTH_USER\"]. \"gw_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$gw_id = $_SESSION[\"gw_id\"];\r\n\t\t\t\t$title = \"Gateway Load (\".$gw_id.\")\";\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t//\tmysql_data_seek($result ,0);\r\n\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[\"login\"]));\r\n\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t \t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \t\t\t\r\n\r\n }\r\n\t \t \r\n/***************************************************************Generate Service Load Graph *********************************************************************************/\r\n\r\n\t\tif ($chartType==\"service_load\") {\r\n\t\t\r\n\t\t\t $_SESSION[\"sv_criteria\"] = $criteria;\r\n\t\t\t\t\r\n\t\t \t\t$_SESSION[\"svLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"sv_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"sv_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$sv_id = $_SESSION[\"sv_id\"];\r\n\t\t\t\t$title = \"Service Load (\".$sv_id.\")\";\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t\t\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t if ($groupby ==\"ByMonth\") {\r\n\t\t\t\t\t\t $mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t \t \r\n/********************************************************************Generate Top Ten users Graph *************************************************************************/\r\n \r\n\t\tif ($chartType==\"top_ten_users\") {\r\n\t\t\r\n\t\t\t $_SESSION[\"tt_users_criteria\"] = $criteria;\r\n\r\n\t\t\t$_SESSION[\"userLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"user_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"user_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$user_id = $_SESSION[\"user_id\"];\r\n\t\t\t\t$title = \"User Load (\".$user_id.\")\";\r\n\t\t\t\t\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t if ($groupby ==\"ByMonth\") {\r\n\t\t\t\t\t\t $mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t \t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \t\t\t\r\n\t\t\t}\r\n\r\n/**************************************************************Generate Direction Load Graph *******************************************************************************/\r\n\r\n\t\tif ($chartType==\"direction_load\") {\r\n\t\t \r\n\t\t \t$_SESSION[\"direction_criteria\"] = $criteria;\r\n\r\n\t\t\t $_SESSION[\"dirLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"direction_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"direction_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$dir_id = $_SESSION[\"dir_id\"];\r\n\t\t\t\t$title = \"Direction Load (\".$dir_id.\")\";\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t \t\t \t\tif ($groupby==\"ByMonth\") {\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \t$mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\r\n/*********************************************************************Generate Destination host Load Graph *****************************************************************/\r\n\r\n\t\t\tif ($chartType==\"destination_host_load\") {\r\n\t\t\t\r\n\t\t\t\t$_SESSION[\"destination_host_criteria\"] = $criteria;\r\n\r\n\t\t\t \t$_SESSION[\"destLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"destination_host_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"destination_host_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$dest_id = $_SESSION[\"dest_id\"];\r\n\t\t\t\t$title = \"Destination Host Load (\".$dest_id.\")\";\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t\r\n\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\tif ($groupby==\"ByMonth\") {\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \t$mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t}", "final private function setColors()\n {\n\n $systemColorFile = new PhingFile(Phing::getResourcePath(\"phing/listener/defaults.properties\"));\n\n try {\n $prop = new Properties();\n\n $prop->load($systemColorFile);\n\n $err = $prop->getProperty(\"HtmlColorLogger.ERROR_CLASS\");\n $warn = $prop->getProperty(\"HtmlColorLogger.WARNING_CLASS\");\n $info = $prop->getProperty(\"HtmlColorLogger.INFO_CLASS\");\n $verbose = $prop->getProperty(\"HtmlColorLogger.VERBOSE_CLASS\");\n $debug = $prop->getProperty(\"HtmlColorLogger.DEBUG_CLASS\");\n if ($err !== null) {\n $this->errColor = self::PREFIX . $err . self::SUFFIX;\n }\n if ($warn !== null) {\n $this->warnColor = self::PREFIX . $warn . self::SUFFIX;\n }\n if ($info !== null) {\n $this->infoColor = self::PREFIX . $info . self::SUFFIX;\n }\n if ($verbose !== null) {\n $this->verboseColor = self::PREFIX . $verbose . self::SUFFIX;\n }\n if ($debug !== null) {\n $this->debugColor = self::PREFIX . $debug . self::SUFFIX;\n }\n } catch (IOException $ioe) {\n //Ignore exception - we will use the defaults.\n }\n }", "function colorList() {\n $colorArr = (new \\yii\\db\\Query())\n ->select(['color'])\n ->from('product_variation')\n ->where(['!=', 'color', ''])\n ->groupBy(['color'])\n ->all();\n return $colorArr;\n }", "public function actionChart()\n {\n $data = Account::find()->where('id_user='.Yii::$app->user->id)->all();\n $accounts = ArrayHelper::map($data, 'id', 'title');\n\n $operationsByAccount = [];\n foreach($accounts as $id_account=>$title){\n $operations = OperationController::findOperationsOfAccount($id_account);\n $operationsByAccount[$title] = $this->splitValueByMonths($operations);\n }\n\n $chart = new Chart($operationsByAccount);\n $data = $chart->data;\n\n return $this->render('chart', [\n 'data' => $data,\n ]);\n }", "public function getColorSpace() {}", "public function getColorSpace() {}", "public function getColor();", "public function getColor();", "public function getColor();", "public function getColor();", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColor() {}", "public function getColor() {}", "function get_ColorLovers_Palette($hex, $route, $num) {\n //update to request and process more plalettes to make sure we always returns palattes of 5-colors.\n $client = new GuzzleHttp\\Client();\n\n $url = \"http://www.colourlovers.com/api/palettes/top?hex=\".urlencode($hex).\"&format=json&sortBy=asc&numResults=\".urlencode($num);\n $headers = array('ACCEPT' => 'application/json');\n\n $response = $client->get($url);\n $data = $response->json();\n\n\n $all_palettes = array();\n array_push($all_palettes, array(\"resource_location\"=>$route));\n foreach ($data as $color) {\n if (count($color['colors']) == 5) {\n $palette = array(\n \"palette\"=>$color['colors'],\n \"source_url\"=>$color['url'],\n \"source_api_url\"=>$color['apiUrl'],\n );\n array_push($all_palettes, $palette);\n }\n }\n return $all_palettes;\n $hex = null;\n \n}", "public function getAvailableLayoutColors()\n {\n $module = \\XLite\\Core\\Database::getRepo('XLite\\Model\\Module')->getCurrentSkinModule();\n\n return $module\n ? $module->callModuleMethod('getLayoutColors', array())\n : array();\n }", "public function charts()\n\t{\n\t\t//\n\t\t$loggeduser=\\App::make('authenticator')->getLoggedUser();\n\t\t\n\t\t//var_dump($userinfo);\n\t\t//var_dump($userprofile->first_name);\n\t\t if($loggeduser)\n\t\t\t{\n\t\t\t\t$userinfo=\\App::make('authenticator')->getUserById($loggeduser->id);\n\t\t$userprofile=UserProfile::find($loggeduser->id);\n\t\treturn \\View::make('backend.charts')->with('user',$userprofile);\n\t\t\t}\n\t\t\telse{\n\t\t \t$logged='not login';\n\t\t \treturn \\View::make('users.login');\n\t\t}\n\t}", "public function getColors()\n {\n return $this->colors;\n }", "public function get_customizer_color_vars() {\n\n\t\t$colors = [\n\t\t\t'content' => [\n\t\t\t\t'setting' => 'background_color',\n\t\t\t],\n\t\t\t'header-footer' => [\n\t\t\t\t'setting' => 'header_footer_background_color',\n\t\t\t],\n\t\t];\n\t\treturn $colors;\n\t}", "function colorMap(): array\n{\n return [\n 'black' => 'white',\n 'red' => 'white',\n 'green' => 'black',\n 'yellow' => 'black',\n 'blue' => 'white',\n 'magenta' => 'white',\n 'cyan' => 'black',\n 'white' => 'black',\n 'default' => 'white',\n ];\n}", "function pieGen($stats, $mode) {\n\t\n\tglobal $centreon_path;\n\t// Create and populate the pData object \n\t $MyData = new pData(); \n\t \n\t// print_r($stats[\"average\"]);\n\t\n\t$arrPoints = array();\n\t$i=0;\n\t// Host groups\n\tif ($mode == \"hgs\" ) { \n\t \n\t $MyData->addPoints(array($stats[\"average\"][\"UP_TP\"],\n\t\t\t\t $stats[\"average\"][\"DOWN_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNDETERMINED_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNREACHABLE_TP\"],\n\t\t\t\t $stats[\"average\"][\"MAINTENANCE_TP\"]),\n\t\t\t\t\"Hostgroups\"); \n\t $MyData->setSerieDescription(\"Hostgroups\",\"Hostgroups\");\n\t\n\n\t$arrPoints = array(\"Up\",\n\t\t\t\t \"Down\",\n\t\t\t\t \"Undeterminded\",\n\t\t\t\t \"Unreachable\",\n\t\t\t\t \"Schedule Downtime\");\t\t\n\n\t// Define the absissa serie \n\t $MyData->addPoints($arrPoints,\t\"Labels\");\n\t $MyData->setAbscissa(\"Labels\");\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t // Create the pChart object \n\t $myPicture = new pImage(120,120,$MyData,TRUE);\t\t\t\t \n\t // Create the pPie object \n\t $PieChart = new pPie($myPicture,$MyData);\t\t\t \n\t\t\t\t \n\t$i = 0;\n\t/* Define the slice color */ \n\tif ($stats[\"average\"][\"UP_TP\"] > 0 ) { \n\t\t$PieChart->setSliceColor($i,array(\"R\"=>25,\"G\"=>238,\"B\"=>17)); // UP\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"DOWN_TP\"] > 0 ) {\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>249,\"G\"=>30,\"B\"=>5)); // DOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNDETERMINED_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>248,\"B\"=>255));// UNDETERMINED\n\t\t//$PieChart->setSliceColor($i,array(\"R\"=>240,\"G\"=>240,\"B\"=>240)); \n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNREACHABLE_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>130,\"G\"=>207,\"B\"=>216)); // UNREACHABLE\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"MAINTENANCE_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>153,\"B\"=>255));\t// MAINTENANCE\n\t\t$i++;\n\t\t}\n\t \n\t}\n\n\t// Service Groups\n\tif ($mode == \"sgs\" ) { \n\t \n\t $MyData->addPoints(array($stats[\"average\"][\"OK_TP\"],\n\t\t\t\t $stats[\"average\"][\"WARNING_TP\"],\n\t\t\t\t $stats[\"average\"][\"CRITICAL_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNKNOWN_TP\"],\n\t\t\t\t $stats[\"average\"][\"MAINTENANCE_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNDETERMINED_TP\"]),\n\t\t\t\t\"Servicegroups\"); \n\t $MyData->setSerieDescription(\"Servicegroups\",\"Servicegroups\");\n\t\n\n\t$arrPoints = array(\"Ok\",\n\t\t\t\t \"Warning\",\n\t\t\t\t \"Critical\",\n\t\t\t\t \"Unknown\",\n\t\t\t\t \"Schedule Downtime\",\n\t\t\t\t \"Undeterminded\");\n\n\t\t// Define the absissa serie \n\t $MyData->addPoints($arrPoints,\t\"Labels\");\n\t $MyData->setAbscissa(\"Labels\");\t\t\t \n\t\t\t\t \n\t // Create the pChart object \n\t $myPicture = new pImage(120,120,$MyData,TRUE);\t\n\t // Create the pPie object \n\t $PieChart = new pPie($myPicture,$MyData);\n\t\n\t\n\t\n\t/* Define the slice color */ \n\tif ($stats[\"average\"][\"OK_TP\"] > 0 ) {\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>13,\"G\"=>235,\"B\"=>58)); // OK\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"WARNING_TP\"] > 0 ) { \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>248,\"G\"=>199,\"B\"=>6)); // DOWN \n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"CRITICAL_TP\"] > 0 ) \t{ \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>249,\"G\"=>30,\"B\"=>5)); // DOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNKNOWN_TP\"] > 0 ) {\t\t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>220,\"G\"=>218,\"B\"=>218)); // UNKNOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"MAINTENANCE_TP\"] > 0 ) { \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>153,\"B\"=>255));\t// MAINTENANCE\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNDETERMINED_TP\"] > 0 ) \t{ \n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>248,\"B\"=>255)); // UNDETERMINED\n\t\t//$PieChart->setSliceColor($i,array(\"R\"=>240,\"G\"=>240,\"B\"=>240)); // UNDETERMINED\t\t\n\t\t$i++;\n\t\t}\t \n\t}\t\t \n\t\n\t\n\t$Settings = array(\"R\"=>255, \"G\"=>255, \"B\"=>255);\n\t$myPicture->drawFilledRectangle(0,0,120,120,$Settings);\n\t\n\t// Enable shadow computing \n\t// $myPicture->setShadow(TRUE,array(\"X\"=>3,\"Y\"=>3,\"R\"=>0,\"G\"=>0,\"B\"=>0,\"Alpha\"=>10));\n\t\n\t // Draw a splitted pie chart \n\t $PieChart->draw3DPie(60,70,array(\"Radius\"=>50,\"DataGapAngle\"=>8,\"DataGapRadius\"=>6,\"Border\"=>TRUE,\"BorderR\"=>0,\"BorderG\"=>0,\"BorderB\"=>0));\n\n\t /* Render the picture */\n\t \n//\t$pie_file = tempnam( \"/tmp\" , \"reportreon_pie_\" ); \n\t$pie_file = tempnam( $centreon_path . \"/www/modules/pdfreports/generatedFiles/tmp\" , \"reportreon_pie_\" ); \n\t\n\t$myPicture->render($pie_file . \".png\");\n\t@unlink($pie_file );\n\n\treturn $pie_file . \".png\" ;\n}", "public function wpzoom_helper_guide_get_admin_colors() {\n\n\t\tif(is_customize_preview()){\n\t\t\tregister_admin_color_schemes();\n\t\t}\n\n\t\tglobal $_wp_admin_css_colors;\n\n\n\t\t$current_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true );\n\t\t$colors = $_wp_admin_css_colors[ $current_color_scheme ]->colors;\n\n\t\treturn $colors;\n\t}", "public function graphic()\n {\n return \"dice-\" . $this->getLastRoll();\n }", "function getColor() { return $this->readColor(); }", "function getColor() {return $this->readColor();}", "public function getHex($index) {\n\t\t$palette = $this->getFullPalette();\n\t\tif(isset($palette[$index])) {\n\t\t\treturn $palette[$index];\n\t\t} else {\n\t\t\treturn $palette['PaletteColour1'];\n\t\t}\n\t}", "public function getColor()\r\n {\r\n $out = array();\r\n\r\n// if ($this->getChatHelper()->getWidgetApi() == 'new') {\r\n if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"', 'primary')\";\r\n }\r\n\r\n // Specify Badge Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'simple' && $this->getChatHelper()->getBadgeColorPrimary()) {\r\n switch ($this->getChatHelper()->getBadgeColorPrimary()){\r\n case 'badge_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'badge_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBadgeColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'badge')\";\r\n }\r\n }\r\n\r\n // Specify Bubble Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'classic' && $this->getChatHelper()->getBubbleColorPrimary()) {\r\n switch ($this->getChatHelper()->getBubbleColorPrimary()) {\r\n case 'bubble_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'bubble_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBubbleColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'bubble')\";\r\n }\r\n }\r\n\r\n if (count($out) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.reload()\";\r\n }\r\n\r\n// } else {\r\n// if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.window.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"')\";\r\n// }\r\n//\r\n// if (strlen($this->getChatHelper()->getBubbleColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.bubble.setColor('#\" . ltrim($this->getChatHelper()->getBubbleColor(), '#') . \"')\";\r\n// }\r\n// }\r\n\r\n if (!empty($out)) {\r\n return implode(';' . \"\\n\", $out). ';' . \"\\n\";\r\n }\r\n return null;\r\n }", "function background() \n{\n\tinclude(\"dbconnect.php\");\n\t$str9=\"select value1 from options where name='template'\";\n\t$result9=mysql_query($str9) or die(mysql_error());\n\t$row9=mysql_fetch_array($result9);\t\n\t$t=$row9['value1']; \n\tmysql_free_result($result9);\n\t$color=\"\";\n\tif(isset($_SESSION['color']))\n\t\t$t=$_SESSION['color'];\n\tswitch ($t)\n\t{\n\t\tcase 0: $color=\"#d03107\";break;//0099CC 0078cc\n\t\tcase 1: $color=\"#e05d04\";break;\n\t\tcase 2: $color=\"#1f7511\";break;\n\t\tcase 3: $color=\"#bf093c\";break;\n\t\tcase 4: $color=\"#0b1493\";break;\n\t} \n\treturn $color;\n}", "public function htmlValue()\n { \n \t$obj_javascripter=new javascripter();\n\n $stri_config=\"\";\n $stri_config.=($this->bool_adjustable)?\"graphe.Set('chart.adjustable',true);\\n\":\"\";\n $stri_config.=($this->bool_annotatable)?\"graphe.Set('chart.annotatable',true);\\n\":\"\";\n $stri_config.=($this->stri_annotate_color!='')?\"graphe.Set('chart.annotate.color','\".$this->stri_annotate_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_centerx!='')?\"graphe.Set('chart.centerx','\".$this->stri_centerx.\"');\\n\":\"\";\n $stri_config.=($this->stri_centery!='')?\"graphe.Set('chart.centery','\".$this->stri_centery.\"');\\n\":\"\";\n $stri_config.=(count($this->arra_colors)>0)?\"graphe.Set('chart.colors', ['\".join(\"','\",$this->arra_colors).\"']);\\n\":\"\";\n $stri_config.=($this->stri_contextmenu!='')?\"graphe.Set('chart.contextmenu','\".$this->stri_contextmenu.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_bottom!='')?\"graphe.Set('chart.gutter.bottom','\".$this->int_gutter_bottom.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_left!='')?\"graphe.Set('chart.gutter.left','\".$this->int_gutter_left.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_right!='')?\"graphe.Set('chart.gutter.right','\".$this->int_gutter_right.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_top!='')?\"graphe.Set('chart.gutter.top','\".$this->int_gutter_top.\"');\\n\":\"\";\n $stri_config.=(count($this->arra_icon)>0)?\"graphe.Set('chart.icon', ['\".join(\"','\",$this->arra_icon).\"']);\\n\":\"\";\n $stri_config.=($this->bool_icon_redraw)?\"graphe.Set('chart.icon.redraw',true);\\n\":\"\";\n $stri_config.=($this->int_labels_count!='')?\"graphe.Set('chart.labels.count','\".$this->int_labels_count.\"');\\n\":\"\";\n $stri_config.=($this->stri_labels_empty!='')?\"graphe.Set('chart.labels.empty','\".$this->stri_labels_empty.\"');\\n\":\"\";\n $stri_config.=($this->stri_labels_full!='')?\"graphe.Set('chart.labels.full','\".$this->stri_labels_full.\"');\\n\":\"\";\n $stri_config.=($this->stri_needle_color!='')?\"graphe.Set('chart.needle.color','\".$this->stri_needle_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_radius!='')?\"graphe.Set('chart.radius','\".$this->stri_radius.\"');\\n\":\"\";\n $stri_config.=($this->bool_resizable)?\"graphe.Set('chart.resizable',true);\\n\":\"\";\n $stri_config.=($this->stri_resize_handle_background!='')?\"graphe.Set('chart.resize.handle.background','\".$this->stri_resize_handle_background.\"');\\n\":\"\";\n $stri_config.=($this->int_scale_decimals!='')?\"graphe.Set('chart.scale.decimals','\".$this->int_scale_decimals.\"');\\n\":\"\";\n $stri_config.=($this->bool_scale_visible)?\"graphe.Set('chart.scale.visible',true);\\n\":\"\";\n $stri_config.=($this->stri_text_color!='')?\"graphe.Set('chart.text.color','\".$this->stri_text_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_text_font!='')?\"graphe.Set('chart.text.font','\".$this->stri_text_font.\"');\\n\":\"\";\n $stri_config.=($this->stri_units_post!='')?\"graphe.Set('chart.units.post','\".$this->stri_units_post.\"');\\n\":\"\";\n $stri_config.=($this->stri_units_pre!='')?\"graphe.Set('chart.units.pre','\".$this->stri_units_pre.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_background)?\"graphe.Set('chart.zoom.background',true);\\n\":\"\";\n $stri_config.=($this->int_zoom_delay!='')?\"graphe.Set('chart.zoom.delay','\".$this->int_zoom_delay.\"');\\n\":\"\";\n $stri_config.=($this->float_zoom_factor!='')?\"graphe.Set('chart.zoom.factor','\".$this->float_zoom_factor.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_fade_in)?\"graphe.Set('chart.zoom.fade.in',true);\\n\":\"\";\n $stri_config.=($this->bool_zoom_fade_out)?\"graphe.Set('chart.zoom.fade.out',true);\\n\":\"\";\n $stri_config.=($this->int_zoom_frames!='')?\"graphe.Set('chart.zoom.frames','\".$this->int_zoom_frames.\"');\\n\":\"\";\n $stri_config.=($this->stri_zoom_hdir!='')?\"graphe.Set('chart.zoom.hdir','\".$this->stri_zoom_hdir.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_shadow)?\"graphe.Set('chart.zoom.shadow',true);\\n\":\"\";\n $stri_config.=($this->stri_zoom_vdir!='')?\"graphe.Set('chart.zoom.vdir','\".$this->stri_zoom_vdir.\"');\\n\":\"\";\n\n\n \n \t$obj_javascripter->addFunction(\" \n \t$(function()\n \t{ \n var graphe = new RGraph.Fuel('\".$this->stri_id.\"',\".$this->int_min_value.\",\".$this->int_max_value.\",\".$this->int_value.\");\n // Configure the progress bar to appear as requested.\n $stri_config\n \n // Now call the .Draw() method to draw the chart.\n graphe.Draw();\n //RGraph.Effects.Fuel.Grow(graphe);\n\t\n \t});\n \");\n \t \n \t\t$stri_res=' <canvas id=\"'.$this->stri_id.'\" width=\"'.$this->int_width.'\" height=\"'.$this->int_height.'\">[No canvas support]</canvas>';\n \t\treturn $stri_res.$obj_javascripter->javascriptValue();\n }", "function tewwie_gutenberg_color_palette() {\n\tadd_theme_support(\n\t\t'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Primary', '@@textdomain' ),\n\t\t\t\t'slug' => 'primary',\n\t\t\t\t'color' => 'rgb(94, 114, 228)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Secondary', '@@textdomain' ),\n\t\t\t\t'slug' => 'secondary',\n\t\t\t\t'color' => 'rgb(245, 54, 92)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Green', '@@textdomain' ),\n\t\t\t\t'slug' => 'green',\n\t\t\t\t'color' => 'rgb(67, 170, 139)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Dark Grey', '@@textdomain' ),\n\t\t\t\t'slug' => 'dark-grey',\n\t\t\t\t'color' => 'rgb(68,68,68)',\n\t\t\t)\n\t\t)\n\t);\n}", "public function getColor()\n {\n return self::QUALITY_MAP[$this->qualityID]['color'];\n }", "public function getColor() {\n //Busca en esta clase la propiedad x\n return $this->color;\n }", "public function get_color( $ufc = null){\n\t\t$ufc = empty( $ufc ) ? self::$_ufc : $ufc;\n\n\t\t$index = (int) str_replace(self::VAR_PREFIX, \"\", $ufc);\n\n\t\t$theme_colors = self::$_theme_colors->colors;\n\n\t\tforeach($theme_colors as $key => $theme_color){\n\t\t\tif( $key === $index ) return $theme_color->color;\n\t\t}\n\n\t\treturn false;\n\t}", "function pieGen($stats, $mode,$Dir) {\n\t\n\tglobal $centreon_path;\n\t// Create and populate the pData object \n\t $MyData = new pData();\n\n\t// print_r($stats[\"average\"]);\n\t\n\t$arrPoints = array();\n\t$i=0;\n\t// Host groups\n\tif ($mode == \"hgs\" ) { \n\t \n\t $MyData->addPoints(array($stats[\"average\"][\"UP_TP\"],\n\t\t\t\t $stats[\"average\"][\"DOWN_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNDETERMINED_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNREACHABLE_TP\"],\n\t\t\t\t $stats[\"average\"][\"MAINTENANCE_TP\"]),\n\t\t\t\t\"Hostgroups\"); \n\t $MyData->setSerieDescription(\"Hostgroups\",\"Hostgroups\");\n\t\n\n\t$arrPoints = array(\"Up\",\n\t\t\t\t \"Down\",\n\t\t\t\t \"Undeterminded\",\n\t\t\t\t \"Unreachable\",\n\t\t\t\t \"Schedule Downtime\");\t\t\n\n\t// Define the absissa serie \n\t $MyData->addPoints($arrPoints,\t\"Labels\");\n\t $MyData->setAbscissa(\"Labels\");\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t // Create the pChart object \n\t $myPicture = new pImage(120,120,$MyData,TRUE);\t\t\t\t \n\t // Create the pPie object \n\t $PieChart = new pPie($myPicture,$MyData);\t\t\t \n\t\t\t\t \n\t$i = 0;\n\t/* Define the slice color */ \n\tif ($stats[\"average\"][\"UP_TP\"] > 0 ) { \n\t\t$PieChart->setSliceColor($i,array(\"R\"=>25,\"G\"=>238,\"B\"=>17)); // UP\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"DOWN_TP\"] > 0 ) {\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>249,\"G\"=>30,\"B\"=>5)); // DOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNDETERMINED_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>248,\"B\"=>255));// UNDETERMINED\n\t\t//$PieChart->setSliceColor($i,array(\"R\"=>240,\"G\"=>240,\"B\"=>240)); \n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNREACHABLE_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>130,\"G\"=>207,\"B\"=>216)); // UNREACHABLE\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"MAINTENANCE_TP\"] > 0 ) \t{\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>153,\"B\"=>255));\t// MAINTENANCE\n\t\t$i++;\n\t\t}\n\t \n\t}\n\n\t// Service Groups\n\tif ($mode == \"sgs\" ) { \n\t \n\t $MyData->addPoints(array($stats[\"average\"][\"OK_TP\"],\n\t\t\t\t $stats[\"average\"][\"WARNING_TP\"],\n\t\t\t\t $stats[\"average\"][\"CRITICAL_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNKNOWN_TP\"],\n\t\t\t\t $stats[\"average\"][\"MAINTENANCE_TP\"],\n\t\t\t\t $stats[\"average\"][\"UNDETERMINED_TP\"]),\n\t\t\t\t\"Servicegroups\"); \n\t $MyData->setSerieDescription(\"Servicegroups\",\"Servicegroups\");\n\t\n\n\t$arrPoints = array(\"Ok\",\n\t\t\t\t \"Warning\",\n\t\t\t\t \"Critical\",\n\t\t\t\t \"Unknown\",\n\t\t\t\t \"Schedule Downtime\",\n\t\t\t\t \"Undeterminded\");\n\n\t\t// Define the absissa serie \n\t $MyData->addPoints($arrPoints,\t\"Labels\");\n\t $MyData->setAbscissa(\"Labels\");\t\t\t \n\t\t\t\t \n\t // Create the pChart object \n\t $myPicture = new pImage(120,120,$MyData,TRUE);\t\n\t // Create the pPie object \n\t $PieChart = new pPie($myPicture,$MyData);\n\t\n\t\n\t\n\t/* Define the slice color */ \n\tif ($stats[\"average\"][\"OK_TP\"] > 0 ) {\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>13,\"G\"=>235,\"B\"=>58)); // OK\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"WARNING_TP\"] > 0 ) { \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>248,\"G\"=>199,\"B\"=>6)); // DOWN \n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"CRITICAL_TP\"] > 0 ) \t{ \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>249,\"G\"=>30,\"B\"=>5)); // DOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNKNOWN_TP\"] > 0 ) {\t\t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>220,\"G\"=>218,\"B\"=>218)); // UNKNOWN\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"MAINTENANCE_TP\"] > 0 ) { \t\n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>153,\"B\"=>255));\t// MAINTENANCE\n\t\t$i++;\n\t\t}\n\tif ($stats[\"average\"][\"UNDETERMINED_TP\"] > 0 ) \t{ \n\t\t$PieChart->setSliceColor($i,array(\"R\"=>204,\"G\"=>248,\"B\"=>255)); // UNDETERMINED\n\t\t//$PieChart->setSliceColor($i,array(\"R\"=>240,\"G\"=>240,\"B\"=>240)); // UNDETERMINED\t\t\n\t\t$i++;\n\t\t}\t \n\t}\t\t \n\t\n\t\n\t$Settings = array(\"R\"=>255, \"G\"=>255, \"B\"=>255);\n\t$myPicture->drawFilledRectangle(0,0,120,120,$Settings);\n\t\n\t// Enable shadow computing \n\t// $myPicture->setShadow(TRUE,array(\"X\"=>3,\"Y\"=>3,\"R\"=>0,\"G\"=>0,\"B\"=>0,\"Alpha\"=>10));\n\t\n\t // Draw a splitted pie chart \n\t//\t $PieChart->draw3DPie(60,70,array(\"Radius\"=>50,\"DataGapAngle\"=>8,\"DataGapRadius\"=>6,\"Border\"=>TRUE,\"BorderR\"=>0,\"BorderG\"=>0,\"BorderB\"=>0));\n\t$PieChart->draw2DPie(60,60,array(\"Radius\"=>50,\"DrawLabels\"=>FALSE,\"LabelStacked\"=>TRUE,\"Border\"=>FALSE,\"BorderR\"=>0,\"BorderG\"=>0,\"BorderB\"=>0));\n\n\t /* Render the picture */\n\t \n\n\t//\t$pie_file = tempnam( \"/tmp\" , \"reportreon_pie_\" );\n\t$pie_file = tempnam($Dir, \"reportreon_pie_\" );\n//\t$pie_file = tempnam( $centreon_path . \"/www/modules/pdfreports/generatedFiles/tmp\" , \"reportreon_pie_\" );\n\n\t$myPicture->render($pie_file . \".png\");\n\t \t@unlink($pie_file );\n\n\treturn $pie_file . \".png\" ;\n}", "function hotel_lux_gutenberg_support() {\r\n\t$colors = cmsmasters_color_picker_palettes();\r\n\t\r\n\t$color_palette = array();\r\n\t\r\n\t\r\n\tforeach ($colors as $color) {\r\n\t\t$color_palette[] = array(\r\n\t\t\t'color' => $color,\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\tadd_theme_support('editor-color-palette', $color_palette);\r\n}", "public function post_rating_colors()\n\t{\n\t\t\n\t\t$query = $this->db->query(\"SELECT `average`, `color` FROM `post_rating_colors`\");\n\t\t\n\t\t// echo $this->db->last_query();\n\t\t// print_r($query->result_array()\t);\n\t\t// die();\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\t$all_colors = array();\n\t\t\tforeach ($query->result_array() as $value) {\n\t\t\t\t$all_colors[$value['average']] = $value['color'];\n\t\t\t}\n\t\t\treturn $all_colors;\n\t\t}\n\t}", "public function show(Palette $favourite)\n {\n //return new PalettesResource($palette);\n $palettes = Palette::where('favourite',1)->get();\nreturn response($palettes,200);\n}", "public function colors()\n {\n $color = $this->backgroundColor();\n return array($color, Kronolith::foregroundColor($color));\n }", "function _field_colorpicker($fval) \n {\n\n $this->attribs['size'] = 7;\n $res = $this->_field_text($fval);\n\n $name = $this->fname;\n\n $res .= sprintf(\"<span id=\\\"swatch_%s\\\" style=\\\"border: 2px solid black; background-color: %s\\\">\n <a href=\\\"#\\\" onclick=\\\"cp_displayToggle('palette_%s'); return false;\\\" style=\\\"text-decoration:none\\\">\n &nbsp;&nbsp;&nbsp;&nbsp;</a></span>\",\n $name, $fval, $name);\n $res .= <<<EOJS\n <div id=\"palette_$name\" style=\"display:none; position: absolute; z-index: 11; background: #ddd;\">\n <script type=\"text/javascript\">\n document.forms[0].$name.onchange = function () { document.getElementById('swatch_$name').style.background = this.value }\n\n var total = colors.length;\n var width = 18;\n var cp_contents = \"\";\n cp_contents += '<table border=\\\"0\\\" cellspacing=\\\"2\\\" cellpadding=\\\"0\\\">';\n var use_highlight = (document.getElementById || document.all)?true:false;\n for (var i=0; i<total; i++) {\n if ((i % width) == 0) { cp_contents += \"<tr>\"; }\n if (use_highlight) { var mo = 'onMouseOver=\"cp_highlightColor(\\''+colors[i]+'\\',\\'$name\\')\"'; }\n else { mo = \"\"; }\n cp_contents += '<td bgcolor=\"'+colors[i]+'\"><span style=\"font-size:0.75em\"><a href=\"#\" onclick=\"cp_selectColor(\\''+colors[i]+'\\',\\'$name\\');return false;\" '+mo+' style=\"text-decoration:none;\">&nbsp;&nbsp;&nbsp;</a></span></td>';\n if ( ((i+1)>=total) || (((i+1) % width) == 0)) { \n cp_contents += \"</tr>\";\n }\n }\n\n if (document.getElementById) {\n cp_contents += '<tr><td colspan=\"'+width+'\">';\n cp_contents += '<div style=\"width:48%; border: 1px solid #ddd; float: left; background-color: #fff\" id=\"cp_SelectedColor_$name\">&nbsp;</div>';\n cp_contents += '<div style=\"width:48%; border: 1px solid #ddd; float: right; background-color: #fff\" id=\"cp_SelectedColorValue_$name\">#ffffff</div>';\n cp_contents += '</td></tr>';\n }\n cp_contents += \"</table>\";\n document.write(cp_contents);\n\n </script>\n </div>\nEOJS;\n return $res;\n }", "public function getColor()\n {\n if (array_key_exists(\"color\", $this->_propDict)) {\n return $this->_propDict[\"color\"];\n } else {\n return null;\n }\n }", "function getColor(){\n\t\t# Like this: Array ( [red] => 255 [green] => 255 [blue] => 255 )\n\t\t# You could then use it with the setRGB function (See class.rgbcontrol.php for that.)\n\t\t# Simple usage is $led->setRBG($dbh->getColor());\n\n\t\t$pdo = $this->db->prepare(\"SELECT red,green,blue FROM colors ORDER BY cID DESC LIMIT 1\");\n\t\t$pdo->execute();\n\n\t\treturn $pdo->fetch();\n\t}", "private function getDataColorArray() {\n\t\treturn $this->dataColorArray;\n\t}", "public function UXBarChart($cfg,$data,$legend=false){\n\t\t\t$xScale = count($data) / ( $cfg['width'] - 40 );\n\t\t\t$maxTotal = $this->chartmax($data);\n\t\t\t$yScale = $maxTotal / $cfg['height'];\n\t\t\n\t\t\t// Compute the bar width\n\t\t\t$barWidth = ( 1 / $xScale ) / 1.5;\n\t\t\n\t\t\t// Add the axes:\n\t\t\t$this->SetFont( '', '', 10);\n\t\t\n\t\t\t// X axis\n\t\t\t$this->Line( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + $cfg['width'], $cfg['ypos'] );\n\t\t\t//$this->Arrow( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + $cfg['width'], $cfg['ypos'], 1 );\n\t\t\n\t\t\t$this->SetTextColor(200,200,200);\n\t\t\tfor ( $i=0; $i < count( $data ); $i++ ) {\n\t\t\t\t$this->SetXY( $cfg['xpos'] + 40 + $i / $xScale, $cfg['ypos'] );\n\t\t\t\t$this->Cell( $barWidth, 10, $data[$i]['label'], 0, 0, 'C' );\n\t\t\t}\n\t\t\n\t\t\t// Y axis\n\t\t\t$this->Line( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + 30, $cfg['ypos'] - $cfg['height'] - 8 );\n\t\t\n\t\t\tfor ( $i=0; $i <= $maxTotal; $i += $cfg['ystep'] ) {\n\t\t\t\t$this->SetXY( $cfg['xpos'] + 7, $cfg['ypos'] - 5 - $i / $yScale );\n\t\t\t\t$this->Cell( 20, 10, number_format( $i ), 0, 0, 'R' );\n\t\t\t\t$this->Line( $cfg['xpos'] + 28, $cfg['ypos'] - $i / $yScale, $cfg['xpos'] + $cfg['width'], $cfg['ypos'] - $i / $yScale, array('dash'=>4) );\n\t\t\t}\n\t\t\t// Add the axis labels\n\t\t\t$this->SetTextColor(0,0,255);\n\t\t\t$this->SetFont( '', 'B', 10 );\n\t\t\t$this->SetXY( $cfg['width'] / 2 + 20, $cfg['ypos'] + 8 );\n\t\t\t$this->Cell( 30, 10, $cfg['xtitle'], 0, 0, 'C' );\n\t\t\t$this->SetXY( $cfg['xpos'] + 7, $cfg['ypos'] - $cfg['height'] - 12 );\n\t\t\t$this->Cell( 20, 10, $cfg['ytitle'], 0, 0, 'R' );\n\t\t\n\t\t\t// Create the bars\n\t\t\t$this->SetFont( '', 'B', 5 );\n\t\t\t$xPos = $cfg['xpos'] + 40;\n\t\t\t$bar = 0;\n\t\t\n\t\t\t$count = count($data);\n\t\t\t\n// \t\t\t$this->SetFont( '', 'B', 10 );\n\t\t\tforeach ( $data as $ix => $row ) {\n\t\t\t\t$color = $this->hex2rgb($row['color']);\n\t\t\t\t$this->SetFillColor( $color['r'], $color['g'], $color['b'] );\n\t\t\t\t$this->Rect( $xPos, $cfg['ypos'] - ( $row['value'] / $yScale ), $barWidth, $row['value'] / $yScale, 'DF', array('all'=>array('dash'=>0)));\n\t\t\t\t//valuetext: test\n\t\t\t\t$this->SetXY($xPos, $cfg['ypos'] - ( $row['value'] / $yScale ) - 10);\n\t\t\t\t$this->Cell($barWidth, 10, $row['value'], 0, 0, 'C' );\n\t\t\t\t\n\t\t\t\t//Legend: test\t\t\t\t\n\t\t\t\tif($legend){\n\t\t\t\t\t$this->SetFont('', 'B', 10 );\n\t\t\t\t\t$this->Rect($cfg['xleg'], $cfg['yleg']+$bar*10, 5, 5, 'DF', array('all'=>array('dash'=>0)));\n\t\t\t\t\t$this->SetXY($cfg['xleg']+10, $cfg['yleg']+$bar*10-3);\n\t\t\t\t\t$this->Cell( $this->getStringWidth($row['legend']), 10, $row['legend'], 0, 0, 'L' );\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$this->SetFont('', 'B', 5 );\n\t\t\t\t$xPos += ( 1 / $xScale );\n\t\t\t\t$bar++;\n// \t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}", "function get_all_colors()\n{\n\t$colors = array(\n\t\t\"000000\" => \"Black\",\n\t\t\"0000FF\" => \"Blue\",\n\t\t\"804000\" => \"Brown\",\n\t\t\"736F6E\" => \"Gray\",\n\t\t\"00FF00\" => \"Green\",\n\t\t\"FF8040\" => \"Orange\",\n\t\t\"FF00FF\" => \"Pink\",\n\t\t\"8E35EF\" => \"Purple\",\n\t\t\"FF0000\" => \"Red\",\n\t\t\"FFFF00\" => \"Yellow\",\n\t\t\"FFFFFF\" => \"White\",\n\t);\n\treturn $colors;\n}", "private function draw_axes(){\n\t\t$this->display_graph_axis = \"\\t<path stroke=\\\"$this->axes_color\\\" stroke-dasharray=\\\"5, 5\\\" d=\\\"M$this->graphmarginleft $this->axisheight h $this->axiswidth\\\"/>\\n\";\n\t\t$this->display_graph_axis .= \"\\t<path stroke=\\\"$this->axes_color\\\" stroke-dasharray=\\\"5, 5\\\" d=\\\"M$this->graphmargintop 0 v $this->axisheight\\\"/>\\n\";\n\t\treturn;\n\t}", "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }" ]
[ "0.6487676", "0.5982131", "0.5815626", "0.5804494", "0.5717699", "0.5594531", "0.54597574", "0.53283125", "0.5303035", "0.5261232", "0.5253047", "0.5227681", "0.5208537", "0.5196157", "0.51812506", "0.5174102", "0.5156563", "0.51425695", "0.50963384", "0.5065445", "0.506498", "0.50298727", "0.5023568", "0.5002535", "0.4967516", "0.4949212", "0.49317282", "0.49271914", "0.4920132", "0.4906714", "0.49011743", "0.49010083", "0.49003625", "0.48844868", "0.4875274", "0.48573974", "0.48485717", "0.48211658", "0.48211658", "0.48167017", "0.48143667", "0.4797388", "0.47965702", "0.4792441", "0.47821093", "0.47781533", "0.47762626", "0.47650468", "0.47622916", "0.4736156", "0.47354898", "0.47346377", "0.4730766", "0.4719111", "0.47185856", "0.47173762", "0.47173762", "0.47173762", "0.47173762", "0.47169608", "0.4716939", "0.4716939", "0.4716939", "0.4716939", "0.4716939", "0.4716939", "0.47166374", "0.47166374", "0.4715271", "0.47143912", "0.47136953", "0.47130156", "0.4708355", "0.47067592", "0.4703626", "0.46931532", "0.4685935", "0.46693724", "0.466735", "0.46611908", "0.46456125", "0.4645504", "0.4644623", "0.46366695", "0.4625817", "0.46232787", "0.46198305", "0.461575", "0.46128282", "0.46124586", "0.46080652", "0.46069548", "0.46033448", "0.45907837", "0.45820796", "0.45773703", "0.45748225", "0.4571846", "0.45713234", "0.45711082" ]
0.7155442
0
getCaptionFontColor function returns a color code for caption. Basic idea to use this is to demonstrate how to centralize your cosmetic attributes for the chart
Функция getCaptionFontColor возвращает код цвета для заголовка. Основная идея использования этой функции — продемонстрировать, как централизовать ваши косметические атрибуты для графика
function getCaptionFontColor() { //Return a hex color code without # //FFC30C - Yellow Color return "666666"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pl_text_color(){\n\t\t\n\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\n\n\treturn $color;\n}", "public function getTextColor() {}", "public function getTextColor() {}", "public function getFontColor()\n {\n if (array_key_exists(\"fontColor\", $this->_propDict)) {\n return $this->_propDict[\"fontColor\"];\n } else {\n return null;\n }\n }", "function get_header_textcolor()\n {\n }", "public function getAppearanceTextColor() {}", "public function getCaption() {}", "private function getFontColor()\n {\n if (empty($this->fontColor)) {\n return imagecolorallocatealpha($this->image, rand(0, 255), rand(0, 255), rand(0, 255), rand(0, $this->opacity));\n } else {\n return $this->fontColor[rand(0, count($this->fontColor) - 1)];\n }\n }", "public function getTextColor(): string\n {\n return $this->textColor ?? $this->strokeColor;\n }", "public function getCaption()\n\t{\n\t\tif ($this->caption instanceof Html && $this->caption->title) {\n\t\t\treturn $this->caption->title($this->getDataGrid()\n\t\t\t\t->translate($this->caption->title));\n\t\t} else {\n\t\t\treturn $this->getDataGrid()\n\t\t\t\t->translate($this->caption);\n\t\t}\n\t}", "public function getCaptionClassNames()\n {\n $classes = $this->styles('figure.caption');\n \n $this->extend('updateCaptionClassNames', $classes);\n \n return $classes;\n }", "function header_textcolor()\n {\n }", "function wpvideocoach_get_introduction_text_color()\r\n{\r\n\tglobal $wpvideocoach_introduction_text_color;\r\n\tif(empty($wpvideocoach_introduction_text_color)){\r\n\t\t$wpvideocoach_introduction_text_color = '#000';\r\n\t}\r\n\treturn $wpvideocoach_introduction_text_color;\r\n}", "public function getCaption()\n {\n return $this->caption;\n }", "public function getCaption() {\n\t\treturn $this->caption;\n\t}", "public function getCaption()\n {\n return $this->_caption;\n }", "public function getAppearanceFont() {}", "public function getCaption(): string\n {\n return $this->attrs['caption'] ?? '';\n }", "public function getAppearanceTextColorSpace() {}", "public function getTextColor() {\n\t\treturn $this->text_color;\n\t}", "public function getCaptionPosition() {}", "public function getCookieMessageTextColor() {\n return $this->_dataHelper->getColor('message_text_color');\n }", "function wpvideocoach_get_introduction_title_color()\r\n{\r\n\tglobal $wpvideocoach_introduction_title_color;\r\n\tif(empty($wpvideocoach_introduction_title_color)){\r\n\t\t$wpvideocoach_introduction_title_color = '#000';\r\n\t}\r\n\treturn $wpvideocoach_introduction_title_color;\r\n}", "function setTitleStyle($font = '', $size = 15, $col = 0x000000)\n {\n $size = intval($size);\n if ($size < 0) {\n $size = 0;\n }\n\n $this->title_font = $font;\n $this->title_font_size = $size;\n $this->title_col = $this->hexcol($col);\n }", "function setTitleStyle($font = '', $size = 15, $col = 0x000000)\n {\n $size = intval($size);\n if ($size < 0) {\n $size = 0;\n }\n\n $this->title_font = $font;\n $this->title_font_size = $size;\n $this->title_col = $this->hexcol($col);\n }", "protected function initCaptionRenderer()\n {\n $this->captionRenderer = new CaptionRenderer();\n }", "function getCaption() {return $this->readCaption();}", "function pl_footer_color(){\n\t\n\t$color = ( pl_check_color_hash( ploption( 'footer_text' ) ) ) ? pl_hash_strip( ploption( 'footer_text' ) ) : '999999';\n\t\n\treturn $color;\n}", "public function getCaption()\n {\n return $this->originalAsset->getCaption();\n }", "public function textColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public function textColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public static function summaryChartColouring()\n {\n return [ '#f1592c', '#f3724c', '#f58b6c', '#f7a48c' ];\n }", "public function getFontDescriptor();", "function getColorToBasket($comFulldesc)\n{\n if (isset($comFulldesc)) {\n $comDescString = str_replace(\"&nbsp;\", '',\n htmlspecialchars_decode($comFulldesc));\n }\n\n $needle = \"Цвет:\";\n $findColor = strstr($comDescString, $needle);\n if ($findColor !== false) {\n $wovels = array('Цвет:</span>', 'Цвет:');\n $comColor = str_replace($wovels, \"\", strstr($findColor, \"</p>\", true));\n } else {\n $comColor = \"Цвет как на фото\";\n }\n return $comColor;\n}", "function setLegendTextStyle($font = '', $size = 10, $col = 0x000000, $between = 10)\n {\n $size = intval($size);\n $between = intval($between);\n\n $this->legend_font = $font;\n $this->legend_font_size = $size;\n $this->legend_font_col = $this->hexcol($col);\n\n $this->legend_between_padding = $between;\n }", "function setLegendTextStyle($font = '', $size = 10, $col = 0x000000, $between = 10)\n {\n $this->legend_font = $font;\n $this->legend_font_size = $size;\n $this->legend_font_col = $this->hexcol($col);\n\n $this->legend_between_padding = $between;\n }", "public function getCaptionOffset() {}", "function uabb_theme_text_color( $default ) {\n\t$color = '';\n\n\tif ( $default == '' ) {\n\n\t\t$color = apply_filters( 'uabb/global/text_color', $default );\n\t\t\n\t\tif ( $color == '' ) {\n\t\t\t$color = apply_filters( 'uabb_theme_text_color', $default );\n\t\t}\n\t} else {\n\t\t$color = $default;\n\t}\n\n\treturn $color;\n}", "private function getYLabelsColor() {\n\t\treturn $this->yLabelsColor;\n\t}", "private function getYLabelColor() {\n\t\treturn $this->yLabelColor;\n\t}", "function getModifyCaption() \r\n \t{\r\n \t\treturn '';\r\n \t}", "public function getColorLabelByColorId($id){\n\n $atributo = Mage::getStoreConfig('cores/config/codigo_cor');\n $attribute_code=Mage::getModel('eav/entity_attribute')->getIdByCode('catalog_product', $atributo);\n $attributeInfo = Mage::getModel('eav/entity_attribute')->load($attribute_code);\n $attribute_table = Mage::getModel('eav/entity_attribute_source_table')->setAttribute($attributeInfo);\n\n $label = $attribute_table->getOptionText($id);\n return $label;\n }", "public function setTextTitleColor($arrColor)\r\n\t{\r\n\t\t$this->textTitleColor = $arrColor;\r\n\t}", "public function getColorName()\n {\n return $this->color_name;\n }", "public function getFont() {}", "public function getFont() {}", "public function getFont() {}", "private function set_font_color()\n {\n $this->font_color = imagecolorallocate(\n $this->img,\n L_FONT_COLOR_R,\n L_FONT_COLOR_G,\n L_FONT_COLOR_B\n );\n }", "public function renderCaption() {\n if (!empty($this->caption)) {\n return self::html()->tag('<caption{:options}>{:content}</caption>', array('content' => $this->caption, 'options' => $this->captionOptions), $this->captionOptions);\n } else {\n return false;\n }\n }", "public function getTextColors()\n {\n return $this->textColors;\n }", "function pl_header_color(){\n\t\n\t$color = ( pl_check_color_hash( ploption( 'headercolor' ) ) ) ? pl_hash_strip( ploption( 'headercolor' ) ) : '000000';\n\t\n\treturn $color;\t\n}", "public function getColor()\n {\n return\"Yellow\";\n }", "public function getUnderlineColor() {}", "protected function caption_style() {\n\t\t$this->start_controls_section(\n\t\t\t'section_style_caption',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Caption', 'boostify' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'text_color',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Text Color', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .widget-image-caption' => 'color: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'caption_background_color',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Background Color', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .widget-image-caption' => 'background-color: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'caption_typography',\n\t\t\t\t'selector' => '{{WRAPPER}} .widget-image-caption',\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'caption_padding',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Padding', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => array( 'px', 'em', '%' ),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .widget-image-caption' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'caption_space',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Caption Top Spacing', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => array(\n\t\t\t\t\t'px' => array(\n\t\t\t\t\t\t'min' => 0,\n\t\t\t\t\t\t'max' => 100,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'default' => array(\n\t\t\t\t\t'size' => 0,\n\t\t\t\t\t'unit' => 'px',\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .widget-image-caption' => 'margin-top: {{SIZE}}{{UNIT}}; margin-bottom: 0px;',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}", "function button_text_hover_color() {\n\t\t\t$link_hover_color = astra_get_option( 'link-h-color' );\n\t\t\t$color = astra_get_option( 'button-h-color' );\n\t\t\tif ( empty( $color ) ) {\n\t\t\t\t$color = astra_get_foreground_color( $link_hover_color );\n\t\t\t}\n\n\t\t\treturn $color;\n\t\t}", "function uabb_theme_button_text_color( $default ) {\n\t$color = '';\n\n\tif ( $default == '' ) {\n\n\t\t$color = apply_filters( 'uabb/global/button_text_color', $default );\n\t\t\t\t\n\t\tif ( $color == '' ) {\n\t\t\t$color = apply_filters( 'uabb_theme_button_text_color', $default );\n\t\t}\n\t} else {\n\t\t$color = $default;\n\t}\n\n\treturn $color;\n}", "function setXAxisTitleStyle($font = '', $size = 12, $col = '000000')\n {\n $this->xaxis_title_font = $font;\n $this->xaxis_title_font_size = intval($size);\n $this->xaxis_title_font_col = $this->hexcol($col);\n }", "private function get_colored($string = \" [ info ] \", $cix = 6) {\n return (Validator::equals($this->color,true) && Validator::isa($cix,\"integer\")\n ? hex2bin(\"1b\").$this->colors[$cix].$string.\n hex2bin(\"1b\").$this->colors[count($this->colors)-1]\n : $string);\n }", "function SetChordsFont() {\r\n $this->SetFont(\"Arial\", \"B\", 14);\r\n $this->SetTextColor(0, 0, 255);\r\n }", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function renderCaption()\n {\n if (!empty($this->caption)) {\n return Html::tag('caption', $this->caption, $this->captionOptions);\n }\n\n return false;\n }", "function getCaption() {\n\t\treturn $this->lobSub->lobCaption;\n\t}", "public function getCyan()\n {\n return $this->cyan;\n }", "public static function color(string $text, string $color = null, int $decoration = 0, string $bgColor = null) {}", "public function mombo_main_headings_color() {\n \n \n }", "public function getColor(): string;", "function getAddCaption() \r\n \t{\r\n \t\treturn '';\r\n \t}", "public function get_caption($key = 0)\n {\n }", "private function getXLabelColor() {\n\t\treturn $this->xLabelColor;\n\t}", "private function getXLabelsColor() {\n\t\treturn $this->xLabelsColor;\n\t}", "function setYAxisTitleStyle($font = '', $size = 12, $col = '000000')\n {\n $this->yaxis_title_font = $font;\n $this->yaxis_title_font_size = intval($size);\n $this->yaxis_title_font_col = $this->hexcol($col);\n }", "function TableCaption() {\n\t\tglobal $ReportLanguage;\n\t\treturn $ReportLanguage->TablePhrase($this->TableVar, \"TblCaption\");\n\t}", "function TableCaption() {\n\t\tglobal $ReportLanguage;\n\t\treturn $ReportLanguage->TablePhrase($this->TableVar, \"TblCaption\");\n\t}", "public function getColor()\n {\n if (array_key_exists(\"color\", $this->_propDict)) {\n return $this->_propDict[\"color\"];\n } else {\n return null;\n }\n }", "public function getColorOption($product)\n {\n\t\t$colorcode = $product->getColor();\n\t\t$attr = $product->getResource()->getAttribute('color');\n\t\tif ($attr->usesSource()) {\n\t\t\t$optionText = $attr->getSource()->getOptionText($colorcode);\n\t\t}\n\t\treturn $optionText;\n }", "private function getCaption()\n\t{\n\t\t$buffer = '';\n\t\t\n\t\tif(!$this->aImg['sFilename'])\n\t\t\treturn $buffer;\n\t\t\n\t\t// button\n\t\t$link = $this->getCaptionButton();\n\t\t\n\t\t// caption\t\t\n\t\t$buffer .= '<textarea class=\"TextareaDisable\" disabled=\"disabled\">';\n\t\t$buffer .= stripslashes($this->aImg['sCaption']);\n\t\t$buffer .= '</textarea>';\n\t\t$buffer .= '<br /><br />';\n\t\t\t\n\t\t$buffer .= $link;\t\t\t\n\t\treturn $buffer;\t\t\n\t}", "function getFont() { return $this->readFont(); }", "public function setTextColor($color) {}", "function get_tag_color( $tag ) {\n $tag_color = get_tag_data( $tag , 'tag_color' );\n return $tag_color;\n}", "public function get_custom_style_css($attribute, $value, $text_stroke_color) {\r\n\t\t\t// switch attribute\r\n\t\t\tswitch($attribute) {\r\n\t\t\t\tcase 'text-stroke':\r\n\t\t\t\t\treturn '-webkit-text-stroke: ' . $value . ' ' . $text_stroke_color . ';';\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 'font-family':\r\n\t\t\t\t\treturn semplice_get_font_family($value);\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\treturn $attribute . ':' . $value . ';';\r\n\t\t\t}\r\n\t\t}", "public function getColorAccent()\n {\n return $this->colorAccent;\n }", "public function getAppearanceFontSize() {}", "public function getDescendantFont() {}", "function getFont() { return $this->_font; }", "function getColorInClear($color) {\n switch($color) {\n case 0:\n return clienttranslate('blue');\n case 1:\n return clienttranslate('red');\n case 2:\n return clienttranslate('green');\n case 3:\n return clienttranslate('yellow');\n case 4:\n return clienttranslate('purple');\n }\n }", "public function getCurrentTextColor() {\n return $currentTextColor;\n }", "private function retrieve_caption() {\n\t\treturn $this->retrieve_excerpt_only();\n\t}", "public function getColor();", "public function getColor();", "public function getColor();", "public function getColor();", "function _ga_typography_color( $option ) {\n\n\tif ( ! ( $_color = genesis_get_option( $option, GA_CHILDTHEME_FIELD ) ) )\n\t\treturn false;\n\n\t return 'color: ' . $_color . ';';\n\n}", "function setXAxisTextStyle($font = '', $size = 10, $col = 0x000000, $angle = 0)\n {\n $size = intval($size);\n $angle = intval($angle);\n\n if ($angle < -90) {\n $angle = 90;\n }\n if ($angle > 90) {\n $angle = 90;\n }\n\n $this->xaxis_font = $font;\n $this->xaxis_font_size = $size;\n $this->xaxis_font_col = $this->hexcol($col);\n $this->xaxis_font_angle = $angle;\n }", "function getLegend()\n {\n ksort($this->price_arr);\n //print_r($this->price_arr);\n \n foreach ($this->price_arr as $k => $v) {\n //echo \"$k => $v<br>\";\n $ret[$v] = array($k, $this->price_colors[$v]);\n }\n\n return $ret;\n }", "function getFont() {return $this->readFont();}", "function fontStyles()\r\n {\r\n /*\r\n if ($this->_control!=null)\r\n {\r\n if ($this->_control->ParentFont)\r\n {\r\n $parent=$this->_control->Parent;\r\n if ($parent!=null) return($parent->Font->readFontString());\r\n }\r\n }\r\n */\r\n\r\n $textalign=\"\";\r\n switch($this->_align)\r\n {\r\n case taLeft: $textalign=\"text-align: left;\"; break;\r\n case taRight: $textalign=\"text-align: right;\"; break;\r\n case taCenter: $textalign=\"text-align: center;\"; break;\r\n case taJustify: $textalign=\"text-align: justify;\"; break;\r\n }\r\n\r\n $fontstyle=\"\";\r\n switch($this->_style)\r\n {\r\n case fsNormal: $fontstyle=\"font-style: normal;\"; break;\r\n case fsItalic: $fontstyle=\"font-style: italic;\"; break;\r\n case fsOblique: $fontstyle=\"font-style: oblique;\"; break;\r\n }\r\n\r\n // changed to fix RAID#282144\r\n $fontvariant=\"\";\r\n switch($this->_variant)\r\n {\r\n case vaNormal: $fontvariant=\"font-variant: normal;\"; break;\r\n case vaSmallCaps: $fontvariant=\"font-variant: small-caps;\"; break;\r\n }\r\n\r\n $texttransform=\"\";\r\n switch($this->_case)\r\n {\r\n case caCapitalize: $texttransform=\"text-transform: capitalize;\"; break;\r\n case caUpperCase: $texttransform=\"text-transform: uppercase;\"; break;\r\n case caLowerCase: $texttransform=\"text-transform: lowercase;\"; break;\r\n case caNone: $texttransform=\"text-transform: none;\"; break;\r\n }\r\n\r\n $color=\"\";\r\n if ($this->_color!=\"\") $color=\"color: $this->_color;\";\r\n\r\n $lineheight=\"\";\r\n if ($this->_lineheight!=\"\") $lineheight=\"line-height: $this->_lineheight;\";\r\n\r\n $fontweight=\"\";\r\n if ($this->_weight!=\"\") $fontweight=\"font-weight: $this->_weight;\";\r\n\r\n return \" $color$fontweight$textalign$fontstyle$lineheight$fontvariant$texttransform \";\r\n }", "function getLegendData()\n\t {\n // Return the legenditems array\n return array(\n \"#22BB22\" => atktext(\"approved\"),\n \"#FF2222\" => atktext(\"not_approved_yet\"),\n );\n\t }" ]
[ "0.6232591", "0.5990622", "0.59901017", "0.59293044", "0.5877246", "0.58543503", "0.5795254", "0.57243913", "0.5675407", "0.56454533", "0.56267", "0.5616569", "0.55259067", "0.5494671", "0.54927963", "0.54718196", "0.54341197", "0.5401345", "0.5379341", "0.5346611", "0.53232694", "0.53150976", "0.5273444", "0.5267637", "0.5267637", "0.52653843", "0.5238445", "0.5221285", "0.5192972", "0.51929104", "0.51929104", "0.51710796", "0.5160192", "0.5141914", "0.5124057", "0.5113942", "0.511114", "0.50935006", "0.50789374", "0.5077829", "0.50742155", "0.5074074", "0.5072604", "0.5071127", "0.50514907", "0.50514907", "0.50514907", "0.5045798", "0.5038325", "0.503011", "0.50012565", "0.4997835", "0.49970305", "0.49854928", "0.4981145", "0.49672157", "0.49643868", "0.49627733", "0.49583295", "0.49493456", "0.49493456", "0.49493456", "0.49493456", "0.49349743", "0.493369", "0.4927218", "0.49227628", "0.488309", "0.48746273", "0.48678106", "0.4852931", "0.48469326", "0.48277614", "0.48252955", "0.4819856", "0.4819856", "0.48095697", "0.48020008", "0.480174", "0.47977725", "0.4796977", "0.47932455", "0.47820872", "0.47716665", "0.47688094", "0.47562525", "0.47358254", "0.47303882", "0.47260427", "0.47214895", "0.47137806", "0.47137806", "0.47137806", "0.47137806", "0.47109282", "0.47083035", "0.47063544", "0.47011206", "0.46923408", "0.4690823" ]
0.8533714
0
MonthName function converts a numeric integer into a month name Param: $intMonth a numver between 112, otherwise defaults to 1 Param: $flag if true, short name; if true, long name;
Функция MonthName преобразует числовое целое число в название месяца Param: $intMonth число от 1 до 12, иначе по умолчанию 1 Param: $flag если true, короткое имя; если true, длинное имя;
function MonthName($intMonth,$flag) { $arShortMonth = array (1=>"Jan", 2=>"Feb", 3=>"Mar", 4=>"Apr", 5=>"May", 6=>"Jun", 7=>"Jul", 8=>"Aug", 9=>"Sep", 10=>"Oct", 11=>"Nov", 12=>"Dec"); $arLongMonth = array (1=>"January", 2=>"February", 3=>"March", 4=>"April", 5=>"May", 6=>"June", 7=>"July", 8=>"August", 9=>"September", 10=>"October", 11=>"November", 12=>"December"); if ($intMonth<1 || $intMonth>12) $intMonth=1; if ($flag) return $arShortMonth[$intMonth]; else return $arLongMonth[$intMonth]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMonthName($var=false){\n\tif (!$var) $var=@$this->actmonth;\n\tif ($this->monthNames) return $this->monthNames[$var-1];\n\tswitch($var){\n\t\tcase 1: return $this->jan;\n\t\tcase 2: return $this->feb;\n\t\tcase 3: return $this->mar;\n\t\tcase 4: return $this->apr;\n\t\tcase 5: return $this->may;\n\t\tcase 6: return $this->jun;\n\t\tcase 7: return $this->jul;\n\t\tcase 8: return $this->aug;\n\t\tcase 9: return $this->sep;\n\t\tcase 10: return $this->oct;\n\t\tcase 11: return $this->nov;\n\t\tcase 12: return $this->dec;\n\t}\n}", "public function IntToMonthName($month) {\n switch ((int)$month) {\n case 1:\n return \"januari\";\n case 2:\n return \"februari\";\n case 3:\n return \"mars\";\n case 4:\n return \"april\";\n case 5:\n return \"maj\";\n case 6:\n return \"juni\";\n case 7:\n return \"juli\";\n case 8:\n return \"augusti\";\n case 9:\n return \"september\";\n case 10:\n return \"oktober\";\n case 11:\n return \"november\";\n case 12:\n return \"december\";\n default:\n return \"not valid month\";\n }\n }", "function monthname($month_number,$abr=false){\n switch($month_number){\n case 1: return $abr?'Jan':'January'; break;\n case 2: return $abr?'Feb':'February'; break;\n case 3: return $abr?'Mar':'March'; break;\n case 4: return $abr?'Apr':'April'; break;\n case 5: return $abr?'May':'May'; break;\n case 6: return $abr?'Jun':'June'; break;\n case 7: return $abr?'Jul':'July'; break;\n case 8: return $abr?'Aug':'August'; break;\n case 9: return $abr?'Sep':'September'; break;\n case 10: return $abr?'Oct':'October'; break;\n case 11: return $abr?'Nov':'November'; break;\n case 12: return $abr?'Dec':'December'; break;\n }\n}", "function monthName($monthNumber)\n{\n switch ($monthNumber) {\n case 1:\n return \"Jan\";\n break;\n case 2:\n return \"Feb\";\n break;\n case 3:\n return \"Mar\";\n break;\n case 4:\n return \"Apr\";\n break;\n case 5:\n return \"May\";\n break;\n case 6:\n return \"Jun\";\n break;\n case 7:\n return \"Jul\";\n break;\n case 8:\n return \"Aug\";\n break;\n case 9:\n return \"Sep\";\n break;\n case 10:\n return \"Oct\";\n break;\n case 11:\n return \"Nov\";\n break;\n case 12:\n return \"Dec\";\n break;\n }\n}", "public function getMonthName($month_number, $abbreviation = false);", "public function GetMonthName() {\n return $this->IntToMonthName($this->GetMonth());\n }", "function getMonthName($monthNumber = 1)\n\t{\n\t\tswitch($monthNumber)\n\t\t{\n\t\t\tcase 1: return 'Jan';\n\t\t\tcase 2: return 'Feb';\n\t\t\tcase 3: return 'Mar';\n\t\t\tcase 4: return 'Apr';\n\t\t\tcase 5: return 'May';\n\t\t\tcase 6: return 'Jun';\n\t\t\tcase 7: return 'Jul';\n\t\t\tcase 8: return 'Aug';\n\t\t\tcase 9: return 'Sep';\n\t\t\tcase 10: return 'Oct';\n\t\t\tcase 11: return 'Nov';\n\t\t\tcase 12: return 'Dec';\n\t\t\t\n\t\t\tdefault: return 'Jan';\n\t\t}\n\t}", "public function toMonth(int $int)\n {\n return date('F', mktime(0, 0, 0, $int, 10));\n }", "public static function nameOfNumberMonth($number) {\n $sg = '';\n switch ($number) {\n case -2:\n $sg = 'Out';\n break;\n case -1:\n $sg = 'Nov';\n break;\n case 0:\n $sg = 'Dez';\n break;\n case 1:\n $sg = 'Jan';\n break;\n case 2:\n $sg = 'Fev';\n break;\n case 3:\n $sg = 'Mar';\n break;\n case 4:\n $sg = 'Abr';\n break;\n case 5:\n $sg = 'Mai';\n break;\n case 6:\n $sg = 'Jun';\n break;\n case 7:\n $sg = 'Jul';\n break;\n case 8:\n $sg = 'Ago';\n break;\n case 9:\n $sg = 'Set';\n break;\n case 10:\n $sg = 'Out';\n break;\n case 11:\n $sg = 'Nov';\n break;\n case 12:\n $sg = 'Dez';\n break;\n default:\n break;\n }\n return $sg;\n }", "public function getMonthName($i)\n {\n // elseif ($i == 2) $bulan = 'feb' ;\n // elseif ($i == 3) $bulan = 'mar' ;\n // elseif ($i == 4) $bulan = 'apr' ;\n // elseif ($i == 5) $bulan = 'mei' ;\n // elseif ($i == 6) $bulan = 'jun' ;\n // elseif ($i == 7) $bulan = 'jul' ;\n // elseif ($i == 8) $bulan = 'ags' ;\n // elseif ($i == 9) $bulan = 'sep' ;\n // elseif ($i == 10) $bulan = 'okt' ;\n // elseif ($i == 11) $bulan = 'nov' ;\n // elseif ($i == 12) $bulan = 'des' ;\n // return $bulan;\n echo \"2\";\n }", "public function getMonthName($month);", "function monthname($var){\n $month_name = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n return $month_name[$var]; \n}", "public function getMonthName($month = \"\"){\n\t\t//if a month is provided - otherwise, use current\n\t\t$month = ($month == \"\")? $this->getMonth(): $month; \n\t\t$month = intval($month);\n\t\t$month_name = date('F', mktime(0, 0, 0, $month, 1, $this->getYear()));\n\t\treturn $month_name;\n\t}", "function numtomonth($nmonth)\n\t {\n\t if($nmonth==1){\n\t return \"January\";\n\t }elseif ($nmonth==2) {\n\t return \"February\";\n\t }elseif ($nmonth==3) {\n\t return \"March\";\n\t }elseif ($nmonth==4) {\n\t return \"April\";\n\t }elseif ($nmonth==5) {\n\t return \"May\";\n\t }elseif ($nmonth==6) {\n\t return \"Jun\";\n\t }elseif ($nmonth==7) {\n\t return \"July\";\n\t }elseif ($nmonth==8) {\n\t return \"August\";\n\t }elseif ($nmonth==9) {\n\t return \"September\";\n\t }elseif ($nmonth==10) {\n\t return \"October\";\n\t }elseif ($nmonth==11) {\n\t return \"November\";\n\t }elseif ($nmonth==12) {\n\t return \"December\";\n\t }else\n\t {\n\t $nmonth=$nmonth-12;\n\t return numtomonth($nmonth);\n\t }\n\t }", "public static function get_month($i) {\n\t\tswitch($i) {\n\t\t\tcase 1:\n\t\t\t\treturn __('January');\n\t\t\tcase 2:\n\t\t\t\treturn __('February');\n\t\t\tcase 3:\n\t\t\t\treturn __('March');\n\t\t\tcase 4:\n\t\t\t\treturn __('April');\n\t\t\tcase 5:\n\t\t\t\treturn __('May');\n\t\t\tcase 6:\n\t\t\t\treturn __('June');\n\t\t\tcase 7:\n\t\t\t\treturn __('July');\n\t\t\tcase 8:\n\t\t\t\treturn __('August');\n\t\t\tcase 9:\n\t\t\t\treturn __('September');\n\t\t\tcase 10:\n\t\t\t\treturn __('October');\n\t\t\tcase 11:\n\t\t\t\treturn __('November');\n\t\t\tcase 12:\n\t\t\t\treturn __('December');\n\t\t\tdefault:\n\t\t\t\treturn 'Invalid Month index \"'.$i.'\"';\n\t\t}\n\t}", "public static function monthNum2Name($monthNum) {\r\n return DateTimeTxt::monthNames(IsoCodes::$isoDE)[$monthNum]; \r\n }", "public function monthName($month) {\n return date('F', mktime(0,0,0, $month,1));\n }", "function numtomonth($nmonth)\n {\n if($nmonth==1){\n return \"January\";\n }elseif ($nmonth==2) {\n return \"February\";\n }elseif ($nmonth==3) {\n return \"March\";\n }elseif ($nmonth==4) {\n return \"April\";\n }elseif ($nmonth==5) {\n return \"May\";\n }elseif ($nmonth==6) {\n return \"Jun\";\n }elseif ($nmonth==7) {\n return \"July\";\n }elseif ($nmonth==8) {\n return \"August\";\n }elseif ($nmonth==9) {\n return \"September\";\n }elseif ($nmonth==10) {\n return \"October\";\n }elseif ($nmonth==11) {\n return \"November\";\n }elseif ($nmonth==12) {\n return \"December\";\n }else\n {\n $nmonth=$nmonth-12;\n return numtomonth($nmonth);\n }\n }", "public function get_month_name($month)\n {\n if($this->month_type == 'short')\n {\n $month_names = array('01' => 'jan', '02' => 'feb', '03' => 'mar', '04' => 'apr', '05' => 'may', '06' => 'jun', '07' => 'jul', '08' => 'aug', '09' => 'sep', '10' => 'oct', '11' => 'nov', '12' => 'dec');\n }\n else\n {\n $month_names = array('01' => 'january', '02' => 'february', '03' => 'march', '04' => 'april', '05' => 'mayl', '06' => 'june', '07' => 'july', '08' => 'august', '09' => 'september', '10' => 'october', '11' => 'november', '12' => 'december');\n }\n\n return ucfirst($month_names[$month]);\n \n }", "public function getMonthName(){\n\t\tif($this->_year>1970&&$this->_year<2038){\n\t\t\t$timestamp = $this->_timestamp;\n\t\t} else {\n\t\t\t$timestamp = mktime(0, 0, 0, $this->_month, 1, date('Y'));\n\t\t}\n\t\t$locale = $this->getLocale();\n\t\t$months = $locale->getMonthList();\n\t\treturn ucfirst($months[$this->_month-1]);\n\t}", "function getMonthName($code)\n{\n\treturn date(\"F\",strtotime(\"2012-{$code}-01\"));\n}", "public function getAbrevMonthName(){\n\t\tif($this->_year>1970&&$this->_year<2038){\n\t\t\t$timestamp = $this->_timestamp;\n\t\t} else {\n\t\t\t$timestamp = mktime(0, 0, 0, $this->_month, 1, date('Y'));\n\t\t}\n\t\t$locale = $this->getLocale();\n\t\t$months = $locale->getAbrevMonthList();\n\t\treturn ucfirst($months[$this->_month-1]);\n\t}", "private function getMonthName() {\n\t\treturn ucwords($this->monthNames[$this->month-1]);\n\t}", "function &monthName( $month, $isShort=true )\r\n {\r\n $errorString = \"<b>Locale error</b>: unknown month name\";\r\n $name = \"\";\r\n\r\n if ( $month == \"unknown\" )\r\n return $errorString;\r\n\r\n if ( $isShort )\r\n $long = \"\";\r\n else\r\n $long = \"long\";\r\n\r\n if ( is_numeric( $month ) == true )\r\n {\r\n switch ( $month )\r\n {\r\n case 1 :\r\n {\r\n $month = \"jan\";\r\n break;\r\n }\r\n case 2 :\r\n {\r\n $month = \"feb\";\r\n break;\r\n }\r\n case 3 :\r\n {\r\n $month = \"mar\";\r\n break;\r\n }\r\n case 4 :\r\n {\r\n $month = \"apr\";\r\n break;\r\n }\r\n case 5 :\r\n {\r\n $month = \"may\";\r\n break;\r\n }\r\n case 6 :\r\n {\r\n $month = \"jun\";\r\n break;\r\n }\r\n case 7 :\r\n {\r\n $month = \"jul\";\r\n break;\r\n }\r\n case 8 :\r\n {\r\n $month = \"aug\";\r\n break;\r\n }\r\n case 9 :\r\n {\r\n $month = \"sep\";\r\n break;\r\n }\r\n case 10 :\r\n {\r\n $month = \"oct\";\r\n break;\r\n }\r\n case 11 :\r\n {\r\n $month = \"nov\";\r\n break;\r\n }\r\n case 12 :\r\n {\r\n $month = \"dec\";\r\n break;\r\n }\r\n }\r\n }\r\n\r\n $name =& $this->LocaleIni->read_var( \"RegionalSettings\", $long . $month );\r\n\r\n if ( $name == false )\r\n {\r\n return $errorString;\r\n }\r\n else\r\n {\r\n return $name;\r\n }\r\n }", "function _monthToString($month, $abbr = false)\n\t{\n\t\tswitch ($month)\n\t\t{\n\t\t\tcase 1: return $abbr ? WText::_('WANUARY_SHORT') : WText::_('JANUARY');\n\t\t\tcase 2: return $abbr ? WText::_('FEBRUARY_SHORT') : WText::_('FEBRUARY');\n\t\t\tcase 3: return $abbr ? WText::_('MARCH_SHORT') : WText::_('MARCH');\n\t\t\tcase 4: return $abbr ? WText::_('APRIL_SHORT') : WText::_('APRIL');\n\t\t\tcase 5: return $abbr ? WText::_('MAY_SHORT') : WText::_('MAY');\n\t\t\tcase 6: return $abbr ? WText::_('JUNE_SHORT') : WText::_('JUNE');\n\t\t\tcase 7: return $abbr ? WText::_('JULY_SHORT') : WText::_('JULY');\n\t\t\tcase 8: return $abbr ? WText::_('AUGUST_SHORT') : WText::_('AUGUST');\n\t\t\tcase 9: return $abbr ? WText::_('SEPTEMBER_SHORT') : WText::_('SEPTEMBER');\n\t\t\tcase 10: return $abbr ? WText::_('OCTOBER_SHORT') : WText::_('OCTOBER');\n\t\t\tcase 11: return $abbr ? WText::_('NOVEMBER_SHORT') : WText::_('NOVEMBER');\n\t\t\tcase 12: return $abbr ? WText::_('DECEMBER_SHORT') : WText::_('DECEMBER');\n\t\t}\n\t}", "function yourls_l10n_month_abbrev( $month = '' ){\n\tglobal $yourls_locale_formats;\n\tif( !isset( $yourls_locale_formats ) )\n\t\t$yourls_locale_formats = new YOURLS_Locale_Formats();\n\n\tif( $month === '' )\n\t\treturn $yourls_locale_formats->month_abbrev;\n\n\tif( intval( $month ) > 0 ) {\n $month = sprintf('%02d', intval( $month ) );\n\t\t$month = $yourls_locale_formats->month[ $month ];\n\t\treturn $yourls_locale_formats->month_abbrev[ $month ];\n\t} else {\n\t\treturn $yourls_locale_formats->month_abbrev[ yourls__( $month ) ];\n\t}\n}", "protected function getMonthName($month)\n {\n return $month == 'all' ? '' : 'Bulan ' . bulan($month);\n }", "function month($mes)\n{\n\tif ($mes == 1) return \"Jan\";\n\tif ($mes == 2) return \"Feb\";\n\tif ($mes == 3) return \"Mar\";\n\tif ($mes == 4) return \"Apr\";\n\tif ($mes == 5) return \"May\";\n\tif ($mes == 6) return \"Jun\";\n\tif ($mes == 7) return \"Jul\";\n\tif ($mes == 8) return \"Aug\";\n\tif ($mes == 9) return \"Sept\";\n\tif ($mes == 10) return \"Oct\";\n\tif ($mes == 11) return \"Nob\";\n\tif ($mes == 12) return \"Dec\";\n}", "public static function getMonthName($month)\n {\n switch ($month) {\n case 1:\n return \"Janeiro\";\n case 2:\n return \"Fevereiro\";\n case 3:\n return \"Marco\";\n case 4:\n return \"Abril\";\n case 5:\n return \"Maio\";\n case 6:\n return \"Junho\";\n case 7:\n return \"Julho\";\n case 8:\n return \"Agosto\";\n case 9:\n return \"Setembro\";\n case 10:\n return \"Outubro\";\n case 11:\n return \"Novembro\";\n case 12:\n return \"Dezembro\";\n default:\n return \"\";\n }\n }", "function month_to_string($i) \n {\n if (!is_numeric($i)) return \"\";\n $str = Array(\n 1 => 'Enero',\n 2 => 'Febrero',\n 3 => 'Marzo',\n 4 => 'Abril',\n 5 => 'Mayo',\n 6 => 'Junio',\n 7 => 'Julio',\n 8 => 'Agosto',\n 9 => 'Septiembre',\n 10 => 'Octubre',\n 11 => 'Noviembre',\n 12 => 'Diciembre'\n );\n if (isset($str[intval($i)])) \n return $str[intval($i)];\n else\n return \"\";\n }", "function getMonthName($abbr = false)\r\n {\r\n if($abbr) {\r\n return Data_Calc::getMesNomeAbrev($this->mes);\r\n } else {\r\n return Data_Calc::getMesNomeCompl($this->mes);\r\n }\r\n }", "public function monthControl(){\n\t\t$month = date('m', time());\n\t\t\t\t\n\t\t//remakes $month to the month's name\n\t\tswitch ($month) {\n\t\t\tcase 1:\t$month = \"Januari\";\t\tbreak;\n\t\t\tcase 2:\t$month = \"Februari\";\tbreak;\n\t\t\tcase 3:\t$month = \"Mars\";\t\tbreak;\n\t\t\tcase 4:\t$month = \"April\";\t\tbreak;\n\t\t\tcase 5:\t$month = \"Maj\";\t\t\tbreak;\n\t\t\tcase 6:\t$month = \"Juni\";\t\tbreak;\n\t\t\tcase 7:\t$month = \"Juli\";\t\tbreak;\n\t\t\tcase 8:\t$month = \"Augusti\";\t\tbreak;\n\t\t\tcase 9:\t$month = \"September\";\tbreak;\n\t\t\tcase 10:$month = \"Oktober\";\t\tbreak;\n\t\t\tcase 11:$month = \"November\";\tbreak;\t\n\t\t\tcase 12:$month = \"December\";\tbreak;\n\t\t}\n\t\t\n\t\treturn $month;\n\t}", "private function returnFullMonthName($month) {\n switch ($month) {\n case \"1\":\n return \"January\";\n case \"2\":\n return \"February\";\n case \"3\":\n return \"March\";\n case \"4\":\n return \"April\";\n case \"5\":\n return \"May\";\n case \"6\":\n return \"June\";\n case \"7\":\n return \"July\";\n case \"8\":\n return \"August\";\n case \"9\":\n return \"September\";\n case \"10\":\n return \"October\";\n case \"11\":\n return \"November\";\n case \"12\":\n return \"December\";\n }\n }", "function get_month( $month_number ) {\n\t\treturn $this->month[ sprintf( '%02s', $month_number ) ];\n\t}", "public function get_month_abbrev($month_name)\n {\n }", "public function getMonthName($month){\n\n \treturn $this->monthName[$month];\n }", "function genMonth_Text($m) { \n switch ($m) { \n case '01': $month_text = \"Enero\"; break; \n case '02': $month_text = \"Febrero\"; break; \n case '03': $month_text = \"Marzo\"; break; \n case '04': $month_text = \"Abril\"; break; \n case '05': $month_text = \"Mayo\"; break; \n case '06': $month_text = \"Junio\"; break; \n case '07': $month_text = \"Julio\"; break; \n case '08': $month_text = \"Agosto\"; break; \n case '09': $month_text = \"Septiembre\"; break; \n case '10': $month_text = \"Octubre\"; break; \n case '11': $month_text = \"Noviembre\"; break; \n case '12': $month_text = \"Diciembre\"; break; \n } \n return ($month_text); \n }", "private function returnPartMonthName($month) {\n switch ($month) {\n case \"1\":\n return \"Jan\";\n case \"2\":\n return \"Feb\";\n case \"3\":\n return \"Mar\";\n case \"4\":\n return \"Apr\";\n case \"5\":\n return \"May\";\n case \"6\":\n return \"Jun\";\n case \"7\":\n return \"Jul\";\n case \"8\":\n return \"Aug\";\n case \"9\":\n return \"Sep\";\n case \"10\":\n return \"Oct\";\n case \"11\":\n return \"Nov\";\n case \"12\":\n return \"Dec\";\n }\n }", "function monthNames($format='long')\n {\n $formats = array('one'=>'%b', 'two'=>'%b', 'short'=>'%b', 'long'=>'%B');\n if (!array_key_exists($format,$formats)) {\n $format = 'long';\n }\n $months = array();\n for ($i=1; $i<=12; $i++) {\n $stamp = mktime(0, 0, 0, $i, 1, 2003);\n $month = strftime($formats[$format], $stamp);\n switch($format) {\n case 'one':\n $month = substr($month, 0, 1);\n break;\n case 'two':\n $month = substr($month, 0, 2);\n break;\n }\n $months[$i] = $month;\n }\n return $months;\n }", "function date_month($month) {\n\tswitch ($month) {\n\t\tcase 1:\n\t\t\techo \"Януари\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\techo \"Февруари\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\techo \"Март\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\techo \"Април\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\techo \"Май\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\techo \"Юни\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\techo \"Юли\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\techo \"Август\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\techo \"Септември\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\techo \"Октомври\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\techo \"Ноември\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\techo \"Декември\";\n\t\t\tbreak;\n\t}\n}", "public function getMonthName()\r\n\t{\r\n\t\treturn $this->format('F');\r\n\t}", "function months($short = false)\n{\n $months = [\n 0 => 'Month',\n 1 => 'January',\n 2 => 'February',\n 3 => 'March',\n 4 => 'April',\n 5 => 'May',\n 6 => 'June',\n 7 => 'July',\n 8 => 'August',\n 9 => 'September',\n 10 => 'October',\n 11 => 'November',\n 12 => 'December',\n ];\n\n if ($short)\n {\n foreach ($months as $number => $name)\n {\n $months[$number] = substr($name, 0, 3);\n }\n }\n\n return $months;\n}", "public function getShortNameMonth(string $field = 'created_at'): string\n {\n return $this->parseCarbon($this->$field)->formatLocalized('%b');\n }", "function ruMonthName($month) {\n\n if($month < 1 || $month > 12) $month = 0; else $month--;\n $mn = array('января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря');\n \n return $mn[$month];\n\n }", "function get_month_abbrev( $month_name ) {\n\t\treturn $this->month_abbrev[ $month_name ];\n\t}", "public function getMonthName()\n {\n return $this->currentMonth[\"month\"];\n }", "public function get_month($month_number)\n {\n }", "public function getNameMonth(string $field = 'created_at'): string\n {\n return $this->parseCarbon($this->$field)->formatLocalized('%B');\n }", "function getmonth($txt)\n {\n\t\n\t return substr($txt,5,2);\n }", "public function getMonth() : string\n {\n return date('m', $this->getUnixTimestamp());\n }", "function smarty_modifier_month_format($month)\n{\n\t$month = preg_replace('/^0/', '', $month);\n\tswitch($month) {\n\tcase 1:\n\t\treturn \"January\";\n\t\tbreak;\n\tcase 2:\n\t\treturn \"February\";\n\t\tbreak;\n\tcase 3:\n\t\treturn \"March\";\n\t\tbreak;\n\tcase 4:\n\t\treturn \"April\";\n\t\tbreak;\n\tcase 5:\n\t\treturn \"May\";\n\t\tbreak;\n\tcase 6:\n\t\treturn \"June\";\n\t\tbreak;\n\tcase 7:\n\t\treturn \"July\";\n\t\tbreak;\n\tcase 8:\n\t\treturn \"August\";\n\t\tbreak;\n\tcase 9:\n\t\treturn \"September\";\n\t\tbreak;\n\tcase 10:\n\t\treturn \"October\";\n\t\tbreak;\n\tcase 11:\n\t\treturn \"November\";\n\t\tbreak;\n\tcase 12:\n\t\treturn \"December\";\n\t\tbreak;\n\t}\n}", "public function getMonthAbbr()\r\n\t{\r\n\t\treturn $this->format('M');\r\n\t}", "public function ToMonth($month){\n\t\tswitch( $month ){\n\t\t\tcase 1: $mes = 'Enero';\n\t\t\tbreak;\n\t\t\t case 2: $mes = 'Febrero';\n\t\t\tbreak;\n\t\t\t case 3: $mes = 'Marzo';\n\t\t\tbreak;\n\t\t\t case 4: $mes = 'Abril';\n\t\t\tbreak;\n\t\t\t case 5: $mes = 'Mayo';\n\t\t\t break;\n\t\t\t case 6: $mes = 'Junio';\n\t\t\tbreak;\n\t\t\t case 7: $mes = 'Julio';\n\t\t\t break;\n\t\t\t case 8: $mes = 'Agosto';\n\t\t\tbreak;\n\t\t\t case 9: $mes = 'Septiembre';\n\t\t\t break;\n\t\t\tcase 10: $mes = 'Octubre';\n\t\t\t break;\n\t\t\t case 11: $mes = 'Noviembre';\n\t\t\t break;\n\t\t\t case 12: $mes = 'Diciembre';\n\t\t\tbreak;\n\t\t}\n\t\t return $mes;\n\t}", "function single_month_title($prefix = '', $display = \\true)\n {\n }", "function date_month($date){\r\n\t$month = NULL;\r\n\t$cont = 0;\r\n\tfor($i = 0; $i < strlen($date); $i++){\r\n\t\tif(is_numeric(substr($date, $i, 1))){\r\n\t\t\tif($cont == 1){\r\n\t\t\t\t$month .= substr($date, $i, 1);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($cont > 0){\r\n\t\t\t\treturn $month;\r\n\t\t\t}else{\r\n\t\t\t\t$cont++;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $month;\r\n}", "private function setMonthNames()\n\t{\n\t\t$range = range(1,12);\n\t\t$return = array();\n\t\tforeach($range AS $key => $monthNum)\n\t\t{\n\t\t $fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'MMMM');\n\t\t\t$return[$monthNum] = datefmt_format( $fmt , mktime(12,0,0,$monthNum,1,date('Y')));\n\t\t}\n\n\t\treturn $return;\n\t}", "public static function month_str_to_int(string $month){\r\n $month = strtolower($month);\r\nswitch ($month) {\r\n case \"january\":\r\n $month_int = 1;\r\n break;\r\n case \"february\":\r\n $month_int = 2;\r\n break;\r\n case \"march\":\r\n $month_int = 3;\r\n break;\r\n case \"april\":\r\n $month_int = 4;\r\n break;\r\n case \"may\":\r\n $month_int = 5;\r\n break;\r\n case \"june\":\r\n $month_int = 6;\r\n break;\r\n case \"july\":\r\n $month_int = 7;\r\n break;\r\n case \"august\":\r\n $month_int = 8;\r\n break;\r\n case \"september\":\r\n $month_int = 9;\r\n break;\r\n case \"october\":\r\n $month_int = 10;\r\n break;\r\n case \"november\":\r\n $month_int = 11;\r\n break;\r\n case \"december\":\r\n $month_int = 12;\r\n break;\r\n default: die(\"wrong month name\");\r\n\r\n \r\n \r\n } \r\n return $month_int;\r\n }", "function get_str_gesmonth( $mes )\r\n{\r\n if( $mes == 5 ) { $cmonth = \"Ene\"; }\r\n elseif( $mes == 6 ) { $cmonth = \"Feb\"; }\r\n elseif( $mes == 7 ) { $cmonth = \"Mar\"; }\r\n elseif( $mes == 8 ) { $cmonth = \"Abr\"; }\r\n elseif( $mes == 9 ) { $cmonth = \"May\"; }\r\n elseif( $mes == 10 ) { $cmonth = \"Jun\"; }\r\n elseif( $mes == 11 ) { $cmonth = \"Jul\"; }\r\n elseif( $mes == 12 ) { $cmonth = \"Ago\"; }\r\n elseif( $mes == 1 ) { $cmonth = \"Sep\"; }\r\n elseif( $mes == 2 ) { $cmonth = \"Oct\"; }\r\n elseif( $mes == 3 ) { $cmonth = \"Nov\"; }\r\n elseif( $mes == 4 ) { $cmonth = \"Dic\"; }\r\n\r\n return $cmonth;\r\n}", "public static function getMonth($no) {\n\t\t$month = \"\";\n\t\tswitch ($no) {\n\t\t\tcase 1:\n\t\t\t$month = \"JAN\";\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t$month = \"FEB\";\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t$month = \"MAR\";\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t$month = \"APR\";\n\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t$month = \"MAY\";\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t$month = \"JUN\";\n\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t$month = \"JUL\";\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t$month = \"AUG\";\n\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t$month = \"SEP\";\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t$month = \"OCT\";\n\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t$month = \"NOV\";\n\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t$month = \"DEC\";\n\t\t\tbreak;\n\t\t}\n\t\treturn $month;\n\t}", "function changejpmonth($month)\n{\n\n $jpmonth=\"\";\n switch($month) {\n case \"jan\":\n $jpmonth=\"1月 JAN\";\n break;\n\n case \"feb\":\n $jpmonth=\"2月 FEB\";\n break;\n\n case \"mar\":\n $jpmonth=\"3月 MAR\";\n break;\n\n case \"apr\":\n $jpmonth=\"4月 APR\";\n break;\n\n case \"may\":\n $jpmonth=\"5月 MAY\";\n break;\n\n case \"jun\":\n $jpmonth=\"6月 JUN\";\n break;\n\n case \"jul\":\n $jpmonth=\"7月 JUL\";\n break;\n\n case \"aug\":\n $jpmonth=\"8月 AUG\";\n break;\n\n case \"sep\":\n $jpmonth=\"9月 SEP\";\n break;\n\n case \"oct\":\n $jpmonth=\"10月 OCT\";\n break;\n\n case \"nov\":\n $jpmonth=\"11月 NOV\";\n break;\n\n case \"dec\":\n $jpmonth=\"12月 DEC\";\n break;\n }\n return $jpmonth;\n}", "function mkMonthTitle(){\n\tif (!$this->monthNav){\n\t\t$out=\"<tr><td class=\\\"\".$this->cssMonthTitle.\"\\\" colspan=\\\"\".$this->monthSpan.\"\\\">\";\n\t\t$out.=$this->getMonthName().$this->monthYearDivider.$this->actyear;\n\t\t$out.=\"</td></tr>\\n\";\n\t}\n\telse{\n\t\t$out=\"<tr><td class=\\\"\".$this->cssMonthNav.\"\\\" colspan=\\\"2\\\">\";\n\t\tif ($this->actmonth==1) $out.=$this->mkUrl($this->actyear-1,\"12\");\n\t\telse $out.=$this->mkUrl($this->actyear,$this->actmonth-1);\n\t\t$out.=$this->monthNavBack.\"</a></td>\";\n\t\t$out.=\"<td class=\\\"\".$this->cssMonthTitle.\"\\\" colspan=\\\"\".($this->monthSpan-4).\"\\\">\";\n\t\t$out.=$this->getMonthName().$this->monthYearDivider.$this->actyear.\"</td>\";\n\t\t$out.=\"<td class=\\\"\".$this->cssMonthNav.\"\\\" colspan=\\\"2\\\">\";\n\t\tif ($this->actmonth==12) $out.=$this->mkUrl($this->actyear+1,\"1\");\n\t\telse $out.=$this->mkUrl($this->actyear,$this->actmonth+1);\n\t\t$out.=$this->monthNavForw.\"</a></td></tr>\\n\";\n\t}\nreturn $out;\n}", "public function get_month( $month_number ) {\n\t\treturn $this->month[ zeroise( $month_number, 2 ) ];\n\t}", "function monthFormat() {\n\t\tif (func_num_args()) {\n\t\t\t$this->_monthFormat = trim(func_get_arg(0));\n\t\t}\n\t\telse return $this->_monthFormat;\n\t}", "public function getMonthLabel()\r\n {\r\n return \\Type\\DateTime::getMonthExt($this->getMonth());\r\n }", "public function getMonth(): string\n {\n return $this->toLocalizedString('M');\n }", "function month_converter($m) {\n $months = array('01' => get_string('month1', 'report_user_statistics'), '02' => get_string('month2', 'report_user_statistics'), '03' => get_string('month3', 'report_user_statistics'),\n '04' => get_string('month4', 'report_user_statistics'), '05' => get_string('month5', 'report_user_statistics'), '06' => get_string('month6', 'report_user_statistics'),\n '07' => get_string('month7', 'report_user_statistics'), '08' => get_string('month8', 'report_user_statistics'), '09' => get_string('month9', 'report_user_statistics'),\n '10' => get_string('month10', 'report_user_statistics'), '11' => get_string('month11', 'report_user_statistics'), '12' => get_string('month12', 'report_user_statistics'));\n if (is_numeric($m)) {\n return $months[$m];\n } else if (is_string($m)) {\n return array_search($m, $months);\n }\n}", "public function monthToString(string $month) : string\r\n {\r\n $months = [\r\n '01' => 'januari',\r\n '02' => 'februari',\r\n '03' => 'maart',\r\n '04' => 'april',\r\n '05' => 'mei',\r\n '06' => 'juni',\r\n '07' => 'juli',\r\n '08' => 'augustus',\r\n '09' => 'september',\r\n '10' => 'oktober',\r\n '11' => 'november',\r\n '12' => 'december',\r\n ];\r\n\r\n return $months[$month];\r\n }", "function monthdate($date) {\n #print \"monthdate($date)<br>\\n\";\n return trim(substr($date, 5, 2) . substr($date, 8, 2));\n }", "public function get_month_abbrev( $month_name ) {\n\t\treturn $this->month_abbrev[ $month_name ];\n\t}", "public function getMonth($date=null){\n\t\treturn date_format($this->createDate($date),\"m\");\n\t}", "public static function correct_month_name($month){\r\n for ($i=0; $i<=count(self::$db_table_months); $i++){\r\n if ($month == self::$db_table_months[$i]){\r\n $correct = (isset($_GET['lang']) && $_GET['lang']=='en')? ucfirst($month) : self::$serbian_months[$i];\r\n if ((isset($_GET['lang']) && $_GET['lang']=='ru')) $correct = self::$russian_months[$i];\r\n return $correct;\r\n }\r\n }\r\n \r\n }", "public static function getMonthNameFromMonthNumber($monthNumber, $languageIdCode) {\n\t\t//German\n\t\t$monthName[1]['de'] = 'Januar';\n\t\t$monthName[2]['de'] = 'Februar';\n\t\t$monthName[3]['de'] = 'März';\n\t\t$monthName[4]['de'] = 'April';\n\t\t$monthName[5]['de'] = 'Mai';\n\t\t$monthName[6]['de'] = 'Juni';\n\t\t$monthName[7]['de'] = 'Juli';\n\t\t$monthName[8]['de'] = 'August';\n\t\t$monthName[9]['de'] = 'September';\n\t\t$monthName[10]['de'] = 'Oktober';\n\t\t$monthName[11]['de'] = 'November';\n\t\t$monthName[12]['de'] = 'December';\n\t\t//English\n\t\t$monthName[1]['en'] = 'January';\n\t\t$monthName[2]['en'] = 'February';\n\t\t$monthName[3]['en'] = 'March';\n\t\t$monthName[4]['en'] = 'April';\n\t\t$monthName[5]['en'] = 'May';\n\t\t$monthName[6]['en'] = 'June';\n\t\t$monthName[7]['en'] = 'July';\n\t\t$monthName[8]['en'] = 'August';\n\t\t$monthName[9]['en'] = 'September';\n\t\t$monthName[10]['en'] = 'October';\n\t\t$monthName[11]['en'] = 'November';\n\t\t$monthName[12]['en'] = 'December';\n\t\t//French\n\t\t$monthName[1]['fr'] = 'janvier';\n\t\t$monthName[2]['fr'] = 'février';\n\t\t$monthName[3]['fr'] = 'mars';\n\t\t$monthName[4]['fr'] = 'avril';\n\t\t$monthName[5]['fr'] = 'mai';\n\t\t$monthName[6]['fr'] = 'juin';\n\t\t$monthName[7]['fr'] = 'juillet';\n\t\t$monthName[8]['fr'] = 'août';\n\t\t$monthName[9]['fr'] = 'septembre';\n\t\t$monthName[10]['fr'] = 'octobre';\n\t\t$monthName[11]['fr'] = 'novembre';\n\t\t$monthName[12]['fr'] = 'décembre';\n\t\treturn $monthName[$monthNumber][$languageIdCode];\n\t}", "public static function getMonthNames()\n {\n return array( TextHelper::_('COBALT_JANUARY'),\n TextHelper::_('COBALT_FEBRUARY'),\n TextHelper::_('COBALT_MARCH'),\n TextHelper::_('COBALT_APRIL'),\n TextHelper::_('COBALT_MAY'),\n TextHelper::_('COBALT_JUNE'),\n TextHelper::_('COBALT_JULY'),\n TextHelper::_('COBALT_AUGUST'),\n TextHelper::_('COBALT_SEPTEMBER'),\n TextHelper::_('COBALT_OCTOBER'),\n TextHelper::_('COBALT_NOVEMBER'),\n TextHelper::_('COBALT_DECEMBER') );\n }", "function monthchange($mon){\n\t\t\tif ($mon == \"January\"){\n\t\t\t\treturn \"01\";\n\t\t\t} else if ($mon == \"February\"){\n\t\t\t\treturn \"02\";\n\t\t\t} else if ($mon == \"March\"){\n\t\t\t\treturn \"03\";\n\t\t\t} else if ($mon == \"April\"){\n\t\t\t\treturn \"04\";\n\t\t\t} else if ($mon == \"May\"){\n\t\t\t\treturn \"05\";\n\t\t\t} else if ($mon == \"June\"){\n\t\t\t\treturn \"06\";\n\t\t\t} else if ($mon == \"July\"){\n\t\t\t\treturn \"07\";\n\t\t\t} else if ($mon == \"August\"){\n\t\t\t\treturn \"08\";\n\t\t\t} else if ($mon == \"September\"){\n\t\t\t\treturn \"09\";\n\t\t\t} else if ($mon == \"October\"){\n\t\t\t\treturn \"10\";\n\t\t\t} else if ($mon == \"November\"){\n\t\t\t\treturn \"11\";\n\t\t\t} else if ($mon == \"Desember\"){\n\t\t\t\treturn \"12\";\n\t\t\t}\n\t\t}", "function getMonth($selMonth=\"\"){\n\t\t$strMonths = \"\";\n\t\t$strMonths = \"<option value=''>00</option>\";\n\t\tfor($ind=1;$ind<=12;$ind++){\n\t\t\tif($ind == $selMonth)\n\t\t\t\t$strSel = \"selected\";\n\t\t\telse\n\t\t\t\t$strSel = \"\";\n\t\t\t\t\n\t\t\t$strMonths.=\"<option value=\".$ind.\" $strSel>\".(strlen($ind)==1?\"0\".$ind:$ind).\"</option>\";\n\t\t}\n\t\t\n\t\treturn $strMonths;\n\t}", "function monthParamName() {\n\t\tif (func_num_args()) {\n\t\t\t$this->_monthParamName = trim(func_get_arg(0));\n\t\t}\n\t\telse return $this->_monthParamName;\n\t}", "public static function MonthNumToMonthChaine($numMonth, $langue = \"fr\")\n {\n switch ($langue) :\n case \"fr\":\n $mois = array(\"01\" => \"janvier\",\n \"02\" => \"février\",\n \"03\" => \"mars\",\n \"04\" => \"avril\",\n \"05\" => \"mai\",\n \"06\" => \"juin\",\n \"07\" => \"juillet\",\n \"08\" => \"août\",\n \"09\" => \"septembre\",\n \"10\" => \"octobre\",\n \"11\" => \"novembre\",\n \"12\" => \"décembre\");\n break;\n\n case \"en\":\n case \"uk\":\n $mois = array(\"01\" => \"january\",\n \"02\" => \"february\",\n \"03\" => \"march\",\n \"04\" => \"april\",\n \"05\" => \"may\",\n \"06\" => \"june\",\n \"07\" => \"july\",\n \"08\" => \"august\",\n \"09\" => \"september\",\n \"10\" => \"october\",\n \"11\" => \"november\",\n \"12\" => \"december\");\n break;\n endswitch;\n\n return $mois[$numMonth];\n }", "function jr_translate_months( $month ) {\r\n\r\n\t$translated_months = array (\r\n\t\t'january' \t=> __('January', APP_TD),\r\n\t\t'february' \t=> __('February', APP_TD),\r\n\t\t'march' \t=> __('March', APP_TD),\r\n\t\t'april' \t=> __('April', APP_TD),\r\n\t\t'may' \t\t=> __('May', APP_TD),\r\n\t\t'june' \t\t=> __('June', APP_TD),\r\n\t\t'july' \t\t=> __('July', APP_TD),\r\n\t\t'august' \t=> __('August', APP_TD),\r\n\t\t'september' => __('September', APP_TD),\r\n\t\t'october' \t=> __('October', APP_TD),\r\n\t\t'november' \t=> __('November', APP_TD),\r\n\t\t'december' \t=> __('December', APP_TD),\r\n\t);\r\n\r\n\treturn $translated_months[ strtolower(trim($month)) ];\r\n\r\n}", "function thisMonthName($Calendar, $format='long')\n {\n $months = Calendar_Util_Textual::monthNames($format);\n return $months[$Calendar->thisMonth()];\n }", "function getMonthLabels() {\n\t\treturn array('count_jan', 'count_feb', 'count_mar', 'count_apr', 'count_may', 'count_jun', 'count_jul', 'count_aug', 'count_sep', 'count_oct', 'count_nov', 'count_dec');\n\t}", "public static function getAmericanMonthNameFromNumber($monthNumber) {\n\t\t$r = '';\n\t\tswitch($monthNumber) {\n\t\t\tcase 1;\n\t\t\t$r .= 'January';\n\t\t\tbreak;\n\t\t\tcase 2;\n\t\t\t$r .= 'February';\n\t\t\tbreak;\n\t\t\tcase 3;\n\t\t\t$r .= 'March';\n\t\t\tbreak;\n\t\t\tcase 4;\n\t\t\t$r .= 'April';\n\t\t\tbreak;\n\t\t\tcase 5;\n\t\t\t$r .= 'May';\n\t\t\tbreak;\n\t\t\tcase 6;\n\t\t\t$r .= 'June';\n\t\t\tbreak;\n\t\t\tcase 7;\n\t\t\t$r .= 'July';\n\t\t\tbreak;\n\t\t\tcase 8;\n\t\t\t$r .= 'August';\n\t\t\tbreak;\n\t\t\tcase 9;\n\t\t\t$r .= 'September';\n\t\t\tbreak;\n\t\t\tcase 10;\n\t\t\t$r .= 'October';\n\t\t\tbreak;\n\t\t\tcase 11;\n\t\t\t$r .= 'November';\n\t\t\tbreak;\n\t\t\tcase 12;\n\t\t\t$r .= 'December';\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$r .= '(UNKNOWN MONTH NUMBER: ' . $monthNumber . ')';\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $r;\n\t}", "public function testGetMonthNames()\r\n {\r\n $calendar = new \\tabs\\api\\property\\Calendar(array('month_type' => 'short'));\r\n $this->assertEquals('Jan', $calendar->getMonthName('01'));\r\n $this->assertEquals('Feb', $calendar->getMonthName('02'));\r\n $this->assertEquals('Mar', $calendar->getMonthName('03'));\r\n $this->assertEquals('Apr', $calendar->getMonthName('04'));\r\n $this->assertEquals('May', $calendar->getMonthName('05'));\r\n $this->assertEquals('Jun', $calendar->getMonthName('06'));\r\n $this->assertEquals('Jul', $calendar->getMonthName('07'));\r\n $this->assertEquals('Aug', $calendar->getMonthName('08'));\r\n $this->assertEquals('Sep', $calendar->getMonthName('09'));\r\n $this->assertEquals('Oct', $calendar->getMonthName('10'));\r\n $this->assertEquals('Nov', $calendar->getMonthName('11'));\r\n $this->assertEquals('Dec', $calendar->getMonthName('12'));\r\n }", "function get_month()\n {\n $datearray=getdate($this->timestamp);\n return $datearray[\"mon\"];\n }", "protected function getMonthNameHTML($mth_num)\n {\n $month_names = $this->getLang('yearbox_months');\n $alt_css = ($mth_num % 2 == 0) ? ' class=\"alt\"' : '';\n return '<th' . $alt_css . '>' . $month_names[$mth_num - 1] . '</th>';\n }", "function convertMiladi($date,$monthname=false) {\r\n\t\t$y = substr($date,0,4);\r\n\t\t$m = substr($date,5,2);\r\n\t\t$d = substr($date,8,2);\r\n\r\n\r\n\t\tif(!$monthname){ // return basic\r\n\t\t\treturn($d.'-'.$m.'-'.$y);\r\n\t\t} else { // return full\r\n\t\t\tswitch ($m){\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t$mn = 'يناير';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\t$mn = ' فبراير';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\t$mn = 'مارس';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\t$mn = 'أبريل';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\t$mn = 'مايو';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\t$mn = 'يونيو';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\t$mn = 'يوليه';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\t$mn = ' أغسطس';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\t$mn = 'سبتمبر';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\t$mn = 'أكتوبر';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\t$mn = 'نوفمبر';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\t$mn = 'ديسمبر';\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn($d.' '.$mn.' '.$y);\r\n\t\t}\r\n\t}", "function Mesabreviado($varmesabrev)\n{\n\tif ($varmesabrev == 1) return \"JAN\";\n\tif ($varmesabrev == 2) return \"FEB\";\n\tif ($varmesabrev == 3) return \"MAR\";\n\tif ($varmesabrev == 4) return \"APR\";\n\tif ($varmesabrev == 5) return \"MAJ\";\n\tif ($varmesabrev == 6) return \"JUN\";\n\tif ($varmesabrev == 7) return \"JUL\";\n\tif ($varmesabrev == 8) return \"AUG\";\n\tif ($varmesabrev == 9) return \"SEP\";\n\tif ($varmesabrev == 10) return \"OCT\";\n\tif ($varmesabrev == 11) return \"NOV\";\n\tif ($varmesabrev == 12) return \"DEC\";\n}", "function prim_options_month() {\n $month = array(\n 'jan' => t('jan'),\n 'feb' => t('feb'),\n 'mar' => t('mar'),\n 'apr' => t('apr'),\n 'may' => t('maj'),\n 'jun' => t('jun'),\n 'jul' => t('jul'),\n 'aug' => t('aug'),\n 'sep' => t('sep'),\n 'oct' => t('okt'),\n 'nov' => t('nov'),\n 'dec' => t('dec'),\n );\n\n return $month;\n}", "static public function getMonth($month)\n {\n return self::$_months[substr($month, 0, 3)];\n }", "public function GetMonth($leadingZero = true) {\n return $leadingZero ? $this->format('m') : $this->format('n');\n }", "protected function get_month_names() {\n\t\tglobal $wp_locale;\n\n\t\t$month_names = [];\n\n\t\tfor ( $i = 1; $i < 13; $i = $i + 1 ) {\n\t\t\t$month_num = zeroise( $i, 2 );\n\t\t\t$month_text = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );\n\t\t\t$month_names[] = array(\n\t\t\t\t'value' => $month_num,\n\t\t\t\t'text' => $month_text,\n\t\t\t\t'label' => sprintf( _x( '%1$s-%2$s', 'month number-name', 'unpublish' ), $month_num, $month_text ),\n\t\t\t);\n\t\t}\n\n\t\treturn $month_names;\n\t}", "function getMonthName()\n {\n return $this->currentMonthName;\n }", "public function all_month_name()\n\t{\n\t\t$res = $this->db->order_by('id', 'asc')->get('months')->result();\n\t\tif($res){\n\t\t\treturn $res;\n\t\t}else{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public static function formMonthFld($field): string\n\t{\n\t\treturn Formatter::setMonthformat($field);\n\t}", "function form_select_month($name, $month, $id='') {\n\n\tglobal $cache2;\n\n\t// are we dealing with timestamp\n\tif ($month > 10000) {\n\t\t$month = fetch_month($month);\n\t}\n\n\t$id = ifr($id, $name);\n\n\treturn form_select($name, $cache2->getCalendarData('months_short'), '', $month, '', '', '', '', '', $id);\n\n}", "public static function getName(int $monthOfYear): string\n {\n $names = [\n 1 => 'January',\n 2 => 'February',\n 3 => 'March',\n 4 => 'April',\n 5 => 'May',\n 6 => 'June',\n 7 => 'July',\n 8 => 'August',\n 9 => 'September',\n 10 => 'October',\n 11 => 'November',\n 12 => 'December',\n ];\n\n return $names[$monthOfYear];\n }", "public function getMonthNames($array) {\n\t\treturn $this->monthNames;\n\t}", "private function getMonthLang($month){\n\t\tswitch($month){\n\t\t\tcase\"01\":return \"Januari\";break;\n\t\t\tcase\"02\":return \"Februari\";break;\n\t\t\tcase\"03\":return \"Maret\";break;\n\t\t\tcase\"04\":return \"April\";break;\n\t\t\tcase\"05\":return \"Mei\";break;\n\t\t\tcase\"06\":return \"Juni\";break;\n\t\t\tcase\"07\":return \"Juli\";break;\n\t\t\tcase\"08\":return \"Agustus\"; break;\n\t\t\tcase\"09\":return \"September\"; break;\n\t\t\tcase\"10\":return \"Oktober\"; break;\n\t\t\tcase\"11\":return \"November\"; break;\n\t\t\tcase\"12\":return \"Desember\"; break;\n\t\t\tcase\"January\":return \"Januari\";break;\n\t\t\tcase\"February\":return \"Februari\";break;\n\t\t\tcase\"March\":return \"Maret\";break;\n\t\t\tcase\"April\":return \"April\";break;\n\t\t\tcase\"May\":return \"Mei\";break;\n\t\t\tcase\"June\":return \"Juni\";break;\n\t\t\tcase\"July\":return \"Juli\";break;\n\t\t\tcase\"August\":return \"Agustus\"; break;\n\t\t\tcase\"September\":return \"September\"; break;\n\t\t\tcase\"October\":return \"Oktober\"; break;\n\t\t\tcase\"November\":return \"November\"; break;\n\t\t\tcase\"Descember\":return \"Desember\"; break;\n\t\t\tcase\"Jan\":return \"Januari\";break;\n\t\t\tcase\"Feb\":return \"Februari\";break;\n\t\t\tcase\"Mar\":return \"Maret\";break;\n\t\t\tcase\"Apr\":return \"April\";break;\n\t\t\tcase\"May\":return \"Mei\";break;\n\t\t\tcase\"Jun\":return \"Juni\";break;\n\t\t\tcase\"Jul\":return \"Juli\";break;\n\t\t\tcase\"Aug\":return \"Agustus\"; break;\n\t\t\tcase\"Sep\":return \"September\"; break;\n\t\t\tcase\"Oct\":return \"Oktober\"; break;\n\t\t\tcase\"Nov\":return \"November\"; break;\n\t\t\tcase\"Dec\":return \"Desember\"; break;\n\t\t\tdefault:return \"Januari\";break;\n\t\t}\n\t}", "public static function getMonthNamesShort()\n {\n return array( TextHelper::_('COBALT_JAN'),\n TextHelper::_('COBALT_FEB'),\n TextHelper::_('COBALT_MAR'),\n TextHelper::_('COBALT_APR'),\n TextHelper::_('COBALT_MAY'),\n TextHelper::_('COBALT_JUN'),\n TextHelper::_('COBALT_JUL'),\n TextHelper::_('COBALT_AUG'),\n TextHelper::_('COBALT_SEP'),\n TextHelper::_('COBALT_OCT'),\n TextHelper::_('COBALT_NOV'),\n TextHelper::_('COBALT_DEC') );\n }", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "public function getMonth($leadingZero = false)\r\n\t{\r\n\t\tif ($leadingZero)\r\n\t\t{\r\n\t\t\treturn $this->format('m');\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn $this->format('n');\r\n\t\t}\r\n\t}" ]
[ "0.75161004", "0.74652904", "0.7144807", "0.7098847", "0.7093419", "0.7051912", "0.7020693", "0.6910796", "0.68853194", "0.68797356", "0.6863898", "0.6691211", "0.6668919", "0.6650689", "0.66392004", "0.6626972", "0.65991753", "0.65896904", "0.65835977", "0.65091485", "0.6477627", "0.6450184", "0.64496285", "0.64250576", "0.6401932", "0.639717", "0.6334304", "0.6319071", "0.6290669", "0.62827426", "0.62810177", "0.6213084", "0.6201313", "0.6168117", "0.61605865", "0.6145737", "0.61304796", "0.6129719", "0.6105481", "0.6069402", "0.6059109", "0.6028722", "0.60212874", "0.6020378", "0.5927117", "0.59197515", "0.59172004", "0.58959705", "0.5881416", "0.58790183", "0.58620954", "0.58558095", "0.5845738", "0.5801506", "0.57998395", "0.5786452", "0.57861567", "0.577955", "0.5753543", "0.57464534", "0.57453084", "0.5724679", "0.5721401", "0.57133174", "0.57017523", "0.5681313", "0.56762016", "0.567117", "0.56640196", "0.5636974", "0.56197226", "0.56147265", "0.55719733", "0.5566039", "0.55614275", "0.5559307", "0.5553994", "0.5532046", "0.5477475", "0.547397", "0.5467212", "0.5439642", "0.54289037", "0.5416638", "0.54073596", "0.5407017", "0.54053533", "0.5399683", "0.538639", "0.5378748", "0.5368699", "0.5356323", "0.53529465", "0.5328011", "0.5305316", "0.52978057", "0.5289662", "0.52376336", "0.52344126", "0.52338815" ]
0.80633587
0
public function listapac($estado = '', $organigrama_id = '',$fecha_ini='',$fecha_fin='')
public function listapac($estado = '', $organigrama_id = '',$fecha_ini='',$fecha_fin='')
public function listapac($estado = '', $where = '') { //$where = ''; if ($estado == 1) { $where .= " and estado is NULL "; } $sql = "select * from f_listado_pacs() where baja_logica=1 " . $where . " order by fecha_ini asc"; $this->_db = new Cargos(); return new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function citas_aplicarFiltrosCitas($fechaInicial, $fechaFinal, $usuarios, $tipoCita, $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(sizeof($usuarios) > 0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(sizeof($usuarios) > 1){\n\t\t\t\t\t$andOr = \"OR\";\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t$andOr = \"AND\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" INNER JOIN tb_agendaCitas_usuarios AS ACU ON ACU.idAgendaCita = C.idAgendaCita WHERE ( \";\t\n\t\t\t\t\n\t\t\t\tfor ($i=0; $i < sizeof($usuarios); $i++) {\n\t\t\t\t\t\n\t\t\t\t\tif($i == 0){\n\t\t\t\t\t\t$opt = \"\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$opt = $andOr;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$idUsuario = $usuarios[$i];\n\t\t\t\t\t$adicionQuery .= \" $opt ACU.idUsuario = '$idUsuario' \";\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" ) AND ACU.estado = 'A'\";\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\tif($fechaInicial != \"\" AND $fechaFinal != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \"AND ( C.fecha BETWEEN '$fechaInicial' AND '$fechaFinal')\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif($tipoCita != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND TC.idTipoCita = '$tipoCita' \";\n\t\t\t\n\t\t\t}\n\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 C.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 C.idAgendaCita,\n\t\t\t\t\t\t C.fecha,\n\t\t\t\t\t\t DATE_FORMAT(C.horaInicio, '%H:%i') as horaInicio,\n\t\t\t\t\t\t C.fechaFin,\n\t\t\t\t\t\t DATE_FORMAT(C.horaFin, '%H:%i') as horaFin,\n\t\t\t\t\t\t C.duracionHoras,\n\t\t\t\t\t\t C.duracionMinutos,\n\t\t\t\t\t\t C.estado,\n\t\t\t\t\t\t C.observaciones,\n\t\t\t\t\t\t C.motivoCancelacion,\n\t\t\t\t\t\t C.idUsuarioCancela,\n\t\t\t\t\t\t C.idMascota,\n\t\t\t\t\t\t C.idSucursal,\n\t\t\t\t\t\t C.idTipoCita,\n\t\t\t\t\t\t C.idPropietario,\n\t\t\t\t\t\t M.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 TC.nombre AS nombreTipoCita\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_agendaCitas AS C\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON C.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 = C.idPropietario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_sucursales AS SU ON SU.idSucursal = C.idSucursal\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = C.idUsuarioCancela\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_tiposCita AS TC ON TC.idTipoCita = C.idTipoCita\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 (C.idAgendaCita)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (C.idAgendaCita) DESC; \";\n\t\t\t\t\t\t\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 listaAsistenciasDia($fecha) {\n\t\t$asis = new mAsistencias();\n\t\treturn $asis->fetchAsistenciasDia($fecha);\n\t}", "function listar_anuncios($opcao){\n $arrayAnuncios=[];\n //Peciso disto por causa de pesquisas pelo nome/localizacao e pelas pesquisas das caracteristicas\n $saber=0;\n $nova=\"\";\n if($opcao==-1)$saber=2;\n if(!strcmp($opcao[0],\"*\")==true){\n\n for ($i=0; $i <strlen($opcao) ; $i++) {\n if($i!=0) $nova.=$opcao[$i];\n\n }\n $saber++;\n $opcao=$nova;\n }\n //\n global $mybd;\n if($opcao==-1 && $saber==2){\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1;\");\n }else if(!strcmp($opcao,\"\") && $saber==0){\n //devolve todos os anuncios\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio;\");\n }else if(strcmp($opcao,\"\") && $saber==0){ //devolve todos os anuncios COM AS caracteristicas especificas\n $query=\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1 $opcao;\";\n $STH = $mybd->DBH->prepare($query);\n }else if($saber==1){\n\n //pesquisa todos os anuncios com pesquisa de nome\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio WHERE (anu_titulo LIKE '%$opcao%' OR anu_morada LIKE '%$opcao%') and anu_estado=1;\");\n $STH->bindParam(1, $opcao);\n }\n $STH->execute();\n $STH->setFetchMode(PDO::FETCH_OBJ);\n $i=0;\n\t\t\twhile($row = $STH->fetch()){\n $arrayAnuncios[$i]=new Anuncio($row->anu_id,$row->anu_titulo,$row->anu_descricao,$row->uti_id,$row->anu_morada,$row->anu_telefone,$row->anu_email,$row->anu_codigopostal,$row->anu_data,$row->anu_disponibilidade,$row->anu_estado,$row->anu_preco,null,$row->anu_wcprivativo,$row->anu_mobilada,$row->anu_utensilios,$row->anu_internet,$row->anu_raparigas,$row->anu_rapazes,$row->anu_despesas,$row->anu_animais,$row->anu_latitude,$row->anu_longitude);\n $i++;\n }\n return $arrayAnuncios;\n }", "function listar_anuncios_anunciante($id_anunciante,$estado_anuncio){\n $arrayAnuncios=[];\n global $mybd;\n if($id_anunciante==-5){//devolve anuncios de proprietario\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio $estado_anuncio;\");\n }else if($estado_anuncio==-4){//devolve anuncios de proprietario\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where uti_id=? ;\");\n $STH->bindParam(1, $id_anunciante);\n }else if($estado_anuncio==-6){//devolve anuncios de proprietario\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where uti_id=? and anu_estado!=4;\");\n $STH->bindParam(1, $id_anunciante);\n }else if($id_anunciante==-2){//mostra todos anuncios pendentes de anunciantes\n $STH = $mybd->DBH->prepare(\"Select anu_id,anuncio.uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco,utilizador.uti_id from anuncio,utilizador where utilizador.uti_id=anuncio.uti_id and uti_tipo=2 ;\");\n }else if($id_anunciante==-1){//mostra anuncios anunciante por estado\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=?;\");\n $STH->bindParam(1, $estado_anuncio);\n } else if($estado_anuncio!=-4 ){//mostra anuncios anunciante por estado e por utilizador\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where uti_id=? and anu_estado=?;\");\n $STH->bindParam(1, $id_anunciante);\n $STH->bindParam(2, $estado_anuncio);\n }\n $STH->execute();\n $STH->setFetchMode(PDO::FETCH_OBJ);\n $i=0;\n\t\twhile($row = $STH->fetch()){\n\t\t\t\t$arrayAnuncios[$i]=new Anuncio($row->anu_id,$row->anu_titulo,$row->anu_descricao,$row->uti_id,$row->anu_morada,$row->anu_telefone,$row->anu_email,$row->anu_codigopostal,$row->anu_data,$row->anu_disponibilidade,$row->anu_estado,$row->anu_preco,null,$row->anu_wcprivativo,$row->anu_mobilada,$row->anu_utensilios,$row->anu_internet,$row->anu_raparigas,$row->anu_rapazes,$row->anu_despesas,$row->anu_animais,$row->anu_latitude,$row->anu_longitude);\n $i++;\n }\n return $arrayAnuncios;\n }", "public function citas_listarCitas($paginaActual,$records_per_page){\n \t\n\t\t\t$resultado = array();\n\t\t\n\t\t\t$query = \" SELECT \n\t\t\t\t\t\t C.idAgendaCita,\n\t\t\t\t\t\t C.fecha,\n\t\t\t\t\t\t DATE_FORMAT(C.horaInicio, '%H:%i') as horaInicio,\n\t\t\t\t\t\t C.fechaFin,\n\t\t\t\t\t\t DATE_FORMAT(C.horaFin, '%H:%i') as horaFin,\n\t\t\t\t\t\t C.duracionHoras,\n\t\t\t\t\t\t C.duracionMinutos,\n\t\t\t\t\t\t C.estado,\n\t\t\t\t\t\t C.observaciones,\n\t\t\t\t\t\t C.motivoCancelacion,\n\t\t\t\t\t\t C.idUsuarioCancela,\n\t\t\t\t\t\t C.idMascota,\n\t\t\t\t\t\t C.idSucursal,\n\t\t\t\t\t\t C.idTipoCita,\n\t\t\t\t\t\t C.idPropietario,\n\t\t\t\t\t\t M.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\tTC.nombre AS nombreTipoCita\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_agendaCitas AS C\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON C.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 = C.idPropietario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_sucursales AS SU ON SU.idSucursal = C.idSucursal\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = C.idUsuarioCancela\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_tiposCita AS TC ON TC.idTipoCita = C.idTipoCita\n\t\t\t\t\t\tORDER BY (C.idAgendaCita) DESC\n\t\t\t\t\t\t LIMIT \". (($paginaActual) * $records_per_page). \" , \". $records_per_page;\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 }", "public function getAsistencias(){\n\t\t$filasPagina = 10;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraAsistencias\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM asistencia \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM asistencia LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "public function listar($inicio = 0, $cantidad = 0, $excepcion = NULL, $condicion = NULL, $idCurso = NULL) {\n global $sql, $configuracion;\n\n /* * * Validar la fila inicial de la consulta ** */\n if (!is_int($inicio) || $inicio < 0) {\n $inicio = 0;\n }\n\n /* * * Validar la cantidad de registros requeridos en la consulta ** */\n if (!is_int($cantidad) || $cantidad <= 0) {\n $cantidad = 0;\n }\n\n /* * * Validar que la condición sea una cadena de texto ** */\n if (!is_string($condicion)) {\n $condicion = '';\n }\n\n /* * * Validar que la excepción sea un arreglo y contenga elementos ** */\n if (isset($excepcion) && is_array($excepcion) && count($excepcion)) {\n $excepcion = implode(',', $excepcion);\n $condicion .= 'ac.id NOT IN (' . $excepcion . ') AND ';\n }\n\n /* * * Definir el orden de presentación de los datos ** */\n if ($this->listaAscendente) {\n $orden = 'ac.fecha_publicacion ASC';\n } else {\n $orden = 'ac.fecha_publicacion DESC';\n }\n\n $tablas = array(\n 'ac' => 'actividades_curso'\n );\n\n $columnas = array(\n 'id' => 'ac.id',\n 'idCurso' => 'ac.id_curso',\n 'idUsuario' => 'ac.id_usuario',\n 'titulo' => 'ac.titulo',\n 'descripcion' => 'ac.descripcion',\n 'fechaPublicacion' => 'UNIX_TIMESTAMP(ac.fecha_publicacion)',\n 'fechaLimite' => 'UNIX_TIMESTAMP(ac.fecha_limite)',\n 'diasRestantes' => 'DATEDIFF(ac.fecha_limite, NOW())'\n );\n\n $condicion .= 'ac.id_curso = \"'.$idCurso.'\"';\n\n if (is_null($this->registros)) {\n $sql->seleccionar($tablas, $columnas, $condicion);\n $this->registros = $sql->filasDevueltas;\n }\n\n $consulta = $sql->seleccionar($tablas, $columnas, $condicion, '', $orden, $inicio, $cantidad);\n\n $lista = array();\n if ($sql->filasDevueltas) {\n\n while ($actividad = $sql->filaEnObjeto($consulta)) {\n $actividad->icono = $configuracion['SERVIDOR']['media'] . $configuracion['RUTAS']['imagenesEstilos'] . 'activity.png';\n $lista[] = $actividad;\n }\n }\n\n return $lista;\n }", "public function getPaginas($OficialiaDto, $param, $estado) {\n $inicia = false;\n $orden = \" \";\n $campos = \" a.cveAdscripcion, a.desAdscripcion, o.cveOficialia, o.desOficilia, o.cveDistrito, d.desDistrito, o.cveMunicipio, m.desMunicipio, e.cveEstado, e.desEstado \";\n $orden .= \" o inner join tbladscripciones a on a.cveAdscripcion = o.cveAdscripcion \";\n $orden .= \" left join tblmunicipios m on m.cveMunicipio = o.cveMunicipio \";\n $orden .= \" left join tbldistritos d on d.cveDistrito = o.cveDistrito \";\n $orden .= \" left join tblestados e on e.cveEstado = d.cveEstado AND e.cveEstado = m.cveMunicipio \";\n $orden .= \" where a.activo = 'S' \";\n $orden .= \" AND o.activo = 'S' \";\n if ($estado != \"\")\n $orden .= \" AND e.cveEstado = \" . $estado . \" \";\n if ($OficialiaDto->getCveMunicipio() != \"\")\n $orden .= \" AND o.cveMunicipio = \" . $OficialiaDto->getCveMunicipio() . \" \";\n if ($OficialiaDto->getCveDistrito() != \"\")\n $orden .= \" AND o.cveDistrito = \" . $OficialiaDto->getCveDistrito() . \" \";\n if ($OficialiaDto->getDesOficilia() != \"\")\n $orden .= \" AND o.desOficilia like '%\" . $OficialiaDto->getDesOficilia() . \"%' \";\n $OficialiaDao = new OficialiaDAO();\n $param[\"paginacion\"] = false;\n $oficialia = new OficialiaDTO();\n $numTot = $OficialiaDao->selectOficialia($oficialia, $orden, null, null, \" count(o.cveOficialia) as totalCount \");\n $Pages = (int) $numTot[0]['totalCount'] / $param[\"cantxPag\"];\n $restoPages = $numTot[0]['totalCount'] % $param[\"cantxPag\"];\n $totPages = $Pages + (($restoPages > 0) ? 1 : 0);\n\n $json = \"\";\n $json .= '{\"type\":\"OK\",';\n $json .= '\"totalCount\":\"' . $numTot[0]['totalCount'] . '\",';\n $json .= '\"data\":[';\n $x = 1;\n\n if ($totPages >= 1) {\n for ($index = 1; $index <= $totPages; $index++) {\n\n $json .= \"{\";\n $json .= '\"pagina\":' . json_encode(utf8_encode($index)) . \"\";\n $json .= \"}\";\n $x++;\n if ($x <= ($totPages )) {\n $json .= \",\";\n }\n }\n $json .= \"],\";\n $json .= '\"pagina\":{\"total\":\"\"},';\n $json .= '\"total\":\"' . ($index - 1) . '\"';\n $json .= \"}\";\n } else {\n $json .= \"]}\";\n }\n return $json;\n }", "function list_aprov_nomina($id='',$id_sucursal='',$tipo='',$status='',$fecha=''){\n\t\t$sQuery=\"SELECT * FROM control_salida_extra WHERE 1 = 1 \";\n\t\tif($id) {\t$sQuery.=\"AND id = '$id' \";\t}\n\t\tif($id_sucursal) {\t$sQuery.=\"AND id_sucursal = '$id_sucursal' \";\t}\n\t\tif($tipo)\t{\t$sQuery.=\"AND tipo = '$tipo' \";\t}\n\t\tif($status)\t{\t$sQuery.=\"AND status = '$status' \";\t}\n\t\tif($fecha)\t{\t$sQuery.=\"AND fecha <= '$fecha' \";\t}\n\t\t\n\t\t$sQuery.=\"ORDER BY id_por_sucursal DESC \";\n\t\t\n\t//\tdie($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\t\n\t}", "public function returnAnuncioAll($status = \"online\"){\n\n $objAnuncio = new StatusAnuncioDAO();\n #retorna o id dos registros que representam o estado online ou inativo, sendo o valor default sempre online.\n $this->arrayStatusId = $objAnuncio->retornaRegStatus($status);\n\n\n #faz a junção das tabelas relacionadas ao anuncio, verificando usuário e se vai retornar os anuncios ativos ou inativos.\n $sql = \"SELECT * FROM Anuncio\n INNER JOIN Forma_pagamento ON Anuncio.anuncio_id = Forma_pagamento.forma_pag_anuncio_ref\n INNER JOIN Link ON Anuncio.anuncio_id = Link.link_anuncio_ref\n INNER JOIN Endereco ON Anuncio.anuncio_endereco = Endereco.endereco_id\n INNER JOIN Horario_funcionamento ON Anuncio.anuncio_id = Horario_funcionamento.horario_func_anuncio_ref\n INNER JOIN Cont_views ON Anuncio.anuncio_id = Cont_views.cont_views_anuncio_ref\n INNER JOIN Plano_saude ON Anuncio.anuncio_id = Plano_saude.plano_saude_anuncio_ref\n INNER JOIN Facilidades ON Anuncio.anuncio_id = Facilidades.facilidades_anuncio_ref\n INNER JOIN Sub_categoria ON Anuncio.anuncio_categoria = Sub_categoria.sub_categoria_id\n INNER JOIN Categoria ON Sub_categoria.sub_categoria_cat_ref = Categoria.tipo_categoria_id\n WHERE Anuncio.anuncio_excluido = 0 AND (\";\n\n\n #verifica se os argumentos foram passados com sucesso. Somemte se os argumentos estiverem corretos que será executado a consulta.\n if($status === \"online\" || $status === \"inativo\"){\n\n for ($i = 0; $i < count($this->arrayStatusId); $i++) {\n\n $sql .= \" Anuncio.anuncio_status = \" . $this->arrayStatusId[$i]['status_anuncio_id'];//estamos trabalhando com arrays associativos.\n\n #se $i + 1 for iqual ao tamanho total do array, significa que a proxima iteração será a ultima.\n if (($i + 1) != count($this->arrayStatusId)) {\n $sql .= \" OR \";\n } else {\n #Na ultima iteração recebe o ';'\n $sql .= \") ORDER BY Anuncio.anuncio_titulo ASC, Anuncio.anuncio_id ASC;\";\n }\n\n }\n\n #caso ocorrer tudo certo retorna a visualização da tabela.\n if($row = $this->runSelect($sql)){\n\n\n return $row;\n\n } else {\n\n // echo \"A consulta não retonou dados para o inner join curriculo \" . $sql;\n }\n\n } else {\n\n // echo \"Favor verificar os agumentos passados\";\n\n }\n\n\n }", "public function listarActivos(){\n $sql = \"SELECT c.idcompra, c.nrofactura, date(c.fecha) as fecha, p.razonsocial AS proveedor, concat(per.nombre, ' ', per.apellido) AS personal, c.monto, c.estado \n FROM compras c JOIN proveedores p ON c.idproveedor = p.idproveedor JOIN personales per ON c.idpersonal = per.idpersonal WHERE c.estado = '1'\n ORDER BY c.idcompra DESC\";\n return ejecutarConsulta($sql);\n }", "function getDados($codAtividade){\n\n }", "public function citas_TotalAplicarFiltrosCitas($fechaInicial, $fechaFinal, $usuarios, $tipoCita, $idPropietario, $paciente){\n \t\n\t\t\t$resultado = 0;\n\t\t\t//$adicionQuery = \"WHERE 1 \";\n\t\t\tif(sizeof($usuarios) > 0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(sizeof($usuarios) > 1){\n\t\t\t\t\t$andOr = \"OR\";\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t$andOr = \"AND\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" INNER JOIN tb_agendaCitas_usuarios AS ACU ON ACU.idAgendaCita = C.idAgendaCita WHERE ( \";\t\n\t\t\t\t\n\t\t\t\tfor ($i=0; $i < sizeof($usuarios); $i++) {\n\t\t\t\t\t\n\t\t\t\t\tif($i == 0){\n\t\t\t\t\t\t$opt = \"\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$opt = $andOr;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$idUsuario = $usuarios[$i];\n\t\t\t\t\t$adicionQuery .= \" $opt ACU.idUsuario = '$idUsuario' \";\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" ) AND ACU.estado = 'A'\";\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\tif($fechaInicial != \"\" AND $fechaFinal != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \"AND ( C.fecha BETWEEN '$fechaInicial' AND '$fechaFinal')\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif($tipoCita != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND TC.idTipoCita = '$tipoCita' \";\n\t\t\t\n\t\t\t}\n\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 C.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 count(C.idAgendaCita) as totalRegistros\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_agendaCitas AS C\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON C.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 = C.idPropietario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_sucursales AS SU ON SU.idSucursal = C.idSucursal\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = C.idUsuarioCancela\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_tiposCita AS TC ON TC.idTipoCita = C.idTipoCita\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\t\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['totalRegistros'];\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 }", "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 }", "public function lists($page=1)\n {\n\t$articulos= new Articulos();\n\t$this->listapersona=$articulos->paginacion($page);\n }", "public function listar_anunciosByUser($id_cliente){\n return $this->anunciosDAO->selectAllByUser($id_cliente);\n }", "public function ConsultarAsignaciones($param) {\n extract($param);\n $resultado = array();\n $registro = array();\n $sql = \"CALL SPCONSULTARCARGAMASIVA($tipodocumento,$busqueda);\";\n $rs=null;\n $conexion->getPDO()->query(\"SET NAMES 'utf8'\");\n $inserto = 0;\n if ($rs = $conexion->getPDO()->query($sql)) {\n if ($filas = $rs->fetchAll(PDO::FETCH_ASSOC)) {\n foreach ($filas as $fila) {\n foreach ($fila as $key => $value) {\n $ruta= \"<a href='/\".$fila['Ruta'].\"'>Descargar Archivo</a>\";\n array_push($registro, $fila['TipoIdentificacion'],$fila['NumeroIdentificacion'],$fila['Nombres'],$fila['Fecha'],$fila['Modulo'],$fila['TipoArchivo'], $ruta ,$value);\n \n array_push($registro, $value);\n }\n array_push($resultado, $registro);\n $registro = array();\n }\n }\n } else {\n $registro = 0;\n }\n echo json_encode($resultado);\n }", "function listarAgendadas($id) \n\t{\n\t\t$this->db->select('*');\n\t\t\n\t\t$this->db->from('Auditoria');\n\n\t\t$this->db->where('statusID', $id);\n\n\t\t$this->db->join('Projeto' , 'Projeto.projetoID = Auditoria.projetoID');\n\n\t\t$this->db->join('Departamento' , 'Departamento.departamentoID = Projeto.departamentoID');\n\n\t\t$this->db->join('Unidade' , 'Unidade.unidadeID = Departamento.unidadeID');\n\n\t\t$this->db->join('Usuario' , 'Usuario.usuarioID = Auditoria.auditorID');\n\n\t\t$query = $this->db->get();\n\t\t\n\t\treturn $query->result();\n\t}", "public function listar_abonos_informe_table_filtro($desde, $hasta) {\n $dato = [];\n\n //--- Datos del Logeado ---//\n $userdata = $this->session->all_userdata();\n //--- datos ---//\n $abonos = $this->app_model->get_abonos_desde_hasta($desde, $hasta);\n $estados = $this->app_model->get_estados();\n\n if ($abonos) {\n foreach ($abonos as $key => $value) {\n $texto = \"\";\n $class = \"\";\n if ($value['idEstado'] == 1) :\n $class = \"btn-info\";\n $texto = \"Activado\";\n elseif ($value['idEstado'] == 2):\n $class = \"btn-success\";\n $texto = \"Pausado\";\n elseif ($value['idEstado'] == 3):\n $class = \"btn-danger\";\n $texto = \"Terminado\";\n else:\n $class = \"btn-warning\";\n $texto = \"Sin Estado\";\n endif;\n\n $opcion = '<div class=\"btn-group\">' .\n '<button class=\"btn ' . $class . '\" style=\"padding: 3px;font-size: 0.8em;\">' . $texto . '</button>' .\n '</div>';\n\n $dato[] = array(\n $opcion,\n $value['fechaEmision'],\n $value['fechaVtoCobro'],\n $value['nombEmpresa'],\n $value['descripModalidad'],\n $value['ventasCreadas'],\n \"$\" . number_format($value['total'] + $value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n $value['nombreVend'],\n \"DT_RowId\" => $value['idAbono']\n );\n }\n }\n\n $aa = array(\n 'sEcho' => 1,\n 'iTotalRecords' => count($dato),\n 'iTotalDisplayRecords' => 10,\n 'aaData' => $dato\n );\n\n echo json_encode($aa);\n }", "function getAportacionesSociales(){ $D\t= $this->getDatosAportaciones(); return $D[\"aportaciones\"]; \t}", "function idiomas_disponibles($id_palabra,$estado) {\n\t\n\t\tif ($estado==0) { $sql_estado='AND traducciones.estado = 0'; }\n\t\telseif ($estado==1) { $sql_estado='AND traducciones.estado = 1'; }\n\t\telseif ($estado==2) { $sql_estado='AND traducciones.estado = 2'; }\n\t\telse { $sql_estado=''; } \n\t\t$query = \"SELECT \n\t\ttraducciones.estado,traducciones.id_palabra,traducciones.id_idioma,\n\t\tidiomas.id_idioma,idiomas.idioma \n\t\tFROM traducciones, idiomas\n\t\tWHERE traducciones.id_palabra = '$id_palabra'\n\t\tAND traducciones.id_idioma = idiomas.id_idioma\n\t\t$sql_estado\n\t\tGROUP BY idiomas.id_idioma\";\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\tmysql_close($connection);\n\t\treturn $result;\n\t}", "public function vacunas_aplicarFiltrosVacunas($fechaInicial, $fechaFinal, $fechaInicialProximo, $fechaFinalProximo, $idVacuna, $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($idVacuna != '0'){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND V.idVacuna = '$idVacuna' \";\t\n\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\t\n\t\t\tif($fechaInicial != \"\" AND $fechaFinal != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND ( V.fecha BETWEEN '$fechaInicial' AND '$fechaFinal')\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($fechaInicialProximo != \"\" AND $fechaFinalProximo != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND ( V.fechaProximoDesparasitante BETWEEN '$fechaInicialProximo' AND '$fechaFinalProximo')\";\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 V.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 V.idMascotaVacunas,\n\t\t\t\t\t\t V.fecha,\n\t\t\t\t\t\t DATE_FORMAT(V.hora, '%H:%i') as hora,\n\t\t\t\t\t\t V.fechaProximaVacuna,\n\t\t\t\t\t\t V.observaciones,\n\t\t\t\t\t\t V.idVacuna,\n\t\t\t\t\t\t VV.nombre as nombreVacuna,\n\t\t\t\t\t\t M.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\tFROM\n\t\t\t\t\t\t tb_mascotas_vacunas AS V\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON V.idMascota = M.idMascota\n\t\t\t\t\t\t \tINNER JOIN\n\t\t\t\t\t\t tb_vacunas AS VV ON V.idVacuna = VV.idVacuna\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 \n\t\t\t\t\t\t\t\".$adicionQuery.\"\n\t\t\t\t\t\t\n\t\t\t\t\t\tGROUP BY (V.idMascotaVacunas)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (V.idMascotaVacunas) DESC; \";\n\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 }", "public function agenda($asesor, $fecha, $filtro)\n {\n $sql = \"SELECT \n l.NombreCompleto,\n e.NombreEmpresa,\n a.HoraInicio,\n a.HoraFinal,\n a.FechaAgenda\n FROM agenda AS a\n INNER JOIN detalleempresa AS de\n on de.idDetalleEmpresa = a.detalleempresa_idDetalleEmpresa\n INNER JOIN empresa AS e \n ON e.idEmpresa = de.Empresa_idEmpresa\n INNER JOIN lineabase AS l\n ON l.idLineabase = de.Linebase_idLineabase\n WHERE l.Usuarios_idUsuarios = '$asesor'\n AND a.FechaAgenda = '$fecha'\n AND l.Filtronegocio_idFiltronegocio = '$filtro'\";\n\n return ejecutarConsultaSimpleFila($sql);\n }", "function agenda_liste_paginer($id_agenda=0, $annee_choisie=0, $mois_choisi=0, $filtre='-1', $separateur='&nbsp;|&nbsp;', $ancre=NULL, $tri='normal') {\n\tstatic $count_page = 0;\n\n\tif ($id_agenda == 0)\n\t\treturn $count_page;\n\n\t$evenements = agenda_recenser_evenement(0);\n\t$count_evt = count($evenements);\n\n\t$pagination = NULL;\n\tif ($count_evt == 0)\n\t\treturn $pagination;\n\n\tif ($ancre)\n\t\t$pagination .= '<a class=\"ancre\" name=\"pagination_'.$ancre.'\" id=\"pagination_'.$ancre.'\"></a>';\n\t\t\n\t// Determination de l'annee choisie si l'agenda est saisonnier\t\n\t$contexte_aff = agenda_definir_contexte(0);\n\t$debut_saison = $contexte_aff['debut_saison'];\n\tif (intval($debut_saison) != 1) {\n\t\t$annee_choisie = (intval($mois_choisi) < intval($debut_saison)) ? $annee_choisie : strval(intval($annee_choisie)+1);\n\t}\n\n\n\t$annee_courante = 0;\n\t$nouvelle_annee = FALSE;\n\t$count_page = 0;\n\n\tfor ($i=1;$i<=$count_evt;$i++) {\n\t\t$j = ($tri == 'inverse') ? $count_evt - $i + 1 : $i;\n\t\tif (($filtre == '-1') || \n\t\t\t(($filtre == '0') && (!$evenements[$j]['categorie'])) ||\n\t\t\t(($filtre != '-1') && ($filtre != '0') && (preg_match(\"/<$filtre>/\",$evenements[$j]['categorie']) > 0))) {\n\n\n\t\t\t$annee_redac = $evenements[$j]['saison'];\n\t\t\t$annee_evt = $evenements[$j]['annee'];\n\t\t\t$mois_evt = $evenements[$j]['mois'];\n\t\t\tif ($annee_redac != $annee_courante) {\n\t\t\t\t$nouvelle_annee = TRUE;\n\t\t\t\t$count_page += 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$nouvelle_annee = FALSE;\n\t\t\t}\n\n\t\t\tif ($nouvelle_annee) {\n\t\t\t\tif ($annee_courante != 0) {\n\t\t\t\t\t$pagination .= $separateur;\n\t\t\t\t}\n\t\t\t\tif ($annee_redac == $annee_choisie) {\n\t\t\t\t\t$pagination .= '<span class=\"on\">'.$evenements[$j]['lien_page'].'</span>';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$arg_option = NULL;\n\t\t\t\t\tif ($filtre != '-1') $arg_option = '&amp;categorie='.$filtre;\n\t\t\t\t\tif ($ancre) $arg_option .= '#pagination_'.$ancre;\n\t\t\t\t\tif (intval($debut_saison) != 1) $annee_evt = (intval($mois_evt) < intval($debut_saison)) ? strval(intval($annee_evt)-1) : $annee_evt;\n\t\t\t\t\t$pagination .= '<a class=\"ajax\" href=\"spip.php?page=agenda&amp;id_rubrique='.$contexte_aff['id_rubrique'].'&amp;annee='.$annee_evt.'&amp;mois='.$debut_saison.$arg_option.'\">'.$evenements[$j]['lien_page'].'</a>';\n\t\t\t\t}\n\t\t\t$annee_courante = $annee_redac;\n\t\t\t}\n\t\t}\n\t}\n\treturn $pagination;\n}", "public function getApartados(){\n\n\t\t$filasPagina = 7;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraApartados\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM apartados \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM apartados LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "public function aportacionAction(Request $request)\n { \n $em = $this->getDoctrine()->getManager();\n\n $request = $this->getRequest();\n $session = $request->getSession();\n\n $usuario_id = $session->get(\"usuario_id\");\n $anio = $session->get(\"anio\");\n\n $dql = \"SELECT e FROM ChecnesRegistroBundle:Evento e\n INNER JOIN e.tipo_actividad a\n INNER JOIN a.tipo_tipo_actividad ta\n WHERE e.estado=1\n AND e.estado NOT IN(5)\n AND (ta.nombre_sistema='tesoreria' OR e.multa=1)\n ORDER BY e.fecha_inicio DESC\";\n $resp = $em->createQuery($dql);\n\n $paginator = $this->get('knp_paginator');\n $pagination = $paginator->paginate(\n $resp, /* query NOT result */\n $request->query->getInt('page', 1)/*page number*/,\n 10/*limit per page*/\n );\n\n return $this->render('ChecnesRegistroBundle:RegistrarAportacion:index.html.twig', array(\n 'personas' => '',\n 'titulo' =>'Listado de Aportación / Cobro',\n 'pagination' => $pagination\n ));\n }", "public function buscarCitas($idPropietario, $fechaInicial, $fechaFinal){\n\t\t\n\t\t$idPropietario \t\t\t\t= parent::escaparQueryBDCliente($idPropietario);\n\t\t$fechaInicial \t\t\t\t\t= parent::escaparQueryBDCliente($fechaInicial);\n\t\t$fechaFinal \t\t\t\t\t= parent::escaparQueryBDCliente($fechaFinal);\n\t\t\n\t\t$resultado = array();\n\t\t\n\t\tif ($fechaInicial != \"\" AND $fechaFinal != \"\") {\n\t\t\t\n\t\t\t$query = \"SELECT C.idAgendaCita, C.fecha, DATE_FORMAT(C.horaInicio, '%H:%i') horaInicio, C.fechaFin, C.horaFin, C.duracionHoras, C.duracionMinutos, C.estado, \n\t\t\t\t\tC.observaciones, C.idMascota, C.idSucursal,C.idTipoCita, C.idPropietario,\n\t\t\t\t\tM.nombre as nombrePaciente, \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_mascotas as M on M.idMascota = C.idMascota\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.idPropietario = '$idPropietario' AND C.fecha BETWEEN '$fechaInicial' and '$fechaFinal' \";\n\t\t\t\n\t\t}\n\n\t\tif($fechaInicial != \"\" AND $fechaFinal == \"\"){\n\t\t\t$query = \"SELECT C.idAgendaCita, C.fecha, DATE_FORMAT(C.horaInicio, '%H:%i') horaInicio, C.fechaFin, C.horaFin, C.duracionHoras, C.duracionMinutos, C.estado, \n\t\t\t\t\tC.observaciones, C.idMascota, C.idSucursal,C.idTipoCita, C.idPropietario,\n\t\t\t\t\tM.nombre as nombrePaciente, \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_mascotas as M on M.idMascota = C.idMascota\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.idPropietario = '$idPropietario' AND C.fecha >= '$fechaInicial'\";\n\t\t}\n\t\t\n\t\tif($fechaInicial == \"\" AND $fechaFinal != \"\"){\n\t\t\t$query = \"SELECT C.idAgendaCita, C.fecha, DATE_FORMAT(C.horaInicio, '%H:%i') horaInicio, C.fechaFin, C.horaFin, C.duracionHoras, C.duracionMinutos, C.estado, \n\t\t\t\t\tC.observaciones, C.idMascota, C.idSucursal,C.idTipoCita, C.idPropietario,\n\t\t\t\t\tM.nombre as nombrePaciente, \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_mascotas as M on M.idMascota = C.idMascota\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.idPropietario = '$idPropietario' AND C.fecha <= '$fechaFinal'\";\n\t\t}\t\t\n\n\t\tif($fechaInicial == \"\" AND $fechaFinal == \"\"){\n\t\t\t$query = \"SELECT C.idAgendaCita, C.fecha, DATE_FORMAT(C.horaInicio, '%H:%i') horaInicio, C.fechaFin, C.horaFin, C.duracionHoras, C.duracionMinutos, C.estado, \n\t\t\t\t\tC.observaciones, C.idMascota, C.idSucursal,C.idTipoCita, C.idPropietario,\n\t\t\t\t\tM.nombre as nombrePaciente, \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_mascotas as M on M.idMascota = C.idMascota\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.idPropietario = '$idPropietario'\";\n\t\t}\t\n\n\n\t\t$conexion = parent::conexionCliente();\n\t\t\t\t\t\t\t\n\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 }\t\n\t\t\t\n\t\t\t\n\t\treturn $resultado;\n\n\n\t\t\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 static function todosLosAnuncios()\n {\n try {\n $arrayanuncios = [];\n $fechaActual = new DateTime(date(\"d-m-y\", time()));\n $consulta = \"SELECT id_anuncio,autor,moroso,localidad,descripcion,fecha FROM anuncios ORDER BY fecha DESC\";\n $datos = [];\n $resultado = accesoDB::mostrarConsulta($consulta, $datos);\n\n if ($resultado == '1') {\n return 1;\n } else {\n foreach ($resultado as $valor) {\n $id_anuncio = $valor['id_anuncio'];\n $autor = $valor['autor'];\n $moroso = $valor['moroso'];\n $localidad = $valor['localidad'];\n $descripcion = $valor['descripcion'];\n $fecha = $valor['fecha'];\n $fechaAnuncio = new DateTime($fecha);\n $interval = $fechaAnuncio->diff($fechaActual);\n $dias = $interval->format('%d');\n $mes = $interval->format('%m');\n $año = $interval->format('%y');\n $anuncios = new Anuncios($id_anuncio, $autor, $moroso, $localidad, $descripcion, $fechaAnuncio->format('d-m-Y'));\n array_push($arrayanuncios, [$anuncios, $dias, $mes, $año]);\n }\n echo \"</div>\";\n return $arrayanuncios;\n $resultado = null;\n $conexion = null;\n }\n } catch (PDOException $ex) {\n echo $ex->getMessage();\n }\n }", "public function all_desde($desde, $hasta, $codserie = FALSE, $codagente = FALSE, $codcliente = FALSE, $estado = FALSE, $codpago = FALSE, $codalmacen = FALSE)\n {\n $faclist = array();\n $sql = \"SELECT * FROM \".$this->table_name.\" WHERE fecha >= \".$this->var2str($desde).\" AND fecha <= \".$this->var2str($hasta);\n if($codserie)\n {\n if ($codserie==\"AXIXFY\"){\n $sql .= \" AND codserie IN ('A','XI','XF','Y','G','H','J','K')\";\n } else if ($codserie==\"FFBFC\"){\n $sql .= \" AND codserie IN ('F','FC','FB')\";\n } else if ($codserie==\"ACDEXIXFY\"){\n $sql .= \" AND codserie IN ('A','XI','XF','Y','C','D','E')\";\n } else {\n $sql .= \" AND codserie = \".$this->var2str($codserie);\n } \n }\n if($codagente)\n {\n $sql .= \" AND codagente = \".$this->var2str($codagente);\n }\n if($codcliente)\n {\n $sql .= \" AND codcliente = \".$this->var2str($codcliente);\n }\n if($estado)\n {\n if($estado == 'pagada')\n {\n $sql .= \" AND pagada\";\n }\n else\n {\n $sql .= \" AND pagada = false\";\n }\n }\n $sql .= \" ORDER BY fecha ASC, codigo ASC;\";\n //var_dump($sql); exit;\n $data = $this->db->select($sql);\n if($data)\n {\n foreach($data as $f)\n {\n $faclist[] = new \\factura_cliente($f);\n }\n }\n\n return $faclist;\n }", "public function getConsultapersonas_acta($id_asignacion)\n {\n $query = \"select id_asignar,consecutivo_asignar,nombre_proyecto,observacion,YEAR(fecha_asignacion) as anio,MONTH(fecha_asignacion) as MES,DAY(fecha_asignacion) as dia,concat(nombres_persona,' ',apellidos_persona) as nombre_entrega,(SELECT concat(nombres_persona,' ',apellidos_persona) from persona where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as nombres_recibe,(SELECT nombre_cargo from persona\n INNER JOIN cargo on id_cargo = persona.fkID_cargo where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as cargo_recibe,(SELECT documento_persona from persona where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as documento_recibe,nombre_cargo as cargo_entrega,documento_persona as documento_entrega FROM `asignar`\n INNER JOIN proyecto on id_proyecto = fkID_proyecto\n INNER JOIN persona on id_persona = fkID_persona_entrega\n INNER JOIN cargo on id_cargo = persona.fkID_cargo\n WHERE id_asignar='\" . $id_asignacion . \"'\";\n $result = mysqli_query($this->link, $query);\n $data = array();\n while ($data[] = mysqli_fetch_assoc($result));\n array_pop($data);\n return $data;\n }", "function InscricaoAvaliacao($codAtividade, $codAluno){\n\n }", "function agenda_liste_avertir($id_agenda, $annee_choisie, $mois_choisi) {\n\n\t$message = NULL;\n\n\t$contexte_aff = agenda_definir_contexte(0);\n\t$debut_saison = $contexte_aff['debut_saison'];\n\t$type_saison = $contexte_aff['type_saison'];\t\t\n\n\tif (intval($debut_saison) != 1) \n\t\t$annee_choisie = (intval($mois_choisi) < intval($debut_saison)) ? $annee_choisie : strval(intval($annee_choisie)+1);\n\n\t$count_evt = count(agenda_recenser_evenement(0));\n\t$count_evt_filtre = agenda_liste_afficher(0);\n\n\tif ($count_evt == 0)\n\t\t$message = _T('sarkaspip:msg_0_evt_agenda');\n\telse\n\t\tif ($count_evt_filtre == 0)\n\t\t\tif (intval($debut_saison) == 1)\n\t\t\t\t$message = _T('sarkaspip:msg_0_evt_annee').'&nbsp;'.$annee_choisie;\n\t\t\telse\n\t\t\t\tif ($type_saison == 'annee')\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.$annee_choisie;\n\t\t\t\telseif ($type_saison == 'periode')\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.strval(intval($annee_choisie)-1).'-'.$annee_choisie;\n\t\t\t\telse // $type_saison == 'periode_abregee'\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.substr(strval(intval($annee_choisie)-1),2,2).'-'.substr($annee_choisie,2,2);\n\n\treturn $message;\n}", "public static function listaSabana($idsede, $idfacultad, $anio)\n {\n $sql =\"SELECT sed.nombre as sede, CONCAT(car.nombre,' - ',pe.nombre) as carreraplan, car.nombre as carrera, fac.nombre as facultad, CONCAT(per.apellido,', ',per.nombre) as persona,\n per.apellido, per.nombre,\n tp.descripcion as tipodocumento, \n per.numerodoc,\n m.nombre as materia,\n td.descripcion as tipodesignacion,\n cd.descripcion as categoria, \n cd.idcategoriadesignacion,\n edes.descripcion as estadodesignacion,\n mp.anodecursada,\n IFNULL(des.horas, 0 ) as horas,\n td.descripcion as tipo, \n if(des.adhonorem,'AD HONOREM','') as adhonorem, \n if(des.licencia,'EN LICENCIA','') as licencia, \n ded.descripcion as dedicacion,\n sed.abreviacion as sedeabreviada,\n car.idcarrera,\n YEAR(des.inicio) as ciclolectivo,\n DATE_FORMAT(des.inicio, '%d/%m/%Y') AS inicioformat, DATE_FORMAT(des.fin, '%d/%m/%Y') AS finformat,\n des.idresolucionprofesor,\n rp.resolucion,\n des.iddesignacion \n FROM designaciones des \n JOIN estados_designaciones edes ON des.idestadodesignacion = edes.idestadodesignacion\n JOIN profesores prof ON des.idprofesor = prof.idprofesor\n JOIN personas per ON prof.idpersona = per.idpersona \n JOIN tipos_documentos tp ON per.idtipodoc = tp.idtipodoc\n JOIN dedicaciones ded ON des.iddedicacion = ded.iddedicacion\n JOIN catedras cat ON des.idcatedra = cat.idcatedra \n JOIN sedes sed ON cat.idsede = sed.idsede \n JOIN materias_planes mp ON cat.idmateriaplan = mp.idmateriaplan\n JOIN materias m ON mp.idmateria = m.idmateria\n JOIN planes_estudios pe ON mp.idplanestudio = pe.idplanestudio\n JOIN carreras car ON pe.idcarrera = car.idcarrera \n JOIN facultades fac ON car.idfacultad = fac.idfacultad \n JOIN tipos_designaciones td ON des.idtipodesignacion = td.idtipodesignacion\n JOIN categoria_designaciones cd ON td.idcategoriadesignacion= cd.idcategoriadesignacion \n LEFT JOIN resoluciones_profesores rp ON des.idresolucionprofesor = rp.idresolucionprofesor\n WHERE des.idestadodesignacion = 4 AND YEAR(des.inicio)= \".$anio.\" AND car.idfacultad = \".$idfacultad.\" AND sed.idsede= \".$idsede.\" \n ORDER BY car.nombre, per.apellido; \";\n \n $q = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc($sql);\n\n return $q;\n }", "function listarDetallePeriodoAgencia(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_PERDETAG_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n $this->setCount(false);\n\n $this->setParametro('id_periodo_venta','id_periodo_venta','int4');\n $this->setParametro('id_agencia','id_agencia','int4');\n $this->setParametro('tipo','tipo','varchar');\n\n\n //Definicion de la lista del resultado del query\n $this->captura('id_periodo_venta','int4');\n $this->captura('tipo','varchar');\n $this->captura('fecha','text');\n $this->captura('pnr','varchar');\n $this->captura('apellido','varchar');\n $this->captura('moneda','varchar');\n $this->captura('monto_boleto','numeric');\n $this->captura('comision','numeric');\n $this->captura('monto_credito_debito','numeric');\n $this->captura('ajuste','varchar');\n $this->captura('garantia','varchar');\n $this->captura('autorizacion_deposito','varchar');\n $this->captura('monto_credito_debito_mb','numeric');\n $this->captura('tipo_cambio','numeric');\n $this->captura('cierre_periodo','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function listarSocios() {\r\n $sql = \"select j.nombre,j.apellido,j.cedula,j.fechanac, j.porcentaje, m.nombre from juntadirectiva as j, municipio as m \"\r\n\t\t .\" where j.ciudadnac = m.id\";\t\t\r\n $respuesta = $this->object->ejecutar($sql);\r\n $this->construirListadoSocio($respuesta);\r\n }", "function pegaEstados()\n {\n $lista_estados = array(\n 'ac' => 'Acre',\n 'al' => 'Alagoas',\n 'ap' => 'Amapá',\n 'am' => 'Amazonas',\n 'ba' => 'Bahia',\n 'ce' => 'Ceará',\n 'df' => 'Distrito Federal',\n 'es' => 'Espirito Santo',\n 'go' => 'Goiás',\n 'ma' => 'Maranhão',\n 'ms' => 'Mato Grosso do Sul',\n 'mt' => 'Mato Grosso',\n 'mg' => 'Minas Gerais',\n 'pa' => 'Pará',\n 'pb' => 'Paraíba',\n 'pr' => 'Paraná',\n 'pe' => 'Pernanbuco',\n 'pi' => 'Piauí',\n 'rj' => 'Rio de Janeiro',\n 'rn' => 'Rio Grande do Norte',\n 'rs' => 'Rio Grande do Sul',\n 'ro' => 'Rondônia',\n 'rr' => 'Roraima',\n 'sc' => 'Santa Catarina',\n 'sp' => 'São Paulo',\n 'se' => 'Sergipe',\n 'to' => 'Tocantis'\n );\n\n\n return $lista_estados;\n }", "function getDatosAportaciones(){\n\t\t$socio\t= $this->mCodigo;\n\t\t$sql = \"SELECT\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`codigo_de_base`,\n\t\t\t\t`operaciones_mvtos`.`socio_afectado`,\n\t\t\t\tMAX(`operaciones_mvtos`.`fecha_operacion`) AS `fecha`,\n\t\t\t\tSUM(`operaciones_mvtos`.`afectacion_real` * `eacp_config_bases_de_integracion_miembros`.`afectacion`) AS `aportaciones`\n\t\t\tFROM\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`\n\t\t\t\t\tINNER JOIN `operaciones_mvtos` `operaciones_mvtos`\n\t\t\t\t\tON `eacp_config_bases_de_integracion_miembros`.`miembro` =\n\t\t\t\t\t`operaciones_mvtos`.`tipo_operacion`\n\t\t\tWHERE\n\t\t\t\t(`eacp_config_bases_de_integracion_miembros`.`codigo_de_base` =2609)\n\t\t\t\tAND\n\t\t\t\t(`operaciones_mvtos`.`socio_afectado` =$socio)\n\t\t\tGROUP BY\n\t\t\t\t`operaciones_mvtos`.`socio_afectado`\n\t\t\tORDER BY\n\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`codigo_de_base`,\n\t\t\t\t`operaciones_mvtos`.`socio_afectado` \";\n\t\t$this->mDatosAports\t\t= obten_filas($sql);\t\t\n\t\treturn $this->mDatosAports;\n\t}", "function getPagos($id_afiliado){\n\t\t$sql = \n\t\t\"SELECT\n\t\t\t$this->_tablename.agencia,\n\t\t\t$this->_tablename.terminal,\n\t\t\t$this->_tablename.nro_transaccion,\n\t\t\t$this->_tablename.fecha_pago,\n\t\t\t$this->_tablename.importe\n\t\tFROM\n\t\t\t$this->_tablename\n\t\tINNER JOIN \n\t\t\ttarjetas ON($this->_tablename.id_tarjeta = tarjetas.id_tarjeta)\n\t\tWHERE \n\t\t\ttarjetas.id_afiliado = '$id_afiliado'\";\n\t\t\n\t\treturn $this->getQuery($sql);\t\n\t}", "public function listApuracao($idApuracao)\n\t{\n\t\t$sql = new Conexao;\n\n\t\treturn $sql->select(\"\n\t\t\tSELECT \n\t\t\ta.idCriarApuracao, a.idUsuario, a.tipoApuracao, a.descricao, a.status, a.dataCriacao, a.dataRegistro,\n\t\t\tb.idVitimasCriarApuracao, b.idVitimasApuracao,\n\t\t\tc.idPessoa,\n\t\t\td.qualFamilia,\n\t\t\te.idResponsavelVitimas,\n\t\t\tf.idPessoa idPessoaResponsavel,\n\t\t\tg.nome nomeVitima, g.sexo sexoVitima, g.cpf cpfVitima,\n\t\t\th.nome nomeResponsavel, h.cpf cpfResponsavel,\n\t\t\ti.celular celularVitima,\n\t\t\tj.celular celularResponsavel,\n\t\t\tk.cep cepVitima, k.rua ruaVitima, k.numero numeroVitima, k.bairro bairroVitima, \n\t\t\tk.cidade cidadeVitima, k.estado estadoVitima, k.complemento complementoVitima,\n\t\t\tl.cep cepResponsavel, l.rua ruaResponsavel, l.numero numeroResponsavel, l.bairro bairroResponsavel, \n\t\t\tl.cidade cidadeResponsavel, l.estado estadoResponsavel, l.complemento complementoResponsavel,\n\t\t\tm.setor,\n\t\t\tn.nome quemCriouApuracao\n\t\t\tFROM tb_criarapuracao a\n\t\t\tINNER JOIN tb_vitimascriarapuracao b ON a.idCriarApuracao = b.idCriarApuracao\n\t\t\tINNER JOIN tb_vitimasapuracao c ON b.idVitimasApuracao = c.idVitimasApuracao\n\t\t\tINNER JOIN tb_familiaapuracao d ON c.idVitimasApuracao = d.idVitimasApuracao\n\t\t\tINNER JOIN tb_responsavelVitimas e ON c.idVitimasApuracao = e.idVitimasApuracao\n\t\t\tINNER JOIN tb_responsavelapuracao f ON e.idResponsavelApuracao = f.idResponsavelApuracao\n\t\t\tINNER JOIN tb_pessoa g ON c.idPessoa = g.idPessoa\n\t\t\tINNER JOIN tb_pessoa h ON f.idPessoa = h.idPessoa\n\t\t\tINNER JOIN tb_contato i ON g.idContato = i.idContato\n\t\t\tINNER JOIN tb_contato j ON h.idContato = j.idContato\n\t\t\tINNER JOIN tb_endereco k ON g.idEndereco = k.idEndereco\n\t\t\tINNER JOIN tb_endereco l ON h.idEndereco = l.idEndereco\n\t\t\tINNER JOIN tb_usuario m ON a.idUsuario = m.idUsuario\n\t\t\tINNER JOIN tb_pessoa n ON m.idPessoa = n.idPessoa\n\t\t\tWHERE a.idCriarApuracao = :idCriarApuracao;\n\t\t\", [\n\t\t\t\":idCriarApuracao\" => $idApuracao\n\t\t]);\n\t}", "function ListaCuentasxpagarInactivas() {\n\n\t$sql = \"SELECT a.id, a.descripcion, a.fecha, a.total, b.descripcion AS nombre_proveedor\n\t\t\tFROM cuentaxpagar a\n\t\t\tINNER JOIN proveedor b ON a.proveedor_id = b.id\n\t\t\tWHERE a.estado = 'PAGADO'\";\n\n\t$db = new conexion();\n\t$result = $db->consulta($sql);\n\t$num = $db->encontradas($result);\n\n\t$respuesta->datos = [];\n\t$respuesta->mensaje = \"\";\n\t$respuesta->codigo = \"\";\n\n\tif ($num != 0) {\n\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t}\n\n\t\t$respuesta->mensaje = \"Ok\";\n\t\t$respuesta->codigo = 1;\n\t} else {\n\t\t$respuesta->mensaje = \"No existen registros de cuentas por pagar!\";\n\t\t$respuesta->codigo = 0;\n\t}\n\n\treturn json_encode($respuesta);\n}", "function paginador($pagina, $orden = NULL, $nombreOrden = NULL, $consultaGlobal = NULL, $cantidadRegistros = NULL) {\n global $configuracion;\n\n $item = '';\n $respuesta = array();\n $objeto = new FacturaVenta();\n\n $registros = $configuracion['GENERAL']['registrosPorPagina'];\n\n if (!empty($cantidadRegistros)) {\n $registros = (int) $cantidadRegistros;\n }\n\n if (isset($pagina)) {\n $pagina = $pagina;\n } else {\n $pagina = 1;\n }\n\n if (isset($consultaGlobal) && $consultaGlobal != '') {\n\n $data = explode('[', $consultaGlobal);\n $datos = $data[0];\n $palabras = explode(' ', $datos);\n\n if ($data[1] != '') {\n $condicionales = explode('|', $data[1]);\n\n $condicion = '(';\n $tam = sizeof($condicionales) - 1;\n for ($i = 0; $i < $tam; $i++) {\n $condicion .= $condicionales[$i] . ' REGEXP \"(' . implode('|', $palabras) . ')\" ';\n if ($i != $tam - 1) {\n $condicion .= ' OR ';\n }\n }\n $condicion .= ')';\n\n $consultaGlobal = $condicion;\n } else {\n $consultaGlobal = '(p.nombre REGEXP \"(' . implode('|', $palabras) . ')\")';\n }\n } else {\n $consultaGlobal = '';\n }\n\n if (!isset($nombreOrden)) {\n $nombreOrden = $objeto->ordenInicial;\n }\n\n\n if (isset($orden) && $orden == 'ascendente') {//ordenamiento\n $objeto->listaAscendente = true;\n } else {\n $objeto->listaAscendente = false;\n }\n\n if (isset($nombreOrden) && $nombreOrden == 'estado') {//ordenamiento\n $nombreOrden = 'activo';\n }\n\n $registroInicial = ($pagina - 1) * $registros;\n\n\n $arregloItems = $objeto->listar($registroInicial, $registros, array('0'), $consultaGlobal, $nombreOrden);\n\n if ($objeto->registrosConsulta) {//si la consulta trajo registros\n $datosPaginacion = array($objeto->registrosConsulta, $registroInicial, $registros, $pagina);\n $item .= $objeto->generarTabla($arregloItems, $datosPaginacion);\n }\n\n $respuesta['error'] = false;\n $respuesta['accion'] = 'insertar';\n $respuesta['contenido'] = $item;\n $respuesta['idContenedor'] = '#tablaRegistros';\n $respuesta['idDestino'] = '#contenedorTablaRegistros';\n $respuesta['paginarTabla'] = true;\n\n Servidor::enviarJSON($respuesta);\n}", "public function listarlapaz(){\n $persona=\"SELECT p.*,c.nombre as caja FROM persona as p\n LEFT JOIN cajalapaz as c ON c.id=p.id_caja where p.ciudad='lapaz' AND p.estado=1\";\n $bajas=\"SELECT p.*,c.nombre as caja FROM persona as p\n LEFT JOIN cajalapazretirado as c ON c.id=p.id_caja where p.ciudad='lapaz' AND p.estado=0\";\n $cajas=\"SELECT * FROM cajalapaz WHERE estado = 1\";\n $cajaretirados=\"SELECT * FROM cajalapazretirado WHERE estado = 1\";\n $result=[\n \"personal\"=> parent::consultaRetorno($persona),\n \"bajas\"=>parent::consultaRetorno($bajas),\n \"cajas\"=>parent::consultaRetorno($cajas),\n \"cajasretirados\"=>parent::consultaRetorno($cajaretirados)\n ];\n return $result;\n }", "public function get_mov_caja($fecha,$sucursal){\n\t$conectar= parent::conexion();\n\tparent::set_names(); \n\t$sql=\"select*from movimientos_caja where fecha=? and sucursal=? order by id_mov_caja DESC limit 1;\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$fecha);\n\t$sql->bindValue(2,$sucursal);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "function listarPais(){\n $this->procedimiento='rec.ft_cliente_sel';\n $this->transaccion='CLI_LUG_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n $this->setCount(false);\n //Definicion de la lista del resultado del query\n $this->captura('id_lugar','int4');\n $this->captura('codigo','varchar');\n $this->captura('estado_reg','varchar');\n $this->captura('id_lugar_fk','int4');\n $this->captura('nombre','varchar');\n $this->captura('sw_impuesto','varchar');\n $this->captura('sw_municipio','varchar');\n $this->captura('tipo','varchar');\n $this->captura('fecha_reg','timestamp');\n $this->captura('id_usuario_reg','int4');\n $this->captura('fecha_mod','timestamp');\n $this->captura('id_usuario_mod','int4');\n $this->captura('usr_reg','varchar');\n $this->captura('usr_mod','varchar');\n $this->captura('es_regional','varchar');\n\n //$this->captura('nombre_lugar','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n //var_dump($this->consulta); exit;\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function mostrar_tabla_anuncios(){\n\n\t\t$return = '';\n\t\t$mensaje = array('0' => 'Desactivado', '1' => 'Activo');\n\t\t$cols = array('id', 'clave_interna', 'provincia', 'municipio', 'tipo_venta', 'anuncio_promocionado',\n\t\t\t\t\t 'anuncio_e','paquete','activo','apto');\n\t\t$this->where('ussr',$this->user);\n\n\t\tif($salida = $this->get('anuncios', NULL, $cols)){\n\n\t\t\t$return .= '<table class=\"table table-bordered table-hover\">';\n\n\t\t\t$return .= '<tr>\n\t\t\t\t\t <th>Imagen</th>\n\t\t\t\t\t <th>Clave interna</th>\n\t\t\t\t\t <th>Paquete</th>\n\t\t\t\t\t <th>Provincia</th>\n\t\t\t\t\t <th>Operacion</th>\n\t\t\t\t\t <th>Nº imagenes</th>\n\t\t\t\t\t <th>Idiomas</th>\n\t\t\t\t\t <th>Contratado</th>\n\t\t\t\t\t <th>Anuncio apto</th>\n\t\t\t\t\t <th>Anuncio activo</th>\n\t\t\t\t\t <th>Opciones</th>\n\t\t\t\t\t </tr>';\n\t\t\t//por cada anuncio varias cosas habra que hacer\n\t\t\t$i=1;\t\t \n\t\t\tforeach ($salida as $key => $value) {\n\t\t\n\t\t\t\t$num = $i++;\n\t\t\t\t$id_arr = md5($value['id']);\n\t\t\t\t$imagen = $this->sacar_foto($id_arr, $this->user);\n\n\t\t\t\t$return .='<tr>\n\t\t\t\t\t \t<td>'.$imagen.'</td>\n\t\t\t\t\t <td>'.$value['clave_interna'].'</td>\n\t\t\t\t\t <td>'.$value['paquete'].'</td>\n\t\t\t\t\t <td>'.$value['provincia'].'<br />\n\t\t\t\t\t '.$this->show_municipio($value['municipio']).'</td>\n\t\t\t\t\t <td>'.$value['tipo_venta'].'</td>';\n\n\n\n\t\t\t\t//mostrara numero de imagenes en el anuncio\n\t\t\t\t$return .='<td>';\n\t\t\t\t$return .= $this->num_imagenes_anuncio($value['id']);\n\t\t\t\t$return .='</td>';\n\n\n\t\t\t\t//mostrando idiomas en los que esta el anuncio\n\t\t\t\t$return .='<td>';\n\t\t\t\t$return .= $this->idiomas_del_anuncio($value['id']);\n\t\t\t\t$return .='</td>';\n\n\t\t\t\t//estrella o promocionado\n\t\t\t\t$return .='<td>';\n\t\t\t\tif(!empty($value['anuncio_promocionado']) && ($value['anuncio_promocionado'] == 1)){\n\t\t\t\t\t$return .= 'Anuncio promocionado<br />';\t}\n\t\t\t\tif($value['anuncio_e'] == 1){\n\t\t\t\t\t$return .= 'Anuncio estrella';\t\t\t}\t\n\t\t\t\t\t\n\t\t\t $return .= '</td>';\n\t\t\t $return .= '<td>'.$value['apto'].'</td>';\n\t\t\t $return .= '<td id=\"act-'.$id_arr.'\">'.$mensaje[$value['activo']].'</td>';\n\t\t\t //dropdown de opciones\n\t\t\t $return .= '<td>'.$this->dropdown_tabla_anuncios($id_arr).'</td>';\n\t\t\n\t\t\t\t$return .= '</tr>';\n\n\t\t\t}//fin del foreach\n\n\t\t\t$return .= '</table>';\n\n\n\t\t}else{\n\t\t\t$return .= '<h5 id=\"sec1\">No hay anuncios 1 </h5>';\n\t\t}\n\n\t\treturn $return;\n\t}", "public function Afiliados(){\n\t\t\t$consult=oci_parse($conn,\"Ips$_sndCitas.fn_getAfiliados\");\n\t\t\toci_execute($consult);\n\t\t}", "public function index() {\n $anuncio = new anuncios();\n //$usuario = new usuario();\n \n // $pag = \"inicial\";\n // $result = \"\";\n // if (isset($_GET['pag']) && !empty($_GET['pag'])){\n // $pag=$_GET['pag'];\n // }\n // if (isset($_GET['result']) && !empty($_GET['result'])){\n // $result=$_GET['result'];\n // }\n \n $refat = 1;\n $qtdPag = 2;\n if (isset($_GET['refat']) && !empty($_GET['refat'])){\n $refat = $_GET['refat'];\n }\n \n if (isset($_GET['filtros'])){\n $filtros = $this->iniciarFiltros($_GET['filtros']);\n if (!empty($filtros['categoria'])){\n $anuncio->setIDCategoria($filtros['categoria']);\n }\n if (!empty($filtros['preco'])){\n $preco = explode(\"-\", $filtros['preco']);\n //print_r($preco);\n $anuncio->setValor($preco);\n }\n if (!empty($filtros['estado'])){\n $anuncio->setEstado($filtros['estado']);\n }\n } else {\n $filtros = $this->iniciarFiltros();\n }\n \n //$filtros = array(\n // 'categoria' => '',\n // 'preco' => '',\n // 'estado' => ''\n //);\n \n //if (isset($_GET['filtros'])){\n // $filtros = $_GET['filtros'];\n // if (!empty($filtros['categoria'])){\n // $anuncio->setIDCategoria($filtros['categoria']);\n // }\n // if (!empty($filtros['preco'])){\n // $preco = explode(\"-\", $filtros['preco']);\n // //print_r($preco);\n // $anuncio->setValor($preco);\n // }\n // if (!empty($filtros['estado'])){\n // $anuncio->setEstado($filtros['estado']);\n // }\n //}\n \n $result = $anuncio->selecionarALLAnuncios($refat, $qtdPag);\n if ($anuncio->numRows() == 1){\n $result = array();\n $result[] = $anuncio->result();\n }\n \n $resultQTD = $anuncio->getQTDAnuncios();\n $totAnuncios = $resultQTD['qtd'];\n \n //$categorias = $cat->selecionarAllCategorias();\n //if ($cat->numRows() == 1){\n // $categorias = array();\n // $categorias[] = $cat->result();\n //}\n \n //$usuario->selecionarALLUser();\n //$totUsuarios = $usuario->numRows();\n \n //$totalPag = ceil($totAnuncios / $qtdPag);\n \n $dados = $this->getTemplateDados();\n $dados[\"refat\"] = $refat;\n $dados[\"filtros\"] = $filtros;\n $dados[\"result\"] = $result;\n //$dados[\"categorias\"] = $categorias;\n $dados[\"totAnuncios\"] = $totAnuncios;\n //$dados[\"totUsuarios\"] = $totUsuarios;\n $dados[\"totalPag\"] = ceil($totAnuncios / $qtdPag);\n \n $this->loadTemplate(\"inicial\", $dados);\n }", "public function getComentarios($idAnuncio){ \n /*$query = \"SELECT fc.idUser, fc.idComentario, fc.idAnuncio, fc.comentario, fc.idPadre, fc.fecha, fu.nick, fu2.nick nickPadre\n FROM final_comentario fc INNER JOIN final_usuario fu USING(idUser) LEFT JOIN final_usuario fu2 ON(fc.idPadre = fu2.idUser) \n WHERE idAnuncio = '\".$idAnuncio.\"' ORDER BY fecha ASC\"; */\n \n $query = \"SELECT fc.idAnuncio, fc.idComentario, fc.idUser, fu.nick, fc.comentario, fc.idPadre, fc.fecha, aux2.nick nickPadre\n FROM final_comentario fc INNER JOIN final_usuario fu ON(fc.idUser=fu.idUser) LEFT JOIN\n (SELECT aux.idComentario, fu.nick\n FROM (SELECT fc2.idComentario, fc2.idUser FROM final_comentario fc1 INNER JOIN final_comentario fc2 ON (fc1.idPadre=fc2.idComentario)) aux\n INNER JOIN final_usuario fu ON(aux.idUser=fu.idUser)) aux2 ON (fc.idPadre=aux2.idComentario)\n WHERE fc.idAnuncio = '\".$idAnuncio.\"' ORDER BY fc.fecha ASC\";\n \n return $this->con->action($query); \n }", "public function consultaplanpagos($db, $numeroordenpago){\n $query_plan = \"SELECT codigoestado, numerorodenpagoplandepagosap FROM ordenpagoplandepago \".\n \" WHERE numerorodencoutaplandepagosap = '\".$numeroordenpago.\"' AND codigoestado = 100 \".\n \" AND cuentaxcobrarplandepagosap = 'C9013'\"; \n $row_plan = $db->GetRow($query_plan); \n return $row_plan;\n }", "public function dameMantenimientosAnteriores($inicio, $fin){\n\n $consulta = $this->getQueryBuilder();\n \n $consulta->select('d.id','d.direccion','c.id as cliente',\n 'd.telefono', 'd.sCliente',\n 'd.observaciones',\n 'dist.distrito',\n 'c.nombre', 'p.modelo', 'f.familia', 'p.fechaNuevoMantenimiento','p.periodicidad','t.tipoContrato', 'p.planificada')\n ->leftJoin('d.cliente', 'c')\n ->leftJoin('d.producto', 'p')\n ->leftJoin('p.familia', 'f')\n ->leftJoin('p.contrato', 't')\n ->leftJoin('d.distrito', 'dist')\n ->Where('p.fechaNuevoMantenimiento BETWEEN :inicio AND :fin') \n ->andWhere('p.planificada IS NULL')\n ->setParameter('inicio', $inicio) \n ->setParameter('fin', $fin);\n $consulta->orderby('d.distrito', 'ASC')\n ->addOrderBy('p.fechaNuevoMantenimiento', 'DESC')\n ->getQuery();\n \n\n $lista= $consulta->getQuery()->getResult();\n\n return $lista;\n }", "function lista_dosificacion_activa($tipo)\n {\n $sql=\"select * from dosificacion_factura df \n WHERE df.estado='Activo' and df.tipo_dosificacion='$tipo' Order by df.actividad \";\n $consulta = $this->db->query($sql);\n return($consulta);\n }", "function buscarEspaciosAprobados($notaAprobatoria){\r\n $aprobados=array();\r\n if(is_array($this->espaciosCursados))\r\n {\r\n foreach ($this->espaciosCursados as $value1)\r\n {\r\n if ((isset($value1['NOTA'])&&$value1['NOTA']>=$notaAprobatoria)||(isset($value1['CODIGO_OBSERVACION'])?$value1['CODIGO_OBSERVACION']:'')==19||(isset($value1['CODIGO_OBSERVACION'])?$value1['CODIGO_OBSERVACION']:'')==22||(isset($value1['CODIGO_OBSERVACION'])?$value1['CODIGO_OBSERVACION']:'')==24)\r\n {\r\n $aprobados[]=array('CODIGO'=>$value1['CODIGO'],'NIVEL'=>(isset($value1['NIVEL'])?$value1['NIVEL']:''),'CREDITOS'=>(isset($value1['CREDITOS'])?$value1['CREDITOS']:''));\r\n }\r\n }\r\n\r\n }else\r\n {\r\n $aprobados='';\r\n }\r\n return $aprobados;\r\n }", "function contratos_por_estado($id_estado){\n $sql =\n \"SELECT\n c.Numero,\n c.Objeto,\n c.Lugar,\n c.Valor_Inicial,\n c.Acta_Inicio,\n c.Fecha_Acta_Inicio,\n c.Plazo,\n c.Fecha_Vencimiento,\n c.Fecha_Inicial,\n t.Nombre AS Contratista,\n e.Estado \n FROM\n contratos AS c\n INNER JOIN tbl_terceros AS t ON c.Fk_Id_Terceros = t.Pk_Id_Terceros\n INNER JOIN tbl_estados AS e ON c.Fk_Id_Estado = e.Pk_Id_Estado \n WHERE\n c.Fk_Id_Estado = $id_estado \n AND c.Fk_Id_Proyecto = {$this->session->userdata('Fk_Id_Proyecto')} \n ORDER BY\n c.Numero ASC\";\n \n //Se retorna la consulta\n return $this->db->query($sql)->result();\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 getAsignacionf($permisoconsulta)\n {\n if ($permisoconsulta[0][\"fkID_cargo\"]==1) {\n $url=\"\";\n } else {\n $url=\" AND asignar.fkID_proyecto= '\" . $permisoconsulta[0]['fkID_proyecto'] . \"'\";\n }\n $query = \"select DISTINCT asignar.*,nombre_proyecto,nombre_territorial,direccion_territorial,serial_equipo,concat(nombres_persona,' ',apellidos_persona) as nombre_entrega,(SELECT concat(nombres_persona,' ',apellidos_persona) from persona where id_persona= fkID_persona_recibe and asignar.estado= 1 and direccion_territorial = direccion_territorial ) as nombres_recibe,nombre_cargo,nombre_area FROM `asignar`\n INNER join equipo on id_equipo = asignar.fkID_equipo\n INNER JOIN proyecto on id_proyecto = fkID_proyecto\n INNER JOIN persona on id_persona = fkID_persona_entrega\n INNER join area on id_area = persona.fkID_area\n INNER join cargo on id_cargo = persona.fkID_cargo\n INNER join territorial on id_territorial = persona.fkID_territorial\n INNER JOIN territorial_proyecto on territorial_proyecto.fkID_proyecto = id_proyecto\n WHERE asignar.estado= 1 and fkID_tipo_movimiento=1\". $url;\n $result = mysqli_query($this->link, $query);\n $data = array();\n while ($data[] = mysqli_fetch_assoc($result));\n array_pop($data);\n return $data;\n }", "public function vehiculos_agendados($idveh,$estado)\r\n {\r\n \r\n if ($idveh === FALSE)\r\n {\r\n $SqlInfo =\"select * from vehiculo, agenda where vehiculo.estado='\". $estado .\"' and vehiculo.patente=agenda.patente\";\r\n $query = $this->db->query($SqlInfo);\r\n\r\n return $query->result_array();\r\n }\r\n \r\n\r\n $SqlInfo =\"select * from vehiculo, agenda where vehiculo.estado='\". $estado .\"' and vehiculo.patente=agenda.patente and vehiculo.dueño=\". $idveh;\r\n $query = $this->db->query($SqlInfo);\r\n\r\n return $query->result_array();\r\n \r\n //$query = $this->db->get('vehiculo');\r\n\r\n //$query = $this->db->get_where('vehiculo,agenda', array('vehiculo.estado' => 'agendado', 'vehiculo.patente' => 'agenda.patente'));\r\n \r\n\r\n }", "function listarVacacion(){\n\t\t$this->procedimiento='asis.ft_vacacion_sel';\n\t\t$this->transaccion='ASIS_VAC_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 $this->setParametro('tipo_interfaz','tipo_interfaz','varchar');\n\t\t$this->captura('id_vacacion','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_funcionario','int4');\n\t\t$this->captura('fecha_inicio','date');\n\t\t$this->captura('fecha_fin','date');\n\t\t$this->captura('dias','numeric');\n\t\t$this->captura('descripcion','text');\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 $this->captura('desc_funcionario1','varchar');\n\t\t//wf\n $this->captura('id_proceso_wf','int4');\n $this->captura('id_estado_wf','int4');\n $this->captura('estado','varchar');\n $this->captura('nro_tramite','varchar');\n $this->captura('medio_dia','integer');\n $this->captura('dias_efectivo', 'numeric');\n// medio_dia\n //Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function get_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}", "public function returnAnunForDash($idUsuario, $status = \"online\"){#deverá ser passado o valor de status que desejado.\n\n $objAnuncio = new StatusAnuncioDAO();\n #retorna o id dos registros que representam o estado online ou inativo, sendo o valor default sempre online.\n $this->arrayStatusId = $objAnuncio->retornaRegStatus($status);\n\n\n #faz a junção das tabelas relacionadas ao anuncio, verificando usuário e se vai retornar os anuncios ativos ou inativos.\n $sql = \"SELECT * FROM Anuncio\n INNER JOIN Forma_pagamento ON Anuncio.anuncio_id = Forma_pagamento.forma_pag_anuncio_ref\n INNER JOIN Link ON Anuncio.anuncio_id = Link.link_anuncio_ref\n INNER JOIN Endereco ON Anuncio.anuncio_endereco = Endereco.endereco_id\n INNER JOIN Horario_funcionamento ON Anuncio.anuncio_id = Horario_funcionamento.horario_func_anuncio_ref\n INNER JOIN Cont_views ON Anuncio.anuncio_id = Cont_views.cont_views_anuncio_ref\n INNER JOIN Plano_saude ON Anuncio.anuncio_id = Plano_saude.plano_saude_anuncio_ref\n INNER JOIN Facilidades ON Anuncio.anuncio_id = Facilidades.facilidades_anuncio_ref\n WHERE Anuncio.anuncio_cliente_ref = {$idUsuario} AND Anuncio.anuncio_excluido = 0 AND (\";\n\n\n #verifica se os argumentos foram passados com sucesso. Somemte se os argumentos estiverem corretos que será executado a consulta.\n if(!empty($idUsuario) && ($status === \"online\" || $status === \"inativo\")){\n\n for ($i = 0; $i < count($this->arrayStatusId); $i++) {\n\n $sql .= \" Anuncio.anuncio_status = \" . $this->arrayStatusId[$i]['status_anuncio_id']; //estamos trabalhando com arrays associativos.\n\n #se $i + 1 for iqual ao tamanho total do array, significa que a proxima iteração será a ultima.\n if (($i + 1) != count($this->arrayStatusId)) {\n $sql .= \" OR \";\n } else {\n #Na ultima iteração recebe o ';'\n $sql .= \") ORDER BY Anuncio.anuncio_titulo ASC, Anuncio.anuncio_id ASC;\";\n }\n\n }\n\n\n\n #caso ocorrer tudo certo retorna a visualização da tabela.\n if($row = $this->runSelect($sql)){\n\n\n return $row;\n\n } else {\n\n // echo \"A consulta não retonou dados para o inner join curriculo \" . $sql;\n }\n\n } else {\n\n // echo \"Favor verificar os agumentos passados\";\n\n }\n\n }", "function listarSolicitudObligacionPago()\r\n {\r\n $this->procedimiento = 'tes.ft_solicitud_obligacion_pago_sel';\r\n $this->transaccion = 'TES_SOOBPG_SEL';\r\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\r\n\r\n\r\n $this->setParametro('id_funcionario_usu', 'id_funcionario_usu', 'int4');\r\n $this->setParametro('tipo_interfaz', 'tipo_interfaz', 'varchar');\r\n $this->setParametro('historico', 'historico', 'varchar');\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('id_obligacion_pago', 'int4');\r\n $this->captura('id_proveedor', 'int4');\r\n $this->captura('desc_proveedor', 'varchar');\r\n $this->captura('estado', 'varchar');\r\n $this->captura('tipo_obligacion', 'varchar');\r\n $this->captura('id_moneda', 'int4');\r\n $this->captura('moneda', 'varchar');\r\n $this->captura('obs', 'varchar');\r\n $this->captura('porc_retgar', 'numeric');\r\n $this->captura('id_subsistema', 'int4');\r\n $this->captura('nombre_subsistema', 'varchar');\r\n $this->captura('id_funcionario', 'int4');\r\n $this->captura('desc_funcionario1', 'text');\r\n $this->captura('estado_reg', 'varchar');\r\n $this->captura('porc_anticipo', 'numeric');\r\n $this->captura('id_estado_wf', 'int4');\r\n $this->captura('id_depto', 'int4');\r\n $this->captura('nombre_depto', 'varchar');\r\n $this->captura('num_tramite', 'varchar');\r\n $this->captura('id_proceso_wf', 'int4');\r\n $this->captura('fecha_reg', 'timestamp');\r\n $this->captura('id_usuario_reg', 'int4');\r\n $this->captura('fecha_mod', 'timestamp');\r\n $this->captura('id_usuario_mod', 'int4');\r\n $this->captura('usr_reg', 'varchar');\r\n $this->captura('usr_mod', 'varchar');\r\n $this->captura('fecha', 'date');\r\n $this->captura('numero', 'varchar');\r\n $this->captura('tipo_cambio_conv', 'numeric');\r\n $this->captura('id_gestion', 'integer');\r\n $this->captura('comprometido', 'varchar');\r\n $this->captura('nro_cuota_vigente', 'numeric');\r\n $this->captura('tipo_moneda', 'varchar');\r\n $this->captura('total_pago', 'numeric');\r\n $this->captura('pago_variable', 'varchar');\r\n $this->captura('id_depto_conta', 'integer');\r\n $this->captura('total_nro_cuota', 'integer');\r\n $this->captura('fecha_pp_ini', 'date');\r\n $this->captura('rotacion', 'integer');\r\n $this->captura('id_plantilla', 'integer');\r\n $this->captura('desc_plantilla', 'varchar');\r\n $this->captura('ultima_cuota_pp', 'numeric');\r\n $this->captura('ultimo_estado_pp', 'varchar');\r\n $this->captura('tipo_anticipo', 'varchar');\r\n $this->captura('ajuste_anticipo', 'numeric');\r\n $this->captura('ajuste_aplicado', 'numeric');\r\n $this->captura('monto_estimado_sg', 'numeric');\r\n $this->captura('id_obligacion_pago_extendida', 'integer');\r\n $this->captura('desc_contrato', 'text');\r\n $this->captura('id_contrato', 'integer');\r\n $this->captura('obs_presupuestos', 'varchar');\r\n $this->captura('codigo_poa', 'varchar');\r\n $this->captura('obs_poa', 'varchar');\r\n $this->captura('uo_ex', 'varchar');\r\n //Funcionario responsable de el plan de pagos\r\n $this->captura('id_funcionario_responsable', 'integer');\r\n $this->captura('desc_fun_responsable', 'text');\r\n\r\n $this->captura('id_conformidad', 'int4');\r\n $this->captura('conformidad_final', 'text');\r\n $this->captura('fecha_conformidad_final', 'date');\r\n $this->captura('fecha_inicio', 'date');\r\n $this->captura('fecha_fin', 'date');\r\n $this->captura('observaciones', 'varchar');\r\n $this->captura('fecha_certificacion_pres', 'date');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "public function listar_anuncios_interessadosByUser(){\n if(!isset($_SESSION))session_start();\n\n $cliente = unserialize($_SESSION['cliente']);\n\n return $this->anunciosDAO->selectAllInteresadosByUser($cliente->getId());\n }", "public function merma_acabados($proceso) {\n\n $sql = \"SELECT * from acabados_merma where status = 'A' and nombre = '\" . $proceso . \"'\";\n\n $query = $this->db->prepare($sql);\n $query->execute();\n\n $result = array();\n\n while ($row = $query->fetch(PDO::FETCH_ASSOC)) {\n\n $result[] = $row;\n }\n\n return $result;\n }", "public function status_acitivties ($act_status, $act_id, $pagione = false, $pagitwo = false, $pagithree = false){\n $total_rows = MU_Model::count_all_data('activities', array('act_deleted' => 0));\n $act_status = ($act_status == 1) ? 0 : 1;\n $statuschaged = MU_Model::updateStatusById('activities', array(\"act_status\" => $act_status), array('act_id' => $act_id));\n $pagi = \"\";\n if($this->session->userdata('search')){ $function = \"search_activities\"; }else{ $function = \"list_record\"; } \n if($pagione != false) $pagi = $pagione;\n if($pagitwo != false) $pagi .= \"/\".$pagitwo;\n if($pagithree != false) $pagi .= \"/\".$pagithree;\n $redirect = \"activities/\".$function.\"/\".$pagi; \n $act_msg = ($act_status == 1) ? \"Published\" : \"Unpublished\";\n if($statuschaged){\n $this->session->set_userdata('msg_success', 'The activities have been '.$act_msg.' successfully.');\n redirect($redirect);\n }else{\n $this->session->set_userdata('msg_error', 'Cannot '.$act_msg.' record on table name activities.');\n redirect($redirect);\n }\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 getAnuncios($condiciones, $columnNameOrder, $order, $fromLimit, $toLimit, $misAnuncios, $misFavoritos){\n $query = \"SELECT fa.idAnuncio, fa.idCategoria, fa.precio, fa.fecha, fa.titulo, fa.localizacion, fa.estado, fa.idUser, fi.small\n FROM final_anuncio fa LEFT JOIN final_imagen fi ON (fi.idAnuncio = fa.idAnuncio AND\n fi.idImagen = (SELECT MIN(idImagen) FROM final_imagen WHERE idAnuncio = fa.idAnuncio))\";\n \n $aux = \"WHERE\";\n \n if ($condiciones[\"precioMin\"] !== \"\"){\n $query = $query.\" \".$aux.\" fa.precio>=\".$condiciones[\"precioMin\"];\n $aux = \"AND\";\n }\n\n if ($condiciones[\"precioMax\"] !== \"\"){\n $query = $query.\" \".$aux.\" fa.precio<=\".$condiciones[\"precioMax\"];\n $aux = \"AND\";\n }\n \n if ($condiciones[\"titulo\"] != \"\"){\n $query = $query.\" \".$aux.\" LOWER(fa.titulo) LIKE LOWER('%\".$condiciones[\"titulo\"].\"%') \n OR strcmp(soundex(fa.titulo), soundex('\".$condiciones[\"titulo\"].\"')) = 0\";\n $aux = \"AND\";\n }\n \n if ($condiciones[\"localizacion\"] != \"\"){\n $query = $query.\" \".$aux.\" LOWER(fa.localizacion) LIKE LOWER('%\".$condiciones[\"localizacion\"].\"%')\n OR strcmp(soundex(fa.localizacion), soundex('\".$condiciones[\"localizacion\"].\"')) = 0\";\n $aux = \"AND\";\n }\n \n if ($condiciones[\"categoria\"] != \"\"){\n $query = $query.\" \".$aux.\" fa.idCategoria=\".$condiciones[\"categoria\"];\n $aux = \"AND\";\n }\n \n //Obtiene solo de los anuncios del usuario\n if ($misAnuncios == 1 && $condiciones[\"idUser\"] != \"\"){\n $query = $query.\" \".$aux.\" fa.idUser=\".$condiciones[\"idUser\"];\n $aux = \"AND\";\n }\n \n //Obtiene solo de los favoritos del usuario\n if ($misFavoritos == 1 && $condiciones[\"idUser\"] != \"\"){\n $query = $query.\" \".$aux.\" fa.idAnuncio IN (SELECT idAnuncio FROM final_favorito WHERE idUser=\".$condiciones[\"idUser\"].\")\";\n $aux = \"AND\";\n }\n \n //Si no se estan pidiendo los favoritos o mis anuncios, no mostramos los cancelados o terminados\n if ($misFavoritos != 1 && $misAnuncios != 1){\n $query = $query.\" \".$aux.\" fa.estado=1\";\n $aux = \"AND\";\n }\n \n if ($columnNameOrder != \"\" && $order != \"\"){\n $query = $query.\" ORDER BY fa.\".$columnNameOrder.\" \".$order;\n }\n \n $query = $query.\" LIMIT \".$fromLimit.\",\".$toLimit;\n \n //ChromePhp::log($query);\n return $this->con->action($query);\n }", "function asignar_pago_adelantado($acceso,$id_contrato){\n\t$cable=conexion();\n\t$acceso1=conexion();\n\t$cable->objeto->ejecutarSql(\"select id_pago,costo_cobro,id_cont_serv from vista_pago_ser where id_contrato='$id_contrato' and id_serv='ZZZ00001'\");\n\twhile($row=row($cable)){\n\t\n\t\t$id_pago=trim($row['id_pago']);\n\t\t$id_cont_serv_deuda=trim($row['id_cont_serv']);\n\t\t$monto_pago=trim($row['costo_cobro'])+0;\n\t\t\n\t\t//echo \"<br>:$id_pago:$monto_pago:$id_cont_serv_deuda\";\n\t\t//echo \"<br>:select tipo_costo,id_cont_serv,(((cant_serv * costo_cobro)-descu) - pagado ) as costo from vista_contratodeu where id_contrato='$id_contrato' and status_con_ser='DEUDA' and costo_cobro>0 order by tipo_serv ,fecha_inst:<br>\";\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t$acceso1->objeto->ejecutarSql(\"select tipo_costo,id_cont_serv,(((cant_serv * costo_cobro)-descu) - pagado ) as costo from vista_contratodeu where id_contrato='$id_contrato' and status_con_ser='DEUDA' and (((cant_serv * costo_cobro)-descu) - pagado )>0 order by tipo_serv ,fecha_inst\");\n\t\twhile($row=row($acceso1)){\n\t\t\t$id_cont_serv=trim($row['id_cont_serv']);\n\t\t\t$tipo_costo=trim($row['tipo_costo']);\n\t\t\t$costo=trim($row['costo'])+0;\n\t\t\t//echo \"<br>id_cont_serv:$id_cont_serv:costo:$costo<br>\";\n\t\t\tif($monto_pago>=$costo){\n\t\t\t\t$id_select=$id_select.\"=@$id_cont_serv\";\n\t\t\t\t$acceso->objeto->ejecutarSql(\"Update contrato_servicio_deuda Set apagar=0, pagado=pagado+'$costo' where id_cont_serv='$id_cont_serv'\");\n\t\t\t\t$acceso->objeto->ejecutarSql(\"insert into pago_factura(id_pago,id_cont_serv,costo_cobro_serv) values ('$id_pago','$id_cont_serv','$costo')\");\n\t\t\t\t$acceso->objeto->ejecutarSql(\"update contrato_servicio_deuda set status_con_ser='PAGADO' where id_cont_serv='$id_cont_serv' and ((cant_serv * costo_cobro)-descu)=pagado\");\n\t\t\t\t$monto_pago=$monto_pago-$costo;\n\t\t\t}\n\t\t\telse if($monto_pago>0){\n\t\t\t\t$id_select=$id_select.\"=@$id_cont_serv\";\n\t\t\t\t$acceso->objeto->ejecutarSql(\"Update contrato_servicio_deuda Set apagar=0, pagado=pagado+'$monto_pago' where id_cont_serv='$id_cont_serv'\");\n\t\t\t\t\n\t\t\t\t$cable->objeto->ejecutarSql(\"select costo_cobro_serv from pago_factura where id_pago='$id_pago' and id_cont_serv='$id_cont_serv'\");\n\t\t\t\tif($row=row($cable)){\n\t\t\t\t\t$costo_cobro_serv1=trim($row['costo_cobro_serv'])+0;\n\t\t\t\t\t//echo \"<BR>ENTRO ACT<BR>update pago_factura set costo_cobro_serv=costo_cobro_serv+$costo_cobro_serv1 where id_pago='$id_pago' and id_cont_serv='$id_cont_serv';\";\n\t\t\t\t\t$acceso->objeto->ejecutarSql(\"update pago_factura set costo_cobro_serv=costo_cobro_serv+$costo_cobro_serv1 where id_pago='$id_pago' and id_cont_serv='$id_cont_serv'\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$acceso->objeto->ejecutarSql(\"insert into pago_factura(id_pago,id_cont_serv,costo_cobro_serv) values ('$id_pago','$id_cont_serv','$monto_pago')\");\n\t\t\t\t}\n\t\t\t\t$acceso->objeto->ejecutarSql(\"update contrato_servicio_deuda set status_con_ser='PAGADO' where id_cont_serv='$id_cont_serv' and ((cant_serv * costo_cobro)-descu)=pagado\");\n\t\t\t\t$monto_pago=0;\n\t\t\t}\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"select id_pago from contrato_servicio_deuda where id_cont_serv='$id_cont_serv_deuda'\");\n\t\t$row=row($acceso);\n\t\t$id_pago_ade=trim($row['id_pago']);\n\t\t\t//echo \"<br>:$monto_pago:<br>\";\n\t\tif($monto_pago>0){\n\t\t\t$acceso->objeto->ejecutarSql(\"update pago_factura set costo_cobro_serv=$monto_pago where id_cont_serv='$id_cont_serv_deuda' \");\n\t\t\t$acceso->objeto->ejecutarSql(\"update contrato_servicio_deuda set costo_cobro=$monto_pago, pagado=$monto_pago where id_cont_serv='$id_cont_serv_deuda'\");\n\t\t\t\n\t\t\tactualizar_monto_pago($acceso,$id_pago_ade);\n\t\t}else{\n\t\t\t\n\t\t\t$acceso->objeto->ejecutarSql(\"delete from pago_factura where id_cont_serv='$id_cont_serv_deuda'\");\n\t\t\t$acceso->objeto->ejecutarSql(\"delete from contrato_servicio_deuda where id_cont_serv='$id_cont_serv_deuda'\");\n\t\t\t//echo \"delete from pagos where id_pago='$id_pago_ade'<br><br>\";\n\t\t\t$acceso->objeto->ejecutarSql(\"delete from pagos where id_pago='$id_pago_ade'\");\n\t\t}\n\n\t}//while inicial\n}", "public function desparasitantes_aplicarFiltrosDesparasitantes($fechaInicial, $fechaFinal, $fechaInicialProximo, $fechaFinalProximo, $idDesparasitante, $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($idDesparasitante != '0'){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND D.idDesparasitante = '$idDesparasitante' \";\t\n\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\t\n\t\t\tif($fechaInicial != \"\" AND $fechaFinal != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND ( D.fecha BETWEEN '$fechaInicial' AND '$fechaFinal')\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($fechaInicialProximo != \"\" AND $fechaFinalProximo != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND ( D.fechaProximoDesparasitante BETWEEN '$fechaInicialProximo' AND '$fechaFinalProximo')\";\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 D.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 D.idDesparasitanteMascota,\n\t\t\t\t\t\t D.dosificacion,\n\t\t\t\t\t\t D.fecha,\n\t\t\t\t\t\t DATE_FORMAT(D.hora, '%H:%i') AS hora,\n\t\t\t\t\t\t D.fechaProximoDesparasitante,\n\t\t\t\t\t\t D.observacion,\n\t\t\t\t\t\t D.idMascota,\n\t\t\t\t\t\t D.idDesparasitante,\n\t\t\t\t\t\t DD.nombre AS nombreDesparasitante,\n\t\t\t\t\t\t M.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\tFROM\n\t\t\t\t\t\t tb_desparasitantesMascotas AS D\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON D.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_desparasitantes AS DD ON DD.idDesparasitante = D.idDesparasitante\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 (D.idDesparasitanteMascota)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (D.idDesparasitanteMascota) 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 }", "public function listarUsuariosActivos()\r\n\t{\r\n\t\t$eventos=array();\r\n\t\ttry{\r\n\t\t\t//realizamos la consulta de todos los items\r\n\t\t\t$consulta = $this->db->prepare(\"select * from administrador WHERE admin_status LIKE 'Activo'\");\r\n\t\t\t$consulta->execute();\r\n\t\t\tfor($i=0; $row = $consulta->fetch(); $i++)\r\n\t\t\t{\r\n\t\t $fila['admin_cedula']=$row['ADMIN_CEDULA'];\r\n\t\t\t$fila['admin_login']=$row['ADMIN_LOGIN'];\r\n\t\t\t$fila['admin_nombre']=$row['ADMIN_NOMBRE'];\r\n\t\t\t$fila['admin_pregunta_secreta']=$row['ADMIN_FK_ID_PRE'];\r\n\t\t\t$fila['admin_respuesta_secreta']=$row['ADMIN_RESP_SECRETA'];\r\n\t\t\t$fila['admin_contrasena']=$row['ADMIN_CONTRASENA'];\r\n\t\t\t$eventos[]=$fila;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tcatch(PDOException $e)\r\n\t\t{\r\n\t\t\techo $e;\r\n\t\t}\r\n\t\treturn $eventos;\t\t\r\n\t}", "function listarCuentaBancaria(){\n\t\t$this->procedimiento='tes.f_cuenta_bancaria_sel';\n\t\t$this->transaccion='TES_CTABAN_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuenta_bancaria','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('fecha_baja','date');\n\t\t$this->captura('nro_cuenta','varchar');\n\t\t$this->captura('fecha_alta','date');\n\t\t$this->captura('id_institucion','int4');\n\t\t$this->captura('nombre_institucion','varchar');\n\t\t$this->captura('doc_id','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_moneda','integer');\n\t\t$this->captura('codigo_moneda','varchar');\n\t\t$this->captura('denominacion','varchar');\n\t\t$this->captura('centro','varchar');\n\t\t\n\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function listarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_sel';\n\t\t$this->transaccion='ADQ_COT_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t\n\t\t$this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('tipo_interfaz','tipo_interfaz','varchar');\n $this->setParametro('historico','historico','varchar');\n \n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cotizacion','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('lugar_entrega','varchar');\n\t\t$this->captura('tipo_entrega','varchar');\n\t\t$this->captura('fecha_coti','date');\n\t\t$this->captura('numero_oc','varchar');\n\t\t$this->captura('id_proveedor','int4');\n\t\t$this->captura('desc_proveedor','varchar');\n\t\t\n\t\t$this->captura('fecha_entrega','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('fecha_venc','date');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('fecha_adju','date');\n\t\t$this->captura('nro_contrato','varchar');\n\t\t\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_estado_wf','integer');\n\t\t$this->captura('id_proceso_wf','integer');\n\t\t$this->captura('desc_moneda','varchar');\n\t\t$this->captura('tipo_cambio_conv','numeric');\n\t\t$this->captura('email','varchar');\n\t\t$this->captura('numero','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_obligacion_pago','int4');\n\t\t$this->captura('tiempo_entrega','varchar');\n\t\t$this->captura('funcionario_contacto','varchar');\n\t\t$this->captura('telefono_contacto','varchar');\n\t\t$this->captura('correo_contacto','varchar');\n\t\t$this->captura('prellenar_oferta','varchar');\n\t\t$this->captura('forma_pago','varchar');\n\t\t$this->captura('requiere_contrato','varchar');\n\t\t$this->captura('total_adjudicado','numeric');\n\t\t$this->captura('total_cotizado','numeric');\n\t\t$this->captura('total_adjudicado_mb','numeric');\n\t\t$this->captura('tiene_form500','varchar');\n\t\t$this->captura('correo_oc','varchar');\n\n\t\t$this->captura('id_gestion','int4');\n\n\t\t$this->captura('cuce','varchar');\n\t\t$this->captura('fecha_conclusion','date');\n\t\t$this->captura('id_solicitud','int4');\n\t\t$this->captura('justificacion','text');\n\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 listar_abonos_informe_table() {\n $dato = [];\n\n //--- Datos del Logeado ---//\n $userdata = $this->session->all_userdata();\n //--- datos ---//\n $abonos = $this->app_model->get_abonos();\n $estados = $this->app_model->get_estados();\n\n if ($abonos) {\n foreach ($abonos as $key => $value) {\n $texto = \"\";\n $class = \"\";\n if ($value['idEstado'] == 1) :\n $class = \"btn-info\";\n $texto = \"Activado\";\n elseif ($value['idEstado'] == 2):\n $class = \"btn-success\";\n $texto = \"Pausado\";\n elseif ($value['idEstado'] == 3):\n $class = \"btn-danger\";\n $texto = \"Terminado\";\n else:\n $class = \"btn-warning\";\n $texto = \"Sin Estado\";\n endif;\n\n $opcion = '<div class=\"btn-group\">' .\n '<button class=\"btn ' . $class . '\" style=\"padding: 3px;font-size: 0.8em;\">' . $texto . '</button>' .\n '</div>';\n\n $dato[] = array(\n $opcion,\n $value['fechaEmision'],\n $value['fechaVtoCobro'],\n $value['nombEmpresa'],\n $value['descripModalidad'],\n $value['ventasCreadas'],\n \"$\" . number_format($value['total'] + $value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n $value['nombreVend'],\n \"DT_RowId\" => $value['idAbono']\n );\n }\n }\n \n $aa = array(\n 'sEcho' => 1,\n 'iTotalRecords' => count($dato),\n 'iTotalDisplayRecords' => 10,\n 'aaData' => $dato\n );\n\n echo json_encode($aa);\n }", "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 getDiasPantiA($id, $ano)\n { \n $result=$this->adapter->query(\"select b.id, b.idEmp ,0 as dias,c.idCcos, \n c.fecing, ( DATE_FORMAT( a.fechaF , '%Y-%m-%d' ) - DATE_FORMAT( d.fecha , '%Y-%m-%d' ) ) \n\t\t\t\t , c.CedEmp , c.nombre , c.idTemp , case when e.id > 0 then 1 else 0 end as pg, \n case when (day( d.fecha) >= day(a.fechaI)) and (day( d.fecha) <= day(a.fechaF)) then 1 else 0 end as diaI \n from n_nomina a\n inner join n_nomina_e b on b.idNom = a.id\n inner join a_empleados c on c.id = b.idEmp \n inner join n_tipemp_p d on d.idEmp = b.idEmp and d.idTemp = 1 # mientras 1 es para los convencionados \n left join n_pg_primas_ant e on e.idEmp = b.idEmp and year(e.fechaI) = year(a.fechaI) and month( e.fechaI ) and month( a.fechaI ) \n where c.activo=0 and c.estado = 0 \n and a.id = \".$id.\" and ( DATE_FORMAT( a.fechaF , '%Y-%m-%d' )\n - DATE_FORMAT( d.fecha , '%Y-%m-%d' ) )> \".$ano.\" \n and month( d.fecha ) = month(a.fechaF)\n order by c.fecing desc \",Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "public function selectIndEventos(string $fechaInicio,string $fechaFin){\n\n \n $this->intIdUser = $_SESSION['idUser'];\n $this->fechaInicio =$fechaInicio;\n $this->fechaFin =$fechaFin;\n\n $noAdmin=\"\";\n $dateRange=\"\";\n\n if($fechaInicio !=\"\" AND $fechaFin !=\"\")\n {\n $dateRange = \" AND l.fecha BETWEEN '$this->fechaInicio' AND '$this->fechaFin'\";\n }\n\n if($_SESSION['idUser']>2)\n {\n $noAdmin=\" AND l.personaid = $this->intIdUser\";\n }\n\n\n $sql=\"SELECT p.idcolaborador,\n CONCAT(p.nombre, ' ', p.apellido) as nombreCompleto,s.empresa,\n COUNT(case when l.tipoevento = 1 then 1 end) as pos,\n COUNT(case when l.tipoevento = 2 then 1 end) as neg,\n COUNT(case when l.tipoevento = 1 or l.tipoevento = 2 then 1 end) as total\n FROM libretalider l\n INNER JOIN colaborador p ON l.colaboradorid = p.idcolaborador\n INNER JOIN persona s ON l.personaid = s.idpersona\n WHERE l.status !=0 $dateRange $noAdmin \n GROUP BY l.colaboradorid\";\n\n $request = $this->select_all($sql);\n return $request;\n\n }", "private function iniciar_pagina_anuncio(){\n\t\t//==========necesarios para anuncios===============\n\t\trequire_once 'inc/clases/form_busqueda_builder.class.php';\t//para formularios ($Form)\n\t\trequire_once 'inc/clases/public/empresa.class.php';\t\t\t//pagina de empresa (y empresas)\n\t\trequire_once 'inc/clases/public/pagina_anuncio.class.php';\t\t//pagina anuncio(Modulo)\n\n\n\t\t$Anuncio = new Pagina_anuncio();\n\t\t//var_dump($Anuncio);\n\t\tif($Anuncio->correcto == false){\n\t\t\t$this->forzar_404();\n\t\t}else{\n\t\t\t//var_dump('esta ok');\n\t\t\t$this->anuncio = $Anuncio->salida;\n\t\t\t$empresa = $this->anuncio['ussr'];\n\t\t\t$this->Empresa = new Empresa();\n\t\t\t$this->Empresa->extraigo_para_anuncios($empresa);\n\n\t\t}\n\t}", "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}", "public function consultarDatosCita($idCita){\n\t\t\n\n\t\t$resultadoCita = array();\n\t\t\n\t\t$idCita \t= parent::escaparQueryBDCliente($idCita); \n\t\t\n\t\t$query = \"SELECT C.idAgendaCita, C.fecha, DATE_FORMAT(C.horaInicio, '%H:%i') horaInicio, C.fechaFin, C.horaFin, C.duracionHoras, C.duracionMinutos, C.estado, \n\t\t\t\t\tC.observaciones, C.idMascota, C.idSucursal,C.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.idAgendaCita = '$idCita' LIMIT 1\";\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$resultadoCita[] = $filas;\n \t}//fin while\n \t\n }//fin if\t\n \n \n return $resultadoCita;\t\n\t\t\n\t\t\n\t}", "function pagocobrobancossaldos($periodo,$ejer,$moneda,$cuenta,$opc){\n\t\tswitch($opc){\n\t\t\tcase 1://cargo\n\t\t\t\t$mov=\"Cargo M.E.\";\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$mov=\"Abono M.E\";\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$mov=\"Abono\";\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$mov=\"Cargo\";\n\t\t\tbreak;\n\t\t}\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,sum(m.Importe) importe,m.TipoMovto,c.description,p.relacionExt,p.concepto,p.idperiodo,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=\".$moneda.\" and c.`main_father`=conf.CuentaBancos and m.TipoMovto='\".$mov.\"'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 and p.idperiodo<=\".$periodo.\" and m.Cuenta=\".$cuenta.\"\n\t\t\tand p.id not in(select id from cont_polizas where concepto='POLIZA DE AJUSTE POR DIFERENCIA CAMBIARIA' and idperiodo=\".$periodo.\")\n\t\t\tgroup by m.Cuenta,p.idperiodo,m.TipoMovto\");\n\t\t\treturn $sql;\n\t\t}", "public function listar_us_asignaciones($id_tarea){\n $contenedor=\"\";\n $asignaciones = array();\n $con = new Conexion();\n $con3 = $con->conectar();\n try{\n $con3->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stmt2 = $con3->prepare(\"select * from asignaciones a inner join usuarios us on a.cedula = us.cedula WHERE id_tarea =:id_tarea\");\n $stmt2->bindParam(':id_tarea', $id_t);\n $id_t = $id_tarea;\n if($stmt2->execute()){\n while ($row2 = $stmt2->fetchObject()) {\n $contenedor=\"{$row2->cedula} <b>{$row2->nombre}</b> {$row2->cargo} {$row2->unidad} {$row2->sede}<br><br>\";\n array_push($asignaciones,$contenedor);\n }\n }\n }\n catch(PDOException $e)\n {\n echo \"Error: \" . $e->getMessage();\n }\n $con2 = null;\n return $asignaciones;\n }", "function obtenerSesion_agendar(){\n\t\t\n\t\t$query1 = ('select sesion.id, sesion.checkin, sesion.pagada, sesion.id_servicio, sesion.id_usuario, sesion.id_agenda, sesion.ejecutada, usuario.nombre,\n\t\t\t\t\tusuario.apellido, servicio.descripcion , cliente.nombre as nombre_cliente , cliente.apellido as apellido_cliente from sesion \n\t\t\t\t\tInner JOIN usuario\n\t\t\t\t\ton sesion.id_usuario = usuario.id\n\t\t\t\t\tInner Join servicio\n\t\t\t\t\ton sesion.id_servicio = servicio.id\n\t\t\t\t\tInner Join cliente\n\t\t\t\t\ton sesion.id_cliente = cliente.id\n\t\t\t\t\twhere sesion.id_agenda is NULL'); //QUERY PARA OBTENER TODO DE UNA VEZ.\n\t\t$query = $this->db->query($query1);\n\t\t\n\t\t\n\t //$query = $this->db->get('sesion');\n\t if($query-> num_rows() > 0) return $query->result_array();\n\t else return false ;\n\t \n\t \n\t}", "public function Listar(){\n\t\t\t$view_agendamento = new ViewAgendamentoPacienteFuncionarioClass();\n\n\t\t\t//Chama o método para selecionar os registros\n \n \n \n\t\t\treturn $view_agendamento::Select();\n\t\t}", "public function hospitalizaciones_aplicarFiltrosHospitalizaciones($fechaInicial, $fechaFinal, $usuarios, $idPropietario, $paciente){\n \t\n\t\t\t$resultado = array();\n\t\t\t$adicionQuery = \"WHERE 1 \";\n\t\t\t\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 H.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 ( H.fechaIngreso 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 H.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 H.idHospitalizacion,\n\t\t\t\t\t\t H.fechaIngreso,\n\t\t\t\t\t\t DATE_FORMAT(H.horaIngreso, '%H:%i') AS hora,\n\t\t\t\t\t\t H.motivoHospitalizacion,\n\t\t\t\t\t\t H.observacion,\n\t\t\t\t\t\t HA.idHospitalizacionAlta,\n\t\t\t\t\t\t HA.fecha as fechaAlta,\n\t\t\t\t\t\t DATE_FORMAT(HA.hora, '%H:%i') AS horaAlta,\n\t\t\t\t\t\t HA.observaciones AS observacionesAlta,\n\t\t\t\t\t\t HA.cuidadosATener,\n\t\t\t\t\t\t UA.nombre AS nombreUsuarioAlta,\n\t\t\t\t\t\t UA.apellido AS apellidoUsuarioAlta,\n\t\t\t\t\t\t M.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\tFROM\n\t\t\t\t\t\t tb_hospitalizacion AS H\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_hospitalizacionAlta AS HA ON HA.idHospitalizacion = H.idHospitalizacion\n\t\t\t\t\t\t LEFT JOIN\n\t\t\t\t\t\t tb_usuarios AS UA ON UA.idUsuario = HA.idUsuario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON H.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 = H.idSucursal\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = H.idUsuario\n\t\t\t\t\t\t\t\".$adicionQuery.\"\n\t\t\t\t\t\t\n\t\t\t\t\t\tGROUP BY (H.idHospitalizacion)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (H.idHospitalizacion) DESC; \";\n\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 }", "public function consultas_aplicarFiltrosConsultas($fechaInicial, $fechaFinal, $usuarios, $idDxConsulta, $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($idDxConsulta != '0'){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" INNER JOIN tb_consultas_diagnosticos AS DC ON DC.idConsulta = C.idConsulta\n\t\t\t\t\t\t\t\t INNER JOIN tb_panelDiagnosticoConsulta AS PCD ON PCD.idPanelDiagnosticoConsulta = DC.idPanelDiagnosticoConsulta\n\t\t\t\t\t\t\t\t WHERE PCD.idPanelDiagnosticoConsulta = '$idDxConsulta' \";\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 C.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 ( C.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 C.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 C.idConsulta,\n\t\t\t\t\t\t C.fecha,\n\t\t\t\t\t\t DATE_FORMAT(C.hora, '%H:%i') as hora,\n\t\t\t\t\t\t C.motivo,\n\t\t\t\t\t\t C.observaciones,\n\t\t\t\t\t\t C.planASeguir,\n\t\t\t\t\t\t C.edadActualMascota,\n\t\t\t\t\t\t \n\t\t\t\t\t\t EF.idExamenFisico,\n\t\t\t\t\t\t EF.peso,\n\t\t\t\t\t\t EF.medidaCm,\n\t\t\t\t\t\t EF.temperatura,\n\t\t\t\t\t\t EF.observaciones as observacionesExamenFisico,\n\t\t\t\t\t\t \n\t\t\t\t\t\t M.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\tFROM\n\t\t\t\t\t\t tb_consultas AS C\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON C.idMascota = M.idMascota\n\t\t\t\t\t\t \tLEFT JOIN\n\t\t\t\t\t\t tb_examenFisico AS EF ON EF.idConsulta = C.idConsulta\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 = C.idSucursal\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = C.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 (C.idConsulta)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (C.idConsulta) 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 }", "public function obtenerAutoridad($idcarrera, $idtipocargo, $idsede)\n {\n \tif($idtipocargo == 1 or $idtipocargo == 2) {\n\t \t$q = Doctrine_Query::create()\n\t\t \t\t->select(\"*\")\n\t\t \t\t->from(\"DesignacionesEmpleados de\")\n\t\t \t\t->innerjoin('de.Empleados e on de.idempleado=e.idempleado')\n\t\t \t\t->where(\"de.idtipocargo = \".$idtipocargo)\n\t\t \t\t->andWhere(\"de.inicio<CURRENT_TIMESTAMP()\")\n\t\t \t->andWhere(\"(de.fin>CURRENT_TIMESTAMP() or de.fin='0000-00-00')\")\n\t\t \t->andWhere(\"de.activo = 1\") \t\n\t\t \t->fetchOne(); \n\t\t// Director\t \t\t\n\t } elseif ($idtipocargo == 19) {\n\t \t$q = Doctrine_Query::create()\n\t \t\t->select(\"*\")\n\t \t\t->from(\"DesignacionesEmpleados de\")\n\t \t\t->innerjoin('de.Empleados e on de.idempleado=e.idempleado')\n\t \t\t->where(\"de.idtipocargo = \".$idtipocargo)\n\t \t\t->andWhere(\"de.inicio<CURRENT_TIMESTAMP()\")\n\t \t\t->andWhere(\"de.fin>CURRENT_TIMESTAMP() or de.fin='0000-00-00'\")\n\t \t\t->andWhere(\"de.activo = 1\")\n\t \t\t->andWhere('de.idempleado IN (\n\t\t \t\t\t\tSELECT es.idempleado\n\t\t \t\t\t\tFROM EmpleadosSede es\n\t\t \t\t\t\tWHERE es.idsede = '.$idsede.')')\n\t \t\t->andWhere('de.idarea IN (\n\t\t \t\t\t\tSELECT ac.idarea\n\t\t \t\t\t\tFROM AreasCarrera ac\n\t \t\t\t\t\tINNER JOIN ac.Areas ar ON ac.idarea=ar.idarea\n\t\t \t\t\t\tWHERE (ar.idtipoarea = 5 or ar.idtipoarea = 7) and ac.idcarrera = '.$idcarrera.')')\n\t \t\t->fetchOne();\t\n\t\t// Decano o Sec Academico\t \t\t\n \t} else {\n\t \t$q = Doctrine_Query::create()\n\t\t \t\t->select(\"*\")\n\t\t \t\t->from(\"DesignacionesEmpleados de\")\n\t\t \t\t->innerjoin('de.Empleados e on de.idempleado=e.idempleado')\n\t\t \t\t->where(\"de.idtipocargo = \".$idtipocargo)\n\t\t \t\t->andWhere(\"de.inicio<CURRENT_TIMESTAMP()\")\n\t\t \t->andWhere(\"de.fin>CURRENT_TIMESTAMP() or de.fin='0000-00-00'\")\n\t\t \t->andWhere(\"de.activo = 1\")\n\t \t\t->andWhere('de.idarea IN (\n\t\t \t\t\t\tSELECT ac.idarea \n\t\t \t\t\t\tFROM AreasCarrera ac\n\t\t \t\t\t\tWHERE ac.idcarrera = '.$idcarrera.')')\t \t\t \t\n\t\t \t->fetchOne(); \t\n \t}\n\t \n return $q;\n }", "function listarTareaProgramada($datos){\n conectar($conexion);\n /*Declaracion de variables para implementar determinado Top en la consulta*/\n $varIng1 = ((isset($datos['radicado'])?$datos['radicado']:'') != '');\n $varIng2 = ((isset($datos['nomDesti'])?$datos['nomDesti']:'') != '');\n $varIng3 = ((isset($datos['correoElectro'])?$datos['correoElectro']:'') != '');\n $varIng4 = ((isset($datos['fechaIni'])?$datos['fechaIni']:'') != '');\n $varIng5 = ((isset($datos['estado'])?$datos['estado']:'') != '');\n /*Funcion que determina un Top a la consulta cuando se consultan datos*/\n if($varIng1 != '' || $varIng2 != '' || $varIng3 != '' || $varIng4 != '' || $varIng5 != ''){\n $top=\"1000\";\n }\n else{\n $top=\"50\";\n }\n $sql = \"SELECT OID,DS_NOMDESTINATARIO,DS_CORREODESTINATARIO,DS_ASUNTODESTINATARIO,DS_MENSAJEDESTINATARIO,SN_COPIA,CD_USUENVIA,DS_HOSTENVIA,DT_FECHAENVIA,SN_ESTADO\n FROM ADM_CORREOFRONTEND\n WHERE 1=1 \";\n if((isset($varIng1)?$varIng1:'') != ''){\n $sql.= \" AND OID = '\" . $datos['radicado']. \"'\";\n }\n if((isset($varIng2)?$varIng2:'') != ''){\n $sql.= \" AND DS_NOMDESTINATARIO LIKE '%\".$datos['nomDesti'].\"%'\";\n }\n if((isset($varIng3)?$varIng3:'') != ''){\n $sql.= \" AND DS_CORREODESTINATARIO = '\".$datos['correoElectro'].\"'\";\n }\n if((isset($varIng4)?$varIng4:'') != ''){\n $sql.= \" AND CAST(DT_FECHAENVIA AS DATE) BETWEEN '\" . $datos['fechaIni']. \"' AND '\" . $datos['fechaFin']. \"'\";\n }\n if((isset($varIng5)?$varIng5:'') != ''){\n $sql.= \" AND SN_ESTADO = '\" . $datos['estado']. \"'\";\n }\n /*Ordenamos por el Consecutivo*/\n if((isset($datos['numCodigo'])?$datos['numCodigo']:'') == '' & (isset($datos['nomDocumento'])?$datos['nomDocumento']:'') == ''\n & (isset($datos['fechaIni'])?$datos['fechaIni']:'')){\n }\n $sql.=\" ORDER BY OID DESC\n LIMIT $top\";\n $sqlQuery=mysqli_query($conexion,$sql) or die (\"Error al momento de listar los envíos de correo \".mysqli_error($conexion));\n echo '\n <div class=\"table-responsive\">\n <table class=\"table table-striped table-bordered table-hover\" style=\"width:100%;\">\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:4%;text-align:center;\"># Radicado</th>\n <th scope=\"col\" style=\"width:20%;text-align:center;\">Nombre destinatario</th>\n <th scope=\"col\" style=\"width:20%;text-align:center;\">Correo electronico</th>\n <th scope=\"col\" style=\"width:10%;text-align:center;\">Usuario envío</th>\n <th scope=\"col\" style=\"width:10%;text-align:center;\">Fecha envío</th>\n <th scope=\"col\" style=\"width:2%;text-align:center;\">Estado</th>\n <th scope=\"col\" style=\"width:2%;text-align:center;\">Editar/Visualizar</th>\n </tr>\n </thead>\n <tbody>\n ';\n $i = 0;\n while($row = mysqli_fetch_array($sqlQuery)){\n $oid = $row['OID'];\n switch ($row['SN_ESTADO']) {\n case '0':\n $url = \"frontEnd.php?oid=$oid\";\n // $img = \"assets/img/edit.png\";\n $img = \"assets/img/ver.png\";\n $title='Visualizar';\n $content = '<i class=\"fa fa-circle text-danger\"></i>';\n break;\n case '1':\n $url = \"frontEnd.php?oid=$oid\";\n $img = \"assets/img/ver.png\";\n $title = 'Visualizar';\n $content = '<i class=\"fa fa-circle text-info\"></i>';\n break;\n }\n echo '\n <tr>\n <th scope=\"row\" style=\"text-align:center;\">'.$row['OID'].'</th>\n <td scope=\"row\">'.$row['DS_NOMDESTINATARIO'].'</td>\n <td scope=\"row\">'.$row['DS_CORREODESTINATARIO'].'</td>\n <td scope=\"row\">'.$row['CD_USUENVIA'].'</td>\n <td scope=\"row\">'.$row['DT_FECHAENVIA'].'</td>\n <td scope=\"row\" style=\"text-align:center;\">'.$content.'</td>\n <td scope=\"row\" style=\"text-align:center;\"><a href=\"'.$url.'\" data-toggle=\"tooltip\" title=\"'.$title.'\"><img class=\"addPagare\" id=\"addPagare\" title=\"\" src=\"'.$img.'\" width=\"20\" height=\"20\"></a> </td>\n </tr>\n ';\n $i++;\n }\n if($i == 1){\n $i = \"$i Registro\";\n }else{\n $i = \"$i Registros\";\n }\n echo\"<thead><th colspan='7' style='text-align:center;'>$i</th></thead>\";\n echo '\n </tbody>\n </table>\n </div>\n ';\n mysqli_close($conexion);\n}", "public function consulta_asistencia()\n {\n $fecha_reporte = cambiaf_a_mysql($this->txt_fecha_desde->Text);\n $dir = $this->drop_direcciones->SelectedValue;\n $cod_organizacion = usuario_actual('cod_organizacion');\n\n // se obtienen las justificaciones del día seleccionado\n $sql=\"SELECT (p.cedula) as cedula_just, p.nombres, p.apellidos, j.codigo, jd.fecha_desde, jd.hora_desde,\n jd.fecha_hasta, jd.hora_hasta, jd.observaciones, jd.lun, jd.mar, jd.mie, jd.jue, jd.vie,\n tf.descripcion as descripcion_falta, tj.descripcion as descripcion_tipo_justificacion\n\t\t\t\t\t FROM asistencias.justificaciones as j, asistencias.justificaciones_dias as jd,\n\t\t\t\t\t\t asistencias.justificaciones_personas as jp, organizacion.personas as p, organizacion.personas_nivel_dir as n, asistencias.tipo_faltas tf, asistencias.tipo_justificaciones tj\n\t\t\t\t\t\tWHERE ((p.cedula = jp.cedula) and\n\t\t\t\t\t\t (p.cedula = n.cedula) and (jd.codigo_tipo_falta = tf.codigo) and (tj.id = jd.codigo_tipo_justificacion) and\n\t\t\t\t\t\t\t (n.cod_direccion LIKE '$dir%') and\n\t\t\t\t\t\t (p.fecha_ingreso <= '$fecha_reporte') and\n\t\t\t\t\t\t (jd.fecha_desde <= '$fecha_reporte') and\n\t\t\t\t\t\t\t (jd.fecha_hasta >= '$fecha_reporte') and\n\t\t\t\t\t\t\t (j.estatus='1') and (j.codigo=jd.codigo_just) and (j.codigo=jp.codigo_just))\n\t\t\t\t\t\tORDER BY p.nombres, p.apellidos, jp.cedula \";\n $this->justificaciones=cargar_data($sql,$this); \n\n // se obtiene el horario vigente para la fecha seleccionada\n $this->horario_vigente = obtener_horario_vigente($cod_organizacion,$fecha_reporte,$this);\n \n // se realizan las consultas para mostrar los listados\n // Se consultan los asistentes\n $sql=\"SELECT (p.cedula) as cedula_integrantes, CONCAT(p.nombres,' ',p.apellidos) as nombre,\n e.cedula, e.fecha, MIN(e.hora) as entrada, MAX(e.hora) as salida\n FROM asistencias.entrada_salida as e, organizacion.personas as p, organizacion.personas_nivel_dir as n\n WHERE ((p.cedula = e.cedula) and\n (p.cedula = n.cedula) and\n (n.cod_direccion LIKE '$dir%') and\n (p.fecha_ingreso <= '$fecha_reporte') and\n (e.fecha <= '$fecha_reporte') and\n (e.fecha >= '$fecha_reporte'))\n GROUP BY e.cedula\n ORDER BY entrada, p.nombres, p.apellidos \";\n $this->asistentes=cargar_data($sql,$this);\n $this->ind_asistentes = count($this->asistentes);\n\n // se consultan los inasistentes\n $sql2=\"SELECT p.cedula as cedula_integrantes, CONCAT(p.nombres,' ',p.apellidos) as nombre\n\t\t\t\t\t\t\t\t\t FROM organizacion.personas as p, asistencias.personas_status_asistencias as s,\n\t\t\t\t\t\t\t\t\t organizacion.personas_nivel_dir as n\n\t\t\t\t\t\t\t\t\t WHERE ((s.status_asistencia = '1') and\n\t\t\t\t\t\t\t\t\t \t\t (s.cedula = p.cedula) and\n\t\t\t\t\t\t\t\t\t\t\t (p.cedula = n.cedula) and\n\t\t\t\t\t\t\t (n.cod_direccion LIKE '$dir%') and\n\t\t\t\t\t\t\t\t\t (p.fecha_ingreso <= '$fecha_reporte') and\n\t\t\t\t\t\t\t\t\t (p.cedula not in\n\t\t\t\t\t\t\t\t\t (SELECT e.cedula\n\t\t\t\t\t\t\t\t\t\t FROM asistencias.entrada_salida as e, organizacion.personas_nivel_dir as n\n\t\t\t\t\t\t\t\t\t\t \t WHERE ((e.fecha = '$fecha_reporte') and\n\t\t\t\t\t\t\t\t\t\t\t\t (p.cedula = n.cedula) and\n\t\t\t\t\t\t\t (n.cod_direccion LIKE '$dir%'))\n\t\t\t\t\t\t\t\t\t\t\t GROUP BY e.cedula)))\n\t\t\t\t\t\t\t\t\t ORDER BY p.nombres, p.apellidos\";\n $this->inasistentes=cargar_data($sql2,$this);\n\n\n // Se consultan los asistentes para comparar inconsistencia de horas en el marcado\n // Si le falta hora\n $inconsistentes = array();\n foreach($this->asistentes as $arreglo){\n \n $sql2=\"SELECT COUNT(*) as n_horas FROM asistencias.entrada_salida as e\n\t\t\t WHERE e.fecha = '$fecha_reporte' AND e.cedula = '$arreglo[cedula_integrantes]' \";\n $resultado2=cargar_data($sql2,$this);\n if(!empty($resultado2)){\n if ($resultado2[0][n_horas]%2!=0) {//impar\n array_unshift($inconsistentes, array('cedula'=>$arreglo[cedula_integrantes], 'nombre'=>$arreglo[nombre],'salida'=>$arreglo[salida]));\n }//fin si\n }//fin si\n }//fin each\n\n\n\n // Se enlaza el nuevo arreglo con el listado de Direcciones\n //$this->DataGrid_fj->Caption=\"Reporte de Asistencias del \".$this->txt_fecha_desde->Text;\n if(!empty($inconsistentes)){\n $this->DataGrid_fh->DataSource=$inconsistentes;\n $this->DataGrid_fh->dataBind();\n }\n\n // Se enlaza el nuevo arreglo con el listado de Direcciones\n $this->DataGrid->Caption=\"Reporte de Asistencias del \".$this->txt_fecha_desde->Text;\n $this->DataGrid->DataSource=$this->asistentes;\n $this->DataGrid->dataBind();\n\n\n $this->DataGrid_ina->Caption=\"Inasistentes el d&iacute;a \".$this->txt_fecha_desde->Text;\n $this->DataGrid_ina->DataSource=$this->inasistentes;\n $this->DataGrid_ina->dataBind();\n\n /* Por un error que no supe identificar, el cual suma un numero adicional a la variable\n * de inasistentes no justificados, he tenido que sacarla del procedimiento donde normalmente\n * se contaba y tuve que realizarla por resta en esta sección.\n */\n $this->ind_inasistentes_no_just = count($this->inasistentes) - $this->ind_inasistentes_si_just;\n\n $this->Repeater->DataSource = $this->justificaciones;\n $this->Repeater->dataBind();\n\n $xale=rand(100,99999);\n // Se realiza la construcción del gráfico para indicadores\n\n $chart = new PieChart();\n $dataSet = new XYDataSet();\n if ($this->ind_asistentes>=1) {$dataSet->addPoint(new Point(\"Funcionarios Asistentes: (\".$this->ind_asistentes.\")\", $this->ind_asistentes));};\n if ($this->ind_inasistentes_no_just>=1) {$dataSet->addPoint(new Point(\"Inasistentes NO JUSTIFICADOS: (\".$this->ind_inasistentes_no_just.\")\", $this->ind_inasistentes_no_just));};\n if ($this->ind_inasistentes_si_just>=1) {$dataSet->addPoint(new Point(\"Inasistentes JUSTIFICADOS: (\".$this->ind_inasistentes_si_just.\")\", $this->ind_inasistentes_si_just));};\n $chart->setDataSet($dataSet);\n $chart->setTitle(\"Porcentajes de Asistencias / Inasistencias del: \".$this->txt_fecha_desde->Text);\n elimina_grafico($xale.\"_01.png\");\n $chart->render(\"imagenes/temporales/\".$xale.\"_01.png\");\n $this->grafico1->ImageUrl = \"imagenes/temporales/\".$xale.\"_01.png\";\n\n\n $chart2 = new PieChart();\n $dataSet2 = new XYDataSet();\n $this->ind_asistentes_no_retrasados=$this->ind_asistentes-$this->ind_asistentes_tarde_no_just-$this->ind_asistentes_tarde_si_just;\n if ($this->ind_asistentes_no_retrasados>=1) {$dataSet2->addPoint(new Point(\"Puntuales: (\".$this->ind_asistentes_no_retrasados.\")\", $this->ind_asistentes_no_retrasados));};\n if ($this->ind_asistentes_tarde_no_just>=1) {$dataSet2->addPoint(new Point(\"Impuntuales NO JUSTIFICADOS: (\".$this->ind_asistentes_tarde_no_just.\")\", $this->ind_asistentes_tarde_no_just));};\n if ($this->ind_asistentes_tarde_si_just>=1) {$dataSet2->addPoint(new Point(\"Impuntuales JUSTIFICADOS: (\".$this->ind_asistentes_tarde_si_just.\")\", $this->ind_asistentes_tarde_si_just));};\n $chart2->setDataSet($dataSet2);\n $chart2->setTitle(\"Porcentajes de Retrasos del: \".$this->txt_fecha_desde->Text);\n elimina_grafico($xale.\"_02.png\");\n $chart2->render(\"imagenes/temporales/\".$xale.\"_02.png\");\n $this->grafico2->ImageUrl = \"imagenes/temporales/\".$xale.\"_02.png\";\n\n // si la consulta de asistentes tiene resultados se habilita la impresion, sino, se deshabilita\n if (!empty($this->asistentes)) {$this->btn_imprimir->Enabled = true;} else {$this->btn_imprimir->Enabled = false;}\n\n }", "function listEstado($id){\n\t$sql = 'SELECT * FROM tb_estado';\n\tif($id>0){\n\t\t$sql.=' WHERE id='.$id;\n\t}\n\t$resultado = $GLOBALS['con']->query($sql);\n\treturn $resultado;\n}", "function obtenerCadenaCodigos($estudiantes){\n $cadena_codigos='';\n foreach ($estudiantes as $key => $row) {\n if(!$cadena_codigos){\n $cadena_codigos = $row['COD_ESTUDIANTE'];\n }else{\n $cadena_codigos .= \",\".$row['COD_ESTUDIANTE'];\n }\n }\n return $cadena_codigos;\n }", "public function cirugias_aplicarFiltrosCirugias($fechaInicial, $fechaFinal, $usuarios, $idCirugia, $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($idCirugia != '0'){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" INNER JOIN tb_diagnosticosCirugias AS DC ON DC.idCirugia = C.idCirugia\n\t\t\t\t\t\t\t\t INNER JOIN tb_panelesCirugiaDiagnosticos AS PCD ON PCD.idPanelCirugiaDiagnostico = DC.idPanelCirugiaDiagnostico\n\t\t\t\t\t\t\t\t WHERE PCD.idPanelCirugiaDiagnostico = '$idCirugia' \";\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 C.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 ( C.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 C.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 C.idCirugia,\n\t\t\t\t\t\t C.fecha,\n\t\t\t\t\t\t DATE_FORMAT(C.hora, '%H:%i') as hora,\n\t\t\t\t\t\t C.tipoAnestesia,\n\t\t\t\t\t\t C.motivo,\n\t\t\t\t\t\t C.complicaciones,\n\t\t\t\t\t\t C.observaciones, \n\t\t\t\t\t\t C.planASeguir,\n\t\t\t\t\t\t C.edadActualMascota,\n\t\t\t\t\t\t C.idMascota,\n\t\t\t\t\t\t C.idSucursal,\n\t\t\t\t\t\t C.idUsuario,\n\t\t\t\t\t\t M.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\tFROM\n\t\t\t\t\t\t tb_cirugias AS C\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON C.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 = C.idSucursal\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = C.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 (C.idCirugia)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (C.idCirugia) DESC; \";\n\t\t\t\t\t\t\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 }", "public function ListarCategoriasArbol($estado = \"1\")\n {\n $tree = array();\n //Categoria Padres\n $categoria_padres = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarPadres($estado);\n //Resto de categoria\n $categoria_hijos = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarHijos($estado);\n\n for ($i = 0; $i < count($categoria_padres); $i++) {\n\n $value = $categoria_padres[$i];\n $categoria_id = $value->getCategoriaId();\n\n $subcategoria = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarCategoriasDelPadre($categoria_id, $estado);\n $class = (count($subcategoria) > 0) ? \"optionGroup\" : \"\";\n\n $element = array(\n 'categoria_id' => $categoria_id,\n 'categoria_padre_id' => \"\",\n 'descripcion' => $value->getNombre(),\n 'class' => $class\n );\n\n array_push($tree, $element);\n\n $tree = $this->getChilds($tree, $categoria_hijos, $categoria_id, 0, $categoria_id);\n\n }\n\n return $tree;\n }", "public function ListarCategoriasArbol($estado = \"1\")\n {\n $tree = array();\n //Categoria Padres\n $categoria_padres = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarPadres($estado);\n //Resto de categoria\n $categoria_hijos = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarHijos($estado);\n\n for ($i = 0; $i < count($categoria_padres); $i++) {\n\n $value = $categoria_padres[$i];\n $categoria_id = $value->getCategoriaId();\n\n $subcategoria = $this->getDoctrine()->getRepository('IcanBundle:Categoria')\n ->ListarCategoriasDelPadre($categoria_id, $estado);\n $class = (count($subcategoria) > 0) ? \"optionGroup\" : \"\";\n\n $element = array(\n 'categoria_id' => $categoria_id,\n 'categoria_padre_id' => \"\",\n 'descripcion' => $value->getNombre(),\n 'class' => $class\n );\n\n array_push($tree, $element);\n\n $tree = $this->getChilds($tree, $categoria_hijos, $categoria_id, 0, $categoria_id);\n\n }\n\n return $tree;\n }", "public function annulationAction($id,Request $request,$dateSortie,$nomEnfant,$prenomEnfant) {\n \n if ($request->getSession()->get('email') == null) {\n return $this->pageErreur(\"Vous devez être connecté pour accèder à ce lien\");\n } \n \n $saison = new Saison;\n $year = $saison->connaitreSaison(); \n $em = $this->getDoctrine()->getManager();\n $parents = $em->getRepository('SC\\UserBundle\\Entity\\User')->findOneByEmail($request->getSession()->get('email')); \n //on verifie que les infos sont correctes\n if($this->parametreValide2($id, $dateSortie) == false) {\n return $this->pageErreur(\"informations fournies non correctes\");\n }\n $sortie = $this->getSortie($id, $dateSortie);\n //on verifie que l'enfant est bien un des fils de l'utilisateur, et qu'il est bien inscirt a la sortie \n if($this->estEnfant($nomEnfant,$prenomEnfant,$parents) == false OR $this->estInscrit($id,$sortie,$request->getSession()->get('email'),$nomEnfant,$prenomEnfant,$year) == false) {\n return $this->pageErreur(\"Erreur si l'identité de l'enfant\");\n } \n //on recupere les enfants pour la vue principale\n $listEnfants = $em->getRepository('SC\\UserBundle\\Entity\\Enfant')->findBy(array('userParent' => $parents)); \n //on supprime de la table\n $inscription = $em->getRepository('SC\\ActiviteBundle\\Entity\\InscriptionSortie')\n ->findOneBy(array('idActivite' =>$id,'dateSortie'=>$dateSortie,'emailParent'=> $request->getSession()->get('email'),'nomEnfant' => $nomEnfant, 'prenomEnfant' => $prenomEnfant, 'saison' => $year));\n if(is_null($inscription)) {\n return $this->pageErreur(\"vous n'etes pas inscrit à cette sortie\");\n }\n \n $em->remove($inscription);\n $em->flush();\n \n $request->getSession()->getFlashBag()->add('info', 'annulation enregistree'); \n return $this->render('SCUserBundle:Security:monCompte.html.twig',array('listEnfants'=>$listEnfants));\n }", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "public function showAseg(){\n $ordenado = \\DB::table('Asegurado')->orderBy('Ap_paterno', 'asc')->get();\n return $ordenado;\n }", "function listarPeriodoVenta(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_PERVEN_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n //Definicion de la lista del resultado del query\n $this->captura('id_periodo_venta','int4');\n $this->captura('id_gestion','int4');\n $this->captura('mes','varchar');\n $this->captura('estado','varchar');\n $this->captura('nro_periodo_mes','int4');\n $this->captura('fecha_fin','date');\n $this->captura('fecha_ini','date');\n $this->captura('tipo_periodo','varchar');\n $this->captura('medio_pago','varchar');\n $this->captura('tipo_cc','varchar');\n $this->captura('estado_reg','varchar');\n $this->captura('id_usuario_ai','int4');\n $this->captura('id_usuario_reg','int4');\n $this->captura('usuario_ai','varchar');\n $this->captura('fecha_reg','timestamp');\n $this->captura('fecha_mod','timestamp');\n $this->captura('id_usuario_mod','int4');\n $this->captura('usr_reg','varchar');\n $this->captura('usr_mod','varchar');\n $this->captura('desc_periodo','text');\n $this->captura('fecha_pago','date');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function obter_noticias_pagina_inicial() {\n $this->db->where(array(\"status_noticia\"=>1));\n $this->db->order_by(\"data_noticia\", \"desc\");\n return $this->db->get('noticia',4,0);\n }", "public function CarregaAnual($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 Anual\r\n $result = $model->BuscaAnual($idplanificacion, $pais, $sede, $indicador);\r\n \r\n if( $result[0]->tipo == 'Ultimo')\r\n {\r\n $aPlanificado = $result[0]->ultimo_plan_anual;\r\n $aRealizado = $result[0]->ultimo_real_anual;\r\n }\r\n \r\n if( $result[0]->tipo == 'Acumulado')\r\n {\r\n $aPlanificado = $result[0]->acumulado_plan_anual;\r\n $aRealizado = $result[0]->acumulado_real_anual;\r\n }\r\n \r\n if( $result[0]->tipo == 'Promedio')\r\n {\r\n $aPlanificado = $result[0]->promedio_plan_anual;\r\n $aRealizado = $result[0]->promedio_real_anual;\r\n }\r\n \r\n if( $result[0]->tipo == 'Minimo')\r\n {\r\n $aPlanificado = $result[0]->minimo_plan_anual;\r\n $aRealizado = $result[0]->minimo_real_anual;\r\n }\r\n \r\n if( $result[0]->tipo == 'Maximo')\r\n {\r\n $aPlanificado = $result[0]->maximo_plan_anual;\r\n $aRealizado = $result[0]->maximo_real_anual;\r\n }\r\n \r\n //tudo junto pq deu merda separado\r\n echo json_encode(array(\"plan\" => $aPlanificado. ',' . $aRealizado));\r\n }", "public function ListarArqueoCaja()\n{\n\tself::SetNames();\n\t\n\tif($_SESSION[\"acceso\"] == \"cajero\") {\n\n\n $sql = \" select * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja WHERE cajas.codigo = '\".$_SESSION[\"codigo\"].\"'\";\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\n\n\t} else {\n\n\t$sql = \" select * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja\";\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\n\t}\n}", "public function listarActivos(){\n\t\t$sql = \"SELECT * FROM producto\n\t\t\t\tWHERE prod_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}" ]
[ "0.6901112", "0.67792714", "0.6762469", "0.66537935", "0.66196746", "0.6592385", "0.65196514", "0.64192045", "0.63940555", "0.63709646", "0.6342002", "0.6335485", "0.63296986", "0.63169634", "0.628279", "0.6238928", "0.6208654", "0.62078506", "0.6202557", "0.62000996", "0.61921173", "0.6172402", "0.61568195", "0.61367977", "0.6132525", "0.61295307", "0.6122549", "0.61184984", "0.6096832", "0.6086437", "0.6068955", "0.6060079", "0.6042546", "0.60371983", "0.6036151", "0.6029174", "0.6025679", "0.60215896", "0.5994114", "0.59934306", "0.599321", "0.5972245", "0.59656423", "0.59598845", "0.5958451", "0.59568113", "0.5952376", "0.59481084", "0.5946266", "0.59451115", "0.5945063", "0.5942565", "0.5934008", "0.59252185", "0.5915048", "0.59135336", "0.5913492", "0.5908779", "0.58931774", "0.58926034", "0.5887609", "0.5883049", "0.58785194", "0.58717203", "0.5869331", "0.58678657", "0.58602595", "0.5852385", "0.5852349", "0.5844847", "0.5841482", "0.5841131", "0.5837484", "0.5835958", "0.5834199", "0.5822499", "0.58224964", "0.5820032", "0.5818543", "0.58172125", "0.5816101", "0.58144855", "0.58016765", "0.57978785", "0.57978296", "0.57964367", "0.5794663", "0.5785701", "0.5783561", "0.5781267", "0.57772243", "0.57772243", "0.5761844", "0.57586855", "0.5757643", "0.57565403", "0.5756371", "0.5751372", "0.57470846", "0.5741549" ]
0.73345286
0
/ Get Filtros Organigrama
/ Получить фильтры организационной схемы
public function getFiltroOrganigrama() { $resultado = array(); $sql = " SELECT STRING_AGG(v.unidad_administrativa,',') AS o_resultado FROM ( SELECT CAST(o.unidad_administrativa AS CHARACTER VARYING) FROM cargos c INNER JOIN organigramas o ON c.organigrama_id = o.id WHERE c.baja_logica = 1 GROUP BY o.unidad_administrativa ORDER BY o.unidad_administrativa ) AS v "; $this->_db = new Cargos(); $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql)); if (count($arr) > 0) { /** * Para agregar un valor nulo al inicio se añade una coma */ $res = $arr[0]->o_resultado; $resultado = explode(",", $res); } return $resultado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOrganismsList();", "function cc_get_agency($rif){\n\t\n\t$rif = (string) trim($rif);\n\t$id = (int) substr($rif, 0, 2);\n\t\n\t// MAP\n\t$agenzie_agenti_user = array();\n\t$agenzie_agenti_user[1] = array( \"fave_property_agency\" => 2788, \"fave_agents\" => 72 , \"post_author\" => 3 );\n\t$agenzie_agenti_user[2] = array( \"fave_property_agency\" => 2786, \"fave_agents\" => 150 , \"post_author\" => 4 );\n\t$agenzie_agenti_user[3] = array( \"fave_property_agency\" => 2790, \"fave_agents\" => 158 , \"post_author\" => 5 );\n\t$agenzie_agenti_user[4] = array( \"fave_property_agency\" => 2784, \"fave_agents\" => 20012 , \"post_author\" => 6 );\n\t$agenzie_agenti_user[5] = array( \"fave_property_agency\" => 2777, \"fave_agents\" => 20016 , \"post_author\" => 7 );\n\t$agenzie_agenti_user[6] = array( \"fave_property_agency\" => 2792, \"fave_agents\" => 156 , \"post_author\" => 2 );\n\t$agenzie_agenti_user[7] = array( \"fave_property_agency\" => 19988, \"fave_agents\" => 20018 , \"post_author\" => 8 );\n\t$agenzie_agenti_user[10] = array( \"fave_property_agency\" => 19992, \"fave_agents\" => 20014 , \"post_author\" => 9 );\n\t$agenzie_agenti_user[11] = array( \"fave_property_agency\" => 19990, \"fave_agents\" => 20020 , \"post_author\" => 10 );\n\t\n\treturn $agenzie_agenti_user[$id];\n\t\n}", "function obtenerFolleto($edicion){\n\t\t$concurso = new Concurso();\n\t\t$res = $concurso->recuperar($edicion);\n\t\treturn $res['folleto'];\n\t}", "function obtenerGastromapa($edicion){\n\t\t$concurso = new Concurso();\n\t\t$res = $concurso->recuperar($edicion);\n\t\treturn $res['gastromapa'];\n\t}", "public function getFamille(){\n\t\t$req = \"select * from famille\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "function ricercaOrdinamento($frasi)\n {\n $parole = array();\n\n foreach ($frasi as $frase)\n {\n $frase = preg_replace(\"/[^a-zA-Z\\ ]/\", \"\", $frase);\n\n $parole = array_merge($parole, explode(\" \", $frase));\n }\n\n $parole = array_count_values(array_map(\"strtolower\", $parole));\n arsort($parole);\n\n return rimozioneNonParole($parole);\n }", "public function getSacadoCidadeUF();", "public function getOrganism() {\n\t\treturn (string)$this->gpml[\"Organism\"];\n\t}", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "function cata_getfamilys_adm() {\n\tglobal $db;\n\t//global $familyId;\n\n\t$familys = array();\n\n\t$select = \"\n\t\tSELECT\tf.*, COUNT(id_article) AS nbart\n\t\tFROM\tdims_mod_cata_famille f\n\n\t\tLEFT JOIN\tdims_mod_cata_article_famille af\n\t\tON\t\t\taf.id_famille = f.id\n\n\t\tWHERE f.id_module = {$_SESSION['dims']['moduleid']}\n\n\t\tGROUP BY f.id\n\t\tORDER BY f.id_parent, f.position\";\n\t$result = $db->query($select);\n\twhile ($fields = $db->fetchrow($result)) {\n\t\t$familys['list'][$fields['id']] = $fields;\n\t\t$familys['tree'][$fields['id_parent']][] = $fields['id'];\n\t}\n\n\t//// look for groupid\n\t//if (!isset($familyId)) {\n\t// if (!isset($_SESSION['catalogue']['familyId'])) $_SESSION['catalogue']['familyId'] = $familys['tree'][1][0];\n\t// $familyId = $_SESSION['catalogue']['familyId'];\n\t//}\n\treturn($familys);\n}", "public function getOrganizacionesArray()\n {\n $organizaciones = $this->getOrganizaciones();\n $ArrayOrg = Array();\n if ($organizaciones) {\n foreach ($organizaciones as $org){\n $ArrayOrg[$org['id']] = $org['orgNombre'];\n }\n }\n return $ArrayOrg;\n }", "public function grupo_permiso()\n {\n $parametros = Input::only('term');\n\n $data = Permiso::where(function($query) use ($parametros) {\n $query->where('grupo','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $variable = $data->distinct()->select(DB::raw(\"grupo as nombre\"))->get();\n $data = [];\n foreach ($variable as $key => $value) {\n $data[] = $value->nombre;\n }\n\n return $this->respuestaVerTodo($data);\n }", "function get_fakultas(){\n\t}", "function getTiposDocumento(){\r\n\t$tipos_documento[\"I\"]\t= \"Investigaci&oacute;n\";\r\n\t$tipos_documento[\"AV\"]\t= \"Archivo vertical\";\r\n\t$tipos_documento[\"AR\"]\t= \"Art&iacute;culo de revisa\";\r\n\t$tipos_documento[\"L\"]\t= \"Libro\";\r\n\t$tipos_documento[\"R\"]\t= \"Revista\";\r\n\t$tipos_documento[\"T\"]\t= \"Tesis\";\r\n\t$tipos_documento[\"D\"]\t= \"Documento\";\t\r\n\t\r\n\treturn $tipos_documento;\r\n}", "function lib4ridora_get_all_organizational_units() {\n $facet_fields = lib4ridora_parse_affiliation_fields();\n $facets = lib4ridora_facet_query($facet_fields);\n\n $org_units = array();\n\n // If there's results, construct an array where the keys are affiliations\n // as in Solr, and the values are formatted to be labels.\n foreach ($facets as $facet) {\n if (empty($facet)) {\n continue;\n }\n $keys = array_keys($facet);\n $org_units = array_merge($org_units, drupal_map_assoc($keys, 'lib4ridora_org_unit_ucwordss'));\n }\n\n // Sort the array alphanumerically (ignoring lower/upper case):\n $sortAryTmp = array_map( 'strtolower', $org_units );\n array_multisort( $sortAryTmp, SORT_ASC, SORT_STRING, $org_units );\n\n // Return 'all' alongside whatever else.\n return array(\"*\" => t(\"All\")) + $org_units;\n}", "function mostraPerfil($CPF)\n{\n $xml = new DOMDocument();\n $arquivoxml = \"../../db/pacientes.xml\";\n $xml->load($arquivoxml);\n $busca = array();\n $count = 0;\n foreach ($xml->getElementsByTagName('paciente') as $paciente) {\n if ($paciente->getAttribute('CPF') == $CPF) {\n $busca[$count]['nome'] = $paciente->getElementsByTagName('nome')[0]->nodeValue;\n $busca[$count]['email'] = $paciente->getElementsByTagName('email')[0]->nodeValue;\n $busca[$count]['telefone'] = $paciente->getElementsByTagName('telefone')[0]->nodeValue;\n $busca[$count]['CEP'] = $paciente->getElementsByTagName('CEP')[0]->nodeValue;\n $busca[$count]['endNum'] = $paciente->getElementsByTagName('endNum')[0]->nodeValue;\n $busca[$count]['idade'] = $paciente->getElementsByTagName('idade')[0]->nodeValue;\n $busca[$count]['genero'] = $paciente->getElementsByTagName('genero')[0]->nodeValue;\n $count++;\n // break;\n }\n }\n return $busca;\n}", "function GetInfogrupos(){\n\t\t\t$sql =\"SELECT G.grupo, G.salon, G.horario, C.descripcion AS carrera \n\t\t\t\tFROM grupos G INNER JOIN carreras C ON G.carrera = C.codigo;\";\n\t\t\t$this->bd->selectSQL($sql);\n\t\t\tif(!empty($this->bd->rowresult)){\n\t\t\t\treturn $this->bd->rowresult;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "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}", "public function obtenerOrganizador(){\n $sql = \"SELECT uid_agrupamiento FROM \". TABLE_AGRUPAMIENTO .\" WHERE organizador = 1 AND uid_empresa = \". $this->getUID();\n $uid = $this->db->query($sql, 0, 0);\n $uid = ( true === is_countable($uid) && count($uid)>1 ) ? reset($uid) : $uid;\n if( is_numeric($uid) ){\n return new agrupamiento($uid);\n }\n return false;\n }", "public function BuscaOrganizacionalTodosVerMas($tupla)\n {\n $Nivls = \"\";\n \n //print_r($tupla);\n $Resp3 = explode(',', $tupla[id_area]);//, $pieces)\n foreach ($Resp3 as $Fila3) \n { \n $Nivls .= $this->arbol->BuscaOrganizacional(array('id_organizacion' => $Fila3)).\"<br /><br />\";\n }\n if($Nivls!='')\n $Nivls=substr($Nivls,0,strlen($Nivls)-6);\n else\n $Nivls='-- Sin información --';\n \n \n if (strlen($Nivls)>200){\n $string = explode($Nivls, '<br /><br />');\n $valor_final = '';\n foreach ($string as $value) {\n $valor_final .= $value;\n if (strlen($valor_final)>200){\n return substr($valor_final, 0, 200) . '.. <br/>\n <a href=\"#\" tok=\"' .$tupla[id]. '-doc\" class=\"ver-mas\">\n <i class=\"glyphicon glyphicon-search\" href=\"#search\"></i> Ver Mas\n <input type=\"hidden\" id=\"ver-mas-' .$tupla[id]. '-doc\" value=\"'.$Nivls.'\"/>\n </a>';\n }\n $valor_final .= \"<br /><br />\";\n \n }\n \n return substr($Nivls, 0, 200) . '.. <br/>\n <a href=\"#\" tok=\"' .$tupla[id]. '-doc\" class=\"ver-mas\">\n <i class=\"glyphicon glyphicon-search\" href=\"#search\"></i> Ver Mas\n <input type=\"hidden\" id=\"ver-mas-' .$tupla[id]. '-doc\" value=\"'.$Nivls.'\"/>\n </a>';\n }\n //return $tupla[analisis_causal];\n \n return $Nivls;\n\n }", "function fct_titre_page ($mescriteres) {\n\t$titre_page = \"\";\n\tforeach ($mescriteres as $ref => $infoscritere) {\n\t\tif (($infoscritere['code'] >= 0) && ($infoscritere['libelle'] != \"\")) {\n\t\t\tif ($titre_page != \"\") $titre_page .= \", \";\n\t\t\t$titre_page .= $infoscritere['libelle'];\n\t\t}\n\t}\n\tif ($titre_page == \"\") $titre_page = \"Un expert vous aide Ó identifier un arbre\";\n\telse $titre_page = \"Fleurs correspondant Ó : \".$titre_page;\n\treturn $titre_page;\n}", "function searchOrganisme($nom_organisme){\n $query = \"\n SELECT DISTINCT ob.body_value as body, ob.body_summary as bodysum, ob.bundle, ov.field_ville_value as ville, ol.field_lien_url as lien, oa.field_annee_tid, oc.field_carte_lat as lat, oc.field_carte_lon as lon\n FROM obj_field_data_body as ob , obj_field_data_field_ville as ov, obj_field_data_field_lien as ol, obj_field_data_field_annee as oa, obj_field_data_field_carte as oc\n where ob.bundle='expérience' AND ob.entity_id = ov.entity_id AND ob.entity_id = ol.entity_id AND ob.entity_id = oa.entity_id AND oc.entity_id = ob.entity_id AND ov.field_ville_value LIKE 'Par%' ;\n \";\n\n //Prepare la requête\n $request = $this->conn->prepare($query);\n //Execute la requête\n $request->execute();\n return $request;\n }", "function ambil_soal() { \n $tampil = $this->db->query(\"SELECT * FROM IKD.IKD_D_SOAL_QUISIONER ORDER BY KD_SOAL ASC\")->result_array();\n\t\treturn $tampil;\n }", "function Denuncias_tomadas($org_cod_organizacion)\n {\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta=\"SELECT denuncia.*,tipo_denuncia.* FROM tipo_denuncia INNER JOIN denuncia on tipo_denuncia.td_cod_tipo_denuncia=denuncia.td_cod_tipo_denuncia INNER JOIN denuncias_organizacion ON denuncia.de_cod_denuncia=denuncias_organizacion.de_cod_denuncia INNER JOIN organizacion ON denuncias_organizacion.org_cod_organizacion=organizacion.org_cod_organizacion WHERE organizacion.org_cod_organizacion=? AND denuncia.de_estado='tomado'\";\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute(array($org_cod_organizacion));\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\t\t$resultado = $query->fetchALL(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\t\tfloopets_BD::Disconnect();\n}", "public function getFkOrganogramaNiveis()\n {\n return $this->fkOrganogramaNiveis;\n }", "function cita_biblica($objeto)\n{\n return $objeto->libro->nombre . ' ' . $objeto->numero_capitulo . ': ' . $objeto->numero_versiculo;\n}", "public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }", "public function getFiltroGestiones()\n {\n $resultado = array();\n $sql = \"\n SELECT STRING_AGG(v.gestion,',') AS o_resultado FROM ( \nSELECT CAST(c.gestion AS CHARACTER VARYING)\nFROM cargos c\nWHERE c.baja_logica = 1\nGROUP BY c.gestion\nORDER BY c.gestion\n) AS v\n \";\n $this->_db = new Cargos();\n $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql));\n if (count($arr) > 0) {\n /**\n * Para agregar un valor nulo al inicio se añade una coma\n */\n $res = $arr[0]->o_resultado;\n $resultado = explode(\",\", $res);\n }\n return $resultado;\n }", "public function getGrupos(){\n\t\t$filasPagina = 7;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraGrupos\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM grupos \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM grupos LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "function personas(){ \n $personas = array(\n \"Joan Garcia:12/05/1992:1:1\",\n \"Elena Tomas:24/08/1991:1:2\",\n \"Dionisio Atapuerca:07/11/1924:1:3\",\n \"Eulalia Carroza:16/08/1930:1:4\",\n \"Rafael Alcalde:05/10/1965:1:5\",\n \"Marta Plaza:14/12/1967:1:6\",\n \"Ernesto Atapuerca:19/4/1956:1:7\",\n \"Matilde Alcalde:22/9/1996:1:8\"\n );\n return $personas;\n }", "function obtener_facultades (){\n \n //$nombre_usuario=toba::usuario()->get_nombre();\n //$sql=\"SELECT t_s.sigla FROM sede t_s, administrador t_a WHERE t_a.nombre_usuario=$nombre_usuario AND t_s.id_sede=t_a.id_sede\";\n //$sql=\"SELECT t_ua.sigla, t_ua.descripcion FROM unidad_academica t_ua, sede t_s JOIN administrador t_a ON (t_a.nombre_usuario=$nombre_usuario) JOIN (t_a.id_sede=t_s.id_sede) WHERE t_s.sigla=t_ua.id_sede\";\n $sql=\"SELECT sigla, descripcion FROM unidad_academica WHERE sigla <> 'RECT'\";\n return toba::db('gestion_aulas')->consultar($sql);\n \n }", "public function getSacadoDocumento();", "public function obtenerViajesplus();", "function getConversacionGrupal($entrada) {\n $grupo = trim(filter_var($entrada, FILTER_SANITIZE_STRING));\n $conversacion = [];\n $link = crearConexion();\n $query = \"SELECT publicacion.titulo, publicacion.contenido, publicacion.fecha_hora, publicacion.censurada, usuario.username, usuario.foto FROM publicacion, usuario WHERE publicacion.grupo='\" . $grupo . \"' AND publicacion.autor=usuario.username ORDER BY publicacion.fecha_hora ASC\";\n $result = mysqli_query($link, $query);\n cerrarConexion($link);\n while ($linea = mysqli_fetch_array($result)) {\n $fila['titulo'] = $linea['titulo'];\n $fila['contenido'] = $linea['contenido'];\n $fila['fecha_hora'] = $linea['fecha_hora'];\n $fila['usuario'] = $linea['username'];\n $fila['foto'] = $linea['foto'];\n $fila['censurada'] = $linea['censurada'];\n\n $conversacion[] = $fila;\n }\n return $conversacion;\n}", "function listar_familias($objeto){\n\n\t\t$sql = \"SELECT\n\t\t\t\t\t\t\tid, nombre\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\tapp_familia\n\t\t\t\t\t\tWHERE id in\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\tselect\n\t\t\t\t\t\t\t\t\tdistinct familia\n\t\t\t\t\t\t\t\tfrom\n\t\t\t\t\t\t\t\t\tapp_productos\n\t\t\t\t\t\t\t\twhere\n\t\t\t\t\t\t\t\t\tstatus = 1 and\n\t\t\t\t\t\t\t\t\tfamilia is not null and\n\t\t\t\t\t\t\t\t\tfamilia <>0\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tORDER BY id\";\n\n\t\t// return $sql;\n\t\t$result = $this->queryArray($sql);\n\n\t\treturn $result;\n\t}", "public function obtenerViajesplusAbonados();", "function getProjetos($atuacao, $nome){\n $projetos = array();\n $nomeInst = attr($atuacao)['NOME-INSTITUICAO'];\n //Verificação de existência\n if(isset($atuacao['ATIVIDADES-DE-PARTICIPACAO-EM-PROJETO']['PARTICIPACAO-EM-PROJETO'])){\n // Recebendo as participacoes\n $participacoes = $atuacao['ATIVIDADES-DE-PARTICIPACAO-EM-PROJETO']['PARTICIPACAO-EM-PROJETO'];\n // Vendo se existe apenas uma\n if(array_keys($participacoes)[0] === '@attributes')\n $participacoes = array($participacoes);\n // Iterando sobre elas\n foreach ($participacoes as $participacao) {\n if(isset($participacao['PROJETO-DE-PESQUISA'])):\n $projsPesquisa = $participacao['PROJETO-DE-PESQUISA'];\n //Verificação de quantidade\n if(array_keys($projsPesquisa)[0] === \"@attributes\")\n $projsPesquisa = array($projsPesquisa);\n //Percorrer projetos de pesquisa\n foreach ($projsPesquisa as $projPesquisa) {\n $coordProj_ = new CoordProjeto();\n $coordProj_->responsavel = isOrientador($projPesquisa['EQUIPE-DO-PROJETO']['INTEGRANTES-DO-PROJETO'], $nome);\n $coordProj_->nomeInstituicao = $nomeInst;\n $coordProj_->anoInicio = attr($projPesquisa)['ANO-INICIO'];\n $coordProj_->anoFim = attr($projPesquisa)['ANO-FIM'];\n $coordProj_->nomeProj = attr($projPesquisa)['NOME-DO-PROJETO'];\n $coordProj_->situacao = attr($projPesquisa)['SITUACAO'];\n $coordProj_->natureza = attr($projPesquisa)['NATUREZA'];\n $coordProj_->descricao = attr($projPesquisa)['DESCRICAO-DO-PROJETO'];\n $coordProj_->equipe = getEquipe($projPesquisa['EQUIPE-DO-PROJETO']['INTEGRANTES-DO-PROJETO']);\n\n array_push($projetos, $coordProj_);\n }\n endif;\n }\n }\n // var_dump($projetos);\n return $projetos;\n }", "function getDatosGrupo($entrada) {\n $nombre = trim(filter_var($entrada, FILTER_SANITIZE_STRING));\n $link = crearConexion();\n $query = \"SELECT grupo.nombre, grupo.descripcion, grupo.imagen, grupo_categoria.categoria FROM grupo, grupo_categoria WHERE grupo.nombre=grupo_categoria.grupo AND grupo.nombre='$nombre'\";\n $result = mysqli_query($link, $query);\n $linea = mysqli_fetch_array($result);\n $datos['nombre'] = $linea['nombre'];\n $datos['imagen'] = $linea['imagen'];\n $datos['descripcion'] = $linea['descripcion'];\n $datos['categoria'] = $linea['categoria'];\n cerrarConexion($link);\n return $datos;\n}", "function pegaEstados()\n {\n $lista_estados = array(\n 'ac' => 'Acre',\n 'al' => 'Alagoas',\n 'ap' => 'Amapá',\n 'am' => 'Amazonas',\n 'ba' => 'Bahia',\n 'ce' => 'Ceará',\n 'df' => 'Distrito Federal',\n 'es' => 'Espirito Santo',\n 'go' => 'Goiás',\n 'ma' => 'Maranhão',\n 'ms' => 'Mato Grosso do Sul',\n 'mt' => 'Mato Grosso',\n 'mg' => 'Minas Gerais',\n 'pa' => 'Pará',\n 'pb' => 'Paraíba',\n 'pr' => 'Paraná',\n 'pe' => 'Pernanbuco',\n 'pi' => 'Piauí',\n 'rj' => 'Rio de Janeiro',\n 'rn' => 'Rio Grande do Norte',\n 'rs' => 'Rio Grande do Sul',\n 'ro' => 'Rondônia',\n 'rr' => 'Roraima',\n 'sc' => 'Santa Catarina',\n 'sp' => 'São Paulo',\n 'se' => 'Sergipe',\n 'to' => 'Tocantis'\n );\n\n\n return $lista_estados;\n }", "public function get_filiales() {\n $this->db->select('*');\n $this->db->from('filial');\n $this->db->join('comuna', 'filial.comuna_id = comuna.comuna_id', 'left');\n $query = $this->db->get();\n //$query = $this->db->get('filial');\n return $query->result_array();\n }", "function grafico_1( $desde, $hasta, $ua ){\n\t$query = \"select nested.id_cliente, noticiasactor.id_actor, nested.tema from \"\n\t. \"( select procesados.* from ( select noticiascliente.* from noticiascliente inner join proceso on noticiascliente.id_noticia = proceso.id_noticia where noticiascliente.id_cliente = \" . $ua . \" ) procesados \"\n\t. \"inner join noticia on noticia.id = procesados.id_noticia where noticia.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59') nested \"\n\t. \"inner join noticiasactor on nested.id_noticia = noticiasactor.id_noticia order by id_actor asc \";\n\t$main = R::getAll($query);\n\t// obtengo el nombre de la unidad de analisis\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\t// obtengo los nombres de todos los actores, para cruzar\n\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[4]) ;\n\t//var_dump($actores_nombres['nombre'] . \" \" . $actores_nombres['apellido']);\n\n\t$tabla = [];\n\t$temas = [];\n\t$i = -1;\n\t// reemplazo actores por nombres y temas\n\tforeach($main as $k=>$v){\n\t\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[ $v['id_actor'] ]);\n\t\t$main[$k]['id_cliente'] = $ua_nombre;\n\t\t// $main[$k]['id_actor'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$main[$k]['id_actor'] = $v['id_actor'];\n\t\t$main[$k]['nombre'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$id_tema = get_string_between($main[$k]['tema'],\"frm_tema_\",\"\\\"\");\n\t\t$tema = R::findOne(\"attr_temas\",\"id LIKE ?\",[$id_tema])['nombre'];\n\t\tif( is_null( $tema ) ) $tema = 'TEMA NO ASIGNADO';\n\t\t$main[$k]['tema'] = $tema;\n\t\t\n\t\t// if(array_search( [ $main[$k]['id_actor'],$tema], $tabla ) ) echo \"repetido\";\n\t\t// chequeo si ya existe alguno con este actor y tema, si es asi, sumo uno\n\t\t// TODO - FIXME : deberia ser mas eficiente, busqueda por dos valores\n\t\t$iter = true;\n\t\tforeach($tabla as $ka=>$va){\n\t\t\t// if($va['actor'] == $main[$k]['id_actor'] && $va['tema'] == $tema){\n\t\t\tif($va['actor'] == $main[$k]['nombre'] && $va['tema'] == $tema){\n\t\t\t\t$tabla[$ka]['cantidad'] += 1;\n\t\t\t\t$iter = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($iter){\n\t\t\t$tabla[ ++$i ] = [ \n\t\t\t\t'unidad_analisis' => $ua_nombre,\n\t\t\t\t'actor' => $main[$k]['nombre'],\n\t\t\t\t'id_actor' => $main[$k]['id_actor'],\n\t\t\t\t'tema' => $tema,\n\t\t\t\t'cantidad' => 1\n\t\t\t\t];\n\t\t\t}\n\t\t// agrego los temas que van apareciendo en la tabla temas\n\t\t// UTIL para poder hacer el CRC32 por la cantidad de colores\n\t\tif(!in_array($tema,$temas)) $temas[] = $tema;\n\t}\n\t// la agrupacion de repetidos es por aca, por que repite y cuenta temas de igual id\n\n\t// en el grafico, los hijos, son arreglos de objetos, hago una conversion tabla -> objeto\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Actores';\n\t$objeto->rank = 0;\n\t$objeto->weight = 1;\n\t$objeto->id = 1;\n\t$objeto->children = [];\n\tforeach($tabla as $k=>$v){\n\t\t// me fijo si el actor existe, ineficiente pero por ahora\n\t\t$NoExiste = true;\n\t\tforeach($objeto->children as $ka=>$va){\n\t\t\t// si existe actor, le inserto el tema\n\t\t\tif($va->name == $v['actor']){\n\t\t\t\t$in = new StdClass();\n\t\t\t\t// $in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$in->name = \"\";\n\t\t\t\t$in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t\t$in->id = $k;\n\t\t\t\t$in->children = [];\n\t\t\t\t$objeto->children[$ka]->children[] = $in;\n\t\t\t\t$objeto->children[$ka]->cantidad_temas = count($objeto->children[$ka]->children);\t\n\t\t\t\t$objeto->children[$ka]->rank = count($objeto->children[$ka]->children);\n\t\t\t\t$NoExiste = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($NoExiste){\n\t\t\t$in = new StdClass();\n\t\t\t$in->name = $v['actor'];\n\t\t\t$in->rank = 1;\n\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t$in->id = $k;\n\t\t\t//$in->id = $v['id_actor'];\n\t\t\t$in->id_actor = $v['id_actor'];\n\t\t\t\t$t_in = new StdClass();\n\t\t\t\t// $t_in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$t_in-> name = \"\";\n\t\t\t\t$t_in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$t_in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$t_in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$t_in->weight = 0; // lo asigna JS\n\t\t\t\t$t_in->id = $k;\n\t\t\t\t$t_in->children = [];\n\t\t\t$in->children = [ $t_in ];\n\t\t\t$objeto->children[] = $in;\n\t\t}\n\t}\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto,\n\t\t'temas' => $temas\n\t\t];\n}", "public function getFaculteitEnOpleiding() {\n\t\tfunction findInData($products, $field, $value) {\n\t\t\tforeach($products as $key => $product) {\n\t\t\t if ( isset($product[$field])) {\n\t\t\t\tif ( $product[$field] === $value )\n\t\t\t\t\treturn $key;\n\t\t\t } else {\n\t\t\t\t return -1;\n\t\t\t }\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\t\t$result = array();\n\t\tforeach($this->db->simple_query(\"SELECT opleidingen.id, opleidingen.naam, opleidingen.faculteit_id, faculteiten.naam as faculteit_naam FROM `opleidingen` right join faculteiten on `faculteit_id`=faculteiten.id\") as $row) {\n\t\t\t$where = findInData($result, \"naam\", $row[\"faculteit_naam\"]);\n\t\t\tif($where >= 0) {\n\t\t\t\t$result[$where][\"opleidingen\"][]=$row[\"naam\"];\n\t\t\t} else {\n\t\t\t\t$result[] = [\"naam\"=>$row[\"faculteit_naam\"], \"opleidingen\"=>($row[\"naam\"]==null?[]:[$row[\"naam\"]])];\n\t\t\t}\n\t\t}\n\t\treturn json_encode($result);\n\t}", "function getOGRole();", "function getOGRole();", "private function getOrgnameFromFilter($organism) {\n if ($organism == 'all') {\n return JText::_('COM_EASYSDI_DASHBOARD_FILTERS_ALL_ORGANISMS');\n } else {\n $db = JFactory::getDbo();\n $query = $db->getQuery(true)\n ->select('o.name')\n ->from($db->quoteName('#__sdi_organism', 'o'))\n ->where('o.id = ' . (int) $organism);\n\n $db->setQuery($query, 0, 1);\n return $db->loadResult();\n }\n }", "public function getOrganismeAssedic() {\n return $this->organismeAssedic;\n }", "function displayOrganismList($querytype){\n global $txdb_service;$file=$txdb_service.\"?s=1&querytype=$querytype\";$data=\"\";\n $xml = simplexml_load_file(\"$file\");\n if($xml){ $organisms=$xml->children()->organism;$i=0; \n while($i<count($organisms)){\n $name=$organisms[$i]->children()->name;$db=$organisms[$i]->children()->version;\n $version=$organisms[$i]->children()->version_id;\n if($i==0){$data=\"$version:$name:$db\";}\n else $data.=\",$version:$name:$db\";\n ++$i;\n }\n }\n return $data; \n}", "function getAlc(){\r\n return array(\"saki\", \"vodka\", \"rum\", \"whiskey\", \"tequila\", \"gin\");\r\n }", "public function getOrgaName();", "function extract_topologie($item=NULL){\r\n\t\t$set = array();\r\n\t\t$raw = file_get_contents($this->_get_topologie());\r\n\t\t//$this->json_errors($raw);\r\n\t\t//print $item.': ';\r\n\t\t$raw = json_decode($raw, TRUE);\r\n\t\t//print_r($raw);\r\n\t\tforeach($raw['items'] as $i=>$topo){\r\n\t\t\tif(strtolower($topo['titel-van-lichaam']) == strtolower($item)){\r\n\t\t\t\t//print $topo['titel-van-lichaam'].'='.$topo['naam'].' ';\r\n\t\t\t\t$set[] = $topo['naam']; \r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t//print_r($set);\r\n\t\treturn $set;\r\n\t}", "public function getLesFraisForfait(){\r\n\t\t$req = \"select af_fraisforfait.id as idfrais, libelle, montant from af_fraisforfait order by af_fraisforfait.id\";\r\n\t\t$rs = $this->db->query($req);\r\n\t\t$lesLignes = $rs->result_array();\r\n\t\treturn $lesLignes;\r\n\t}", "public function getMedicaments(){\n\t\t$req = \"select * from medicament order by MED_NOMCOMMERCIAL\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "function ucsc_displayOrganismWgenome(&$annot_list){\n global $ugenome_list_file; $lines=file($ugenome_list_file);\n foreach($lines as $line){\n list($orgg,$org,$version,$data)=explode(\",\",$line);\n if($version!=\"version\")$annot_list[]=array('organism'=>array('name'=>$org,'version'=>$version));\n }\n}", "public function getFiltroResolucion()\n {\n $resultado = array();\n $sql = \"\n SELECT STRING_AGG(v.tipo_resolucion,',') AS o_resultado FROM ( \nSELECT CAST(r.tipo_resolucion AS CHARACTER VARYING)\nFROM cargos c\nINNER JOIN resoluciones r ON c.resolucion_ministerial_id = r.id\nWHERE c.baja_logica = 1\nGROUP BY r.id,r.tipo_resolucion\nORDER BY r.id\n) AS v\n \";\n $this->_db = new Cargos();\n $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql));\n if (count($arr) > 0) {\n /**\n * Para agregar un valor nulo al inicio se añade una coma\n */\n $res = $arr[0]->o_resultado;\n $resultado = explode(\",\", $res);\n }\n return $resultado;\n }", "public function getTiposDoc(){\n $params->Auth->Token = $this->TA->credentials->token;\n $params->Auth->Sign = $this->TA->credentials->sign;\n $params->Auth->Cuit = self::CUIT;\n $results = $this->client->FEParamGetTiposDoc($params);\n \n $e = $this->_checkErrors($results, 'FEParamGetTiposDoc');\n echo $e;\n $X=$results->FEParamGetTiposDocResult;\n $Texto=\" comprobantes\";\n //$fh=fopen(\"TiposDoc.txt\",\"w\");\n foreach ($X->ResultGet->DocTipo AS $Y) {\n //fwrite($fh,sprintf(\"%5s %-30s\\n\",$Y->Id, $Y->Desc));\n $Texto .= $Y->Id .' '.$Y->Desc;\n }\n //fclose($fh);\n return $Texto;\n }", "public function getFiligramme(): string\n {\n return (string) $this->filigramme;\n }", "function localidadConsultarxAutor($idAutor, $idEspecie) {\n\t\n\t$localidades = \"\";\n\t\n\t$query = \"SELECT localidades_id, referencias_id, especies_id, id, localidad, localidad_nombre \n\t\t\t\tFROM localidades_distribucion INNER JOIN localidades \n\t\t\t\tWHERE especies_id = $idEspecie AND referencias_id LIKE $idAutor \n\t\t\t\tORDER BY localidad\"; \n\t$res = ejecutarQuerySQL($query);\t\n\t$total = getNumFilas($res);\n\t\n\t$i = 0;\n\twhile ($i < $total) \t{\t\t \t\n\t\t\t$actual = getFila($res);\n\t\t\t\n\t\t\t$localidades = $actual['localidad_nombre'];\n\t\t\tif ($i < $total-1) $localidades = $localidades . \", \"; \n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t$i++;\n\t\t} // end while\n\t\n\t\t\t\nreturn $localidades;\n}", "protected function subjonctifImparfait(){\n $terminaisons=[];\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguèsses\";\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguessian\";\n $terminaisons[]= \"fuguessias\";\n $terminaisons[]= \"fuguèsson\";\n return $terminaisons;\n }", "function listeGroupes ( ) {\n // Récupération de la liste des groupes.\n $param['cw'] = \"ORDER BY nomgroupe ASC\" ;\n $req = new clResultQuery ;\n $res = $req -> Execute ( \"Fichier\", \"getGroupes\", $param, \"ResultQuery\" ) ;\n // Formatage de cette liste pour l'insérer directement dans ModeliXe.\n for ( $i = 0 ; isset ( $res['idgroupe'][$i] ) ; $i++ ) { $tab[$res['nomgroupe'][$i]] = $res['nomgroupe'][$i] ; }\n // On renvoie la liste.\n return $tab ;\n }", "function grafico_1_2( $desde, $hasta, $ua ){\n\t// aclarar al cliente que debe setear campos bien definidos y NO PERMITIR AMBIGUEDADES\n\t\n\t$query = \"select actor.nombre, actor.apellido, actor.id_campo, count(noticiasactor.id_actor) as cantidad from noticiascliente \"\n\t\t. \"inner join noticiasactor on noticiascliente.id_noticia = noticiasactor.id_noticia \"\n\t\t. \"inner join noticias on noticiasactor.id_noticia = noticias.id \"\n\t\t. \"inner join actor on noticiasactor.id_actor = actor.id \"\n\t\t. \"where \"\n\t\t\t. \"noticiascliente.id_cliente = \" . $ua . \" and \"\n\t\t\t. \"noticiascliente.elim = 0 and \"\n\t\t\t. \"noticias.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59' \"\n\t\t\t// SOLO QUIENES TIENEN 3 Y 4 COMO CAMPO\n\t\t\t. \" and ( actor.id_campo like '%3%' or actor.id_campo like '%4%' ) \"\n\t\t. \"group by noticiasactor.id_actor order by cantidad desc\";\n\t$main = R::getAll($query);\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\n\t// var_dump($main);\n\t$tabla = [];\n\t// unidad de analisis, campo, actor, cantidad de menciones\n\t$i = -1;\n\tforeach($main as $k=>$v){\n\t\t// por ahora solo considero los dos posibles campos\n\t\t$tabla[ ++$i ] = [\n\t\t\t'ua' => $ua_nombre,\n\t\t\t'campo' => ( strpos( $v['id_campo'], '3' ) !== false ) ? 'oposicion' : 'oficialismo',\n\t\t\t'actor' => $v['apellido'] . ' ' . $v['nombre'],\n\t\t\t'cantidad' => $v['cantidad']\n\t\t\t];\n\t}\n\t// var_dump($tabla);\n\t\n\t// grafico\n\t$oficialismo = new StdClass(); // objeto vacio\n\t$oficialismo->name = 'Oficialismo';\n\t$oficialismo->rank = 0;\n\t$oficialismo->weight = 'Yellow';\n\t$oficialismo->id = 1;\n\t$oficialismo->children = [];\n\t\n\t$oposicion = new StdClass(); // objeto vacio\n\t$oposicion->name = 'Oposicion';\n\t$oposicion->rank = 0;\n\t$oposicion->weight = 'LightBlue';\n\t$oposicion->id = 1;\n\t$oposicion->children = [];\n\t\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Campos';\n\t$objeto->rank = 0;\n\t$objeto->weight = 'Gray';\n\t$objeto->id = 1;\n\t$objeto->children = [ $oficialismo, $oposicion ];\n\t\n\t$i_of = 0;\n\t$i_op = 0;\n\t\n\tforeach($tabla as $v){\n\t\t$sub = new StdClass(); // objeto vacio\n\t\t$sub->name = $v['actor'] . ' (' . $v['cantidad'] . ')';\n\t\t$sub->rank = $v['cantidad'];\n\t\t// $sub->weight = 0;\n\t\t$sub->cantidad = $v['cantidad'];\n\t\t$sub->id = 1;\n\t\t$sub->children = [ ];\n\t\tif($v['campo'] == 'oposicion'){\n\t\t\t$i_op += 1;\n\t\t\t$sub->weight = 'Blue';\n\t\t\t$oposicion->children[] = $sub;\n\t\t}\n\t\telse{ \n\t\t\t$i_of += 1;\n\t\t\t$sub->weight = 'White';\n\t\t\t$oficialismo->children[] = $sub;\n\t\t}\n\t}\n\t\n\t$oposicion->rank = $i_op;\n\t$oficialismo->rank = $i_of;\n\t\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto\n\t\t// ,'temas' => $temas\n\t\t];\n\t\n}", "public function BuscaOrganizacionalTodos($tupla)\r\n {\r\n //$dbl = new Mysql($encryt->Decrypt_Text($_SESSION[BaseDato]), $encryt->Decrypt_Text($_SESSION[LoginBD]), $encryt->Decrypt_Text($_SESSION[PwdBD]) );\r\n $Nivls = \"\";\r\n { \r\n //$Consulta3=\"select id as id_organizacion,parent_id as organizacion_padre, title as identificacion from mos_organizacion where id in ($tupla[id_organizacion])\";\r\n $Consulta3=\"select * from mos_documentos_estrorg_arbolproc where IDDoc='\".$tupla[IDDoc].\"' and tipo='EO'\"; \r\n $Resp3 = $this->dbl->query($Consulta3,array()); \r\n foreach ($Resp3 as $Fila3) \r\n { \r\n $Nivls .= $this->BuscaOrganizacional(array('id_organizacion' => $Fila3[id_organizacion_proceso])).\"<br /><br />\";\r\n }\r\n if($Nivls!='')\r\n $Nivls=substr($Nivls,0,strlen($Nivls)-6);\r\n else\r\n $Nivls='-- Sin información --';\r\n }\r\n \r\n return $Nivls;\r\n\r\n }", "public function traerDocentes(){\n $docentes = DB::select('SELECT docente_grupo.idDocente, CONCAT(docente.apPaterno,\" \", docente.apMaterno, \" \", docente.nombres) nombre_completo FROM docente_grupo INNER JOIN docente ON docente_grupo.idDocente = docente.idDocente WHERE docente.estatus = 1 AND docente.tipo <> 4 AND docente.tipo <> 5 ORDER BY nombre_completo ASC');\n \n\n return $docentes;\n }", "function system_get_all_gnames()\n{\n//\t$retv[id1]=100;\n//\t$retv[gname1]=\"tt\";\n\treturn($retv);\n}", "function getRelaciones() {\r\n //arreglo relacion de tablas\r\n //---------------------------->DEPARTAMENTO(OPERADOR)\r\n //---------------------------->TEMA(TIPO)\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['tabla']='documento_tipo';\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['campo']='dti_id';\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['remplazo']='dti_nombre';\r\n\t\t//---------------------------->TEMA(TIPO)\r\n\r\n\t\t//---------------------------->SUBTEMA(TEMA)\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['tabla']='documento_tema';\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['campo']='dot_id';\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['remplazo']='dot_nombre';\r\n //---------------------------->SUBTEMA(TEMA)\r\n\r\n //---------------------------->DOCUMENTO(OPERADOR)\r\n $relacion_tablas['documento_actor']['ope_id']['tabla']='operador';\r\n\t\t$relacion_tablas['documento_actor']['ope_id']['campo']='ope_id';\r\n\t\t$relacion_tablas['documento_actor']['ope_id']['remplazo']='ope_nombre';\r\n //---------------------------->DOCUMENTO(TIPO DE ACTOR)\r\n $relacion_tablas['documento_actor']['dta_id']['tabla']='documento_tipo_actor';\r\n\t\t$relacion_tablas['documento_actor']['dta_id']['campo']='dta_id';\r\n\t\t$relacion_tablas['documento_actor']['dta_id']['remplazo']='dta_nombre';\r\n //----------------------------<DOCUMENTO\r\n\r\n\t\t//---------------------------->DEPARTAMENTO(OPERADOR)\r\n\t\t$relacion_tablas['departamento']['ope_id']['tabla']='operador';\r\n\t\t$relacion_tablas['departamento']['ope_id']['campo']='ope_id';\r\n\t\t$relacion_tablas['departamento']['ope_id']['remplazo']='ope_nombre';\r\n\t\t//---------------------------->DEPARTAMENTO(OPERADOR)\r\n\r\n\t\t//---------------------------->DEPARTAMENTO(REGION)\r\n\t\t$relacion_tablas['departamento']['dpr_id']['tabla']='departamento_region';\r\n\t\t$relacion_tablas['departamento']['dpr_id']['campo']='dpr_id';\r\n\t\t$relacion_tablas['departamento']['dpr_id']['remplazo']='dpr_nombre';\r\n //---------------------------->DEPARTAMENTO(REGION)\r\n\r\n\t\t//---------------------------->MUNICIPIO(DEPARTAMENTO)\r\n\t\t$relacion_tablas['municipio']['dep_id']['tabla']='departamento';\r\n\t\t$relacion_tablas['municipio']['dep_id']['campo']='dep_id';\r\n\t\t$relacion_tablas['municipio']['dep_id']['remplazo']='dep_nombre';\r\n //---------------------------->MUNICIPIO(DEPARTAMENTO)\r\n\r\n return $relacion_tablas;\r\n }", "public function getCedenteCidadeUF();", "public function getFilmAleatoire() {\n try {\n $mesFilms = DB::table('FILM')\n ->Select('FILM.IDFILM', 'NOMFILM', 'NOMIMAGE', 'RESUME','DUREE','DATESORTIE','NOMREAL', 'PRENOMREAL','LIBELLEGENRE', 'LIENBA')\n ->join('APPARTIENT', 'APPARTIENT.IDFILM', '=', 'FILM.IDFILM')\n ->join('GENRE', 'GENRE.IDGENRE', '=', 'APPARTIENT.IDGENRE')\n ->join('REALISE', 'REALISE.IDFILM', '=', 'FILM.IDFILM')\n ->join('REALISATEUR', 'REALISATEUR.IDREALISATEUR', '=', 'REALISE.IDREALISATEUR')\n ->inRandomOrder()\n ->first();\n\n return $mesFilms;\n } catch (QueryException $e) {\n throw new MonException($e->getMessage());\n }\n }", "function getDatosDeGrupoSolidario(){}", "public function getFkOrcamentoOrganogramaNiveis()\n {\n return $this->fkOrcamentoOrganogramaNiveis;\n }", "public function get_empresas_filial() {\n $this->db->select('*');\n $this->db->from('filial_empresa');\n\n $this->db->join('empresa', 'empresa.empresa_id = filial_empresa.empresa_id', 'left');\n $this->db->join('filial', 'filial.filial_id = filial_empresa.filial_id', 'left');\n $this->db->join('comuna', 'empresa.comuna_id = comuna.comuna_id', 'inner');\n $query = $this->db->get();\n //$query = $this->db->get('filial');\n return $query->result_array();\n }", "function localidadConsultarCitasxAutor($res, $idEspecie) {\n\n\t// creando el arreglo de autores para la especie \t\n\t$total = getNumFilas($res); $localidades=\"\";\n\t\n\t$arrayAL1[20] = array(\t\"autor\" => 0, \n\t\t\t\t\t\t\t\t\t\t\t\"idlocalidad\" => 0, \n\t\t\t\t\t\t\t\t\t\t\t\"localidad\" => \"\");\n\t$i=0; $pos = 0;\n\twhile ($i < $total) {\n\t\t$actual = getFila($res);\n\t\t$autores = $actual[\"referencias_id\"];\n\t\t$autores = explode(\",\", $autores);\n\t\t\n\t\tfor ($j = 1; $j < count($autores); $j++) {\n\t\t\tif (!(in_array($autores[$j], $arrayAL1) )) {\n\t\t\t\t\t$arrayAL1[$pos][\"autor\"] = $autores[$j]; \n\t\t\t\t\t$arrayAL1[$pos][\"idlocalidad\"] = $actual[\"localidades_id\"];\n\t\t\t\t\t$arrayAL1[$pos][\"localidad\"] = localidadConsultarNombre($actual[\"localidades_id\"]);\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\t\t}\n\t$i++;\n\t}\n\t\n\tforeach ($arrayAL1 as $key => $row) {\n\t\t$autor[$key] = $row[\"autor\"];\n\t\t$idlocalidad[$key] = $row[\"idlocalidad\"];\n\t\t$localidad[$key] = $row[\"localidad\"];\n\t}\n\n\tarray_multisort($autor, SORT_ASC, $localidad, SORT_ASC, $arrayAL1);\n\t// print_r($arrayAL1) . \"<br />\"; // muestra cada línea del arreglo $arrayAL1\t\t\t\t\n\n\t// armamos la lista de autores y localidades que reportan\n\t$localidades = \"\"; $total = count($arrayAL1);\n\t$idAutor = 0;\n\tfor ($k = 1; $k < $total; $k++) {\n\t\t\n\t\tif ($idAutor != $arrayAL1[$k][\"autor\"])\n\t\t{\t// nuevo autor\n\t\t\t if ($k>1) $localidades .= \"); \"; // separación entre autores\n\t\t\t $autorRef = \"\"; $agno = \"\";\n\t\t\t consultarCitaxId($arrayAL1[$k][\"autor\"], $autorRef, $agno);\n\t\t\t $localidades .= \"<b>\". $autorRef . \", \" . $agno . \" </b> (\";\n\t\t\t $localidades .= $arrayAL1[$k][\"localidad\"];\t\n\t\t} \n\t\telse { // localidades para el mismo autor\n\t\t\t $localidades .= \", \" . $arrayAL1[$k][\"localidad\"];\n\t\t}\n\t\t$idAutor = $arrayAL1[$k][\"autor\"] ;\n\t}\t // end for\n\tif ($total > 1 ) $localidades .= \").\";\n\telse $localidades = \"\";\n\t\nreturn $localidades;\n}", "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}", "public function getFascicoloInternatos()\n {\n return $this->hasMany(FascicoloInternato::className(), ['internato_id' => 'id']);\n }", "function get_all_kardex_academico()\n {\n $kardex_academico = $this->db->query(\"\n SELECT\n *\n\n FROM\n `kardex_academico`\n\n WHERE\n 1 = 1\n\n ORDER BY `kardexacad_id` DESC\n \")->result_array();\n\n return $kardex_academico;\n }", "function getRelaciones() {\n //arreglo relacion de tablas\n //---------------------------->DEPARTAMENTO(OPERADOR)\n $relacion_tablas['departamento']['ope_id']['tabla'] = 'operador';\n $relacion_tablas['departamento']['ope_id']['campo'] = 'ope_id';\n $relacion_tablas['departamento']['ope_id']['remplazo'] = 'ope_nombre';\n //---------------------------->DEPARTAMENTO(OPERADOR)\n //---------------------------->DEPARTAMENTO(REGION)\n $relacion_tablas['departamento']['der_id']['tabla'] = 'departamento_region';\n $relacion_tablas['departamento']['der_id']['campo'] = 'der_id';\n $relacion_tablas['departamento']['der_id']['remplazo'] = 'der_nombre';\n //---------------------------->DEPARTAMENTO(REGION)\n //---------------------------->MUNICIPIO(DEPARTAMENTO)\n $relacion_tablas['municipio']['dep_id']['tabla'] = 'departamento';\n $relacion_tablas['municipio']['dep_id']['campo'] = 'dep_id';\n $relacion_tablas['municipio']['dep_id']['remplazo'] = 'dep_nombre';\n //---------------------------->MUNICIPIO(DEPARTAMENTO)\n //---------------------------->CIUDAD\n $relacion_tablas['ciudad']['Id_Pais']['tabla'] = 'pais';\n $relacion_tablas['ciudad']['Id_Pais']['campo'] = 'Id_Pais';\n $relacion_tablas['ciudad']['Id_Pais']['remplazo'] = 'Nombre_Pais';\n //---------------------------->CIUDAD\n //---------------------------->CUENTAS\n $relacion_tablas['cuentas_financiero']['cft_id']['tabla'] = 'cuentas_financiero_tipo';\n $relacion_tablas['cuentas_financiero']['cft_id']['campo'] = 'cft_id';\n $relacion_tablas['cuentas_financiero']['cft_id']['remplazo'] = 'cft_nombre';\n //---------------------------->CUENTAS\n //---------------------------->CUENTAS UT\n $relacion_tablas['cuentas_financiero_ut']['cft_id']['tabla'] = 'cuentas_financiero_tipo';\n $relacion_tablas['cuentas_financiero_ut']['cft_id']['campo'] = 'cft_id';\n $relacion_tablas['cuentas_financiero_ut']['cft_id']['remplazo'] = 'cft_nombre';\n //---------------------------->CUENTAS UT\n //---------------------------->MOVIMIENTOS\n $relacion_tablas['extracto_movimiento']['mov_tipo_id']['tabla'] = 'extractos_movimiento_tipo';\n $relacion_tablas['extracto_movimiento']['mov_tipo_id']['campo'] = 'mov_tipo_id';\n $relacion_tablas['extracto_movimiento']['mov_tipo_id']['remplazo'] = 'mov_tipo_desc';\n //---------------------------->MOVIMIENTOS\n //---------------------------->CENTROS POBLADOS\n $relacion_tablas['centropoblado']['mun_id']['tabla'] = 'municipio';\n $relacion_tablas['centropoblado']['mun_id']['campo'] = 'mun_id';\n $relacion_tablas['centropoblado']['mun_id']['remplazo'] = 'mun_nombre';\n //---------------------------->CENTROS POBLADOS\n //---------------------------->TIPO HALLAZGO\n $relacion_tablas['tipohallazgo']['idAreaHallazgo']['tabla'] = 'areashallazgospendientes';\n $relacion_tablas['tipohallazgo']['idAreaHallazgo']['campo'] = 'idAreaHallazgo';\n $relacion_tablas['tipohallazgo']['idAreaHallazgo']['remplazo'] = 'descripcion';\n //---------------------------->TIPO HALLAZGO\n\n return $relacion_tablas;\n }", "function organismes()\n\t{\n\t\tglobal $gCms;\n\t\t$ping = cms_utils::get_module('Ping'); \n\t\t$db = cmsms()->GetDb();\n\t\t$designation = '';\n\t\t$tableau = array('F','Z','L','D');\n\t\t//on instancie la classe servicen\n\t\t$service = new Servicen();\n\t\t$page = \"xml_organisme\";\n\t\tforeach($tableau as $valeur)\n\t\t{\n\t\t\t$var = \"type=\".$valeur;\n\t\t\t//echo $var;\n\t\t\t$scope = $valeur;\n\t\t\t//echo \"la valeur est : \".$valeur;\n\t\t\t$lien = $service->GetLink($page,$var);\n\t\t\t//echo $lien;\n\t\t\t$xml = simplexml_load_string($lien, 'SimpleXMLElement', LIBXML_NOCDATA);\n\t\t\t\n\t\t\tif($xml === FALSE)\n\t\t\t{\n\t\t\t\t$designation.= \"service coupé\";\n\t\t\t\t$now = trim($db->DBTimeStamp(time()), \"'\");\n\t\t\t\t$status = 'Echec';\n\t\t\t\t$action = 'retrieve_ops';\n\t\t\t\tping_admin_ops::ecrirejournal($now,$status,$designation,$action);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$array = json_decode(json_encode((array)$xml), TRUE);\n\t\t\t\t///on initialise un compteur général $i\n\t\t\t\t$i=0;\n\t\t\t\t//on initialise un deuxième compteur\n\t\t\t\t$compteur=0;\n\t\t\t//\tvar_dump($xml);\n\n\t\t\t\t\tforeach($xml as $cle =>$tab)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t$idorga = (isset($tab->id)?\"$tab->id\":\"\");\n\t\t\t\t\t\t$code = (isset($tab->code)?\"$tab->code\":\"\");\n\t\t\t\t\t\t$libelle = (isset($tab->libelle)?\"$tab->libelle\":\"\");\n\t\t\t\t\t\t// 1- on vérifie si cette épreuve est déjà dans la base\n\t\t\t\t\t\t$query = \"SELECT idorga FROM \".cms_db_prefix().\"module_ping_organismes WHERE idorga = ?\";\n\t\t\t\t\t\t$dbresult = $db->Execute($query, array($idorga));\n\n\t\t\t\t\t\t\tif($dbresult && $dbresult->RecordCount() == 0) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$query = \"INSERT INTO \".cms_db_prefix().\"module_ping_organismes (libelle, idorga, code, scope) VALUES (?, ?, ?, ?)\";\n\t\t\t\t\t\t\t\t//echo $query;\n\t\t\t\t\t\t\t\t$compteur++;\n\t\t\t\t\t\t\t\t$dbresultat = $db->Execute($query,array($libelle,$idorga,$code,$scope));\n\n\t\t\t\t\t\t\t\tif(!$dbresultat)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$designation.= $db->ErrorMsg();\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\n\n\t\t\t\t\t}// fin du foreach\n\n\t\t\t}\n\t\t\tunset($scope);\n\t\t\tunset($var);\n\t\t\tunset($lien);\n\t\t\tunset($xml);\n\t\t\tsleep(1);\n\t\t}//fin du premier foreach\n\t\t\n\n\t\t$designation.= $compteur.\" organisme(s) récupéré(s)\";\n\t\t$now = trim($db->DBTimeStamp(time()), \"'\");\n\t\t$status = 'Ok';\n\t\t$action = 'retrieve_ops';\n\t\tping_admin_ops::ecrirejournal($now,$status,$designation,$action);\n\n\t\t\t\n\t\t\n\t}", "private function GetGramaInfo() {\n //get all possible variation of word info\n $tmp_info = $this->morphy->getGramInfo($this->word->GetContent());\n //put it into word object\n if (is_array($tmp_info)) {\n $this->word->SetGramInfo($this->FilterGrammaInfo($tmp_info));\n return (true);\n } else {\n return (false);\n }\n }", "public function busqueda()\n {\n // $consulta=$this->dbAdapter->query(\"select id , folio FROM usuarios where nombre = '\" . $dataUser['nombre'].\"' and correo = '\".$dataUser['correo']. \"'\" ,Adapter::QUERY_MODE_EXECUTE);\n $query = \"SELECT\n id,\n tagGrupal \n FROM\n simulacrogrupo\n \n \";\n $consulta = $this->dbAdapter->query($query, Adapter::QUERY_MODE_EXECUTE);\n \n $res = $consulta->toArray();\n \n return $res;\n }", "function grafico_1_3( $desde, $hasta, $ua ){\n\t// aclarar al cliente que debe setear campos bien definidos y NO PERMITIR AMBIGUEDADES\n\t\n\t$query = \"select actor.nombre, actor.apellido, actor.id_partido, actor.id_campo, count(noticiasactor.id_actor) as cantidad from noticiascliente \"\n\t\t. \"inner join noticiasactor on noticiascliente.id_noticia = noticiasactor.id_noticia \"\n\t\t. \"inner join noticias on noticiasactor.id_noticia = noticias.id \"\n\t\t. \"inner join actor on noticiasactor.id_actor = actor.id \"\n\t\t. \"where \"\n\t\t\t. \"noticiascliente.id_cliente = \" . $ua . \" and \"\n\t\t\t. \"noticiascliente.elim = 0 and \"\n\t\t\t. \"noticias.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59' \"\n\t\t\t// SOLO QUIENES TIENEN 3 Y 4 COMO CAMPO\n\t\t\t// . \" and ( actor.id_campo like '%3%' or actor.id_campo like '%4%' ) \"\n\t\t. \"group by noticiasactor.id_actor order by cantidad desc\";\n\t//echo $query;\n\t$main = R::getAll($query);\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\n\t//var_dump($main);\n\t$tabla = [];\n\t// unidad de analisis, actor, partido, cantidad de menciones\n\t$i = -1;\n\t$partidos = [];\n\t\n\t$children_partidos = [];\n\t$i_actor = 0;\n\tforeach($main as $k=>$v){\n\t\t// obtengo el/los partidos\n\t\t$partidos_array = json_decode( $v['id_partido'], true);\n\t\tif( ! is_array($partidos_array) ) continue;\n\t\t\n\t\tforeach($partidos_array as $p){\n\t\t\t$partido_nombre = R::findOne('attr_partido','id LIKE ?',[$p])['nombre'];\n\t\t\t$tabla[ ++$i ] = [\n\t\t\t\t'ua' => $ua_nombre,\n\t\t\t\t'actor' => $v['nombre'] . ' ' . $v['apellido'],\n\t\t\t\t'partido' => $partido_nombre,\n\t\t\t\t'cantidad' => $v['cantidad']\n\t\t\t\t];\n\t\t\t\t// agrego el partido y el grafico\n\t\t\t\tif(! in_array($partido_nombre,$partidos)){\n\t\t\t\t\t$partidos[] = $partido_nombre;\n\t\t\t\t\t$x = new StdClass(); // objeto vacio\n\t\t\t\t\t$x->name = $partido_nombre;\n\t\t\t\t\t$x->rank = 0;\n\t\t\t\t\t$x->weight = count($partidos); //'Yellow'; cargar desde JS\n\t\t\t\t\t$x->id = 1;\n\t\t\t\t\t$x->children = [];\n\t\t\t\t\t$children_partidos[] = $x;\n\t\t\t\t}\n\t\t\t\t// obtengo el indice del partido y lo inserto\n\t\t\t\t$index = array_search($partido_nombre,$partidos);\n\t\t\t\t$t = new StdClass(); // objeto vacio\n\t\t\t\t$t->name = $v['nombre'] . ' ' . $v['apellido'] . \" (\" . $v['cantidad'] . \")\";\n\t\t\t\t$t->rank = $v['cantidad'];\n\t\t\t\t$t->weight = $i_actor; //'Yellow'; cargar desde JS\n\t\t\t\t$t->id = 1;\n\t\t\t\t$t->children = [];\n\t\t\t\t// lo agrego al padre correspondiente\n\t\t\t\t$children_partidos[ $index ]->children[] = $t;\n\t\t\t\t$children_partidos[ $index ]->rank += 1;\n\t\t\t}\n\t\t\t++$i_actor;\n\t}\n\t// grafico\n\t/*$oficialismo = new StdClass(); // objeto vacio\n\t$oficialismo->name = 'Oficialismo';\n\t$oficialismo->rank = 0;\n\t$oficialismo->weight = 'Yellow';\n\t$oficialismo->id = 1;\n\t$oficialismo->children = [];*/\n\t\n\t// creo los objetos partidos\n\t\n\t/*foreach($partidos as $p){\n\t\t$x = new StdClass(); // objeto vacio\n\t\t$x->name = $p;\n\t\t$x->rank = 0;\n\t\t$x->weight = 0; //'Yellow'; cargar desde JS\n\t\t$x->id = 1;\n\t\t$x->children = [];\n\t}*/\n\t\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Partidos';\n\t$objeto->rank = 0;\n\t$objeto->weight = 'Gray';\n\t$objeto->id = 1;\n\t$objeto->children = $children_partidos;\n\t\n\t\n\t/*foreach($tabla as $v){\n\t\t$sub = new StdClass(); // objeto vacio\n\t\t$sub->name = $v['actor'] . ' (' . $v['cantidad'] . ')';\n\t\t$sub->rank = $v['cantidad'];\n\t\t// $sub->weight = 0;\n\t\t$sub->cantidad = $v['cantidad'];\n\t\t$sub->id = 1;\n\t\t$sub->children = [ ];\n\t\tif($v['campo'] == 'oposicion'){\n\t\t\t$i_op += 1;\n\t\t\t$sub->weight = 'Blue';\n\t\t\t$oposicion->children[] = $sub;\n\t\t}\n\t\telse{ \n\t\t\t$i_of += 1;\n\t\t\t$sub->weight = 'White';\n\t\t\t$oficialismo->children[] = $sub;\n\t\t}\n\t}*/\n\t\n\t\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto\n\t\t// ,'temas' => $temas\n\t\t];\n}", "public function getFornecedor(){\n\n if (!empty($this->iCodigoFornecedor) && empty($this->oFornecedor)) {\n $this->oFornecedor = CgmFactory::getInstanceByCgm($this->iCodigoFornecedor);\n }\n return $this->oFornecedor;\n }", "public function get_eng_trabajanding(){\n $query = $this->db->query(\"\n SELECT \n DISTINCT otp.k_id_user, CONCAT(u.n_name_user, ' ', u.n_last_name_user) AS nombre\n FROM \n ot_padre otp\n INNER JOIN\n user u\n ON u.k_id_user = otp.k_id_user\n ;\");\n return $query->result();\n }", "public function getFilial(){\n $query = $this->connect->prepare(\"SELECT B.FILIAL FILIALORIGEM, \n C.FILIAL FILIALDESTINO\n FROM OP_VIAGEM A\n LEFT JOIN OP_VIAGEMPERCURSOFILIAL B ON B.VIAGEM = A.HANDLE AND B.EHINICIOVIAGEM = 'S'\n LEFT JOIN OP_VIAGEMPERCURSOFILIAL C ON C.VIAGEM = A.HANDLE AND C.EHTERMINOVIAGEM = 'S'\n WHERE A.HANDLE = '$this->handle' \");\n $query->execute();\n $dataSet = $query->fetch(PDO::FETCH_ASSOC);\n\n $this->filialDestino = $dataSet['FILIALDESTINO'];\n $this->filialOrigem = $dataSet['FILIALORIGEM'];\n }", "public function getGrupos()\n {\n return $this->grupos;\n }", "public static function getAllOrganogramaUnidade(Request $request, Response $response)\n {\n try {\n\n $idOrgao = $request->getAttribute('idOrgao');\n $idOrgao = $idOrgao ? $idOrgao : 389;\n DBLayer::Connect();\n $query = DBLayer::table('');\n $query->from(DBLayer::raw('func_organograma()'));\n $query->where(\"idPai\", '=', $idOrgao);\n $result = $query->get();\n\n return $response->withStatus(StatusCode::SUCCESS)\n ->withJson($result);\n\n } catch (Exception $e) {\n return $response->withStatus(StatusCode::BAD_REQUEST)\n ->withJson((['message' => StatusMessage::MENSAGEM_ERRO_PADRAO,\n 'exception' => $e->getMessage(), 'line' => $e->getLine(), 'file' => $e->getFile()]));\n }\n }", "function getDatosF_gasto()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'f_gasto'));\n $oDatosCampo->setEtiqueta(_(\"f_gasto\"));\n return $oDatosCampo;\n }", "function obtenerJugadores(){\r\n\t\t// Devuelve la lista de los jugadores del equipo\r\n\t\t\r\n\t\t/* Porteros */\r\n\t\t$porteros = array( \r\n\t\t\tarray(\"n\" => \"Wuilker\", \t\"a\" => \"Fariñez\"), \r\n\t\t\tarray(\"n\" => \"Alain\", \t\t\"a\" => \"Baroja\"),\r\n\t\t\tarray(\"n\" => \"José\", \t\t\"a\" => \"Contreras\"),\r\n\t\t\tarray(\"n\" => \"Joel\", \t\t\"a\" => \"Graterol\"),\r\n\t\t\tarray(\"n\" => \"Luis\", \t\t\"a\" => \"Romero\"),\r\n\t\t\tarray(\"n\" => \"Rafael\", \t\t\"a\" => \"Romo\") \r\n\t\t);\r\n\t\t\r\n\t\t/* Mediocampistas */\r\n\t\t$mediocampistas = array( \r\n\t\t\tarray(\"n\" => \"Cristian\", \t\"a\" => \"Cásseres\"), \r\n\t\t\tarray(\"n\" => \"Yangel\", \t\t\"a\" => \"Herrera\"),\r\n\t\t\tarray(\"n\" => \"Darwin\", \t\t\"a\" => \"Machís\"),\r\n\t\t\tarray(\"n\" => \"José\", \t\t\"a\" => \"Martínez\"),\r\n\t\t\tarray(\"n\" => \"Junior\", \t\t\"a\" => \"Moreno\"),\r\n\t\t\tarray(\"n\" => \"Jhon\", \t\t\"a\" => \"Murillo\"),\r\n\t\t\tarray(\"n\" => \"Rómulo\", \t\t\"a\" => \"Otero\"),\r\n\t\t\tarray(\"n\" => \"Tomás\", \t\t\"a\" => \"Rincón\"),\r\n\t\t\tarray(\"n\" => \"Jefferson\", \t\"a\" => \"Savarino\"),\r\n\t\t\tarray(\"n\" => \"Yeferson\", \t\"a\" => \"Soteldo\"),\r\n\t\t\tarray(\"n\" => \"Edson\", \t\t\"a\" => \"Castillo\"),\r\n\t\t\tarray(\"n\" => \"Richard\", \t\"a\" => \"Celis\"),\r\n\t\t\tarray(\"n\" => \"Bernardo\", \t\"a\" => \"Manzano\"),\r\n\t\t\tarray(\"n\" => \"Freddy\", \t\t\"a\" => \"Vargas\")\r\n\t\t);\t\r\n\r\n\t\t/* Defensas */\r\n\t\t$defensas = array( \r\n\t\t\tarray(\"n\" => \"Wilker\", \t\t\"a\" => \"Ángel\"), \r\n\t\t\tarray(\"n\" => \"Jhon\", \t\t\"a\" => \"Chancellor\"),\r\n\t\t\tarray(\"n\" => \"Luis\", \t\t\"a\" => \"Del Pino\"),\r\n\t\t\tarray(\"n\" => \"Rolf\", \t\t\"a\" => \"Feltscher\"),\r\n\t\t\tarray(\"n\" => \"Francisco\", \t\"a\" => \"La Mantía\"),\r\n\t\t\tarray(\"n\" => \"Nahuel\", \t\t\"a\" => \"Ferraresi\"),\r\n\t\t\tarray(\"n\" => \"Alexander\", \t\"a\" => \"González\"),\r\n\t\t\tarray(\"n\" => \"Ronald\", \t\t\"a\" => \"Hernández\"),\r\n\t\t\tarray(\"n\" => \"Yordan\", \t\t\"a\" => \"Osorio\"),\r\n\t\t\tarray(\"n\" => \"Roberto \", \t\"a\" => \"Rosales\"),\r\n\t\t\tarray(\"n\" => \"Mikel\", \t\t\"a\" => \"Villanueva\"),\r\n\t\t\tarray(\"n\" => \"Yohan\", \t\t\"a\" => \"Cumana\"),\r\n\t\t\tarray(\"n\" => \"Adrián\", \t\t\"a\" => \"Martínez\")\r\n\t\t);\t\r\n\r\n\t\t/* Delanteros */\r\n\t\t$delanteros = array( \r\n\t\t\tarray(\"n\" => \"Fernando \", \t\"a\" => \"Aristiguieta\"), \r\n\t\t\tarray(\"n\" => \"Jhonder\", \t\"a\" => \"Cádez\"),\r\n\t\t\tarray(\"n\" => \"Sergio \", \t\"a\" => \"Córdova\"),\r\n\t\t\tarray(\"n\" => \"Jan\", \t\t\"a\" => \"Hurtado\"),\r\n\t\t\tarray(\"n\" => \"Josef\", \t\t\"a\" => \"Martínez\"),\r\n\t\t\tarray(\"n\" => \"Daniel\", \t\t\"a\" => \"Pérez\"),\r\n\t\t\tarray(\"n\" => \"Eric\", \t\t\"a\" => \"Ramírez\"),\r\n\t\t\tarray(\"n\" => \"Salomón\", \t\"a\" => \"Rondón\")\r\n\t\t);\t\r\n\t\t\t\r\n\t\t$jugadores = array( \r\n\t\t\t\t\t\t\"porteros\" \t\t=> $porteros, \r\n\t\t\t\t\t\t\"mediocampistas\" => $mediocampistas, \r\n\t\t\t\t\t\t\"defensas\" \t\t=> $defensas, \r\n\t\t\t\t\t\t\"delanteros\" \t=> $delanteros \r\n\t\t\t\t\t);\r\n\t\t\r\n\t\treturn $jugadores;\r\n\t}", "public function getIniciales() {\n $aIni = array();\n $aApe = $this->getApellidos();\n $sIni = \"\";\n foreach ($aApe as $Apellido) {\n $ini = substr($Apellido, 0, 1);\n if($ini != $sIni) {\n $aIni[] = $ini;\n }\n $sIni = $ini;\n }\n return $aIni;\n }", "function consultarCitasSinLocalidad($idEspecie) {\n\t\t \n\t$query = \"SELECT localidades_id, especies_id, referencias_id \n\t\t\t\t\t\tFROM localidades_distribucion \n\t\t\t\t\t\tWHERE especies_id = $idEspecie AND referencias_id <>'' AND localidades_id = 0\"; \t\t\t\t\t\t\t\n\t$res = ejecutarQuerySQL($query);\n\t$total = getNumFilas($res);\n\t\n\t$citas=\"\"; $i=1;\t\n\tif ($total > 0 ) {\n\t\t $citas=\"<b>Sin especificar localización: </b>\";\t\n\t\t while ($i <= $total) {\n\t\t \t$actual = getFila($res);\n\t\t\t$valores = $actual['referencias_id'];\n\t\t\tif (strpos($valores, \",\") ) {\n\t\t\t\t // caso del reporte de varios autores para la especie y la localidad\n\t\t\t\t$valores = explode(\",\", $valores);\n\t\t\t\t$total2 = count($valores); $j=1; // inicia en 1 para evitar el caracter de control del inicio\n\t\t\t\t$autorRef = \"\"; $agno=\"\";\n\t\t\t\twhile ($j < $total2) {\t\t\t\t\t\t \t\n\t\t\t\t\t consultarCita($valores[$j], $autorRef, $agno);\t\t\t\t\t \n\t\t\t\t\t $citas = $citas . $autorRef . \" (\" . $agno . \")\";\n\t\t\t\t\t if ($j < $total2-1) $citas = $citas . \"; \"; \n\t\t\t\t\t $j++;\n\t\t\t }\t\t\t \n\t\t}\n\t\telse\n\t\t{ // caso del reporte de un sólo autor para la especie y la localidad\t\t\t\t \n\t\t\t\t $valores = explode(\",\", $valores);\n\t\t\t\t consultarCita($valores[0], $autorRef, $agno);\n\t\t\t\t if ($autorRef <>\"\") $citas = $citas . $autorRef . \" (\" . $agno . \")\";\t\t\n\t\t}\t\t\n\t\t$i++;\n\t\t }\n\t\t$citas = $citas . \".\" ;\n\t}\n\t\nreturn $citas;\n}", "public function getLibelle();", "function getTopGoTerms($ref_gf_id, $n_max) {\n $top_gos = array(\"BP\"=>array(), \"MF\"=>array(), \"CC\"=>array());\n $query\t\t= \"SELECT gf_fd.`name`, fd.`desc`, fd.`info` FROM `gf_functional_data` gf_fd, `functional_data` fd WHERE gf_fd.`gf_id`='\" . $ref_gf_id . \"' AND gf_fd.`type`='go' AND gf_fd.`is_hidden`='0' AND fd.`name`=gf_fd.`name` ORDER BY gf_fd.`f_score` DESC\";\n $res\t\t= $this->query($query);\n foreach($res as $r) {\n $go_aspect = $r['fd']['info'];\n $go_name = $r['gf_fd']['name'];\n $go_desc = $r['fd']['desc'];\n if(count($top_gos[$go_aspect]) < $n_max){\n $top_gos[$go_aspect][] = array(\"name\"=>$go_name, \"desc\"=>$go_desc);\n }\n }\n $top_gos = array_filter($top_gos);\n return $top_gos;\n }", "public function getInstrucoes();", "function alr_clima_provincias()\n{\n\t$response=array();\n\t$feed_url = \"http://api.tiempo.com/index.php?api_lang=ar&pais=67&affiliate_id=jcp8s666brbh\";\n\t$curl = curl_init();\n\tcurl_setopt($curl, CURLOPT_URL,$feed_url);\n\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);\n\t$xmlProv = curl_exec($curl);\n\tif(curl_errno($curl)==0) \n\t{\n\t\t$xml = simplexml_load_string($xmlProv);\n\t\tif(isset($xml->location->data[0]->name)) \n\t\t{\n\t\t\t$x=0;\n\t\t\tforeach ($xml->location->data as $prov) \n\t\t\t{\n\t\t\t\t$pid=intval($prov->name->attributes()->id);\n\t\t\t\t$response[$pid]=(string) $prov->name;\n\t\t\t\t$x++;\t \t\n \t }\n\t\t}\n\t}\n\tcurl_close($curl);\t\t\t\n\treturn $response;\n}", "public function biografi()\n {\n \n $this->db->select('*');\n $this->db->from('biografi');\n \n $query = $this->db->get();\n return $query;\n }", "function numeroFjalet($Fjalia) {\n\t$fjalt = explode(\" \", $Fjalia);\n\tforeach ($fjalt as $key => $value) {\n\t\tif(ctype_alpha($value)) {\n\t\t\t$fjaltVetemShkronja[] = strtolower($value);\n\t\t}\n\t}\n\t\n\tfor($i = 0; $i < count($fjaltVetemShkronja) - 1; $i++) {\n\t\t$a = 0;\n\t\tfor($j = 0; $j < count($fjaltVetemShkronja); $j++) {\n\t\t\tif($fjaltVetemShkronja[$i] == $fjaltVetemShkronja[$j]) {\n\t\t\t\t$a ++;\n\t\t\t}\n\t\t}\n\t\t$perseritjaEFjaleve[$fjaltVetemShkronja[$i]] = $a;\n\t}\n\tasort($perseritjaEFjaleve);\n\treturn $perseritjaEFjaleve;\n}", "public function getUtilisateurs();", "function toString() {\n\t\treturn $this->FiscaalGroepID . \",\" . $this->FiscaalGroupType . \",\" . $this->GewijzigdDoor . \",\" . $this->GewijzigdOp;\n\t}", "function RecuperarInfoOrg($orgReportadas, $infoSolicitada)\n{\n\t$infoRecuperada = array();\n\t//peticion de la provincia de la organizacion\n\tif($infoSolicitada == \"provincia\")\n\t{\n\t\tforeach ($orgReportadas as $valor) \n\t\t{\n\t\t\t$sqlZonaOrg = \"select p.provincia from u_organizaciones u inner join u_provincia p on (u.cod_provincia = p.cod_provincia) where cod_u_organizaciones = \" . $valor;\n\t\t\t//echo $sqlZonaOrg . \"<br>\";\n\t\t\t$resSqlZonaOrg = query($sqlZonaOrg);\n\t\t\t$numRow = mysql_num_rows($resSqlZonaOrg);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlZonaOrg))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['provincia']);\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t}\n\t// peticion del canton de la organizacion\n\tif($infoSolicitada == \"canton\")\n\t{\n\t\tforeach ($orgReportadas as $valor) \n\t\t{\n\t\t\t$sqlZonaOrg = \"select c.canton from u_organizaciones u inner join u_provincia p on (u.cod_provincia = p.cod_provincia) inner join u_canton c on (u.cod_canton = c.cod_canton and p.cod_provincia = c.cod_provincia) where cod_u_organizaciones = \" . $valor;\n\t\t\t$resSqlZonaOrg = query($sqlZonaOrg);\n\t\t\t$numRow = mysql_num_rows($resSqlZonaOrg);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlZonaOrg))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['canton']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t\t\n\t\t}\n\t}\n\t//peticion de la parroquia de la organizacion\n\tif($infoSolicitada == \"parroquia\")\n\t{\n\t\tforeach ($orgReportadas as $valor) \n\t\t{\n\t\t\t$sqlZonaOrg = \"select pa.parroquia from u_organizaciones u inner join u_provincia p on (u.cod_provincia = p.cod_provincia) inner join u_canton c on (u.cod_canton = c.cod_canton and p.cod_provincia = c.cod_provincia) inner join u_parroquia pa on (pa.cod_canton = c.cod_canton and pa.cod_parroquia = u.cod_parroquia) where cod_u_organizaciones = \" . $valor;\n\t\t\t$resSqlZonaOrg = query($sqlZonaOrg);\n\t\t\t$numRow = mysql_num_rows($resSqlZonaOrg);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlZonaOrg))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['parroquia']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\t\t\t\n\t\t}\n\t}\n\t//peticion de los nombres de las organizaciones\n\tif($infoSolicitada == \"nombresOrg\")\n\t{\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlNombreOrg = \"select organizacion from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t$resSqlNombreOrg = query($sqlNombreOrg);\n\t\t\t$numRow = mysql_num_rows($resSqlNombreOrg);\n\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlNombreOrg))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['organizacion']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t}\n\t}\n\t//se devuelve el ruc dependiendo de cual (provisional/definitivo) se solicite\n\tif($infoSolicitada == \"rucProvisionalOrg\" or $infoSolicitada == \"rucDefinitivoOrg\")\n\t{\n\t\t$opcion = 0;\n\t\tswitch ($infoSolicitada) \n\t\t{\n\t\t\tcase \"rucProvisionalOrg\":\n\t\t\t\t# code...\n\t\t\t\t$opcion = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"rucDefinitivoOrg\":\n\t\t\t\t$opcion = 2;\n\t\t\t\tbreak;\t\t\t\n\t\t\tdefault:\n\t\t\t\t$opcion = 0;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlRucOrg = \"\";\n\t\t\tif($opcion == 1) $sqlRucOrg = \"select ruc_provisional from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\tif($opcion == 2) $sqlRucOrg = \"select ruc_definitivo from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\n\t\t\tif($opcion != 0)\n\t\t\t{\n\t\t\t\t$resSqlRucOrg = query($sqlRucOrg);\n\t\t\t\t$numRow = mysql_num_rows($resSqlRucOrg);\n\t\t\t\tif($numRow > 0)\n\t\t\t\t{\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlRucOrg))\n\t\t\t\t\t{\n\t\t\t\t\t\tif($opcion == 1) array_push($infoRecuperada, $fila['ruc_provisional']);\n\t\t\t\t\t\tif($opcion == 2) array_push($infoRecuperada, $fila['ruc_definitivo']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t\t\n\t\t}\n\t}\n\t//peticion de fecha de registro de la organizacion\n\tif($infoSolicitada == \"fechaRegistro\")\n\t{\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlFechaRegistro = \"select fecha_registro from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t$resSqlFechaRegistro = query($sqlFechaRegistro);\n\t\t\t$numRow = mysql_num_rows($resSqlFechaRegistro);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlFechaRegistro))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['fecha_registro']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t}\n\t}\n\t//peticion del circuito economico de la organizacion\n\tif($infoSolicitada == \"circuito\")\n\t{\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlCircuitoEconomico = \"select circuito_economico from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t$resSqlCircuitoEconomico = query($sqlCircuitoEconomico);\n\t\t\t$numRow = mysql_num_rows($resSqlCircuitoEconomico);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlCircuitoEconomico))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['circuito_economico']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t}\n\t}\n\t//peticion de la actividad de la matriz productiva\n\tif($infoSolicitada == \"identificacionMatriz\")\n\t{\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlActividadMatriz = \"select identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t//echo $sqlActividadMatriz . \"<br>\";\n\t\t\t$resSqlActividadMatriz = query($sqlActividadMatriz);\n\t\t\t$numRow = mysql_num_rows($resSqlActividadMatriz);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlActividadMatriz))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['identificacion_actividad_mp']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t}\n\t}\n\t//peticion de la actividad de la matriz productiva\n\tif($infoSolicitada == \"categoriaMatriz\")\n\t{\n\t\tforeach($orgReportadas as $valor)\n\t\t{\n\t\t\t$sqlCategoriaMatriz = \"select categoria_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t//echo $sqlCategoriaMatriz . \"<br>\";\n\t\t\t$resSqlCategoriaMatriz = query($sqlCategoriaMatriz);\n\t\t\t$numRow = mysql_num_rows($resSqlCategoriaMatriz);\n\t\t\tif($numRow > 0)\n\t\t\t{\n\t\t\t\twhile($fila = mysql_fetch_array($resSqlCategoriaMatriz))\n\t\t\t\t{\n\t\t\t\t\tarray_push($infoRecuperada, $fila['categoria_actividad_mp']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tarray_push($infoRecuperada, \"Dato faltante\");\n\t\t}\n\t}\n\treturn $infoRecuperada;\n\t\n\n}", "function leerTodosGrupos() {\n $link = crearConexion();\n $grupos = [];\n\n $query = \"SELECT nombre, imagen, descripcion FROM grupo\";\n $result = mysqli_query($link, $query);\n cerrarConexion($link);\n while ($linea = mysqli_fetch_array($result)) {\n $fila['nombre'] = $linea['nombre'];\n $fila['imagen'] = $linea['imagen'];\n $fila['descripcion'] = $linea['descripcion'];\n\n $grupos[] = $fila;\n }\n\n return $grupos;\n}", "function displayOrganismWgenome(&$annot_list){\n global $genome_list_file; $lines=file($genome_list_file);\n foreach($lines as $line){\n list($orgg,$org,$version,$data)=explode(\",\",$line);\n if($version!=\"version\")$annot_list[]=array('organism'=>array('name'=>$org,'version'=>$version));\n }\n}", "public function getMataPelajaran();", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}" ]
[ "0.6026584", "0.5952716", "0.59357095", "0.59337276", "0.5872608", "0.58144784", "0.57564837", "0.573382", "0.5731017", "0.57223165", "0.5711162", "0.56917065", "0.56406826", "0.5638387", "0.5636814", "0.5597572", "0.55887747", "0.55887544", "0.5586273", "0.55570966", "0.55416685", "0.5523824", "0.55226713", "0.5491338", "0.5490351", "0.5479613", "0.54546726", "0.5454094", "0.54528415", "0.54439104", "0.54351825", "0.5418823", "0.54089046", "0.539598", "0.5394436", "0.539373", "0.5388211", "0.53853863", "0.5380087", "0.53749704", "0.53677136", "0.53612965", "0.53477055", "0.53477055", "0.53472894", "0.5347061", "0.5345432", "0.5342324", "0.53320706", "0.53255534", "0.5324817", "0.532325", "0.5320737", "0.5318848", "0.5302848", "0.5297127", "0.5296859", "0.5289648", "0.52745277", "0.52623016", "0.5258364", "0.52544636", "0.52462757", "0.52350295", "0.5233223", "0.5230874", "0.52207345", "0.5217917", "0.5213618", "0.52100724", "0.5202139", "0.52008253", "0.5198083", "0.5195987", "0.51958257", "0.5187132", "0.5185968", "0.51842815", "0.5179389", "0.5178938", "0.5176578", "0.51740634", "0.5172311", "0.51721054", "0.5156607", "0.51519924", "0.5150041", "0.5149822", "0.51438034", "0.5140083", "0.5136614", "0.513373", "0.51296", "0.5129254", "0.5125573", "0.5120609", "0.5113151", "0.51122206", "0.5107077", "0.510532" ]
0.7230269
0
Return a new Printable with the given string limit.
Верните новый Printable с заданным ограничением по строке.
public function withStringLimit(int $strlim): Printable { return new Printable($this->value, $this->callable, $strlim, $this->arrlim); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function str_limit($string, $limit = 100, $end = '...')\n {\n return str::limit($string, $limit, $end);\n }", "abstract public function _limit($str, $limit, $offset = false);", "static function limit(string $s, int $limit = 100, string $end = '...'): string {\n if (mb_strlen($s) <= $limit) {\n return $s;\n }\n error_if(mb_strlen($end) >= $limit, \"useless Str::limit('', limit, end) combination\");\n\n return mb_strimwidth($s, 0, $limit, $end);\n }", "function limitar($sString, $iLimite) {\n\n if ( strlen($sString) > $iLimite ) {\n $sString = mb_substr($sString, 0, $iLimite - 3) . '...';\n } else {\n $sString = mb_substr($sString, 0, $iLimite);\n }\n\n return $sString;\n}", "protected function limit_length($string, $limit = 127)\n {\n // As the output is to be used in http_build_query which applies URL encoding, the string needs to be\n // cut as if it was URL-encoded, but returned non-encoded (it will be encoded by http_build_query later).\n $url_encoded_str = rawurlencode($string);\n\n if (strlen($url_encoded_str) > $limit) {\n $string = rawurldecode(substr($url_encoded_str, 0, $limit - 3) . '...');\n }\n return $string;\n }", "function strshrink($string, $default_size, $max)\n{\n\t$strlen = strlen($string);\n\t\n\tif (strlen($string) >= $max) {\n\t\t$size = $default_size;\n\t\t\n\t\tfor ($i=0; ($strlen - $max) >= $i; $i += 6) {\n\t\t\t$size -= 1;\n\t\t}\n\t\t\n\t\treturn '<div style=\"display:inline;font-size:' .$size. 'px\">' .$string. '</div>';\n\t}\n\t\n\treturn $string;\n}", "function str_limit($value, $limit = 100, $end = '...')\n {\n return Str::limit($value, $limit, $end);\n }", "function show_limit($val,$limit = 20){\n\t$str = substr($val, 0, $limit);\n\tif(strlen($val) > $limit) $str .= \"...\";\n\treturn $str;\n}", "public function limit($str) \n {\n $this->_data['limit'] = $str;\n $this->_data['query'] .= ' LIMIT '.$str;\n return $this;\n }", "function str_limit($value, $limit = 100, $end = '...')\n {\n return Str::limit($value, $limit, $end);\n }", "function limitText($string, $limit = 50, $break = \" \", $pad = \"\") {\n\tif(strlen($string) <= $limit)\n\t\treturn $string;\n\t$string = substr($string, 0, $limit);\n\tif(false !== ($breakpoint = strrpos($string, $break))){\n\t\t$string = substr($string, 0, $breakpoint);\n\t}\n\treturn $string . $pad;\n}", "private static function constructLimitStringStatic($limit)\n {\n $string = $limit['start'];\n if ($limit['limit'] !== false) {\n $string .= \", {$limit['limit']}\";\n }\n return $string;\n }", "function myTruncate($string, $limit=10, $pad=\"...\") {\n if(strlen($string) <= $limit) return $string;\n $string = substr($string, 0, $limit) . $pad;\n return $string;\n }", "public function withArrayLimit(int $arrlim): Printable\n {\n return new Printable($this->value, $this->callable, $this->strlim, $arrlim);\n }", "function str_shorten(string $string, int $limit, string $break = '.', string $pad = '…'): string\n {\n $strlen = strlen($string);\n // return with no change if string is shorter than $limit\n if ($strlen <= $limit) {\n return $string;\n }\n // is $break present between $limit and the end of the string?\n if (\n ($breakpoint = strpos($string, $break, $limit)) !== false &&\n $breakpoint < $strlen - 1\n ) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n return $string;\n }", "function str_limit($value, $limit = 100, $end = '...')\n\t\t{\n\t\t\t\treturn Illuminate\\Support\\Str::limit($value, $limit, $end);\n\t\t}", "function limitString($string, $limit = 100) {\n if(strlen($string) < $limit) {return $string;}\n\n $regex = \"/(.{1,$limit})\\b/\";\n preg_match($regex, $string, $matches);\n return $matches[1];\n}", "function print_content_char_limit($content,$char_limit , $end_string){\n echo substr($content, 0,$char_limit).$end_string;\n}", "public function limit($length)\n {\n $this->randomStringLength = $length;\n return $this;\n }", "public function limit($limit)\n {\n $this->_parts['limit'] = $limit;\n\n return $this;\n }", "function truncate_max($string, $limit, $break=\" \", $pad=\"...\") { // return with no change if string is shorter than $limit \n\tif(strlen($string) <= $limit) return $string; \n\t$string = substr($string, 0, $limit); \n\tif(false !== ($breakpoint = strrpos($string, $break))) \n\t{ $string = substr($string, 0, $breakpoint); } \n\treturn $string . $pad; \n}", "function truncate($string, $limit, $break=\" \", $pad=\"...\") {\n\n // Return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n \n return $string;\n}", "protected function getLimitString()\n {\n $str = '';\n if (!empty($this->limit)) {\n $str = self::TAB_SEPARATOR;\n if (!empty($this->skip)) {\n $this->limit = $this->skip . ', ' . $this->limit;\n }\n $str .= 'LIMIT ' . $this->limit . self::LINE_SEPARATOR;\n }\n return $str;\n }", "public function shorten($limit)\n {\n $this->provider->shorten($limit);\n \n return $this;\n }", "public function limit($limit)\n {\n return self::from(Iterables::limit($this, $limit));\n }", "public function limit($string, $limit = 100, $end = '...')\n {\n if (mb_strwidth($string, 'UTF-8') <= $limit) {\n return $string;\n }\n\n return rtrim(mb_strimwidth($string, 0, $limit, '', 'UTF-8')) . $end;\n }", "public function str_limit($value, $limit = 100, $end = '...')\n {\n return Str::limit($value, $limit, $end);\n }", "function truncate($string, $limit, $break=\" \", $pad=\"...\") {\n\t if(strlen($string) <= $limit) return $string; \n\t // is $break present between $limit and the end of the string? \n\t if(false !== ($breakpoint = strpos($string, $break, $limit))) \n\t { \n\t \tif($breakpoint < strlen($string) - 1) \n\t \t{ \n\t \t\t$string = substr($string, 0, $breakpoint) . $pad; \n\t \t} \n\t } return $string; \n\t }", "function truncate2($string, $limit, $break=\" \", $pad=\"...\") {\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n\n return $string;\n}", "public static function cut(string $s, int $limit = 100, string $end = '...'): string {\n if (mb_strlen($s) <= $limit) {\n return $s;\n }\n\n return mb_strimwidth($s, 0, $limit, $end);\n }", "function truncate($string, $limit, $break=\".\", $pad=\"...\") {\n \tif(strlen($string) <= $limit) return $string;\n \t// is $break present between $limit and the end of the string?\n \tif(false !== ($breakpoint = strpos($string, $break, $limit)))\n \t{ if($breakpoint < strlen($string) - 1)\n \t{ $string = substr($string, 0, $breakpoint) . $pad; } }\n \n \tif (strlen($string) < 400)\n \t{\n \treturn $string;\n \t}\n \n \n \n \t// return with no change if string is shorter than $limit\n \tif(strlen($string) <= $limit) return $string;\n \n \t$string = substr($string, 0, $limit);\n \tif(false !== ($breakpoint = strrpos($string, $break))) {\n \t$string = substr($string, 0, $breakpoint);\n \t}\n \n \treturn $string . $pad;\n }", "public static function of($string)\n {\n return new Stringable($string);\n }", "public static function zeroFill($string, $maxLength = 4) {\n $sPrintfString = '%0'. intval($maxLength) . 's';\n return sprintf($sPrintfString, $string);\n }", "function truncate($string, $limit, $break = \".\", $pad = \"...\")\n {\n if (strlen($string) <= $limit) {\n return $string;\n }\n\n // is $break present between $limit and the end of the string?\n if (false !== ($breakpoint = strpos($string, $break, $limit))) {\n if ($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n\n return $string;\n }", "public function limit($limit)\r\n {\r\n $this->limit = $limit;\r\n return $this;\r\n }", "public static function build_limit( $limit ) {\n if ( empty( $limit ) ) {\n return '';\n }\n\n return ' LIMIT ' . absint( $limit ) . ' ';\n }", "public function limit($limit)\n {\n $this->limit = $limit;\n return $this;\n }", "public static function limitChars($string, $limit = 100, $append = '...')\n {\n if (self::length($string) <= $limit) {\n return $string;\n }\n return rtrim(self::strPart($string, 0, $limit)) . $append;\n }", "function truncate($string, $limit, $break=\".\", $pad=\"...\") {\n // return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) { if($breakpoint < strlen($string) - 1) { $string = substr($string, 0, $breakpoint) . $pad; } } return $string;\n}", "function truncate($string, $limit, $break=\".\", $pad=\"...\")\n{\n // return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n\n return $string;\n}", "function myTruncate2($string, $limit, $break=\" \", $pad=\"\")\n {\n if(strlen($string) <= $limit) return $string;\n\n $string = substr($string, 0, $limit);\n if(false !== ($breakpoint = strrpos($string, $break))) {\n $string = substr($string, 0, $breakpoint);\n }\n\n return $string . $pad;\n }", "function get_sub_text ($string, $limit, $break, $pad)\r\n{\r\n\t// return with no change if string is shorter than $limit\r\n\tif(strlen($string) <= $limit)\r\n\t\treturn $string;\r\n\r\n\t// is $break present between $limit and the end of the string?\r\n\t$breakpoint = strpos($string, $break, $limit);\r\n\tif($breakpoint !== false) \r\n\t{\r\n\t\tif($breakpoint < (strlen($string)-1)) \r\n\t\t{\r\n\t\t\t$string = substr($string, 0, $breakpoint) . $pad;\r\n\t\t}\r\n\t}\r\n\treturn $string;\r\n}", "public function limit($limit, $offset = 0)\n {\n $limit = intval($limit);\n $offset = intval($offset);\n $this->limit_str = \"{$offset}, {$limit}\";\n return $this;\n }", "function myTruncate2($string, $limit, $break=\" \", $pad=\"...\")\n{\n if(strlen($string) <= $limit) return $string;\n\n $string = substr($string, 0, $limit);\n if(false !== ($breakpoint = strrpos($string, $break))) {\n $string = substr($string, 0, $breakpoint);\n }\n\n return $string . $pad;\n}", "public function limit($limit) {\r\n\t\t$this->query .= \" LIMIT \" . $limit;\r\n\r\n\t\t# Return this instance of the class, so we can chain methods\r\n\t\treturn $this;\r\n\t}", "function stringTruncation($string, $limit, $break, $pad)\n{\n if(strlen($string) <= $limit) return $string;\n $string = substr($string, 0, $limit);\n if(false !== ($breakpoint = strrpos($string, $break)))\n { $string = substr($string, 0, $breakpoint);\n }\n return $string . $pad;\n}", "public function limit($limit) {\n\t\t\t$this->builder->limit($limit);\n\t\t\treturn $this;\n\t\t}", "public function myTruncate($string, $limit, $break=\" \", $pad=\"...\")\n {\n // return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < $limit + 30) {\n $string = substr($string, 0, $breakpoint) . $pad;\n } else {\n $string = substr($string, 0, $limit+30) . $pad;\n }\n } else {\n $string = substr($string, 0, $limit+30) . $pad;\n }\n\n return $string;\n }", "public function setLimit(int $limit): self;", "public function limit($limit = 10) {\n $this->limit = $limit;\n return $this;\n }", "public function limit(int $limit): XyzSpace\n {\n $this->paramLimit = $limit;\n return $this;\n }", "private function shorten(string $string, int $max_size): string\n {\n return rtrim(mb_substr($string, 0, $max_size), ' .,;:-/\\\\') . '...';\n }", "function limit_text($text, $limit) {\n\tif (str_word_count($text, 0) > $limit) {\n\t\t$words = str_word_count($text, 2);\n\t\t$pos = array_keys($words);\n\t\t$text = substr($text, 0, $pos[$limit]) . '...';\n\t}\n\treturn $text;\n}", "public function limit($limit)\t{\n\t\t$this->limit = array(\"LIMIT $limit\");\n\t\treturn $this;\n\t}", "public static function cutText($string, $limit) {\r\r\n\t\tif (strlen($string) < $limit)\r\r\n\t\t\treturn $string;\r\r\n\t\t\r\r\n\t\t$reg =\"/^(.{1,\" . $limit . \"}[^\\s]*).*$/s\";\r\r\n\t\treturn preg_replace($reg, '\\\\1', $string);\r\r\n\t}", "public function limit($limit)\n {\n return $this->set_limit($limit);\n }", "function stringTruncation2($string, $limit, $pad)\n{\n if(strlen($string) <= $limit)\n { return $string;\n }\n else \n { $string = substr($string, 0, $limit - 3);\n return $string . $pad;\n }\n}", "public function limit($limit)\n {\n $this->limit = (int) $limit;\n return $this;\n }", "public function limit(?int $limit): self;", "public static function limit($value, $limit = 100, $end = '...'){\n if(mb_strwidth($value, 'UTF-8') <= $limit){\n return $value;\n }\n\n return rtrim(mb_strimwidth($value, 0, $limit, '', 'UTF-8')) . $end;\n }", "public static function limit($limit);", "public function limit($limit) {\n $this->limit = (int) $limit;\n return $this;\n }", "public function limit($limit)\n {\n $this->limit = (int) $limit;\n\n return $this;\n }", "private function limit_str($review, $length, $more_link_text='') {\n if (strlen($review['content']) > $length) {\n if (!$more_link_text) {\n $more_link_text = __('more');\n }\n\n return mb_substr($review['content'], 0, $length) . '...'\n . \" <a href=\\\"{$review['place']['main_url']}#{$review['id']}\\\">{$more_link_text}</a>\";\n }\n\n return $review['content'];\n }", "static function limit_content($str, $length)\n {\n $str = strip_tags($str);\n $str = str_replace('[/', '[', $str);\n $str = strip_shortcodes($str);\n $str = explode(\" \", $str);\n return implode(\" \", array_slice($str, 0, $length));\n }", "function trim_output($str,$maxlength='250',$rep='...'){\n $ret=chunk_split($str,60);\n\n if(strlen($ret) > $maxlength){\n $ret=substr($ret,0,$maxlength).$rep; \n }\n return $ret; \n}", "function trim_output($str,$maxlength='250',$rep='...'){\n $ret=chunk_split($str,60);\n\n if(strlen($ret) > $maxlength){\n $ret=substr($ret,0,$maxlength).$rep; \n }\n return $ret; \n}", "function myTruncate($string, $limit, $break = \".\", $pad = \"...\") {\r\n// return with no change if string is shorter than $limit\r\n if (strlen($string) <= $limit)\r\n return $string; // is $break present between $limit and the end of the string?\r\n if (false !== ($breakpoint = strpos($string, $break, $limit))) {\r\n if ($breakpoint < strlen($string) - 1) {\r\n $string = substr($string, 0, $breakpoint) . $pad;\r\n }\r\n }\r\n return $string;\r\n}", "public static function shortenedString ($string, $maxLength = 40)\n {\n $string = self::export($string);\n \n if (strlen($string) > $maxLength) {\n $string = substr($string, 0, $maxLength - 10) . '...' .\n substr($string, - 7);\n }\n \n return str_replace(\"\\n\", '\\n', $string);\n }", "public function createStringable($string = '')\n {\n $mock = $this->mock('Dhii\\Util\\String\\StringableInterface')\n ->__toString($this->returnValue($string))\n ->new();\n\n return $mock;\n }", "public static function myTruncate($string, $limit, $break = \" \", $pad = \"...\") {\n // return with no change if string is shorter than $limit\n if (strlen($string) <= $limit) {\n return $string;\n }\n // is $break present between $limit and the end of the string?\n if (false !== ($breakpoint = strpos($string, $break, $limit))) {\n if ($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n return $string;\n }", "function myTruncate($string, $limit=80, $break=\".\", $pad=\"...\")\n{\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n \n return restoreTags($string);\n}", "public function setLimit($limit) {\n $this->limit = $limit;\n return $this;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function limit(int $limit): self\n {\n $this->limit = $limit <= 100 ? $limit : 10;\n\n return $this;\n }", "public function limit( $value, $limit = 100, $end = '...' ) {\n\t\tif ( $this->length( $value ) <= $limit ) {\n\t\t\treturn $value;\n\t\t}\n\n\t\t$value = ( MB_STRING ) ? mb_substr( $value, 0, $limit, $this->encoding ) : substr( $string, 0, $limit );\n\n\t\treturn $value.$end;\n\t}", "public static function limit($value, $limit = 100, $end = '...')\n {\n if (mb_strwidth($value, 'UTF-8') <= $limit) {\n return $value;\n }\n\n return rtrim(mb_strimwidth($value, 0, $limit, '', 'UTF-8')) . $end;\n }", "public static function string( $length=20 )\n {\n $chars = array_merge( range( \"0\",\"9\" ), range( \"a\",\"z\" ), range( \"A\",\"Z\" ) );\n return self::_generate( $length, $chars );\n }", "public function limit( int $limit )\n {\n $this->limit = $limit;\n return $this;\n }", "function limitChars($text, $limit = 200, $more = ' ... ')\n{\n $text = mb_substr($text, 0, $limit);\n if (mb_substr($text, mb_strlen($text) - 1, 1) && mb_strlen($text) == $limit) {\n $textReturn = mb_substr($text, 0, mb_strlen($text) - mb_strlen(strrchr($text, ' ')));\n if (!empty($textReturn)) {\n return $textReturn . $more;\n }\n }\n return $text;\n}", "public function fixedLength($length, $pad_type = STR_PAD_RIGHT) {\n\t\t\tif ($this->info->type == 'string') {\n\t\t\t\t$strlen = strlen($this->value);\n\t\t\t\tif ($strlen > $length) {\n\t\t\t\t\t$value = substr($this->value, 0, $length);\n\t\t\t\t\t// TODO add logging\n\t\t\t\t\treturn static::factory($this->name, $value);\n\t\t\t\t}\n\t\t\t\telse if ($strlen < $length) {\n\t\t\t\t\t$value = str_pad($this->value, $length, ' ', $pad_type);\n\t\t\t\t\treturn static::factory($this->name, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function displayLength($displayLength)\n {\n $this->displayLength = $displayLength;\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->_limit = $limit;\n return $this;\n }", "public function limit($limit);", "public function limit($limit);", "public static function limit($value, $limit = 100, $end = '...')\n\t{\n\t\tif (static::length($value) <= $limit) return $value;\n\n\t\tif (MB_STRING)\n\t\t{\n\t\t\treturn mb_substr($value, 0, $limit, static::encoding()).$end;\n\t\t}\n\n\t\treturn substr($value, 0, $limit).$end;\n\t}", "public function setLimit($limit)\n {\n //argument 1 must be a string\n Argument::i()->test(1, 'int');\n $this->query['limit'] = $limit;\n \n return $this;\n }", "public static function create(): StringBuffer\n {\n return new self();\n }", "public function shortTitle(int $maxLength = 50): string\n {\n return Str::limit($this->title, $maxLength);\n }", "public function limit(int $limit = 100): self\n {\n $this->limit = min(100, max(1, $limit));\n\n return $this;\n }", "public static function prepareString($value, int $maxlen = null)\n {\n $value = trim($value);\n\n if (!is_null($maxlen) && strlen($value) > $maxlen) {\n throw new Exception(\"$value is longer than the max allowed length of $maxlen\");\n }\n\n // Returns as an anonymous class that implements __toString in order to ensure\n // that numeric values that have been explicitly declared as strings are not\n // converted to integers when processed in the call() method.\n return new class($value) {\n protected string $value;\n public function __construct(string $value)\n {\n $this->value = $value;\n }\n public function __toString()\n {\n return $this->value;\n }\n };\n }", "public static function fill( $value=\"\", $limit=30, $char=\".\", $last=\":\" )\n {\n $value = Sanitize::toText( $value );\n $strlen = strlen( $value ) + strlen( $last );\n $count = ( $strlen > $limit ) ? ( $strlen - $limit ) : ( $limit - $strlen );\n return $value . str_repeat( $char, $count ) . $last;\n }", "function maxlength($text, $max, $shorten=true)\n{\nif(strlen($text) >= $max) {\nif($shorten) {\n$text = substr($text, 0, ($max-3)).\"...\";\n} else {\n$text = substr($text, 0, ($max));\n} }\nreturn $text;\n}", "public function short(string $full, $limit = 30) : string\n {\n preg_match(PATTERN_CHINESE, $full, $matches);\n\n if (!empty($matches)) {\n if (mb_strlen($full) >= $limit) {\n return mb_substr($full, 0, $limit-1) . \"...\";\n } else {\n return mb_substr($full, 0, $limit);\n }\n } else {\n if (strlen($full) >= $limit) {\n return substr($full, 0, $limit-1) . \"...\";\n } else {\n return substr($full, 0, $limit);\n }\n }\n }", "function my_string_limit_words($string, $word_limit)\r\n{\r\n $words = explode(' ', $string, ($word_limit + 1));\r\n if(count($words) > $word_limit)\r\n array_pop($words);\r\n return implode(' ', $words).'... ';\r\n}", "function str_limit_words($string, $limit = 10, $end = '...')\n {\n return str::limitWords($string, $limit, $end);\n }", "public function limit($max)\n {\n $this->limit = intval($max);\n return $this;\n }", "public function limit($limit = \"\"){\n\t\t\tif(is_numeric($limit)){\n\t\t\t\t$this->limit = \" LIMIT :limit\";\n\t\t\t\t$this->addParam(\"limit\", $limit);\n\t\t\t}else{\n\t\t\t\t$this->limit = false;\n\t\t\t\tunset($this->parameters[\"limit\"]);\n\t\t\t}\n\t\t\treturn $this;\n\t\t}" ]
[ "0.5799131", "0.579068", "0.5733761", "0.5699269", "0.5647924", "0.55872667", "0.5587126", "0.5572459", "0.5565704", "0.55547523", "0.55515724", "0.5452892", "0.5441698", "0.5441663", "0.54207546", "0.5406397", "0.5391213", "0.53860396", "0.53741574", "0.5363558", "0.5341977", "0.5322642", "0.531038", "0.5296334", "0.52687544", "0.5268245", "0.52682275", "0.5254087", "0.52231604", "0.5192045", "0.51865864", "0.51710695", "0.5157114", "0.51267576", "0.5120096", "0.5117421", "0.51118577", "0.51090074", "0.50980335", "0.5097702", "0.50941885", "0.50934595", "0.50846726", "0.50750166", "0.5074529", "0.5069514", "0.50623554", "0.5056127", "0.5052338", "0.5018401", "0.5012556", "0.501059", "0.50087094", "0.50069404", "0.5004796", "0.5001749", "0.5000545", "0.49991846", "0.4996805", "0.49966058", "0.4992446", "0.49873346", "0.49675432", "0.49555266", "0.49368772", "0.493465", "0.493465", "0.49325627", "0.49209383", "0.49119994", "0.4885516", "0.4883938", "0.48818153", "0.4872865", "0.4872865", "0.4872865", "0.48713824", "0.48665425", "0.4861921", "0.4858834", "0.48531774", "0.4847212", "0.4840318", "0.48366106", "0.4833302", "0.48259047", "0.48259047", "0.48257324", "0.48229596", "0.48213547", "0.4817775", "0.48164886", "0.4814407", "0.48131263", "0.480832", "0.48079845", "0.4796751", "0.47915062", "0.4788351", "0.4783608" ]
0.7650457
0
Return a new Printable with the given array limit.
Вернуть новый Printable с заданным массивом ограничений.
public function withArrayLimit(int $arrlim): Printable { return new Printable($this->value, $this->callable, $this->strlim, $arrlim); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function limit($limit)\n {\n return self::from(Iterables::limit($this, $limit));\n }", "public static function limit($limit);", "public function withStringLimit(int $strlim): Printable\n {\n return new Printable($this->value, $this->callable, $strlim, $this->arrlim);\n }", "public function limit($limit);", "public function limit($limit);", "public function limit($limit)\t{\n\t\t$this->limit = array(\"LIMIT $limit\");\n\t\treturn $this;\n\t}", "public function take($limit)\n {\n $this->dataToArray();\n\n return new self(array_slice($this->data, 0, $limit));\n }", "public function setLimit(int $limit): self;", "public function limit($limit)\r\n {\r\n $this->limit = $limit;\r\n return $this;\r\n }", "public function limit($limit, $offset = 0)\n {\n $limit = intval($limit);\n $offset = intval($offset);\n $this->limit_str = \"{$offset}, {$limit}\";\n return $this;\n }", "public static function shortenArray(array $values, int $limit = 5, string $glue = ', '): string\n {\n $valuesToShow = array_slice($values, 0, $limit);\n $delta = count($values) - count($valuesToShow);\n if ($delta <= 2) {\n // if there is only a few more, just show them all\n $valuesToShow = $values;\n } else {\n $valuesToShow[] = 'and ' . $delta . ' more';\n }\n return join($glue, $valuesToShow);\n }", "public function limit($limit = 10) {\n $this->limit = $limit;\n return $this;\n }", "public function limit($limit=10, $offset=0) {\n $this->__limit__ = array($limit, $offset);\n return $this;\n }", "public function limit($limit)\n {\n }", "public function limit($limit)\n {\n $this->limit = $limit;\n return $this;\n }", "public function limit($limit) {\n\t\t\t$this->builder->limit($limit);\n\t\t\treturn $this;\n\t\t}", "public function limit($limit) {\n $this->limit = (int) $limit;\n return $this;\n }", "public function limit($limit)\n {\n $this->_parts['limit'] = $limit;\n\n return $this;\n }", "public final function formatToView(array $values,int $limit = 20) : array {\n $top =array_slice($values,0,$limit,true);\n $tableRow = [];\n foreach ($top as $key=>$value) {\n $tableRow[] = [$key, $value];\n }\n return $tableRow;\n }", "public function limit($limit)\n {\n return $this->set_limit($limit);\n }", "public function limit(?int $limit): self;", "public function setLimit($limit) {\n $this->limit = $limit;\n return $this;\n }", "public function limit($limit)\n {\n $this->limit = (int) $limit;\n return $this;\n }", "public function __construct(int $limit = 100)\n {\n $this->limit = $limit;\n }", "public function limit(int $length, ?int $offset = 0): self\n {\n $this->limit = \"$offset, $length\";\n return $this;\n }", "public function limit($limit, $offset = null);", "function InicializaArray($Limite){\n\t\tfor($i = 1; $i <= $Limite; $i++) \n\t\t{ \n\t\t ${'array'}[$i] = 0; \n\t\t} \n\treturn $array;\n}", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }", "public function limit($limit,$offset = null)\n {\n $this->_limitStr = \" LIMIT \".intval($limit);\n if (!is_null($offset)) {\n $this->_limitStr .= ', '.intval($offset);\n }\n\n return $this;\n }", "public function setLimit($limit)\n {\n $this->_limit = $limit;\n return $this;\n }", "public static function create(int $dataLimit)\n {\n return new self($dataLimit);\n }", "public function limit($limit)\n {\n $this->limit = (int) $limit;\n\n return $this;\n }", "function printArray($myArray, $n) { \n for ($i = 0; $i < $n; $i++) \n echo $myArray[$i].\" \"; \n echo \"\\n\";\n}", "public function setLimit($limit)\n {\n $this->recordsPerPage = max(1, intval($limit));\n\n return $this;\n }", "public function limit($limit, $val = null){\n\t\t$this->queried = false;\n\t\t\n\t\tif($val) $limit = array($limit, $val);\n\t\telseif(is_scalar($limit)) $limit = array(0, $limit);\n\t\t\n\t\t$this->Storage->store('limit', $limit);\n\t\t\n\t\treturn $this;\n\t}", "public function setLimit($var)\n {\n GPBUtil::checkDouble($var);\n $this->limit = $var;\n\n return $this;\n }", "public function limit($offset, $limit=null)\n {\n if (is_null($limit)) $this->limit = $offset;\n else $this->limit = $offset.', '.$limit;\n return $this;\n }", "public function setLimit($limit)\n\t{\n\t\t$this->limit = $limit;\n\t\treturn $this;\n\t}", "public function setLimit($value)\n {\n\n $this->limit = $value;\n\n return $this;\n\n }", "public function limit(int $limit, int $offset);", "public function setLimit($limit)\n {\n $this->limit = (int) $limit;\n return $this;\n }", "public function limit($limit = null, $offset = 0) {\n if($limit) {\n $this->limit = 'LIMIT '.floor($offset).', '.floor($limit);\n } else {\n $this->limit = '';\n }\n return $this;\n }", "public static function create($all = null, $limit = null)\r\n\t{\r\n\t\treturn new Opc_Paginator_Range($all, $limit);\r\n\t}", "public static function printArray($array, $border) {\r\n\r\n/* This function loops through a simple (1D)\r\n array and prints out all the values in a \r\n table. This is used for diagnostic\r\n purposes primarily, although there \r\n can be other applications. */\r\n \r\n // Check that the array exists\r\n if (!$array) {\r\n echo \"No array specified.<BR><BR>\";\r\n return;\r\n }\r\n \r\n else {\r\n // Start table\r\n echo \"<TABLE BORDER=$border>\";\r\n \r\n // Print the array in table cells\r\n foreach ($array as $value) {\r\n echo \"<TR><TD>$value</TD></TR>\"; \r\n } // end of while loop\r\n \r\n // End table and return\r\n echo \"</TABLE>\";\r\n return;\r\n } // end of else\r\n\r\n}", "public function set_limit($limit);", "private function limit_page()\n {\n $page = $this->define_page();\n $start = $page * $this->count - $this->count;\n $fullnumber = $this->total;\n $total = $fullnumber['count'] / $this->count;\n is_float($total) ? $max = $total + 2 : $max = $total + 1;\n $array = array('start'=>(int)$start,'max'=>(int)$max);\n return $array;\n }", "private static function constructLimitStringStatic($limit)\n {\n $string = $limit['start'];\n if ($limit['limit'] !== false) {\n $string .= \", {$limit['limit']}\";\n }\n return $string;\n }", "public function setLimit($limit)\n {\n $this->limit = (int) $limit;\n\n return $this;\n }", "public function setPrintPageRange(?array $pageRange = null) {}", "public function limit($offset, $max = null);", "public function setLimit($var)\n {\n GPBUtil::checkInt32($var);\n $this->limit = $var;\n\n return $this;\n }", "public function limit($offset, $length)\n\t\t{\n\t\t\tif(!is_int($offset) || !is_int($length))\n\t\t\t{\n\t\t\t\tthrow new \\Exception('Invalid limit parameters.');\n\t\t\t}\n\t\t\t$this->limit = array($offset, $length);\n\t\t\treturn $this;\n\t\t}", "public final function resetLimit()\n {\n $this->limit = array();\n return $this;\n }", "public function limit($max)\n {\n $this->limit = intval($max);\n return $this;\n }", "public function limit($limit,$offset);", "public function limit( int $limit )\n {\n $this->limit = $limit;\n return $this;\n }", "public function limit($limit, $offset = 0) {\n\t\t$this->limit = $limit;\n\t\t$this->offset = $offset;\n\t\treturn $this;\n\t}", "public abstract function limit(int $limit): Stream;", "public function limit($size){\r\n $this->limit = $size;\r\n return $this;\r\n }", "public static function limitPad()\n {\n return new CropMode(CropMode::LIMIT_PAD);\n }", "public function limit($value)\n\t{\n\t\t$this->limit = $value;\n\t\treturn $this;\n\t}", "function limit($limit, $offset = 0)\n{\n\t$this->tryModify();\n\t$this->query['limit'] = array((int)$limit, (int)$offset);\n\treturn $this;\n}", "public function __construct($size = 0) // [\\SplFixedArray]\n\t{\n\t\t$this->start = ($size instanceof \\SplFixedArray) ? 0\n\t\t : $size / 2;\n\t\tparent::__construct($size);\n\t}", "public static function init(int $limit = 1000, bool $simple = false): self\n {\n return new self($limit, $simple);\n }", "public function limit($offset, $limit)\n {\n $this->limitString = $this->adapter->limit($this->limitString, $limit, $offset);\n return $this;\n }", "public function limit($value) {\r\n $this->limit = (int)$value;\r\n return $this;\r\n }", "public function limitBy($limit, $offset = NULL)\n\t{\n\t\t$this->dirty();\n\t\t$this->limit = $limit || $offset ? [$limit, $offset] : NULL;\n\t\treturn $this;\n\t}", "public function limit($limit, $offset = 0)\n\t{\n\t\t$this->limit = $limit;\n\t\t\n\t\t$this->offset = $offset;\n\t\t\n\t\treturn $this;\n\t}", "public function limit($value)\n {\n $this->limit = $value;\n\n return $this;\n }", "public function toPublicArray($limitFields = null)\n {\n if (!$limitFields) {\n $limitFields = static::$publicFields;\n } else {\n $limitFields = array_intersect(static::$publicFields, $limitFields);\n }\n $arr = $this->toArray();\n foreach ($arr as $k => $item) {\n if (is_numeric($k) || !in_array($k, $limitFields, true)) {\n unset($arr[$k]);\n }\n }\n return $arr;\n }", "public function limit( $limit, $offset = 0 )\n {\n $this->hasLimit = true;\n $this->limit = $limit;\n $this->offset = $offset;\n return $this;\n }", "public static function limit(int $limit, bool $simple = false): self\n {\n return new self($limit, $simple);\n }", "public function getPrintsOfUser($username, $limit = 20, $afterPrintPublicId = null): array;", "public function limit($limit) {\r\n $this->sqlLimit = $limit;\r\n return $this;\r\n }", "public function limit($limit, $offset = null)\n\t{\n\t\t$this->limit = (int) $limit;\n\t\tfunc_num_args() > 1 and $this->offset = (int) $offset;\n\n\t\treturn $this;\n\t}", "public function limit($limit, $offset = null)\n {\n $qs = clone $this;\n $qs->limitOffset = new LimitOffset($limit, $offset);\n return $qs;\n }", "public function limit($limit) {\r\n\t\t$this->query .= \" LIMIT \" . $limit;\r\n\r\n\t\t# Return this instance of the class, so we can chain methods\r\n\t\treturn $this;\r\n\t}", "private function setLimit()\n {\n if (isset($this->iDisplayStart) && $this->iDisplayLength != '-1') {\n $this->qb->setFirstResult($this->iDisplayStart)->setMaxResults($this->iDisplayLength);\n }\n\n return $this;\n }", "public function limit(){\r\n \t$tb = call_user_func_array(array($this->mask(), 'limit'), func_get_args());\r\n\t\treturn $this;\r\n }", "public function limit(int $limit)\n {\n $this->options['limit'] = $limit;\n\n return $this;\n }", "public function limit(int $limit, int $offset = 0): static\n {\n return $this->withPropertyItem('opts', new LimitOption($limit, $offset));\n }", "public function setLimit($var)\n {\n GPBUtil::checkInt32($var);\n $this->limit = $var;\n $this->has_limit = true;\n\n return $this;\n }", "public function limit($start, $size = null) {\n\t\tif (is_null($size)) {\n\t\t\t$this->limit = [0, $start];\n\t\t} else {\n\t\t\t$this->limit = [$start, $size];\n\t\t}\n\t\treturn $this;\n\t}", "public function shorten($limit)\n {\n $this->provider->shorten($limit);\n \n return $this;\n }", "public function setLimit($limit)\n {\n if (is_integer($limit)) {\n $this->request->appendToParameter('options', 'num-' . $limit);\n }\n\n return $this;\n }", "public function getPrintPageRange(array $defaultValue = [/** value is missing */]) {}", "public function setLimit($limit)\n {\n if ($limit < 1 || !is_int($limit)) {\n throw new \\InvalidArgumentException('setLimit() accepts only integers greater 0.', 1263387249);\n }\n $this->limit = $limit;\n\n return $this;\n }", "function show_limit($val,$limit = 20){\n\t$str = substr($val, 0, $limit);\n\tif(strlen($val) > $limit) $str .= \"...\";\n\treturn $str;\n}", "public function getLimit();", "public function getLimit();", "public function getLimit();", "public function getLimit();", "public function getLimit();", "public function limit($limit, $offset = 0) {\n $this->_limit = (int) $limit;\n\n if ($offset) {\n $this->offset($offset);\n }\n\n return $this;\n }", "public function limit($length)\n {\n $this->randomStringLength = $length;\n return $this;\n }", "public function limit($limit)\r\n {\r\n $this->query->limit($limit);\r\n \r\n return $this;\r\n }", "public function limit($limit, $offset=null)\n\t{\n\t\t\t\t\t$this->_query['limit']=(int)$limit;\n\t\t\t\t\tif($offset!==null)\n\t\t\t\t\t\t\t\t\t$this->offset($offset);\n\t\t\t\t\treturn $this;\n\t}", "public function limit($num)\n {\n $this->limit = $num;\n return $this;\n }" ]
[ "0.55312455", "0.52996206", "0.5266579", "0.5221374", "0.5221374", "0.517468", "0.5163341", "0.51078963", "0.50517434", "0.50471324", "0.50427085", "0.502774", "0.5012319", "0.50084686", "0.49883428", "0.49859542", "0.49719012", "0.4968724", "0.49675462", "0.4964598", "0.49632192", "0.4962877", "0.4904883", "0.48979837", "0.48560828", "0.4848857", "0.48355538", "0.48269472", "0.48269472", "0.48269472", "0.48252165", "0.48229447", "0.48219904", "0.48189574", "0.48027152", "0.4787079", "0.47611204", "0.47610408", "0.47605512", "0.4755146", "0.4755011", "0.4740426", "0.47285295", "0.47236323", "0.47099224", "0.47091287", "0.4699146", "0.4691344", "0.46904352", "0.46887514", "0.46882194", "0.46851766", "0.46737424", "0.46697155", "0.46635333", "0.4662833", "0.4655867", "0.46533787", "0.46314806", "0.46235576", "0.4618643", "0.46153495", "0.46095243", "0.46076408", "0.4605919", "0.45984095", "0.45924443", "0.4591528", "0.4588614", "0.45883825", "0.45816076", "0.45716104", "0.45703572", "0.45643035", "0.4558704", "0.45575696", "0.45430169", "0.4537739", "0.4535733", "0.45278603", "0.45229468", "0.45200613", "0.4520012", "0.45093203", "0.45014554", "0.44987094", "0.44971287", "0.44937348", "0.44815218", "0.44760787", "0.44749522", "0.44749522", "0.44749522", "0.44749522", "0.44749522", "0.44722033", "0.44665593", "0.44625327", "0.44553462", "0.44545677" ]
0.77780515
0
Return a quoted string.
Верните откликнутую строку.
private function quoted(string $value): string { return sprintf('\'%s\'', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function intoQuote($string){ return \"'\".$string.\"'\"; }", "public function quote($string)\n {\n return $string;\n }", "function Quote( $text ) {\n\t\treturn '\\'' . getEscaped( $text ) . '\\'';\n\t}", "protected function quote(?string $value): string {\n\n\t\t\t$quote = $this->quoteInputEncoded;\n\n\t\t\tif ($value === null)\n\t\t\t\treturn \"{$quote}{$quote}\";\n\n\t\t\t$value = str_replace($quote, \"{$quote}{$quote}\", $value);\n\n\t\t\treturn \"{$quote}{$value}{$quote}\";\n\t\t}", "abstract public function quoteString($value);", "public function quoteAndEscape(string $str): string;", "static function quote($s){\r\n return '\"' . str_replace('\"', '\\\"', $s) . '\"';\r\n }", "function add_quote($value) {\n\t\treturn '\"' . addslashes($value) . '\"';\n\t}", "public static function quote(mixed $val = \"\", string $q = \"\\\"\"): string\n {\n if (is_string($val)) {\n return $q . $val . $q;\n } elseif (is_numeric($val)) {\n return $val;\n } elseif (is_array($val)) {\n return \"StringUtils::quote returned 'array'! \";\n } else {\n return $q . $val . $q;\n }\n }", "public static function quote($s){\r\n\t\treturn LEFT_QUOTES . $s . RIGHT_QUOTES;\r\n\t}", "protected function TitleQuoted() {\n\treturn '&ldquo;'.$this->TitleString().'&rdquo;';\n }", "public static function quote( $value ) {\n\t\t# Quote \\ here, because it needs always escaping\n\t\t$value = addcslashes( $value, '\\\\' );\n\n\t\t# For readability\n\t\t$single = \"'\";\n\t\t$double = '\"';\n\t\t$quote = $single;\n\n\t\t# It is safe to use '-quoting, unless there is '-quote in the text\n\t\tif ( strpos( $value, $single ) !== false ) {\n\t\t\t# In case there is no variables that need to be escaped, just use \"-quote\n\t\t\tif ( strpos( $value, $double ) === false && !preg_match( '/\\$[^0-9]/', $value ) ) {\n\t\t\t\t$quote = $double;\n\t\t\t# Something needs quoting, pick the quote which causes less quoting\n\t\t\t} else {\n\t\t\t\t$doubleEsc = substr_count( $value, $double ) + substr_count( $value, '$' );\n\t\t\t\t$singleEsc = substr_count( $value, $single );\n\n\t\t\t\tif ( $doubleEsc < $singleEsc ) {\n\t\t\t\t\t$quote = $double;\n\t\t\t\t\t$extra = '$';\n\t\t\t\t} else {\n\t\t\t\t\t$extra = '';\n\t\t\t\t}\n\n\t\t\t\t$value = addcslashes( $value, $quote . $extra );\n\t\t\t}\n\t\t}\n\n\t\treturn $quote . $value . $quote;\n\t}", "public function getQuoteChar();", "public static function quotedString($str)\n {\n }", "function quote($s) { \n return \"'\".str_replace('\\\\\"', '\"', addslashes($s)).\"'\"; \n }", "public function getQuoting() {\n return $this->quoting;\n }", "public function quote($str) {\n\t\treturn $this->_resource->quote($str);\n\t}", "public function quote($stringValue);", "public function getQuotationQuote()\n {\n return $this->traitGetQuotationQuote();\n }", "public function quote($value) {\n\t\treturn $this -> getAdapter() -> quote($value);\n\t}", "public static function escapeQuote($val){\n\t\t\tswitch(gettype($val)){\n\t\t\t\tcase 'array': case 'object':\n\t\t\t\t\t$val=(array)$val;\n\t\t\t\t\tforeach($val as $k=>$v)\n\t\t\t\t\t\t$val[$k]=self::escapeQuote($v);\n\t\t\t\t\treturn $val;\n\t\t\t\tcase 'string':\n\t\t\t\t\treturn '\"'.self::escape($val).'\"';\n\t\t\t\tcase 'NULL':\n\t\t\t\t\treturn 'NULL';\n\t\t\t\tcase 'boolean':\n\t\t\t\t\treturn $val ? 'TRUE' : 'FALSE';\n\t\t\t\tdefault:\n\t\t\t\t\treturn strval($val); \n\t\t\t}\n\t\t}", "protected function getQuotedString(string $str, ?string $qt = null): string\n\t{\n\t\t$qt = $this->getQuote($qt);\n\n\t\t// escaping Slashes or Backslashes in Commands ..observe this behavour case should never happend\n\t\t$str = ( in_array( $qt, [ self::SQ, self::SQE ] ) ) ?\n\t\t\tstr_replace( self::SQ, self::SQE, $str ) :\n\t\t\tstr_replace( self::DQ, self::DQE, $str );\n\n\t\treturn $qt . $str . $qt;\n\t}", "public function quote($str)\n {\n $str = \"'\" . addslashes($str) . \"'\";\n return $str;\n }", "public function quote($stringValue) {\n return $this->escapeStringChar . $stringValue . $this->escapeStringChar;\n }", "function add_quotes($str) {\n if (is_string($str)) {\n return sprintf(\"'%s'\", $str);\n } elseif (is_null($str)) {\n return sprintf(\"%s\", \"null\");\n } else {\n return sprintf(\"%s\", $str);\n }\n}", "public function quote($value)\n\t{\n\t\treturn $this->c->quote($value);\n\t}", "function bab_pm_quote($str)\n{\n return '\"' . str_replace('\"', '\"\"', $str) . '\"';\n}", "protected function getQuote(?string $qt = null): string\n\t{\n\t\treturn $qt && \\in_array($qt, self::$allowedQuotes, true) ? $qt : $this->sQuoteCharacter;\n\t}", "public static function quote($val)\n {\n if (is_null($val))\n return 'null';\n\n if (is_int($val) || is_double($val))\n return self::quote_number($val);\n\n if (is_scalar($val))\n return self::quote_string($val);\n\n if (is_array($val))\n {\n $out = array(); foreach ($val as $v) $out[] = self::quote($v);\n return sprintf('(%s)', join(',', $out));\n }\n\n if (is_object($val))\n return strval($val);\n\n if (is_callable($val))\n return $val();\n\n return 'null';\n }", "static function quote($value)\n\t{\n\t\treturn \"'\" . str_replace(\"'\", \"\\\\'\", $value) . \"'\";\n\t}", "protected function _quote($value) {\n if (is_int($value)) {\n return $value;\n } elseif (is_float($value)) {\n return sprintf('%F', $value);\n }\n return \"'\" . addcslashes($value, \"\\000\\n\\r\\\\'\\\"\\032\") . \"'\";\n }", "static protected function _quote($value)\n {\n if (is_int($value)) {\n return $value;\n } elseif (is_float($value)) {\n return sprintf('%F', $value);\n }\n return \"'\" . addcslashes($value, \"\\000\\n\\r\\\\'\\\"\\032\") . \"'\";\n }", "protected function quote ( $str ) {\n\n\t\tif(strpos($str, '\"')) {\n\t\t\t$str = str_replace('\"', '\\\"', $str);\n\t\t\t$str = '\"'.$str.'\"';\n\t\t}\n\t\telseif(strpos($str, \"'\")) {\n\t\t\t$str = str_replace(\"'\", \"\\'\", $str);\n\t\t\t$str = \"'\".$str.\"'\";\n\t\t}\n\n\t\treturn $str;\n }", "protected function _quoteString($value)\n {\n return (string)$value;\n }", "public function quoteString($str)\n {\n return $this->quote($str);\n }", "public function quote($value){\n $connection = $this -> connect();\n return pg_escape_literal($value);\n }", "function qstr($string, $magic_quotes=false)\n\t{\t\n\t\tif (!$magic_quotes) {\n\t\t\treturn \"'\".str_replace(\"'\", \"''\", $string).\"'\";\n\t\t}\n\t\t$string = str_replace(\"\\\\'\", \"''\", str_replace('\\\\\\\\', '\\\\', str_replace('\\\\\"', '\"', $string)));\n\t\treturn \"'\" . $string . \"'\";\n\t}", "public function quote($value) {\n $connection = $this -> connect();\n return \"'\" . $connection -> real_escape_string($value) . \"'\";\n }", "public function quote($value)\n\t{\n\t\tif ($value === null) {\n\t\t\treturn 'NULL';\n\t\t} else if ($value === false) {\n\t\t\treturn '0';\n\t\t} else if ($value === true) {\n\t\t\treturn '1';\n\t\t} else if ($value instanceof As_SqlFunction) {\n\t\t\treturn $value->__toString();\n\t\t}\n\t\t\n\t\treturn \"'\" . str_replace(\"'\", \"''\", $value) . \"'\";\n\t}", "function quote( $string, $quotes = false ) {\r\n return $this->link->quote( ( $quotes )? stripslashes( $string ) : $string, null, true, true );\r\n }", "private function quote($string)\n {\n return \"'\" . addcslashes($string, \"'\") . \"'\";\n }", "function quoted_printable_encode($str, $wrap=true)\n\t{\n\t $return = '';\n\t $iL = strlen($str);\n\t for($i=0; $i<$iL; $i++)\n\t {\n\t $char = $str[$i];\n\t if(ctype_print($char) && !ctype_punct($char)) $return .= $char;\n\t else $return .= sprintf('=%02X', ord($char));\n\t }\n\t return ($wrap === true) ? wordwrap($return, 74, \" =\\n\") : $return;\n\t\n\t}", "private function createQuote($string) {\n\t\t$string = $this->cleanString($string);\n\t\t$string = '</p><div class=\"quote\">'.$string.'</div><p>';\n\t\treturn $string;\n\t}", "public function quote($string) {\n return $this->_connection->quote($string);\n }", "static function squote($s){\r\n return \"'\" . str_replace(\"'\", '\\'', $s) . \"'\";\r\n }", "public function getRandomQuote(): string\n {\n return (string)$this->getAllQuotes()->random();\n }", "public function quote($string)\n {\n return \"'\" . str_replace(\"\\\\\\\"\", '\"', str_replace(\"\\\\&quot;\", '&quot;', $this->escape($string))) . \"'\";\n }", "function tep_html_quotes($string) {\n return str_replace(\"'\", \"&#39;\", $string);\n }", "function tep_html_quotes($string) {\n return str_replace(\"'\", \"&#39;\", $string);\n }", "function qescape($str)\n{\n $str = str_replace('\\\\', '\\\\\\\\', $str);\n return str_replace('\"', '\\\\\"', $str);\n}", "function sql_quote_string($val,$dbh=NULL) {\n global $SQL_DBH;\n if (is_null($dbh))\n return $SQL_DBH->quote($val);\n else\n return $dbh->quote($val);\n }", "public function quote($text);", "public function quoteString($str)\n {\n return $this->quote($str);\n }", "protected function quote_escaped()\n {\n }", "protected function enclosureCharacter () : string {\n return '\"';\n }", "public function quote($value) {\n\t\t$connection = $this -> connect();\n\t\treturn \"'\" . $connection -> real_escape_string($value) . \"'\";\n\t}", "public function addIdentifierQuotes( $s ) {\n\t\treturn '\"' . str_replace( '\"', '\"\"', $s ) . '\"';\n\t}", "public function addQuotes( $s ) {\n\t\tif ( $s === null ) {\n\t\t\treturn 'NULL';\n\t\t} else {\n\t\t\t# This will also quote numeric values. This should be harmless,\n\t\t\t# and protects against weird problems that occur when they really\n\t\t\t# _are_ strings such as article titles and string->number->string\n\t\t\t# conversion is not 1:1.\n\t\t\treturn \"'\" . $this->strencode( $s ) . \"'\";\n\t\t}\n\t}", "protected function escapeString($value)\n {\n return $this->entityManager->getConnection()->quote($value);\n }", "static public function addSingleQuotes($arg) \n { \n /* single quote and escape single quotes and backslashes */ \n return \"'\" . addcslashes($arg, \"'\\\\\") . \"'\"; \n }", "public function doubleQuoteValue($value) {\n\t\t$value = addcslashes(\n\t\t\t$value,\n\t\t\timplode('', static::DOUBLE_QUOTED_MUST_ESCAPE)\n\t\t);\n\t\treturn '\"' . $value . '\"';\n\t}", "public function quote($input)\n {\n return \"'\" . str_replace(\"'\",\"''\",$input) . \"'\";\n }", "public function getRightQuote()\n\t{\n\t\treturn '';\n\t}", "function escapeQuote($var)\n\t{\n\t\tif (isset($var))\n\t\t{\n\t\t\t$string = str_replace(\"'\",\"||\",$var);\n\t\t\t$string = str_replace('\"','||||',$string);\n\t\t}\n\n\t\treturn $string;\n\t}", "function escapeQuote($var)\n\t{\n\t\tif (isset($var))\n\t\t{\n\t\t\t$string = str_replace(\"'\",\"||\",$var);\n\t\t\t$string = str_replace('\"','||||',$string);\n\t\t}\n\n\t\treturn $string;\n\t}", "function escapeQuote($var)\n\t{\n\t\tif (isset($var))\n\t\t{\n\t\t\t$string = str_replace(\"'\",\"||\",$var);\n\t\t\t$string = str_replace('\"','||||',$string);\n\t\t}\n\n\t\treturn $string;\n\t}", "public static function quote($value) {\n $connection = self::getConnection();\n return $connection -> quote($value);\n }", "public function quoteAndEscape(string $str): string\n {\n return $this->stringQuotingCharacter . $this->escape($str) . $this->stringQuotingCharacter;\n }", "function toString($str){\n\treturn \"'\" . $str . \"'\";\n}", "public function quoteString(?string $value): string\n {\n if ($value===null || $value==='') return 'null';\n\n return \"'\".$this->mysqli->real_escape_string($value).\"'\";\n }", "protected function pSingleQuotedString(string $string): string\n {\n return '\\'' . \\preg_replace(\"#'|\\\\\\\\(?=[\\\\\\\\']|$)#\", '\\\\\\\\$0', $string) . '\\'';\n }", "public function quote($value) {\n $connection = $this->connect();\n return \"'\" . $connection->real_escape_string($value) . \"'\";\n }", "function quote($s) {\n return \"'\" . addslashes(canonicalize_whitespace($s)) . \"'\";\n}", "private function escapeString(string $value): string\n {\n return str_replace(\"'\", \"''\", $value);\n }", "protected function _getEnclosure() {\n\t\treturn '\"';\n\t}", "private function quote($string,$param=''){\n\t\tif(empty($param)){\n\t\t\treturn \"'$string'\";\n\t\t}\n\t\treturn $string;\n\t}", "function qstr($s,$magic_quotes=false)\n\t{\n\t\tif (is_bool($s)) return $s ? 'true' : 'false';\n\n\t\tif (!$magic_quotes) {\n\t\t\tif (ADODB_PHPVER >= 0x5200 && $this->_connectionID) {\n\t\t\t\treturn \"'\".pg_escape_string($this->_connectionID,$s).\"'\";\n\t\t\t}\n\t\t\tif (ADODB_PHPVER >= 0x4200) {\n\t\t\t\treturn \"'\".pg_escape_string($s).\"'\";\n\t\t\t}\n\t\t\tif ($this->replaceQuote[0] == '\\\\'){\n\t\t\t\t$s = adodb_str_replace(array('\\\\',\"\\0\"),array('\\\\\\\\',\"\\\\\\\\000\"),$s);\n\t\t\t}\n\t\t\treturn \"'\".str_replace(\"'\",$this->replaceQuote,$s).\"'\";\n\t\t}\n\n\t\t// undo magic quotes for \"\n\t\t$s = str_replace('\\\\\"','\"',$s);\n\t\treturn \"'$s'\";\n\t}", "public function getString()\n {\n return $this->format('%s%s%s');\n }", "function nice_addslashes($string)\n{\n // if magic quotes is on the string is already quoted, just return it\n if(MAGIC_QUOTES)\n return $string;\n else\n return addslashes($string);\n}", "function addQuote($var)\n\t{\n\t\tif (isset($var))\n\t\t{\n\t\t\t$string = str_replace(\"||\",\"'\",$var);\n\t\t\t$string = str_replace('||||','\"',$string);\n\t\t}\n\n\t\treturn $string;\n\t}", "private function _backupQuote($str) {\n $str = str_replace(array(\"\\x00\", \"\\x0a\", \"\\x0d\", \"\\x1a\"), array('\\0', '\\n', '\\r', '\\Z'), $str);\n $str = str_replace('\\\\', '\\\\\\\\', $str);\n\n return str_replace('\\'', '\\'\\'', $str);\n }", "public function quote(string $value): string\n {\n return implode('.', array_map(function ($part) {\n return \"`$part`\";\n }, explode('.', $value)));\n }", "public static function quote($value)\n {\n return QueryParser::quote($value);\n }", "function quote_smart($value)\n {\n return $value;\n }", "function qa_gpc_to_string($string)\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\treturn get_magic_quotes_gpc() ? stripslashes($string) : $string;\n}", "protected function quote($literal)\n {\n return \"'\" . addslashes($literal) . \"'\";\n }", "static public function escape ( $str )\n\t{\n\t\treturn trim(self::instance(0)->quote($str), '\\'');\n\t}", "public function quote ( $mVal )\n {\n return (is_string($mVal)) ? PDO::quote($mVal) : $mVal;\n }", "function escapeSimple($string) {\n return $this->dbH->quote($string);\n }", "public function quote($value)\n\t{\n\t\tif ($value === NULL)\n\t\t{\n\t\t\treturn 'NULL';\n\t\t}\n\t\telseif ($value === TRUE)\n\t\t{\n\t\t\treturn \"'1'\";\n\t\t}\n\t\telseif ($value === FALSE)\n\t\t{\n\t\t\treturn \"'0'\";\n\t\t}\n\t\telseif ($value instanceof Expression)\n\t\t{\n\t\t\t// Use the raw expression\n\t\t\treturn $value->value();\n\t\t}\n\t\telseif ($value instanceof Query)\n\t\t{\n\t\t\treturn '('.$value->compile($this).') ';\n\t\t}\n\t\telseif (is_int($value))\n\t\t{\n\t\t\treturn (int) $value;\n\t\t}\n\t\telseif (is_float($value))\n\t\t{\n\t\t\t// Convert to non-locale aware float to prevent possible commas\n\t\t\treturn sprintf('%F', $value);\n\t\t}\n\t\telseif (is_array($value))\n\t\t{\n\t\t\t// Supports MVA attributes\n\t\t\treturn '('.implode(',', $this->quoteArr($value)).')';\n\t\t}\n\n\t\treturn $this->escape($value);\n\t}", "function escapeQuote($input, $strip=1) {\r\n\r\n\t$string = stripslashes(trim($input));\r\n\tif ($strip) $string = strip_tags($string);\r\n\t$result = \"\";\r\n\t\r\n\tfor ($i=0;$i<strlen($string);$i++) {\r\n\r\n\t\t$char = substr($string,$i,1);\r\n\t\tif ($char == \"'\") $result .= \"''\";\r\n\t\telseif ($char == \"\\r\") $result .= \"\";\r\n\t\telse $result .= $char;\r\n\r\n\t}\r\n\r\n\treturn \"'\".$result.\"'\";\r\n\r\n}", "public function quote($value)\n {\n if ($value === null)\n {\n return 'null';\n }\n elseif ($value === true)\n {\n return \"'1'\";\n }\n elseif ($value === false)\n {\n return \"'0'\";\n }\n elseif (is_object($value))\n {\n // 未使用,因为query并没有分开到db_query类去\n //if ($value instanceof db_query)\n //{\n //// Create a sub-query\n //return '('.$value->compile($this).')';\n //}\n if ($value instanceof db_expression)\n {\n // Use a raw expression\n return $value->value();\n }\n else\n {\n // Convert the object to a string\n return $this->quote((string) $value);\n }\n }\n elseif (is_array($value))\n {\n return '('.implode(', ', array_map(array($this, __FUNCTION__), $value)).')';\n }\n elseif (is_int($value))\n {\n return \"'{$value}'\";\n }\n elseif (is_float($value))\n {\n // Convert to non-locale aware float to prevent possible commas\n //return sprintf('%F', $value);\n return $value;\n }\n\n return $this->escape($value);\n }", "protected function quoteContent(string $content): string {\n return \"'\".str_replace(\n ['\\\\', \"\\r\", \"\\n\", \"'\"],\n ['\\\\\\\\', '\\\\r', '\\\\n', \"\\\\'\"],\n $content\n ).\"'\";\n }", "public function toString($escape = '\"'): string\n {\n $r = '';\n $a = $this->toArray($escape);\n foreach ($a as $i) {\n $r .= ' ' . $i;\n }\n return trim($r);\n }", "public function quote($text, $escaped = true) {\n return '\\'' . ($escaped ? $this->getEscaped($text) : $text) . '\\'';\n }", "public function escapeString(string $value): string;", "public function nameQuote($name)\n {\n return json_encode($name);\n\n }", "public static function quote($n) {\n global $_STORAGE;\n return \"'\" . $_STORAGE['Controller']->EscapeString($n) . \"'\";\n }", "function Quote($var='')\n\t{\n\t\tif (is_string($var) || is_numeric($var) || is_null($var)) {\n\t\t\treturn trim(str_replace(\"'\",\"''\",$var));\n\t\t} else if (is_array($var)) {\n\t\t\treturn array_map(array($this, 'Quote'), $var);\n\t\t} else {\n\t\t\ttrigger_error(\"Invalid type passed to DB quote\", E_USER_ERROR);\n\t\t\treturn false;\n\t\t}\n\t}", "public function escape($string) {\n\t\t\treturn str_replace(\"'\", \"''\", $string);\n\t\t}" ]
[ "0.76372737", "0.7116245", "0.68340015", "0.6698825", "0.66868883", "0.6665269", "0.6660876", "0.66060334", "0.6601523", "0.65798753", "0.6541228", "0.6525636", "0.6521907", "0.6472696", "0.645455", "0.6454229", "0.6442873", "0.64425737", "0.64340484", "0.6418185", "0.64106715", "0.6408622", "0.6405615", "0.64002496", "0.6399424", "0.63959527", "0.6388709", "0.6379702", "0.6359681", "0.63531405", "0.6331455", "0.632138", "0.6321368", "0.6296406", "0.6290947", "0.6287325", "0.6263726", "0.62600183", "0.6246015", "0.6237149", "0.6225864", "0.6210231", "0.61869895", "0.61862904", "0.6182462", "0.61754537", "0.61725235", "0.6169977", "0.6169977", "0.6165657", "0.616299", "0.61604565", "0.6147294", "0.6141329", "0.6131443", "0.61308134", "0.6115168", "0.6113888", "0.6106481", "0.6105097", "0.60997874", "0.6081008", "0.6077414", "0.60664487", "0.60664487", "0.60664487", "0.60637265", "0.6061851", "0.60615", "0.6060678", "0.6033109", "0.60320544", "0.6027498", "0.60272163", "0.6026462", "0.6016256", "0.6012512", "0.60101885", "0.59952515", "0.59842324", "0.59554523", "0.5946267", "0.59454495", "0.5935589", "0.5927853", "0.59254766", "0.5913926", "0.5887711", "0.58866084", "0.5878829", "0.5877679", "0.5874546", "0.58730066", "0.58695436", "0.5848906", "0.5843786", "0.58430904", "0.58223766", "0.5814207", "0.58106095" ]
0.7508239
1
Some custom styles for slides in Revolution Slider admin
Некоторые пользовательские стили для слайдов в админ-панели Revolution Slider
function aitRevSliderAdminStyles(){ wp_enqueue_style('ait-revolution-slider-admin-css', THEME_URL . '/design/admin-plugins/revslider.css'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sb_slideshow_edit_admin_style() {\n\tif (!sb_verify_post_type('slideshow')) return; // verify post type\n?>\n\t<style type=\"text/css\">\n\t\tth.column-id { width:50px; }\n\t\tth.column-shortcode { width:180px; }\n\t\tinput.urlfield { width:155px; }\n\t</style>\n<?php\n}", "function create_slider() {\n $labels = array(\n 'name' => 'Slides',\n 'singular_name' => 'Slide',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Slide',\n 'edit_item' => 'Edit Slide',\n 'new_item' => 'New Slide',\n 'all_items' => 'All Slides',\n 'view_item' => 'View Slide',\n 'search_items' => 'Search Slides',\n 'not_found' => 'No Slides found',\n 'not_found_in_trash' => 'No Slides found in Trash',\n 'parent_item_colon' => '',\n 'menu_name' => 'Slider'\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'slides' ),\n 'capability_type' => 'post',\n 'has_archive' => false,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'yarpp_support' => true,\n 'supports' => array( 'title', 'thumbnail' )\n );\n\n register_post_type( 'slide', $args );\n}", "function criar_custom_post_slides(){\n\n\t$args_slides_post_type = array(\n\t\t'labels' => array('name' => 'Slides'),\n\t\t'public' => false,\n\t\t'exclude_from_search' => true,\n\t\t'publicly_queryable' => true,\n\t\t'show_ui' => true,\n\t\t'supports' => array('title','excerpt','thumbnail'),\n\t\t'register_meta_box_cb' => 'slides_meta_box' );\n\n\tregister_post_type( 'slide_tornese' , $args_slides_post_type );\n}", "function carousel_slider_inline_style( $carousel_id ) {\n\t\t$id = $carousel_id;\n\t\t$_nav_color = get_post_meta( $id, '_nav_color', true );\n\t\t$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );\n\t\t$_post_height = get_post_meta( $id, '_post_height', true );\n\t\t$_product_title_color = get_post_meta( $id, '_product_title_color', true );\n\t\t$_product_btn_bg_color = get_post_meta( $id, '_product_button_bg_color', true );\n\t\t$_product_btn_text_color = get_post_meta( $id, '_product_button_text_color', true );\n\t\t$content_sliders = get_post_meta( $id, '_content_slider', true );\n\n\t\t$slide_type = get_post_meta( $id, '_slide_type', true );\n\t\t$slide_type = in_array( $slide_type, carousel_slider_slide_type() ) ? $slide_type : 'image-carousel';\n\n\t\t$_arrow_size = get_post_meta( $id, '_arrow_size', true );\n\t\t$_arrow_size = empty( $_arrow_size ) ? 48 : absint( $_arrow_size );\n\n\t\t$_bullet_size = get_post_meta( $id, '_bullet_size', true );\n\t\t$_bullet_size = empty( $_bullet_size ) ? 10 : absint( $_bullet_size );\n\n\t\techo \"<style type=\\\"text/css\\\">\";\n\n\t\t// Arrows Nav\n\t\techo \"\n #id-{$id} .necoyoad-carousel-slider-nav-icon {\n fill: {$_nav_color}\n }\n #id-{$id} .necoyoad-carousel-slider-nav-icon:hover {\n fill: {$_nav_active_color}\n }\n #id-{$id} .owl-prev,\n #id-{$id} .owl-next,\n #id-{$id} .necoyoad-carousel-slider-nav-icon {\n height: {$_arrow_size}px;\n width: {$_arrow_size}px\n }\n #id-{$id}.arrows-outside .owl-prev {\n left: -{$_arrow_size}px\n }\n #id-{$id}.arrows-outside .owl-next {\n right: -{$_arrow_size}px\n }\n \";\n\n\t\t// Dots Nav\n\t\techo \"\n\t\t #id-{$id} .owl-dots .owl-dot span {\n background-color: {$_nav_color};\n width: {$_bullet_size}px;\n height: {$_bullet_size}px;\n }\n #id-{$id} .owl-dots .owl-dot.active span,\n #id-{$id} .owl-dots .owl-dot:hover span {\n background-color: {$_nav_active_color}\n }\n\t\t\";\n\n\t\t// Product Carousel Slider\n\t\tif ( $slide_type == 'product-carousel' ) {\n\t\t\techo \"\n\t\t #id-{$id} .necoyoad-carousel-slider__product h3,\n #id-{$id} .necoyoad-carousel-slider__product .price {\n color: {$_product_title_color};\n }\n\n #id-{$id} .necoyoad-carousel-slider__product a.add_to_cart_button,\n #id-{$id} .necoyoad-carousel-slider__product a.added_to_cart,\n #id-{$id} .necoyoad-carousel-slider__product a.quick_view,\n #id-{$id} .necoyoad-carousel-slider__product .onsale {\n background-color: {$_product_btn_bg_color};\n color: {$_product_btn_text_color};\n }\n\n #id-{$id} .necoyoad-carousel-slider__product .star-rating span:before {\n color: {$_product_btn_bg_color};\n }\n\t\t \";\n\t\t}\n\n\t\t// Content Carousel\n\t\tif ( $slide_type == 'hero-banner-slider' && $content_sliders ) {\n\t\t\tforeach ( $content_sliders as $slide_id => $slide ) {\n\t\t\t\t// Title Style\n\t\t\t\t$heading_font_size = ! empty( $slide['heading_font_size'] ) ? esc_attr( $slide['heading_font_size'] ) : 40;\n\t\t\t\t$heading_gutter = ! empty( $slide['heading_gutter'] ) ? esc_attr( $slide['heading_gutter'] ) : '30px';\n\t\t\t\t$heading_color = ! empty( $slide['heading_color'] ) ? esc_attr( $slide['heading_color'] ) : '#ffffff';\n\t\t\t\techo \"#id-{$id} .hero__cell-{$slide_id} .necoyoad-carousel-slider-hero__cell__heading {\n\t\t\t\t\tfont-size: {$heading_font_size}px;\n\t\t\t\t\tmargin-bottom: {$heading_gutter};\n\t\t\t\t\tcolor: {$heading_color};\n\t\t\t\t}\";\n\t\t\t\t// Description Style\n\t\t\t\t$description_font_size = ! empty( $slide['description_font_size'] ) ? esc_attr( $slide['description_font_size'] ) : 20;\n\t\t\t\t$description_gutter = ! empty( $slide['description_gutter'] ) ? esc_attr( $slide['description_gutter'] ) : '30px';\n\t\t\t\t$description_color = ! empty( $slide['description_color'] ) ? esc_attr( $slide['description_color'] ) : '#ffffff';\n\t\t\t\techo \"#id-{$id} .hero__cell-{$slide_id} .necoyoad-carousel-slider-hero__cell__description{\n\t\t\t\t\tfont-size: {$description_font_size}px;\n\t\t\t\t\tmargin-bottom: {$description_gutter};\n\t\t\t\t\tcolor: {$description_color};\n\t\t\t\t}\";\n\t\t\t\t// Button Style\n\t\t\t\tif ( isset( $slide['link_type'] ) && ( $slide['link_type'] == 'button' ) ) {\n\n\t\t\t\t\t$_btn_1_type = ! empty( $slide['button_one_type'] ) ? esc_attr( $slide['button_one_type'] ) : 'normal';\n\t\t\t\t\t$_btn_1_bg_color = ! empty( $slide['button_one_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_bg_color'] ) : '#00d1b2';\n\t\t\t\t\t$_btn_1_color = ! empty( $slide['button_one_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_color'] ) : '#ffffff';\n\t\t\t\t\t$_btn_1_border_width = ! empty( $slide['button_one_border_width'] ) ? esc_attr( $slide['button_one_border_width'] ) : '0px';\n\t\t\t\t\t$_btn_1_border_radius = ! empty( $slide['button_one_border_radius'] ) ? esc_attr( $slide['button_one_border_radius'] ) : '3px';\n\n\t\t\t\t\tif ( $_btn_1_type == 'stroke' ) {\n\t\t\t\t\t\techo \"\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-1 {\n\t\t\t\t\t\t\tborder: {$_btn_1_border_width} solid {$_btn_1_bg_color};\n\t\t\t\t\t\t\tborder-radius: {$_btn_1_border_radius};\n\t\t\t\t\t\t\tbackground-color: transparent;\n\t\t\t\t\t\t\tcolor: {$_btn_1_bg_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-1:hover {\n\t\t\t\t\t\t\tborder: {$_btn_1_border_width} solid {$_btn_1_bg_color};\n\t\t\t\t\t\t\tbackground-color: {$_btn_1_bg_color};\n\t\t\t\t\t\t\tcolor: {$_btn_1_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo \"\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-1 {\n\t\t\t\t\t\t\tbackground-color: {$_btn_1_bg_color};\n\t\t\t\t\t\t\tborder: {$_btn_1_border_width} solid {$_btn_1_bg_color};\n\t\t\t\t\t\t\tborder-radius: {$_btn_1_border_radius};\n\t\t\t\t\t\t\tcolor: {$_btn_1_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$_btn_2_type = ! empty( $slide['button_two_type'] ) ? esc_attr( $slide['button_two_type'] ) : 'normal';\n\t\t\t\t\t$_btn_2_bg_color = ! empty( $slide['button_two_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_bg_color'] ) : '#00d1b2';\n\t\t\t\t\t$_btn_2_color = ! empty( $slide['button_two_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_color'] ) : '#ffffff';\n\t\t\t\t\t$_btn_2_border_width = ! empty( $slide['button_two_border_width'] ) ? esc_attr( $slide['button_two_border_width'] ) : '0px';\n\t\t\t\t\t$_btn_2_border_radius = ! empty( $slide['button_two_border_radius'] ) ? esc_attr( $slide['button_two_border_radius'] ) : '3px';\n\t\t\t\t\tif ( $_btn_2_type == 'stroke' ) {\n\t\t\t\t\t\techo \"\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-2 {\n\t\t\t\t\t\t\tborder: {$_btn_2_border_width} solid {$_btn_2_bg_color};\n\t\t\t\t\t\t\tborder-radius: {$_btn_2_border_radius};\n\t\t\t\t\t\t\tbackground-color: transparent;\n\t\t\t\t\t\t\tcolor: {$_btn_2_bg_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-2:hover {\n\t\t\t\t\t\t\tborder: {$_btn_2_border_width} solid {$_btn_2_bg_color};\n\t\t\t\t\t\t\tbackground-color: {$_btn_2_bg_color};\n\t\t\t\t\t\t\tcolor: {$_btn_2_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo \"\n\t\t\t\t\t\t#id-{$id} .cs-hero-button-{$slide_id}-2 {\n\t\t\t\t\t\t\tbackground-color: {$_btn_2_bg_color};\n\t\t\t\t\t\t\tborder: {$_btn_2_border_width} solid {$_btn_2_bg_color};\n\t\t\t\t\t\t\tborder-radius: {$_btn_2_border_radius};\n\t\t\t\t\t\t\tcolor: {$_btn_2_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo \"</style>\";\n\t}", "public function my_add_styles_admin() {\n\t\t//get the list of sliders\n\t\t$shortcode_list = get_option( 'slider_type' );\n\t\tif ( ! $shortcode_list || empty( $shortcode_list ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$shortcode_list = json_encode( $shortcode_list );\n\n\t\tglobal $current_screen;\n\t\t$type = $current_screen->post_type;\n\n\t\tif ( is_admin() && 'post' == $type || 'page' == $type ) {\n\n\t\t\tglobal $post;\n\t\t\tif ( ! is_object( $post ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//if any slider is already selected get the value\n\t\t\t$value = get_post_meta( $post->ID, '_slider_meta_value', true );\n\t\t\t?>\n\t\t\t<script type=\"text/javascript\">\n\t\t\t\tvar shortcodes = '<?php echo $shortcode_list; ?>';\n\t\t\t\tvar posts = '<?php global $post;echo $post->ID;?>';\n\t\t\t\tvar old_value = '<?php echo $value; ?>'; \n\t\t\t</script>\n\t\t\t<?php\n\n\t\t}\n\t}", "function vdtestim_style_preview () {\n\n\t$vdtestim_options = get_option( 'vdtestim_global_settings' );\n\t$vdtestim_style_options = get_option( 'vdtestim_style_settings' );\n\t$default_gravatar_url = $vdtestim_options['default_gravatar_url'];\n\n\t$slide_testimonials = $vdtestim_style_options['slide'];\n\t$num_testimonials = $vdtestim_style_options['num_testimonials'];\n\t\n\t?>\n\n\n\t<div id=\"testimonials\" class=\"<?php if ( $slide_testimonials === 'yes' ) echo \"slider\" ?> testimonials\">\n\n\n\n\t\t<?php\n\n\n\n\t\t\t// WP_Query arguments\n\t\t\t$args = array (\n\t\t\t\t'post_type' => 'testimonials',\n\t\t\t\t'posts_per_page' => $num_testimonials\n\t\t\t);\n\n\t\t\t// The Query\n\t\t\t$query = new WP_Query( $args );\n\n\t\t\t// The Loop\n\t\t\t$i = 0;\n\t\t\tif ( $query->have_posts() ) {\n\t\t\t\twhile ( $query->have_posts() ) {\n\t\t\t\t\t$query->the_post();\n\n\t\t\t\t\t?>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"testimonial <?php if ( $slide_testimonials == 'yes' ) { echo 'slide'; } else { echo 'no-slide'; } if ($i === $num_testimonials -1 ) { echo ' last'; } ?> \">\n\n\t\t\t\t\t\t<?php\n\n\n\t\t\t\t\t\t$vdtestim_company = get_post_meta( get_the_id(), 'vdtestim_company', true );\n\t\t\t\t\t\t$vdtestim_website = get_post_meta( get_the_id(), 'vdtestim_website', true );\n\t\t\t\t\t\t$vdtestim_position = get_post_meta( get_the_id(), 'vdtestim_position', true );\n\t\t\t\t\t\t$vdtestim_email = get_post_meta( get_the_id(), 'vdtestim_email', true );\n\t\t\t\t\t\t$vdtestim_wpautop = get_post_meta( get_the_id(), 'vdtestim_testimonial', true );\n\t\t\t\t\t\t$vdtestim_text = wpautop( $vdtestim_wpautop );\n\t\t\t\t\t\t$size = 50;\n\t\t\t\t\t\t$default = plugins_url( 'vertusdl-testimonials/images/defaultavatar-green.png' );\n\t\t\t\t\t\t$grav_url = \"http://www.gravatar.com/avatar/\" . md5( strtolower( trim( $vdtestim_email ) ) ) . \"?d=\" . urlencode( $default_gravatar_url ) . \"&s=\" . $size;\n\n\t\t\t\t\t\t// To Do - Change gravatar default back to pluginurl in production!!!!!!!!\n\n\t\t\t\t\t\t?>\n\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t<blockquote><p><?php echo vdtestim_shorten_testimonial( $vdtestim_text ); ?>\n\t\t\t\t\t\t<a href=\"<?php echo get_permalink(); ?>\">Read More</a></p></blockquote>\n\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<img src=\"<?php echo $grav_url; ?>\" alt=\"\" height=\"50\" width=\"50\"/>\n\t\t\t\t\t\t\t<span class=\"testimonials-before\">by: </span><span class=\"testimonials-name\"><?php the_title(); ?></span><br />\n\t\t\t\t\t\t\t<span class=\"testimonials-before\">from: </span><a href=\"<?php echo $vdtestim_website; ?>\" target=\"_blank\" rel=\"nofollow\" title=\"Link to <?php echo $vdtestim_company;?> Website.\"><span class=\"testimonials-company\"><?php echo $vdtestim_company; ?></span></a>\n\t\t\t\t\t\t</p>\t\n\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<?php\n\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t} \n\t\t?>\n\n\t\t<?php if ( $slide_testimonials == 'yes' ) { ?>\n\n\t\t\t<div class=\"slider_controls\">\n\t\t <div class=\"prev testimonial_slide\" data-target=\"prev\" >&lsaquo;</div>\n\t\t <div class=\"next testimonial_slide\" data-target=\"next\" >&rsaquo;</div>\n\t\t <ul class=\"pager_list\"></ul>\n\t\t </div>\n\n\t\t<?php } ?> \n\n\t</div>\n\n\n\t<?php\n}", "function auxin_metabox_fields_general_slider(){\n $slider_ids = array( 'none' => __( 'Choose ..', 'phlox') );\n\n $args = array(\n 'post_type' => 'slider',\n 'orderby' => \"date\",\n 'post_status' => 'publish',\n 'posts_per_page' => -1\n );\n\n $th_query = null;\n $th_query = new WP_Query( $args );\n if( $th_query->have_posts() ): while ( $th_query->have_posts() ) : $th_query->the_post();\n $opts = get_post_meta( $th_query->post->ID, 'slider-data', true );\n if( ! isset( $opts ) || ! is_array( $opts ) ) continue;\n $type = $opts[\"type\"];\n $slider_ids[ $th_query->post->ID ] = '['.$type.' ] '. get_the_title();\n unset( $args, $opts, $type );\n endwhile; endif;\n wp_reset_postdata();\n\n\n // Get all revslider aliases----------------------------------------\n\n if ( class_exists('RevSlider') ) { // if revSlider is active\n\n $slider = new RevSlider();\n $arrSliders = $slider->getArrSliders();\n\n foreach ($arrSliders as $slider) {\n $slider_ids[ $slider->getAlias() ] = '[revo ] '.$slider->getTitle();\n }\n\n unset( $slider, $arrSliders );\n }\n\n // Get all layeslider items ----------------------------------------\n\n // Check if the file is available to prevent warnings\n if( class_exists('LS_Sliders') ) {\n\n // Get WPDB Object\n global $wpdb;\n\n // Table name\n $table_name = $wpdb->prefix . \"layerslider\";\n\n // Get sliders\n $sliders = $wpdb->get_results( \"SELECT * FROM $table_name\n WHERE flag_hidden = '0' AND flag_deleted = '0'\n ORDER BY date_c ASC LIMIT 100\" );\n\n // Iterate over the sliders\n foreach($sliders as $key => $item) {\n $slider_ids['ls_'.$item->id] = '[layer] '. $item->name;\n }\n\n }\n\n // Get all cute slider items ---------------------------------------\n\n // Check if the file is available to prevent warnings\n if( function_exists('cuteslider_init') ) {\n\n // Get WPDB Object\n global $wpdb;\n\n // Table name\n $table_name = $wpdb->prefix . \"cuteslider\";\n\n // Get sliders\n $sliders = $wpdb->get_results( \"SELECT * FROM $table_name\n WHERE flag_hidden = '0' AND flag_deleted = '0'\n ORDER BY date_c ASC LIMIT 100\" );\n\n // Iterate over the sliders\n foreach($sliders as $key => $item) {\n $slider_ids['cs_'.$item->id] = '[cute ] '. $item->name;\n }\n\n }\n\n if ( defined( 'MSWP_AVERTA_VERSION' ) ) {\n\n $ms_sliders = get_masterslider_names( true );\n foreach ($ms_sliders as $ms_id => $ms_label ) {\n $slider_ids['ms_'.$ms_id] = '[Master] '. $ms_label;\n }\n }\n\n $slider_ids = apply_filters( 'auxin_page_header_slider_ids', $slider_ids );\n\n /*==================================================================================================\n\n Add Page Option meta box\n\n *=================================================================================================*/\n\n $model = new Auxin_Metabox_Model();\n $model->title = __( 'Slider Options', 'phlox');\n $model->type = array('page');\n $model->fields= array(\n\n array(\n 'title' => __('Page Slider', 'phlox'),\n 'description' => __('Please select the slider you want to display at top of the page.', 'phlox'),\n 'id' => 'top_slider_id',\n 'id_deprecated' => 'top_slider_id',\n 'type' => 'select',\n 'choices' => $slider_ids\n ),\n array(\n 'title' => __('Slider top margin', 'phlox'),\n 'description' => __('The height of empty space above page slider in pixel.', 'phlox'),\n 'id' => 'top_slider_margin_top',\n 'type' => 'text',\n 'default' =>''\n ),\n array(\n 'title' => __('Slider bottom margin', 'phlox'),\n 'description' => __('The height of empty space below page slider in pixel.', 'phlox'),\n 'id' => 'top_slider_margin_bottom',\n 'type' => 'text',\n 'default' =>''\n )\n // array(\n // 'title' => __('Slider Width', 'phlox'),\n // 'description' => __('If you choose \"Full\", the slider fits to the page width.<br/>', 'phlox'),\n // 'id' => 'top_slider_width',\n // 'id_deprecated' => 'top_slider_width',\n // 'type' => 'select',\n // 'default' => 'full',\n // 'choices' => array(\n // 'full' => __('Full' , 'phlox'),\n // 'boxed' => __('Boxed', 'phlox')\n // )\n // ),\n );\n\n return $model;\n}", "public function add_inline_styles() {\n\n\t\t// echo '<div class=\"revsliderstyles\">';\n\t\techo '<style scoped>';\n\n\t\t$db = new UniteDBRev();\n\n\t\t$styles = $db->fetch( GlobalsRevSlider::$table_css );\n\t\tforeach ( $styles as $key => $style ) {\n\t\t\t$handle = str_replace( '.tp-caption', '', $style['handle'] );\n\t\t\tif ( ! isset( $this->class_include[ $handle ] ) ) { unset( $styles[ $key ] ); }\n\t\t}\n\n\t\t$styles = UniteCssParserRev::parseDbArrayToCss( $styles, \"\\n\" );\n\t\t$styles = UniteCssParserRev::compress_css( $styles );\n\t\techo $styles;\n\n\t\techo '</style>' . \"\\n\";\n\t\t// echo '</div>';\n\t}", "private function putResponsitiveStyles() {\n\n\t\t$bannerWidth = $this->slider->getParam( 'width' );\n\t\t$bannerHeight = $this->slider->getParam( 'height' );\n\n\t\t$arrItems = $this->getResponsitiveValues();\n\n\t\t?>\n\t\t<style type='text/css'>\n\t\t\t#<?php echo $this->sliderHtmlID?>, #<?php echo $this->sliderHtmlID_wrapper?> { width:<?php echo $bannerWidth?>px; height:<?php echo $bannerHeight?>px;}\n\t\t\t<?php\n\t\t\tforeach ( $arrItems as $item ) :\n\t\t\t\t$strMaxWidth = '';\n\n\t\t\t\tif ( $item['maxWidth'] >= 0 ) {\n\t\t\t\t\t$strMaxWidth = 'and (max-width: ' . $item['maxWidth'] . 'px)'; }\n\n\t\t\t?>\n\n\t\t\t @media only screen and (min-width: <?php echo $item['minWidth']?>px) <?php echo $strMaxWidth?> {\n\t\t\t \t\t #<?php echo $this->sliderHtmlID?>, #<?php echo $this->sliderHtmlID_wrapper?> { width:<?php echo $item['sliderWidth']?>px; height:<?php echo $item['sliderHeight']?>px;}\n\t\t\t }\n\n\t\t\t<?php\n\t\t\tendforeach;\n\t\t\techo '</style>';\n\t}", "function redart_slider( $id = false ){\r\n\r\n\t$slider = false;\r\n\r\n\tif( $id || is_home() || get_post_type() == 'page' ) {\r\n\r\n\t\tif( is_home() ) $id = get_option('page_for_posts');\r\n\t\telseif( is_page() ) $id = redart_ID();\r\n\r\n\t\t$slider_key = get_post_meta( $id, '_tpl_default_settings', true );\r\n\t\t\r\n\t\tif( is_array( $slider_key) && array_key_exists('slider_type', $slider_key) ) {\r\n\t\t\t\r\n\t\t\tif( ( $slider_key['slider_type'] == 'revolutionslider' ) && ( array_key_exists( 'revolutionslider_id', $slider_key ) ) && ( array_key_exists( 'show_slider', $slider_key ) ) ) {\r\n\t\t\t\t\r\n\t\t\t\t// revolution slider\r\n\t\t\t\t$slider = '<div id=\"slider\"><div class=\"dt-sc-main-slider\" id=\"dt-sc-rev-slider\">';\r\n\t\t\t\t\t$slider .= do_shortcode('[rev_slider '. $slider_key['revolutionslider_id'] .']');\r\n\t\t\t\t$slider .= '</div></div>';\r\n\t\t\t\r\n\t\t\t} elseif( ( $slider_key['slider_type'] == 'layerslider' ) && ( array_key_exists('layerslider_id', $slider_key) ) && ( array_key_exists( 'show_slider', $slider_key ) ) ) {\r\n\r\n\t\t\t\t// layer slider\r\n\t\t\t\t$slider = '<div id=\"slider\"><div class=\"dt-sc-main-slider\" id=\"dt-sc-layer-slider\">';\r\n\t\t\t\t\t$slider .= do_shortcode('[layerslider id=\"'. $slider_key['layerslider_id'] .'\"]');\r\n\t\t\t\t$slider .= '</div></div>';\r\n\r\n\t\t\t} elseif( ( $slider_key['slider_type'] == 'customslider' ) && ( array_key_exists('customslider_sc', $slider_key) ) && ( array_key_exists( 'show_slider', $slider_key ) ) ) {\r\n\t\r\n\t\t\t\t// Custom Slider\r\n\t\t\t\t$slider = '<div id=\"slider\"><div class=\"dt-sc-main-slider\" id=\"dt-sc-custom-slider\">';\r\n\t\t\t\t\t$slider .= redart_wp_kses(do_shortcode( $slider_key['customslider_sc'] ));\r\n\t\t\t\t$slider .= '</div></div>';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $slider;\r\n}", "function soliloquy_custom_css_output( $slider, $data ) {\n\n // If there is no style, return the default slider HTML.\n $instance = Soliloquy_Shortcode::get_instance();\n if ( ! $instance->get_config( 'custom_css', $data ) ) {\n \treturn $slider;\n }\n\n // Build out the custom CSS.\n $style = '<style type=\"text/css\">' . $instance->minify( html_entity_decode( $data['config']['custom_css'] ) ) . '</style>';\n\n // Return the style prepended to the slider.\n return $style . $slider;\n\n}", "function nirvana_ppslider_output( $slides ) {\n\t$nirvanas = nirvana_get_theme_options();\n\textract($nirvanas);\n\n\tif (count($slides)>0): ?>\n\t<div class=\"slider-wrapper theme-default <?php if($nirvana_fpsliderarrows==\"Visible on Hover\") echo \"slider-navhover\"; ?> slider-<?php echo preg_replace(\"/[^a-z0-9]/i\",\"\", strtolower($nirvana_fpslidernav)); ?>\">\n\t\t <div class=\"ribbon\"></div>\n\t\t <div id=\"slider\" class=\"nivoSlider\">\n\t\t<?php foreach( $slides as $id => $slide ):\n\t\t\t\tif ( $slide['image'] ) { ?>\n\t\t\t\t<a href=\"<?php echo ($slide['link'] ? $slide['link'] : '#'); ?>\">\n\t\t\t\t\t<img src=\"<?php echo $slide['image']; ?>\" data-thumb=\"<?php echo $slide['image']; ?>\" alt=\"<?php echo ( $slide['title'] ? esc_attr($slide['title']) : '' ); ?>\" <?php if ($slide['title'] || $slide['text']) : ?>title=\"#caption<?php echo $id;?>\" <?php endif; ?> />\n\t\t\t\t</a><?php } ?>\n\t\t <?php endforeach; ?>\n\t\t </div>\n\t\t <?php foreach( $slides as $id => $slide ): ?>\n\t\t\t\t<div id=\"caption<?php echo $id;?>\" class=\"nivo-html-caption\">\n\t\t\t\t\t<h2> <?php echo $slide['title'] ?></h2>\n\t\t\t\t\t<div class=\"slider-text-separator\"></div>\n\t\t\t\t\t<div class=\"slide-text\"> <div class=\"inline-slide-text\"> <?php echo $slide['text'] ?></div> </div>\n\t\t\t\t\t<?php if($nirvana_slidereadmore && $slide['link'] ) { ?>\n\t\t\t\t\t<div class=\"readmore\">\n\t\t\t\t\t\t<a href=\"<?php echo esc_url($slide['link']) ?>\"><?php echo esc_attr($nirvana_slidereadmore) ?> <i class=\"column-arrow\"></i> </a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php } ?>\n\t\t\t\t</div>\n\n\t\t<?php endforeach; ?>\n\t\t </div>\n\t<?php endif;\n}", "function klippe_core_set_full_screen_image_slider_custom_style_for_vc_shortcodes( $style ) {\n\t\t$current_style = '.wpb_content_element.wpb_mkdf_full_screen_image_slider_item > .wpb_element_wrapper {\n\t\t\tbackground-color: #f4f4f4;\n\t\t}';\n\t\t\n\t\t$style .= $current_style;\n\t\t\n\t\treturn $style;\n\t}", "public function render()\n {\n return view('gallery::components.slider.'.$this->theme);\n }", "function _sp_custom_box_slide_settings() {\n\tglobal $post;\n\n\t// bail if not correct post type\n\tif ( get_post_type() != 'sp-slider' )\n\t\treturn;\n\n\twp_nonce_field( '_sp_process_meta_slide_settings', '_sp_meta_slide_settings_nonce' );\n\n\t$output = '';\n\n\t$output .= '<div class=\"slide-settings-container\">' . PHP_EOL;\n\t$output .= '<h3 class=\"header\">' . __( 'Slide Settings', 'sp-theme' ) . '<small>' . __( 'Please use the \"Save\" button below to save the settings in this box.', 'sp-theme' ) . '</small></h3>' . PHP_EOL;\n\t$output .= '<div class=\"inner-container postbox\">' . PHP_EOL;\n\n\t$output .= '</div><!--close .inner-container-->' . PHP_EOL;\n\t$output .= '<div class=\"alert\"><i class=\"icon-ok\" aria-hidden=\"true\"></i><i class=\"icon-ban-circle\" aria-hidden=\"true\"></i></div>' . PHP_EOL;\n\t$output .= '</div><!--close .slide-settings-container-->' . PHP_EOL;\n\n\techo $output;\n}", "private function get_flex_slider_markup( $slide ) {\n\n $image_attributes = array(\n 'src' => $slide['src'],\n 'height' => $slide['height'],\n 'width' => $slide['width'],\n 'alt' => $slide['alt'],\n 'rel' => $slide['rel'],\n 'class' => $slide['class'],\n 'title' => $slide['title']\n );\n\n if ( $this->settings['smartCrop'] == 'disabled_pad') {\n\n $image_attributes['style'] = $this->flex_smart_pad( $image_attributes, $slide );\n\n }\n\n $attributes = apply_filters( 'metaslider_flex_slider_image_attributes', $image_attributes, $slide, $this->slider->ID );\n\n $html = $this->build_image_tag( $attributes );\n\n $anchor_attributes = apply_filters( 'metaslider_flex_slider_anchor_attributes', array(\n 'href' => $slide['url'],\n 'target' => $slide['target']\n ), $slide, $this->slider->ID );\n\n if ( strlen( $anchor_attributes['href'] ) ) {\n $html = $this->build_anchor_tag( $anchor_attributes, $html );\n }\n\n // add caption\n if ( strlen( $slide['caption'] ) ) {\n $html .= '<div class=\"caption-wrap\"><div class=\"caption\">' . $slide['caption'] . '</div></div>';\n }\n\n $attributes = apply_filters( 'metaslider_flex_slider_list_item_attributes', array(\n 'data-thumb' => isset($slide['data-thumb']) ? $slide['data-thumb'] : \"\",\n 'style' => \"display: none; width: 100%;\",\n 'class' => \"slide-{$this->slide->ID} ms-image\"\n ), $slide, $this->slider->ID );\n\n $li = \"<li\";\n\n foreach ( $attributes as $att => $val ) {\n if ( strlen( $val ) ) {\n $li .= \" \" . $att . '=\"' . esc_attr( $val ) . '\"';\n }\n }\n\n $li .= \">\" . $html . \"</li>\";\n\n $html = $li;\n\n\n return apply_filters( 'metaslider_image_flex_slider_markup', $html, $slide, $this->settings );\n\n }", "function thirdtheme_custom_slider()\n {\n add_theme_support('post-thumbnails');\n $args = array(\n 'labels' => array('name' =>__(' custom slider'),\n 'add_new' =>__('add new slider')),\n \n 'public' => true,\n 'menu_icon' => 'dashicons-format-image',\n 'show_in_menu' => true,\n 'has_archive' => true,\n 'supports' => array( 'title', 'thumbnail' )); \n register_post_type('slider',$args);\n }", "function qodef_core_set_clients_carousel_custom_style_for_vc_shortcodes( $style ) {\n\t\t$current_style = '.wpb_content_element.wpb_qodef_clients_carousel_item > .wpb_element_wrapper { \n\t\t\tbackground-color: #f4f4f4; \n\t\t}';\n\t\t\n\t\t$style .= $current_style;\n\t\t\n\t\treturn $style;\n\t}", "static function add_slides(): void {\r\n self::add_acf_field(self::slides, [\r\n 'label' => 'Slides',\r\n 'min' => 1,\r\n 'max' => 4,\r\n 'layout' => 'row',\r\n 'collapsed' => '',\r\n 'type' => 'repeater',\r\n 'instructions' => 'These are the slides on the front page. These will only display if the slider is set to Medium Big Grid Slide. You can choose one or two slides.',\r\n 'required' => 1,\r\n 'conditional_logic' => 0,\r\n 'button_label' => 'Add slide',\r\n 'wrapper' => [\r\n 'width' => '',\r\n 'class' => '',\r\n 'id' => '',\r\n ],\r\n ]);\r\n }", "function lumo_slider(){\n\t\t$slides = new Lumo_Slider_Query();\n\n\t\tif( $slides->have_posts() ) :\n\t\t\t$display = \"\";\n\t\t\techo '<ul id=\"lumo-slider\">';\n\t\t\twhile( $slides->have_posts() ) : $slides->the_post();\n\t\t\t\t$slide_image = get_the_post_thumbnail(get_the_ID(), 'home-slider-image-lowrez');\n\t\t\t\t$slide_image_url = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID(), 'home-slider-image') );\n\n\t\t\t\t$set_width_fullrez = sprintf('width=\"100%%\" data-fullrez=\"%s\"', esc_url($slide_image_url) );\n\n\t\t\t\t$slide_image = preg_replace('/width=\"\\d+\" +height=\"\\d+\"/', $set_width_fullrez, $slide_image);\n\n\t\t\t\techo '<li class=\"lumo-slide\" style=\"'.$display.'\">';\n\t\t\t\t\techo $slide_image;\n\t\t\t\t\techo '<div class=\"hero-placeholder\"></div>';\n\t\t\t\t\techo '<div class=\"hero\">';\n\t\t\t\t\t\t\techo '<h4 class=\"hero\">'.get_the_title().'</h4>';\n\t\t\t\t\t\t\tthe_content();\n\t\t\t\t\techo '</div>';\n\t\t\t\techo '</li>';\n\t\t\t\t$display = \" display:none; \";\n\t\t\tendwhile;\n\t\t\twp_reset_postdata();\n\t\t\techo '</ul>';\n\t\tendif;\n\t}", "function em_slider_cpt() {\n\t// Bonne pratique : le type de Post doit être préfixé, au singulier, et ne devrait pas dépasser 20 caractères\n\tregister_post_type( \n\t\t'slider', \t\t\t\t\t\t\t\n\t\tarray(\n\t\t\t'label' => 'Sliders', \t\t\t\n\t\t\t'labels' => array( \t\t\t\n\t\t\t\t'name' => 'Sliders',\n\t\t\t\t'singular-name' => 'Slider',\n\t\t\t\t'all_items' => 'Tous les sliders',\n\t\t\t\t'add_new_item' => 'Ajouter un slider',\n\t\t\t\t'edit_item' => 'Editer le slider',\n\t\t\t\t'new_item' => 'Nouveau slider',\n\t\t\t\t'view_item' => 'Voir le slider',\n\t\t\t\t'search_item' => 'Rechercher parmis les sliders',\n\t\t\t\t'not_found' => 'Pas de slider trouvé',\n\t\t\t\t'not_found_in_trash' => 'Pas de slider dans la corbeille'\n\t\t\t),\n\t\t\t'public' => true, \t\t\t\t\n\t\t\t'show_in_rest' => true, \n\t\t\t'capability_type' => 'post',\t\n\t\t\t'supports' => array(\t\t\t\n\t\t\t\t'title',\n\t\t\t\t'thumbnail',\n\t\t\t\t'editor'\t\n\t\t\t),\n\t\t\t'has_archive' => true, \n\t\t\t// Url vers une icone ou à choisir parmi celles de WP : https://developer.wordpress.org/resource/dashicons/.\n\t\t\t'menu_icon' => 'dashicons-images-alt2'\n\t\t) \n\t);\n}", "function vslider_admin_styles() {\r\n wp_enqueue_style('thickbox');\r\n wp_register_style('colorpicker-css', WP_PLUGIN_URL.'/vslider/picker/colorpicker.css');\r\n wp_enqueue_style( 'colorpicker-css');\r\n wp_register_style('tooltip-css', WP_PLUGIN_URL.'/vslider/css/tooltip.css');\r\n wp_enqueue_style( 'tooltip-css');\r\n}", "function vantage_metaslider_filter_flex_slide($html, $slide, $settings){\n\tif( is_admin() && !empty($GLOBALS['vantage_is_main_slider']) ) return $html;\n\n\tif(!empty($slide['caption']) && function_exists('filter_var') && filter_var($slide['caption'], FILTER_VALIDATE_URL) !== false) {\n\n\t\t$settings['height'] = round( $settings['height'] / 1080 * $settings['width'] );\n\t\t$settings['width'] = 1080;\n\n\t\t$html = sprintf(\"<img src='%s' class='ms-default-image' width='%d' height='%d' />\", $slide['thumb'], intval($settings['width']), intval($settings['height']));\n\n\t\tif (strlen($slide['url'])) {\n\t\t\t$html = '<a href=\"' . esc_url( $slide['url'] ) . '\" target=\"' . esc_attr( $slide['target'] ) . '\">' . $html . '</a>';\n\t\t}\n\n\t\t$caption = '<div class=\"content\">';\n\t\tif (strlen($slide['url'])) $caption .= '<a href=\"' . $slide['url'] . '\" target=\"' . $slide['target'] . '\">';\n\t\t$caption .= sprintf('<img src=\"%s\" width=\"%d\" height=\"%d\" />', esc_url($slide['caption']), intval($settings['width']), intval($settings['height']));\n\t\tif (strlen($slide['url'])) $caption .= '</a>';\n\t\t$caption .= '</div>';\n\n\t\t$html = $caption . $html;\n\n\t\t$thumb = isset($slide['data-thumb']) && strlen($slide['data-thumb']) ? \" data-thumb=\\\"{$slide['data-thumb']}\\\"\" : \"\";\n\n\t\t$html = '<li style=\"display: none;\"' . $thumb . ' class=\"vantage-slide-with-image\">' . $html . '</li>';\n\t}\n\n\treturn $html;\n}", "function tmpl_tevolution_single_slider_script(){\r\n\t$is_edit=(isset($_REQUEST['action']) && $_REQUEST['action']=='edit')?'1':'';\t\r\n\tif(is_single() && $is_edit==''){\r\n\t\tglobal $post;\r\n\t\t$post_id = $post->ID;\r\n\t\tif(get_post_meta($post_id,'_event_id',true)){\r\n\t\t\t$post_id=get_post_meta($post_id,'_event_id',true);\r\n\t\t}\r\n\t\t$slider_more_listing_img = bdw_get_images_plugin($post_id,'tevolution_thumbnail');\r\n\t\t\r\n\t\t/*get the theme setting option*/\r\n\t\t$supreme2_theme_settings = (function_exists('supreme_prefix')) ? get_option(supreme_prefix().'_theme_settings'):'';\r\n\t\t\r\n\t\t/*Slider div id */\r\n\t\t$silde_gallery_id=apply_filters('tmpl_detail_slider_gallery_id','silde_gallery');\r\n\t\t$slider_id=apply_filters('tmpl_detail_slider_id','slider');\r\n\t\t/*tmpl_detail_slider_options filter hook for change any slider option */\r\n\t\t$slider_options = apply_filters('tmpl_detail_slider_options',array('animation'=>'slide','slideshow'=>'false','direction'=>'horizontal','slideshowSpeed'=>7000,'animationLoop'=>'true','startAt'=> 0,'smoothHeight'=> 'true','easing'=> \"swing\",'pauseOnHover'=> 'true','video'=> 'true','controlNav'=> 'true','directionNav'=> 'true','prevText'=> '','nextText'=> '','animationLoop'=>'true','itemWidth'=>'60','itemMargin'=>'20'));\r\n\t\t?>\r\n <script type=\"text/javascript\" async >\r\n\t\t\tjQuery(window).load(function()\r\n\t\t\t{ \r\n\t\t\t\tjQuery('#<?php echo $silde_gallery_id?>').flexslider({\r\n\t\t\t\t\tanimation: '<?php echo $slider_options['animation'];?>',\r\n\t\t\t\t\t<?php if(!empty($slider_more_listing_img) && (count($slider_more_listing_img) < apply_filters('tmpl_slider_image_count',4))):?>\r\n\t\t\t\t\tcontrolNav: false,\r\n\t\t\t\t\tdirectionNav: false,\r\n\t\t\t\t\tprevText: '<?php echo $slider_options['prevText'];?>',\r\n\t\t\t\t\tnextText: '<?php echo $slider_options['nextText'];?>',\r\n\t\t\t\t\t<?php \r\n\t\t\t\t\telse: ?>\r\n\t\t\t\t\tcontrolNav: <?php echo $slider_options['controlNav'];?>,\r\n\t\t\t\t\tdirectionNav: <?php echo $slider_options['directionNav'];?>,\r\n\t\t\t\t\t<?php endif; ?>\r\n\t\t\t\t\tanimationLoop: false,\r\n\t\t\t\t\tslideshow: <?php echo $slider_options['slideshow'];?>,\r\n\t\t\t\t\titemWidth: <?php echo $slider_options['itemWidth'];?>,\r\n\t\t\t\t\titemMargin: <?php echo $slider_options['itemMargin'];?>,\r\n\t\t\t\t\t <?php if($supreme2_theme_settings['rtlcss'] ==1 || is_rtl() || (isset($_SESSION['rtlcss']) && $_SESSION['rtlcss']==1)){ ?>\r\n\t\t\t\t\trtl: true,\r\n\t\t\t\t\t<?php } ?>\r\n\t\t\t\t\ttouch:true,\r\n\t\t\t\t\tasNavFor: '#slider'\r\n\t\t\t\t });\r\n\t\t\t\tjQuery('#<?php echo $slider_id;?>').flexslider(\r\n\t\t\t\t{\r\n\t\t\t\t\tanimation: '<?php echo $slider_options['animation'];?>',\r\n\t\t\t\t\tslideshow: <?php echo $slider_options['slideshow'];?>,\r\n\t\t\t\t\tdirection: '<?php echo $slider_options['direction'];?>',\r\n\t\t\t\t\tslideshowSpeed: 7000,\r\n\t\t\t\t\tanimationLoop: <?php echo $slider_options['animationLoop'];?>,\r\n\t\t\t\t\tstartAt: 0,\r\n\t\t\t\t\tsmoothHeight: <?php echo $slider_options['smoothHeight'];?>,\r\n\t\t\t\t\teasing: '<?php echo $slider_options['easing'];?>',\r\n\t\t\t\t\tpauseOnHover: <?php echo $slider_options['pauseOnHover'];?>,\r\n\t\t\t\t\tvideo: <?php echo $slider_options['video'];?>,\r\n\t\t\t\t\tcontrolNav: <?php echo $slider_options['controlNav'];?>,\r\n\t\t\t\t\tdirectionNav: <?php echo $slider_options['directionNav'];?>,\t\r\n\t\t\t\t\ttouch:true,\t\t\t\t\t\r\n\t\t\t\t\tstart: function(slider)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tjQuery('body').removeClass('loading');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t <?php if($supreme2_theme_settings['rtlcss'] ==1 || is_rtl() || (isset($_SESSION['rtlcss']) && $_SESSION['rtlcss']==1)){ ?>\r\n\t\t\t\t\t,rtl: true,\r\n\t\t\t\t\t<?php } ?>\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/*FlexSlider: Default Settings*/\r\n\t\t</script>\r\n <?php\r\n\t\t\r\n\t}\r\n}", "protected function get_admin_slide() {\n\n // get some slide settings\n $thumb = $this->get_thumb();\n $slide_label = apply_filters(\"metaslider_image_slide_label\", __(\"Image Slide\", \"ml-slider\"), $this->slide, $this->settings);\n $attachment_id = $this->get_attachment_id();\n\n // slide row HTML\n $row = \"<tr id='slide-{$this->slide->ID}' class='slide image flex responsive nivo coin' data-attachment-id='{$attachment_id}'>\n <td class='col-1'>\n <div class='metaslider-ui-controls ui-sortable-handle'>\n <h4 class='slide-details'>{$slide_label}</h4>\";\n if (metaslider_this_is_trash($this->slide)) {\n $row .= '<div class=\"row-actions trash-btns\">';\n $row .= \"<span class='untrash'>{$this->get_undelete_button_html()}</span>\";\n // $row .= ' | ';\n // $row .= \"<span class='delete'>{$this->get_perminant_delete_button_html()}</span>\";\n $row .= '</div>';\n } else {\n $row .= $this->get_delete_button_html();\n $row .= $this->get_update_image_button_html();\n }\n $row .= \"</div>\n <div class='metaslider-ui-inner'>\n <button class='update-image image-button' data-button-text='\" . __(\"Update slide image\", \"ml-slider\") . \"' title='\" . __(\"Update slide image\", \"ml-slider\") . \"' data-slide-id='{$this->slide->ID}' data-attachment-id='{$attachment_id}'>\n <div class='thumb' style='background-image: url({$thumb})'></div>\n </button>\n </div>\n </td>\n <td class='col-2'>\n <div class='metaslider-ui-inner'>\n \" . $this->get_admin_slide_tabs_html() . \"\n <input type='hidden' name='attachment[{$this->slide->ID}][type]' value='image' />\n <input type='hidden' class='menu_order' name='attachment[{$this->slide->ID}][menu_order]' value='{$this->slide->menu_order}' />\n <input type='hidden' name='resize_slide_id' data-slide_id='{$this->slide->ID}' data-width='{$this->settings['width']}' data-height='{$this->settings['height']}' />\n </div>\n </td>\n </tr>\";\n\n return $row;\n\n }", "public function get_admin_tabs() {\n\n $slide_id = absint($this->slide->ID);\n $attachment_id = $this->get_attachment_id();\n $attachment = get_post($attachment_id);\n\n $url = esc_attr(get_post_meta($slide_id, 'ml-slider_url', true));\n $target = get_post_meta($slide_id, 'ml-slider_new_window', true) ? 'checked=checked' : '';\n \n // TODO: make this DRY\n // caption\n $caption = esc_textarea($this->slide->post_excerpt);\n $image_caption = html_entity_decode($attachment->post_excerpt, ENT_NOQUOTES, 'UTF-8');\n\t\t$inherit_image_caption_check = '';\n\t\t$inherit_image_caption_class = '';\n\t\tif ($this->is_field_inherited('caption')) {\n\t\t\t$inherit_image_caption_check = 'checked=checked';\n\t\t\t$inherit_image_caption_class = ' inherit-from-image';\n\t\t}\n // alt\n $alt = esc_attr(get_post_meta($slide_id, '_wp_attachment_image_alt', true));\n $image_alt = esc_attr(get_post_meta($attachment_id, '_wp_attachment_image_alt', true ));\n\t\t$inherit_image_alt_check = ''; \n\t\t$inherit_image_alt_class = '';\n\t\tif ($this->is_field_inherited('alt')) {\n\t\t\t$inherit_image_alt_check = 'checked=checked';\n\t\t\t$inherit_image_alt_class = ' inherit-from-image';\t\n\t\t}\n // title\n $title = esc_attr(get_post_meta($slide_id, 'ml-slider_title', true));\n\t\t$image_title = esc_attr($attachment->post_title);\n\t\t$inherit_image_title_check = '';\n $inherit_image_title_class = '';\n\t\tif ($this->is_field_inherited('title')) {\n\t\t\t$inherit_image_title_check = 'checked=checked';\n\t\t\t$inherit_image_title_class = ' inherit-from-image';\n\t\t}\n\n ob_start();\n include(METASLIDER_PATH . 'admin/views/slides/tabs/general.php');\n $general_tab = ob_get_clean();\n\n if (!$this->is_valid_image()) {\n $message = __(\"Warning: The image data does not exist. Please re-upload the image.\", \"ml-slider\");\n\n $general_tab = \"<div class='warning'>{$message}</div>\" . $general_tab;\n }\n\n ob_start();\n include(METASLIDER_PATH .'admin/views/slides/tabs/seo.php');\n $seo_tab = ob_get_clean();\n\n $tabs = array(\n 'general' => array(\n 'title' => __(\"General\", \"ml-slider\"),\n 'content' => $general_tab\n ),\n 'seo' => array(\n 'title' => __(\"SEO\", \"ml-slider\"),\n 'content' => $seo_tab\n )\n );\n\n if (version_compare(get_bloginfo('version'), 3.9, '>=')) {\n\n $crop_position = get_post_meta($slide_id, 'ml-slider_crop_position', true); \n\n if (!$crop_position) {\n $crop_position = 'center-center';\n }\n\n ob_start();\n include(METASLIDER_PATH .'admin/views/slides/tabs/crop.php');\n $crop_tab = ob_get_clean();\n \n $tabs['crop'] = array(\n 'title' => __(\"Crop\", \"ml-slider\"),\n 'content' => $crop_tab\n );\n\n }\n\n return apply_filters(\"metaslider_image_slide_tabs\", $tabs, $this->slide, $this->slider, $this->settings);\n\n }", "public function ghostpool_post_type_slides() {\t\n\t\n\t\t\tregister_post_type( 'gp_slide', array( \n\t\t\t\t'labels' => array( \n\t\t\t\t\t'name' => esc_html__( 'Slides', 'socialize-plugin' ),\n\t\t\t\t\t'singular_name' => esc_html__( 'Slide', 'socialize-plugin' ),\n\t\t\t\t\t'menu_name' => esc_html__( 'Slides', 'socialize-plugin' ),\n\t\t\t\t\t'all_items' => esc_html__( 'All Slides', 'socialize-plugin' ),\n\t\t\t\t\t'add_new' => _x( 'Add New', 'portfolio', 'socialize-plugin' ),\n\t\t\t\t\t'add_new_item' => esc_html__( 'Add New Slide', 'socialize-plugin' ),\n\t\t\t\t\t'edit_item' => esc_html__( 'Edit Slide', 'socialize-plugin' ),\n\t\t\t\t\t'new_item' => esc_html__( 'New Slide', 'socialize-plugin' ),\n\t\t\t\t\t'view_item' => esc_html__( 'View Slide', 'socialize-plugin' ),\n\t\t\t\t\t'search_items' => esc_html__( 'Search Slides', 'socialize-plugin' ),\n\t\t\t\t\t'not_found' => esc_html__( 'No slides found', 'socialize-plugin' ),\n\t\t\t\t\t'not_found_in_trash' => esc_html__( 'No slides found in Trash', 'socialize-plugin' ),\n\t\t\t\t ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_nav_menus' => true,\n\t\t\t\t'_builtin' => false,\n\t\t\t\t'_edit_link' => 'post.php?post=%d',\n\t\t\t\t'capability_type' => 'post',\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'rewrite' => array( 'slug' => 'slide' ),\n\t\t\t\t'menu_position' => 20,\n\t\t\t\t'with_front' => true,\n\t\t\t\t'has_archive' => 'gp_slides',\n\t\t\t\t'supports' => array( 'title', 'thumbnail' )\n\t\t\t ) );\n\t\n\t\n\t\t\t/*--------------------------------------------------------------\n\t\t\tSlide Categories Taxonomy\n\t\t\t--------------------------------------------------------------*/\n\t\t\t\n\t\t\tregister_taxonomy( 'gp_slides', 'gp_slide', array( \n\t\t\t\t'labels' => array( \n\t\t\t\t\t'name' => esc_html__( 'Slide Categories', 'socialize-plugin' ),\n\t\t\t\t\t'singular_name' => esc_html__( 'Slide Category', 'socialize-plugin' ),\n\t\t\t\t\t'all_items' => esc_html__( 'All Slide Categories', 'socialize-plugin' ),\n\t\t\t\t\t'add_new' => _x( 'Add New', 'portfolio', 'socialize-plugin' ),\n\t\t\t\t\t'add_new_item' => esc_html__( 'Add New Slide Category', 'socialize-plugin' ),\n\t\t\t\t\t'edit_item' => esc_html__( 'Edit Slide Category', 'socialize-plugin' ),\n\t\t\t\t\t'new_item' => esc_html__( 'New Slide Category', 'socialize-plugin' ),\n\t\t\t\t\t'view_item' => esc_html__( 'View Slide Category', 'socialize-plugin' ),\n\t\t\t\t\t'search_items' => esc_html__( 'Search Slide Categories', 'socialize-plugin' ),\n\t\t\t\t\t'menu_name' => esc_html__( 'Slide Categories', 'socialize-plugin' )\n\t\t\t\t ),\n\t\t\t\t'show_in_nav_menus' => true,\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'rewrite' => array( 'slug' => 'slides' )\n\t\t\t ) );\n\n\n\t\t\tregister_taxonomy_for_object_type( 'gp_slides', 'gp_slide' );\n\n\n\t\t\t/*--------------------------------------------------------------\n\t\t\tSlide Admin Columns\n\t\t\t--------------------------------------------------------------*/\n\n\t\t\tif ( ! function_exists( 'ghostpool_slide_edit_columns' ) ) { \n\t\t\t\tfunction ghostpool_slides_edit_columns( $columns ) {\n\t\t\t\t\t$columns = array( \n\t\t\t\t\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t\t\t\t\t'title' => esc_html__( 'Title', 'socialize-plugin' ),\t\n\t\t\t\t\t\t'slide_categories' => esc_html__( 'Categories', 'socialize-plugin' ),\n\t\t\t\t\t\t'slide_image' => esc_html__( 'Image', 'socialize-plugin' ),\t\t\t\t\n\t\t\t\t\t\t'date' => esc_html__( 'Date', 'socialize-plugin' )\n\t\t\t\t\t );\n\t\t\t\t\treturn $columns;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tadd_filter( 'manage_edit-gp_slide_columns', 'ghostpool_slides_edit_columns' );\n\t\t\n\t\t}", "function __construct() {\r\n parent::__construct(\r\n 'st_slider', // Base ID\r\n esc_html__( 'WPCoupon Slider', 'wp-coupon' ), // Name\r\n array(\r\n 'description' => esc_html__( 'Display a Slider', 'wp-coupon' ),\r\n 'classname' => 'st-slider-widget'\r\n ), // Args\r\n array(\r\n 'width' => 530\r\n )\r\n );\r\n }", "function vslider_defaults() {\r\n $default = array(\r\n 'slideNr' => 3,\r\n \t'width' => 630,\r\n \t'height' => 280,\r\n \t'spw' => 7,\r\n \t'sph' => 5,\r\n \t'delay' => 3000,\r\n \t'sDelay' => 30,\r\n \t'opacity' => '0.7',\r\n \t'titleSpeed' => 1500,\r\n \t'effect' => '',\r\n \t'navigation' => 'true',\r\n 'stickynav' => 'false',\r\n \t'links' => 'true',\r\n 'buttons' => 'true',\r\n \t'hoverPause' => 'false',\r\n \t'fontFamily' => 'Arial, Helvetica, sans-serif',\r\n \t'titleFont' => 16,\r\n \t'fontSize' => 12,\r\n \t'textColor' => 'FFFFFF',\r\n \t'bgColor' => '222222',\r\n \t'customImg' => 'true',\r\n 'catchimage' => 'true',\r\n \t'chars' => 200,\r\n \t'excerpt' => 'true',\r\n \t'slide1' => WP_PLUGIN_URL.'/vslider/images/slide1.jpg',\r\n \t'slide2' => WP_PLUGIN_URL.'/vslider/images/slide2.jpg',\r\n \t'slide3' => WP_PLUGIN_URL.'/vslider/images/slide3.jpg',\r\n 'target' => 'none',\r\n 'navstyle' => 'none',\r\n 'arrstyle' => 'none',\r\n 'navplace' => '10px 0 10px 100px',\r\n 'layout' => 'stripe-bottom',\r\n 'borderWidth' => '5',\r\n 'borderRadius' => '0',\r\n 'borderColor' => 'FFFFFF',\r\n 'holdermar' => '10px 10px 10px 10px',\r\n 'holderfloat' => 'none',\r\n 'timthumb' => 1,\r\n 'quality' => '80',\r\n 'vnavenable' => 0,\r\n 'randimg' => 0\r\n );\r\nreturn $default;\r\n}", "function _cute_slider($options)\n\t{\n\t\tglobal $meta_fields;\n\t\n\t\tif ( isset ( $options['ww_header_style'] ) && !empty ( $options['ww_header_style'] ) ) { \n\t\t\t$style = 'uh_'.$options['ww_header_style'];\n\t\t} else { \n\t\t\t$style = '';\n\t\t}\n\n\t?>\n\t\t<div id=\"slideshow\" class=\"<?php echo $style; ?>\">\n\t\t\t<div class=\"bgback\"></div>\n\t\t\t\n\t\t\t<div data-images=\"<?php echo IMAGES_URL; ?>/\" id=\"sparkles\"></div>\n\t\t\t\t<div class=\"container zn_slideshow\">\n\t\t\t\t\t<?php echo do_shortcode('[cuteslider id=\"'.$options['cuteslider_id'].'\"]'); ?>\n\t\t\t\t</div>\n\t\t\t<div class=\"zn_header_bottom_style\"></div>\n\t\t</div><!-- end page_header -->\n\t<?php\t\n\t}", "function ge_custom_slider_scripts_and_style() {\n wp_enqueue_script( 'flex-slider-js', plugins_url( 'ge-custom-product-slider/assets/js/jquery.flexslider-min.js' ), array('jquery'), '', false );\n wp_enqueue_script( 'slider', plugins_url( 'ge-custom-product-slider/assets/js/slider.js' ), array('jquery'), '', false );\n\n wp_enqueue_style( 'flex-slider-css', plugins_url( 'ge-custom-product-slider/assets/css/flexslider.css' ) );\n wp_enqueue_style( 'slider-style-css', plugins_url( 'ge-custom-product-slider/assets/css/slider-style.css' ) );\n\n}", "function rps_activate()\n{\n $width = '460';\n $height = '470';\n $post_per_slide = '1';\n $total_posts = '8';\n $slider_content = '3';\n rps_post_img_thumb();\n}", "function zp_custom_post_type() {\n\n if ( ! class_exists( 'Super_CPT' ) )\n\n return;\n\n\n\t\t\n/*----------------------------------------------------*/\n// Add Slide Custom Post Type\n/*---------------------------------------------------*/\n \n \t$slide_custom_default = array(\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt'),\n\t\t'rewrite' => array('with_front' => false,\n \t\t\t\t\t\t'slug' => 'slide'),\n\t\t'menu_icon' => get_stylesheet_directory_uri().'/include/cpt/images/slide.png',\n\t);\n \t$slideshow_custom_default = array(\n\t\t'rewrite' => array('with_front' => false,\n \t\t\t\t\t\t'slug' => 'slideshow'),\n\t);\n\t// register slide post type\n\t$slide = new Super_Custom_Post_Type( 'slide', 'Slide', 'Slides', $slide_custom_default );\n\t$slideshow = new Super_Custom_Taxonomy( 'slideshow' ,'Slideshow', 'Slideshows', 'cat',$slideshow_custom_default);\n\tconnect_types_and_taxes( $slide, array( $slideshow ) );\n\n\t// Slide meta boxes\n\t$slide->add_meta_box( array(\n\t\t'id' => 'slider-settings',\n\t\t'context' => 'normal',\n\t\t'priority' => 'high',\n\t\t'fields' => array(\n\t\t\t'video_type_value' => array( 'label' => __( 'Video Type','novo'), 'type' => 'select', 'options' => array('youtube' => 'Youtube','vimeo' => 'Vimeo') , 'data-zp_desc' => __( 'Select appropriate video type','novo') ),\n\t\t\t'video_id_value' => array( 'label' => __( 'Video ID','novo'), 'type' => 'text', 'data-zp_desc' => __( 'Enter video ID. Example: VdvEdMMtNMY','novo') ),\n\t\t\t'slider_button_value' => array( 'label' => __( 'Slide Button','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Enter Button Name','novo') ),\t\t\t\t\n\t\t\t'slider_link_value' => array( 'label' => __( 'Slide Link','novo' ), 'type' => 'text' , 'data-zp_desc' => __( 'Put slide link here','novo') ),\t\t\n\t\t)\n\t) );\t\n\n\t$slide->add_meta_box( array(\n\t\t'id' => 'slide-order',\n\t\t'context' => 'side',\n\t\t'fields' => array(\n\t\t\t'slide_number_value' => array( 'type' => 'text', 'data-zp_desc' => __( 'Define slide order. Ex. 1,2,3,4,...','novo') ),\t\t\n\t\t)\n\t) );\t\t\n\n\t// manage slide columns \n\tfunction zp_add_slide_columns($columns) {\n\t\treturn array(\n\t\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t\t'title' => __('Title', 'novo'),\n\t\t\t'slideshow' => __('Slideshow', 'novo'),\n\t\t\t'slide_order' =>__( 'Slide Order', 'novo'),\n\t\t\t'date' => __('Date', 'novo'),\t\t\t\n\t\t);\n\t}\n\tadd_filter('manage_slide_posts_columns' , 'zp_add_slide_columns');\n\n\tfunction zp_custom_slide_columns( $column, $post_id ) {\n\t\tswitch ( $column ) {\n\t\tcase 'slideshow' :\n\t\t\t$terms = get_the_term_list( $post_id , 'slideshow' , '' , ',' , '' );\n\t\t\tif ( is_string( $terms ) )\n\t\t\t\techo $terms;\n\t\t\telse\n\t\t\t\t_e( 'Unable to get author(s)', 'novo' );\n\t\t\tbreak;\n\t\n\t\tcase 'slide_order' :\n\t\t\techo get_post_meta( $post_id , 'slide_number_value' , true ); \n\t\t\tbreak;\n\t\t}\n\t}\n\tadd_action( 'manage_posts_custom_column' , 'zp_custom_slide_columns', 10, 2 );\n\t\n\t\n/*----------------------------------------------------*/\n\n// Add Portfolio Custom Post Type\n\n/*---------------------------------------------------*/\n\n\n\n\t$portfolio_custom_default = array(\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'excerpt'),\n\t\t'rewrite' => array('with_front' => false,\n \t\t\t\t\t\t'slug' => 'portfolio'),\n\t\t'menu_icon' => get_stylesheet_directory_uri().'/include/cpt/images/portfolio.png',\n\t);\n\t$portfolio_category_custom_default = array(\n\t\t'rewrite' => array('with_front' => false,\n \t\t\t\t\t\t'slug' => 'portfolio-category'),\t\n\t);\n\n\n\n\t// register portfolio post type\n\n\t$portfolio = new Super_Custom_Post_Type( 'portfolio', 'Portfolio', 'Portfolio', $portfolio_custom_default );\n\t$portfolio_category = new Super_Custom_Taxonomy( 'portfolio-category' ,'Portfolio Category', 'Portfolio Categories', 'cat',$portfolio_category_custom_default );\n\tconnect_types_and_taxes( $portfolio, array( $portfolio_category ) );\n\n\n\n\t// Portfolio meta boxes\n\t/*This if statement is to determine if lmseo_content_value has been checked or not. If I just use the \"checked\" option then it wont remember if if checked or not, it will always display checked. This way it will remember.*/\n\tglobal $post;\n\tif(get_post_meta( $post->ID, 'lmseo_content_value', true )){\n\t\t$lmseo_content_value_checked=array( 'label' => __( 'Portfolio Content','novo'),'type' => 'checkbox','data-zp_desc' => __( 'Define whether to display content or not','novo'), 'checked'=>'checked' );\n\t}else{\n\t\t$lmseo_content_value_checked=array( 'label' => __( 'Portfolio Content','novo'),'type' => 'checkbox','data-zp_desc' => __( 'Define whether to display content or not','novo'));\n\t}\n\n\t$portfolio->add_meta_box( array(\n\t\t'id' => 'portfolio-metaItem',\n\t\t'context' => 'normal',\n\t\t'priority' => 'high',\n\t\t'fields' => array(\n\t\t\t'lmseo_content_value'=>$lmseo_content_value_checked,\n\t\t\t'zp_project_label_value' => array( 'label' => __( 'Project Label','novo'), 'type' => 'text', 'data-zp_desc' => __( 'Define project label','novo') ),\n\t\t\t'zp_project_link_value' => array( 'label' => __( 'Project Link','novo'), 'type' => 'text', 'data-zp_desc' => __( 'Define project link','novo') ),\t\n\t\t)\n\t) );\n\n\n\t$portfolio->add_meta_box( array(\n\n\t\t'id' => 'portfolio-images',\n\n\t\t'context' => 'normal',\n\n\t\t'priority' => 'high',\n\n\t\t'fields' => array(\n\n\t\t\t'zp_image_1_value' => array( 'label' => __( 'Image 1','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Place here the full image path','novo' )),\t\t\n\n\t\t\t'zp_image_2_value' => array( 'label' => __( 'Image 2','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Place here the full image path','novo' ) ),\t\n\n\t\t\t'zp_image_3_value' => array( 'label' => __( 'Image 3','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Place here the full image path','novo' )),\t\n\n\t\t\t'zp_image_4_value' => array( 'label' => __( 'Image 4','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Place here the full image path','novo' )),\t\n\n\t\t\t'zp_image_5_value' => array( 'label' => __( 'Image 5','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'Place here the full image path','novo' )),\t\n\t\t)\n\n\t) );\n\n\n\n\t$portfolio->add_meta_box( array(\n\n\t\t'id' => 'portfolio-videos',\n\n\t\t'context' => 'normal',\n\n\t\t'priority' => 'high',\n\n\t\t'fields' => array(\n\n\t\t\t'zp_video_url_value' => array( 'label' => __( 'Youtube or Vimeo URL','novo'), 'type' => 'text', 'data-zp_desc' => __( 'Place here the video url. Example video url: YOUTUBE: http://www.youtube.com/watch?v=Sv5iEK-IEzw and VIMEO: http://vimeo.com/7585127','novo') ),\t\t\n\n\t\t\t'zp_video_embed_value' => array( 'label' => __( 'Embed Code','novo'), 'type' => 'text' , 'data-zp_desc' => __( 'If you are using anything else other than YouTube or Vimeo, paste the embed code here. This field will override anything from the above.','novo' )),\n\t\t)\n\n\t) );\t\t\n\n\t\n\n\t\n\n\t// manage portfolio columns \n\n\tfunction zp_add_portfolio_columns($columns) {\n\n\t\treturn array(\n\n\t\t\t'cb' => '<input type=\"checkbox\" />',\n\n\t\t\t'title' => __('Title', 'novo'),\n\n\t\t\t'portfolio-category' => __('Portfolio Category', 'novo'),\n\n\t\t\t'author' =>__( 'Author', 'novo'),\n\n\t\t\t'date' => __('Date', 'novo'),\n\t\t);\n\t}\n\n\tadd_filter('manage_portfolio_posts_columns' , 'zp_add_portfolio_columns');\n\n\n\n\tfunction zp_custom_portfolio_columns( $column, $post_id ) {\n\n\t\tswitch ( $column ) {\n\n\t\tcase 'portfolio-category' :\n\n\t\t\t$terms = get_the_term_list( $post_id , 'portfolio-category' , '' , ',' , '' );\n\n\t\t\tif ( is_string( $terms ) )\n\n\t\t\t\techo $terms;\n\n\t\t\telse\n\n\t\t\t\t_e( 'Unable to get author(s)', 'novo' );\n\n\t\t\tbreak;\n\t\t}\n\t}\n\tadd_action( 'manage_posts_custom_column' , 'zp_custom_portfolio_columns', 10, 2 );\n\n\n\n\n/*----------------------------------------------------*/\n// Add Post Custom Meta\n/*---------------------------------------------------*/\t\n\n\t$post_meta = new Super_Custom_Post_Meta( 'post' );\n\n\t$post_meta->add_meta_box( array(\n\n\t\t'id' => 'audio-settings',\n\n\t\t'context' => 'side',\n\n\t\t'priority' => 'high',\n\n\t\t'fields' => array(\n\n\t\t\t'zp_audio_mp3_url' => array( 'label' => __( 'Audio .mp3 URL','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The URL to the .mp3 audio file','novo') ),\n\t\t\t'zp_audio_ogg_url' => array( 'label' => __( 'Audio .ogg, .oga URL','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The URL to the .oga, .ogg audio file','novo') ),\n\t\t\t'zp_audio_prieview_image_url' => array( 'label' => __( 'Preview Image','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The preview image for this audio track','novo') ),\n\t\t\t'zp_audio_prieview_image_height' => array( 'label' => __( 'Preview Image Height','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The height of the poster image. Example: 300','novo') )\n\t\t)\n\n\t) );\n\n\t$post_meta->add_meta_box( array(\n\n\t\t'id' => 'link-settings',\n\n\t\t'context' => 'side',\n\n\t\t'priority' => 'high',\n\n\t\t'fields' => array(\n\t\t\t'zp_link_format' => array( 'label' => __( 'Enter link. E.g., http://www.yourlink.com','novo'), 'type' => 'text', 'data-zp_desc' => __( 'Input your link. e.g., http://www.yourlink.com','novo') )\n\t\t)\n\n\t) );\n\n\t$post_meta->add_meta_box( array(\n\n\t\t'id' => 'video-settings',\n\n\t\t'context' => 'side',\n\n\t\t'priority' => 'high',\n\n\t\t'fields' => array(\n\t\t\t'zp_video_m4v_url' => array( 'label' => __( 'Video File (.m4v)','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The URL to the .m4v video file','novo') ),\n\t\t\t'zp_video_ogv_url' => array( 'label' => __( 'Video File (.ogv)','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The URL to the .ogv video file','novo') ),\n\t\t\t'zp_video_prieview_image_height' => array( 'label' => __( 'Video Height','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The video height (e.g. 500).','novo') ),\n\t\t\t'zp_video_prieview_image_url' => array( 'label' => __( 'Preview Image','novo'), 'type' => 'text', 'data-zp_desc' => __( 'The preview image for this video.','novo') ),\n\t\t\t'zp_video_format_embed' => array( 'label' => __( 'Embed Video','novo'), 'type' => 'textarea', 'data-zp_desc' => __( 'If you are using something other than self hosted video such as Youtube or Vimeo, paste the embed code here. Width is best at 600px with any height. This field will override the above.','novo') ),\n\t\t)\n\n\t) );\t\t\t\n\n\n}", "function _sp_custom_box_slider_settings() {\n\tglobal $post;\n\n\t// bail if not correct post type\n\tif ( get_post_type() != 'sp-slider' )\n\t\treturn;\n\n\twp_nonce_field( '_sp_process_meta_slider_settings', '_sp_meta_slider_settings_nonce' );\t\n\n\tif ( $post->ID ) {\n\n\t\t$output = '';\n\t\t$output .= '<div class=\"slider-settings-container accordion\">' . PHP_EOL;\n\t\t$output .= '<h3 class=\"header\"><span class=\"caret-closed\"></span>' . __( 'Carousel Settings', 'sp-theme' ) . '<small>' . __( 'Please use the \"Publish/Update\" button to your right sidebar to save the settings in this box.', 'sp-theme' ) . '</small></h3>' . PHP_EOL;\n\t\t$output .= '<div class=\"accordion-container postbox\">' . PHP_EOL;\n\n\t\t$slider_array = sp_get_slider_settings( $post->ID );\n\n\t\t$output .= '<div class=\"options-container inner-container\">' . PHP_EOL; \n\n\t\tforeach( $slider_array as $key => $value ) {\n\t\t\t$context = '';\n\n\t\t\tif ( isset( $value['context'] ) )\n\t\t\t\t$context = $value['context'];\n\n\t\t\t$output .= '<div class=\"row ' . $context . '\">' . PHP_EOL;\n\t\t\t$output .= '<div class=\"' . sp_column_css( '', '', '5', '', '' ) . '\">' . PHP_EOL;\n\t\t\t$output .= '<label>' . $value['label'] . '</label><br />' . PHP_EOL;\n\t\t\t\n\t\t\t// check if setting is found if not use standard\n\t\t\tif ( isset( $value['saved_setting'] ) && $value['saved_setting'] != '' )\n\t\t\t\t$setting = $value['saved_setting'];\n\t\t\telse\n\t\t\t\t$setting = $value['std'];\n\n\t\t\tswitch( $value['field_type'] ) {\n\t\t\t\tcase 'radio':\n\t\t\t\t\t$output .= '<label>' . PHP_EOL;\n\t\t\t\t\t$output .= '<input type=\"radio\" name=\"' . esc_attr( $key ) . '\" value=\"on\" ' . checked( $setting, 'on', false ) . '/> ' . __( 'On', 'sp-theme' ) . '</label>' . PHP_EOL;\n\t\t\t\t\t$output .= '<label>' . PHP_EOL;\n\t\t\t\t\t$output .= '<input type=\"radio\" name=\"' . esc_attr( $key ) . '\" value=\"off\" ' . checked( $setting, 'off', false ) . '/> ' . __( 'Off', 'sp-theme' ) . '</label>' . PHP_EOL;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'text':\n\t\t\t\t\t$output .= '<input type=\"text\" name=\"' . esc_attr( $key ) . '\" value=\"' . esc_attr( $setting ) . '\" class=\"widefat\" />' . PHP_EOL;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'select':\n\t\t\t\t\t$output .= '<select name=\"' . esc_attr( $key ) . '\" class=\"select2-select\" data-no_results_text=\"' . __( 'No results match', 'sp-theme' ) . '\">' . PHP_EOL;\n\n\t\t\t\t\t// loop through the select options\n\t\t\t\t\tforeach( $value['attr'] as $v ) {\n\t\t\t\t\t\t$output .= '<option value=\"' . esc_attr( $v ) . '\" ' . selected( $v, $setting, false ) . '>' . $v . '</option>' . PHP_EOL;\n\t\t\t\t\t}\n\t\t\t\t\t$output .= '</select>' . PHP_EOL;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'colorpicker':\n\t\t\t\t\t$output .= '<input type=\"text\" value=\"' . esc_attr( $setting ) . '\" class=\"sp-colorpicker widefat\" name=\"' . esc_attr( $key ) . '\" />' . PHP_EOL;\n\t\t\t\t\tbreak;\t\n\t\t\t\t\n\t\t\t\tcase 'font':\n\t\t\t\t\t$fonts = sp_get_google_fonts();\n\t\t\t\t\t$output .= '<select name=\"' . esc_attr( $key ) . '\" class=\"select2-select font-select\" data-no_results_text=\"' . __( 'No results match', 'sp-theme' ) . '\">' . PHP_EOL;\n\t\t\t\t\t$output .= '<option value=\"none\">' . __( '--Please Select--', 'sp-theme' ) . '</option>' . PHP_EOL;\n\n\t\t\t\t\t// loop through the select options\n\t\t\t\t\tforeach( $fonts as $font ) {\n\t\t\t\t\t\t$output .= '<option value=\"' . esc_attr( $font['family'] ) . '\" ' . selected( $setting, $font['family'], false ) . '>' . $font['family'] . '</option>' . PHP_EOL;\n\t\t\t\t\t}\n\n\t\t\t\t\t$output .= '</select>' . PHP_EOL;\n\t\t\t\t\tbreak;\t\n\n\t\t\t\tcase 'font-variant':\n\t\t\t\t\t$output .= '<select name=\"' . esc_attr( $key ) . '\" class=\"select2-select font-variant-select\" data-no_results_text=\"' . __( 'No results match', 'sp-theme' ) . '\">' . PHP_EOL;\n\t\t\t\t\t$output .= '<option value=\"none\">' . __( '--Please Select--', 'sp-theme' ) . '</option>' . PHP_EOL;\n\n\t\t\t\t\t$font = sp_get_font( get_post_meta( $post->ID, '_sp_slider_title_font', true ) );\n\n\t\t\t\t\tif ( isset( $font ) && is_array( $font ) ) {\n\t\t\t\t\t\tforeach( $font['variants'] as $variant ) {\n\t\t\t\t\t\t\t$output .= '<option value=\"' . esc_attr( $variant ) . '\" ' . selected( $setting, $variant, false ) . '>' . $variant . '</option>' . PHP_EOL;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$output .= '</select>' . PHP_EOL;\n\t\t\t\t\tbreak;\t\n\n\t\t\t\tcase 'font-subsets':\n\t\t\t\t\t$output .= '<select name=\"' . esc_attr( $key ) . '[]\" class=\"select2-select font-subset-select\" multiple data-placeholder=\"' . __( '--Please Select--', 'sp-theme' ) . '\">' . PHP_EOL;\n\t\t\t\t\t$output .= '<option value=\"none\">' . __( '--Please Select--', 'sp-theme' ) . '</option>' . PHP_EOL;\n\n\t\t\t\t\t$font = sp_get_font( get_post_meta( $post->ID, '_sp_slider_title_font', true ) );\n\n\t\t\t\t\tif ( isset( $font ) && is_array( $font ) ) {\n\t\t\t\t\t\tforeach( $font['subsets'] as $subset ) {\n\t\t\t\t\t\t\tif ( is_array( $setting ) && in_array( $subset, $setting ) )\n\t\t\t\t\t\t\t\t$selected = 'selected=\"selected\"';\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t$selected = '';\n\n\t\t\t\t\t\t\t$output .= '<option value=\"' . esc_attr( $subset ) . '\" ' . $selected . '>' . $subset . '</option>' . PHP_EOL;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$output .= '</select>' . PHP_EOL;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'text-size':\n\t\t\t\t\t$output .= '<div class=\"size-slider\">' . PHP_EOL;\n\t\t\t\t\t$output .= '<div class=\"values\">' . PHP_EOL;\n\t\t\t\t\t$output .= '<span class=\"min\">1px</span>' . PHP_EOL;\n\t\t\t\t\t$output .= '<span class=\"max\">50px</span>' . PHP_EOL;\n\t\t\t\t\t$output .= '<span class=\"value\">1px</span>' . PHP_EOL;\n\t\t\t\t\t$output .= '</div>' . PHP_EOL;\n\t\t\t\t\t$output .= '<input type=\"hidden\" name=\"' . esc_attr( $key ) . '\" value=\"' . esc_attr( $setting ) . '\" />' . PHP_EOL;\n\t\t\t\t\t$output .= '<div class=\"slider\"></div>' . PHP_EOL;\n\t\t\t\t\t$output .= '<a href=\"#\" title=\"' . esc_attr__( 'Default', 'sp-theme' ) . '\" data-default=\"' . esc_attr( $value['std'] ) . '\" class=\"default-size button button-small\">' . __( 'Default', 'sp-theme' ) . '</a>' . PHP_EOL;\n\t\t\t\t\t$output .= '</div>' . PHP_EOL;\n\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\n\t\t\t$output .= '</div><!--close .column-->' . PHP_EOL;\n\n\t\t\t$output .= '<div class=\"' . sp_column_css( '', '', '7', '', '' ) . '\">' . PHP_EOL;\n\t\t\t$output .= '<p class=\"howto\">' . $value['desc'] . '</p>' . PHP_EOL;\n\t\t\t$output .= '</div><!--close .column-->' . PHP_EOL;\n\n\t\t\t$output .= '</div><!--close .row-->' . PHP_EOL;\n\t\t}\n\n\t\t$output .= '</div><!--close .inner-container-->' . PHP_EOL;\n\n\t\t$output .= '</div><!--close .accordion-container-->' . PHP_EOL;\n\t\t$output .= '</div><!--close .slider-settings-container-->' . PHP_EOL;\n\n\t\techo $output;\n\t}\n}", "function thirdtheme_blog_slider()\n {\n add_theme_support('post-thumbnails');\n add_image_size('small',102,102);\n $args = array(\n 'labels' => array('name' =>__('blog slider'),\n 'add_new' =>__('add new blog')),\n \n 'public' => true,\n 'menu_icon' =>'dashicons-buddicons-buddypress-logo',\n 'show_in_menu' => true,\n 'has_archive' => true,\n 'supports' => array( 'title', 'editor','thumbnail',)); \n register_post_type('blogslider',$args);\n }", "public function changeSlider(){\n $slider = $this->appearance->getAllSlider();\n return view('dashboard.slider',['slider' => $slider]);\n }", "function template_preprocess_views_lazy_slider(&$variables) {\n $options = $variables['options'] = $variables['view']->style_plugin->options;\n $page = 0;\n $col = 0;\n $items = [];\n $page_attributes_status = TRUE;\n foreach ($variables['rows'] as $result_index => $item) {\n $items[$page]['content'][$col]['content'] = $item;\n if ($page_attributes_status) {\n $page_attributes = [];\n if ($options['page_class_custom']) {\n $page_attributes['class'][] = $options['page_class_custom'];\n }\n $items[$page]['attributes'] = new Attribute($page_attributes);\n $page_attributes_status = FALSE;\n }\n $col_attributes = [];\n if ($options['col_class_custom']) {\n $col_attributes['class'][] = $options['col_class_custom'];\n }\n $items[$page]['content'][$col]['attributes'] = new Attribute($col_attributes);\n if ($col + 1 >= $options['items_per_page']) {\n $col = 0;\n $page_attributes_status = TRUE;\n $page++;\n }\n else {\n $col++;\n }\n }\n if (count($variables['rows']) % $options['items_per_page']) {\n $page++;\n }\n $roles = \\Drupal::currentUser()->getRoles();\n if ($options['page_block'] && (empty($roles) || array_intersect($roles, $variables['options']['show_page_block_roles']))) {\n /** @var \\Drupal\\Core\\Block\\BlockPluginInterface $block_instance */\n $block_instance = $variables['view']->style_plugin->getBlockInstance($options['page_block']);\n if ($block_instance && $block_instance->access(\\Drupal::currentUser())) {\n $items[$page]['content'][0]['content'] = [\n '#theme' => 'block',\n '#attributes' => [],\n '#configuration' => $block_instance->getConfiguration(),\n '#plugin_id' => $block_instance->getPluginId(),\n '#base_plugin_id' => $block_instance->getBaseId(),\n '#derivative_plugin_id' => $block_instance->getDerivativeId(),\n '#id' => $options['page_block'],\n 'content' => $block_instance->build(),\n ];\n $page_attributes = [];\n $page_block_attributes = [];\n if ($options['page_class_custom']) {\n $page_attributes['class'][] = $options['page_class_custom'];\n }\n if ($options['page_block_class_custom']) {\n $page_block_attributes['class'][] = $options['page_block_class_custom'];\n }\n $items[$page]['attributes'] = new Attribute($page_attributes);\n $items[$page]['content'][0]['attributes'] = new Attribute($page_block_attributes);\n }\n }\n $variables['items'] = $items;\n}", "function collection_css() {\n\tif ( is_singular( WPM_PREFIX . 'collection' ) ) {\n\t\t$display_options = get_customizer_settings()[ WPM_PREFIX . 'collection_style' ];\n\t\t$styles = [];\n\n\t\tif ( ! $display_options['list_color_1'] ) {\n\t\t\t$display_options['list_color_1'] = 'transparent';\n\t\t}\n\t\tif ( ! $display_options['list_color_2'] ) {\n\t\t\t$display_options['list_color_2'] = 'transparent';\n\t\t}\n\t\tif ( $display_options['alternate_list_color'] ) {\n\t\t\t$styles[ '.' . WPM_PREFIX . 'object-row:nth-child(odd)' ]['background-color'] = $display_options['list_color_1'];\n\t\t\t$styles[ '.' . WPM_PREFIX . 'object-row:nth-child(even)' ]['background-color'] = $display_options['list_color_2'];\n\t\t} else {\n\t\t\t$styles[ '.' . WPM_PREFIX . 'object-row' ]['background-color'] = $display_options['list_color_1'];\n\t\t}\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row a' ]['text-decoration'] = 'none !important';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row a' ]['color'] = 'inherit !important';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row-thumbnail' ]['float'] = $display_options['list_thumbnail_position'];\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row-thumbnail' ]['max-width'] = $display_options['list_image_max_width'] . 'px';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row-thumbnail' ]['max-height'] = $display_options['list_image_max_height'] . 'px';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row-thumbnail' ]['margin'] = '20px';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row-textwrapper' ]\n\t\t\t\t[ 'margin-' . $display_options['list_thumbnail_position'] ] =\n\t\t\t\t\t( $display_options['list_image_max_width'] + 20 ) . 'px';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row h4' ]['clear'] = 'none';\n\t\tif ( $display_options['excerpt_line_height'] ) {\n\t\t\t$styles[ '.' . WPM_PREFIX . 'object-row-excerpt' ]['line-height'] = $display_options['excerpt_line_height'] . 'em';\n\t\t}\n\t\tif ( $display_options['excerpt_font_size'] ) {\n\t\t\t$styles[ '.' . WPM_PREFIX . 'object-row-excerpt' ]['font-size'] = $display_options['excerpt_font_size'] . 'em';\n\t\t}\n\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row' ]['padding'] = '10px';\n\t\t$styles[ '.' . WPM_PREFIX . 'object-row' ]['min-height'] = ( $display_options['list_image_max_height'] + 40 ) . 'px';\n\n\t\techo '<style type=\"text/css\">';\n\t\techo esc_html( css_from_array( $styles ) );\n\t\techo '</style>';\n\t}\n}", "function custom_shortcode_slider() \n {\n require_once(TEMPLATEPATH.'/shortcode/shortcode.php');\n }", "public function customize_preview_settings()\n {\n }", "function fr_carousel_slider(){\r\n\tregister_post_type('fr_slider', array(\r\n\t\t\t'supports' => array('title', 'editor', 'excerpt'),\r\n\t\t\t'rewrite' => array('slug' => 'fr_slider'),\r\n\t\t\t'has_archive' => true,\r\n\t\t\t'public' => true,\r\n\t\t\t'labels' => array(\r\n\t\t\t\t'name' => 'FR_Slider',\r\n\t\t\t\t'add_new_item' => 'FR Add New Slider',\r\n\t\t\t\t'edit_item' => 'FR Edit Slider',\r\n\t\t\t\t'singular_name' => 'FR Slider'\r\n\t\t\t),\r\n\t\t\t'menu_icon' => 'dashicons-images-alt'));\r\n}", "function mount_slider_post_type()\n{\n $labels = array(\n 'name' => _x('Sliders', 'Post Type General Name', 'mount'),\n 'singular_name' => _x('Slider', 'Post Type Singular Name', 'mount'),\n 'menu_name' => __('Sliders', 'mount'),\n 'parent_item_colon' => __('Parent Slider', 'mount'),\n 'all_items' => __('All Sliders', 'mount'),\n 'view_item' => __('View Slider', 'mount'),\n 'add_new_item' => __('Add New Slider', 'mount'),\n 'add_new' => __('Add New Slider', 'mount'),\n 'edit_item' => __('Edit Slider', 'mount'),\n 'update_item' => __('Update Slider', 'mount'),\n 'search_items' => __('Search Slider', 'mount'),\n 'not_found' => __('No sliders found', 'mount'),\n 'not_found_in_trash' => __('Not found in trash', 'mount'),\n );\n // Another Customizations\n $args = array(\n 'label' => __('Sliders', 'mount'),\n 'description' => __('Sliders for Mount', 'mount'),\n 'labels' => $labels,\n 'supports' => array('title', 'thumbnail',),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menus' => true,\n 'show_in_nav_menus' => true,\n 'show_in_admin_bar' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-images-alt2',\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'capability_type' => 'page',\n );\n // register the post Type\n register_post_type('sliders', $args);\n}", "function fa_post_type_slider(){\n\tglobal $fa_pro;\n\treturn $fa_pro->post_type_slider();\n}", "function etheme_create_slider($args, $title = false, $image_width = 215, $image_height = 215, $crop = false, $enable_slider_from = 4, $last_offset = 3){\n\tglobal $wpdb;\n\n\t$product_per_row = etheme_get_option('prodcuts_per_row');\n\t$box_id = rand(1000,10000);\n\t$multislides = new WP_Query( $args );\n\n\tif ( $multislides->have_posts() ) :\n\t\tif ($title) {\n\t\t\t$title_output = '<h4 class=\"slider-title\">'.$title.'</h4>';\n\t\t}\n\t\techo '<div class=\"home-product-grid slider\">';\n\t\t\techo $title_output;\n\t\t\techo '<div>';\n\n\t\t\t$_i=0;\n\n\t\t\twhile ($multislides->have_posts()) : $multislides->the_post();\n\t\t\t\t\t$_i++;\n\n\t\t\t\t\tif(class_exists('Woocommerce')) {\n\t\t\t\t\t\t\tglobal $product;\n\t\t\t\t\t\t\tif (!$product->is_visible()) continue;\n\t\t\t\t\t\t\twoocommerce_get_template_part( 'content', 'product' );\n\t\t\t\t\t}\n\t\t\tendwhile;\n\n\t\t\techo '</div><!-- carousel -->';\n\n\t\t\tif($_i > $enable_slider_from):\n\t\t\t\techo '<div class=\"prev arrow'.$box_id.'\" style=\"cursor: pointer; \">&nbsp;</div>';\n\t\t\t\techo '<div class=\"next arrow'.$box_id.'\" style=\"cursor: pointer; \">&nbsp;</div>';\n\t\t\tendif;\n\t\techo '</div><!-- product-slider -->';\n\tendif;\n\n\twp_reset_query();\n\n\tif ($_i>$enable_slider_from) {\n\n\t\tif(etheme_get_option('touch_carusels')) {\n\t\t\t\t$desktopClickDrag = 'true';\n\t\t} else {\n\t\t\t\t$desktopClickDrag = 'false';\n\t\t}\n\n\t\techo '\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\tjQuery(document).ready(function(){\n\t\t\t\t\t\t\t\tjQuery(\".arrow'.$box_id.'.prev\").addClass(\"disabled\");\n\t\t\t\t\t\t\t\tjQuery(\".slider-'.$box_id.'\").iosSlider({\n\t\t\t\t\t\t\t\t\t\tdesktopClickDrag: '.$desktopClickDrag.',\n\t\t\t\t\t\t\t\t\t\tsnapToChildren: true,\n\t\t\t\t\t\t\t\t\t\tinfiniteSlider: false,\n\t\t\t\t\t\t\t\t\t\tnavNextSelector: \".arrow'.$box_id.'.next\",\n\t\t\t\t\t\t\t\t\t\tnavPrevSelector: \".arrow'.$box_id.'.prev\",\n\t\t\t\t\t\t\t\t\t\tlastSlideOffset: '.$last_offset.',\n\t\t\t\t\t\t\t\t\t\tonFirstSlideComplete: function(){\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\".arrow'.$box_id.'.prev\").addClass(\"disabled\");\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tonLastSlideComplete: function(){\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\".arrow'.$box_id.'.next\").addClass(\"disabled\");\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tonSlideChange: function(){\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\".arrow'.$box_id.'.next\").removeClass(\"disabled\");\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\".arrow'.$box_id.'.prev\").removeClass(\"disabled\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t</script>\n\t\t';\n\t}\n}", "public function customize_preview_loading_style()\n {\n }", "function add_custome_post_home_slider() {\n\n $labels = array(\n 'name' => 'Slides',\n 'singular_name' => 'Slide',\n 'menu_name' => 'Home Slider',\n 'name_admin_bar' => 'Home Slider',\n 'parent_item_colon' => 'Parent Slide',\n 'all_items' => 'All Slides',\n 'add_new_item' => 'Add New Slide',\n 'add_new' => 'Add New',\n 'new_item' => 'New Slide',\n 'edit_item' => 'Edit Slide',\n 'update_item' => 'Update Slide',\n 'view_item' => 'View Slide',\n 'search_items' => 'Search Slide',\n 'not_found' => 'Slide Not found',\n 'not_found_in_trash' => 'Slide Not found in Trash',\n );\n $rewrite = array(\n 'slug' => 'sliders',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => false,\n );\n $capabilities = array(\n 'edit_post' => 'edit_slide',\n 'read_post' => 'read_slide',\n 'delete_post' => 'delete_slide',\n 'edit_posts' => 'edit_slides',\n 'edit_others_posts' => 'edit_others_slides',\n 'publish_posts' => 'publish_slides',\n 'read_private_posts' => 'read_private_slides',\n );\n $args = array(\n 'label' => 'home_slider',\n 'description' => 'Home Page Slider',\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'revisions', 'page-attributes', ),\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'rewrite' => $rewrite,\n // 'capabilities' => $capabilities,\n 'menu_icon' => 'dashicons-images-alt2',\n );\n register_post_type( 'home_slider', $args );\n\n}", "function _testimonial_slider($options)\n\t{\n\t\t\n\t\t$element_size = zn_get_size( $options['_sizer'] );\n\t\t\n\t\t$new_size = $element_size['sizer'];\n\t\t\n\t\tif ( !empty ( $options['tf_title'] ) || !empty ( $options['tf_desc'] ) ) {\n\t\t\tpreg_match('|\\d+|', $element_size['sizer'] , $new_size);\n\t\t\t$new_size = $new_size[0]-3;\n\t\t\t$new_size = 'span'.$new_size;\n\t\t\t\n\t\t\techo '<div class=\"span3 testimonials_fader\">';\n\t\t\t\n\t\t\t\tif ( !empty ( $options['tf_title'] ) ) {\n\t\t\t\t\techo '<h3 class=\"m_title\">'.$options['tf_title'].'</h3>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( !empty ( $options['tf_desc'] ) ) {\n\t\t\t\t\techo '<p>'.$options['tf_desc'].'</p>';\n\t\t\t\t}\n\t\t\t\n\t\t\techo '</div>';\n\n\t\t}\n\t\t\n\t\techo '<div class=\"'.$new_size.' testimonials_fader\">';\n\t\t\techo '<ul id=\"testimonials_fader\" class=\"fixclear\">';\n\t\t\t\tforeach ( $options['testimonials_single'] as $test ) {\n\t\t\t\t\techo '<li>';\n\t\t\t\t\t\n\t\t\t\t\t\techo '<blockquote>'.$test['tf_single_test'].'</blockquote>';\n\t\t\t\t\t\techo '<h6>'.$test['tf_single_author'].'</h6>';\n\t\t\t\t\t\n\t\t\t\t\techo '</li>';\n\t\t\t\t}\n\t\techo '</div>';\n\t\techo '</ul>';\n\n\t}", "public static function get_preset_settings(){\r\n\t\t/**\r\n\t\t * List of Elements based on version 5.0 (may be incomplete)\r\n\t\t\tarrows_always_on \"true\"\r\n\t\t\tauto_height \"off\"\r\n\t\t\tbackground_color \"#333\"\r\n\t\t\tbackground_dotted_overlay \"none\"\r\n\t\t\tbackground_image \"http://server.local/revslider/wp-content/uploads/\"\r\n\t\t\tbg_fit \"cover\"\r\n\t\t\tbg_position \"center center\"\r\n\t\t\tbg_repeat \"no-repeat\"\r\n\t\t\tbullets_align_hor \"center\"\r\n\t\t\tbullets_align_vert \"bottom\"\r\n\t\t\tbullets_always_on \"true\"\r\n\t\t\tbullets_direction \"horizontal\"\r\n\t\t\tbullets_offset_hor \"0\"\r\n\t\t\tbullets_offset_vert \"20\"\r\n\t\t\tbullets_space \"5\"\r\n\t\t\tcarousel_borderr \"0\"\r\n\t\t\tcarousel_borderr_unit \"px\"\r\n\t\t\tcarousel_fadeout \"off\"\r\n\t\t\tcarousel_hposition \"center\"\r\n\t\t\tcarousel_infinity false\r\n\t\t\tcarousel_maxitems \"3\"\r\n\t\t\tcarousel_maxrotation \"0\"\r\n\t\t\tcarousel_rotation \"off\"\r\n\t\t\tcarousel_scale \"off\"\r\n\t\t\tcarousel_scaledown \"50\"\r\n\t\t\tcarousel_space \"0\"\r\n\t\t\tcarousel_stretch \"off\"\r\n\t\t\tcarousel_varyrotate \"off\"\r\n\t\t\tcarousel_varyscale \"off\"\r\n\t\t\tcarousel_vposition \"center\"\r\n\t\t\tclient_action \"import_slider\"\r\n\t\t\tcustom_css \"\"\r\n\t\t\tcustom_javascript \"jQuery(window).on('scrol...return ismobile;\\n }\"\r\n\t\t\tdelay \"9000\"\r\n\t\t\tdisable_kenburns_on_mobile \"off\"\r\n\t\t\tdisable_on_mobile \"off\"\r\n\t\t\tdisable_parallax_mobile \"off\"\r\n\t\t\tdrag_block_vertical \"off\"\r\n\t\t\tenable_arrows \"on\"\r\n\t\t\tenable_bullets \"on\"\r\n\t\t\tenable_progressbar \"off\"\r\n\t\t\tenable_tabs \"off\"\r\n\t\t\tenable_thumbnails \"off\"\r\n\t\t\texport_dummy_images false\r\n\t\t\tfirst_transition_active \"on\"\r\n\t\t\tfirst_transition_duration \"300\"\r\n\t\t\tfirst_transition_slot_amount \"7\"\r\n\t\t\tfirst_transition_type \"fade\"\r\n\t\t\tfull_screen_align_force \"off\"\r\n\t\t\tfullscreen_min_height \"\"\r\n\t\t\tfullscreen_offset_container \"\"\r\n\t\t\tfullscreen_offset_size \"\"\r\n\t\t\thide_all_layers_under \"0\"\r\n\t\t\thide_arrows \"200\"\r\n\t\t\thide_arrows_on_mobile \"off\"\r\n\t\t\thide_bullets \"200\"\r\n\t\t\thide_bullets_on_mobile \"off\"\r\n\t\t\thide_defined_layers_under \"0\"\r\n\t\t\thide_slider_under \"0\"\r\n\t\t\thide_tabs \"200\"\r\n\t\t\thide_thumbs \"200\"\r\n\t\t\thide_thumbs_delay_mobile \"1500\"\r\n\t\t\thide_thumbs_on_mobile \"off\"\r\n\t\t\thide_thumbs_under_resolution \"0\"\r\n\t\t\timage_source_type \"full\"\r\n\t\t\tjquery_noconflict \"on\"\r\n\t\t\tjs_to_body \"true\"\r\n\t\t\tkeyboard_navigation \"off\"\r\n\t\t\tlazy_load_type \"none\"\r\n\t\t\tleftarrow_align_hor \"left\"\r\n\t\t\tleftarrow_align_vert \"center\"\r\n\t\t\tleftarrow_offset_hor \"10\"\r\n\t\t\tleftarrow_offset_vert \"0\"\r\n\t\t\tloop_slide \"off\"\r\n\t\t\tmargin_bottom \"0\"\r\n\t\t\tmargin_left \"0\"\r\n\t\t\tmargin_right \"0\"\r\n\t\t\tmargin_top \"0\"\r\n\t\t\tmin_height \"0\"\r\n\t\t\tnavigation_arrow_style \"round\"\r\n\t\t\tnavigation_bullets_style \"round\"\r\n\t\t\tnext_slide_on_window_focus \"off\"\r\n\t\t\tnonce \"a638dbd494\"\r\n\t\t\toutput_type \"none\"\r\n\t\t\tpadding \"0\"\r\n\t\t\tparallax_bg_freeze \"off\"\r\n\t\t\tparallax_level_1 \"5\"\r\n\t\t\tparallax_level_10 \"50\"\r\n\t\t\tparallax_level_2 \"10\"\r\n\t\t\tparallax_level_3 \"15\"\r\n\t\t\tparallax_level_4 \"20\"\r\n\t\t\tparallax_level_5 \"25\"\r\n\t\t\tparallax_level_6 \"30\"\r\n\t\t\tparallax_level_7 \"35\"\r\n\t\t\tparallax_level_8 \"40\"\r\n\t\t\tparallax_level_9 \"45\"\r\n\t\t\tparallax_type \"mouse\"\r\n\t\t\tposition \"center\"\r\n\t\t\tprogress_height \"5\"\r\n\t\t\tprogress_opa \"15\"\r\n\t\t\tprogressbar_color \"#000000\"\r\n\t\t\trightarrow_align_hor \"right\"\r\n\t\t\trightarrow_align_vert \"center\"\r\n\t\t\trightarrow_offset_hor \"10\"\r\n\t\t\trightarrow_offset_vert \"0\"\r\n\t\t\tshadow_type \"0\"\r\n\t\t\tshow_alternate_image \"\"\r\n\t\t\tshow_alternative_type \"off\"\r\n\t\t\tshow_background_image \"on\"\r\n\t\t\tshow_timerbar \"top\"\r\n\t\t\tshuffle \"on\"\r\n\t\t\tsimplify_ie8_ios4 \"off\"\r\n\t\t\tsliderid \"56\"\r\n\t\t\tspan_tabs_wrapper \"off\"\r\n\t\t\tspan_thumbnails_wrapper \"off\"\r\n\t\t\tspinner_color \"#FFFFFF\"\r\n\t\t\tstart_js_after_delay \"0\"\r\n\t\t\tstart_with_slide \"1\"\r\n\t\t\tstop_after_loops \"0\"\r\n\t\t\tstop_at_slide \"2\"\r\n\t\t\tstop_on_hover \"on\"\r\n\t\t\tstop_slider \"on\"\r\n\t\t\tswipe_min_touches \"1\"\r\n\t\t\tswipe_velocity \"75\"\r\n\t\t\ttabs_align_hor \"center\"\r\n\t\t\ttabs_align_vert \"bottom\"\r\n\t\t\ttabs_always_on \"true\"\r\n\t\t\ttabs_amount \"5\"\r\n\t\t\ttabs_direction \"horizontal\"\r\n\t\t\ttabs_height \"50\"\r\n\t\t\ttabs_inner_outer \"inner\"\r\n\t\t\ttabs_offset_hor \"0\"\r\n\t\t\ttabs_offset_vert \"20\"\r\n\t\t\ttabs_padding \"5\"\r\n\t\t\ttabs_space \"5\"\r\n\t\t\ttabs_style \"custom\"\r\n\t\t\ttabs_width \"100\"\r\n\t\t\ttabs_wrapper_color \"transparent\"\r\n\t\t\ttabs_wrapper_opacity \"5\"\r\n\t\t\tthumb_amount \"4\"\r\n\t\t\tthumb_height \"75\"\r\n\t\t\tthumb_width \"120\"\r\n\t\t\tthumbnail_direction \"horizontal\"\r\n\t\t\tthumbnails_align_hor \"center\"\r\n\t\t\tthumbnails_align_vert \"bottom\"\r\n\t\t\tthumbnails_inner_outer \"inner\"\r\n\t\t\tthumbnails_offset_hor \"0\"\r\n\t\t\tthumbnails_offset_vert \"20\"\r\n\t\t\tthumbnails_padding \"5\"\r\n\t\t\tthumbnails_space \"5\"\r\n\t\t\tthumbnails_wrapper_color \"transparent\"\r\n\t\t\tthumbnails_wrapper_opacity \"5\"\r\n\t\t\tthumbs_always_on \"true\"\r\n\t\t\ttouchenabled \"on\"\r\n\t\t\tupdate_animations \"true\"\r\n\t\t\tupdate_static_captions \"true\"\r\n\t\t\tuse_parallax \"off\"\r\n\t\t\tuse_spinner \"0\"\r\n\t\t\tuse_wpml false\r\n\t\t **/\r\n\t\t \r\n\t\t$presets = array();\r\n\t\t\r\n\t\t//ThemePunch default presets are added here directly\r\n\t\t\r\n\t\t//preset -> standardpreset || heropreset || carouselpreset\r\n\r\n$presets[] = array (\r\n 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Auto', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'on',\r\n 'stop_slider' => 'off',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'round',\r\n 'arrows_always_on' => 'true',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'on',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'round',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '100',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '100',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '20',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'auto',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n \r\n$presets[] = array (\r\n 'settings' => \r\n array ( 'class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Width', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'on',\r\n 'stop_slider' => 'off',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'round',\r\n 'arrows_always_on' => 'true',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'on',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'round',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '100',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '100',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '20',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Screen', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'on',\r\n 'stop_slider' => 'off',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'round',\r\n 'arrows_always_on' => 'true',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'on',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'round',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '100',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '100',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '20',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n \r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumb_auto1.png', 'name' => 'Thumbs-Bottom-Auto', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'on',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '20',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'auto',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n \r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_left_auto.png', 'name' => 'Thumbs-Left-Auto', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'right',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '40',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '0',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'left',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'auto',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n \r\n$presets[] = array (\r\n 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_right_auto.png', 'name' => 'Thumbs-Right-Auto', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'auto',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/scroll_fullscreen.png', 'name' => 'Vertical-Bullet-Full-Screen', 'preset' => 'standardpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'off',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'vertical',\r\n 'bullets_always_on' => 'false',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'right',\r\n 'bullets_align_vert' => 'center',\r\n 'bullets_offset_hor' => '30',\r\n 'bullets_offset_vert' => '0',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '500',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Screen', 'preset' => 'heropreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'off',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'vertical',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'right',\r\n 'bullets_align_vert' => 'center',\r\n 'bullets_offset_hor' => '30',\r\n 'bullets_offset_vert' => '0',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '1400',\r\n 'width_notebook' => '1240',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '868',\r\n 'height_notebook' => '768',\r\n 'height_tablet' => '960',\r\n 'height_mobile' => '720',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Width', 'preset' => 'heropreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'off',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'vertical',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'right',\r\n 'bullets_align_vert' => 'center',\r\n 'bullets_offset_hor' => '30',\r\n 'bullets_offset_vert' => '0',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '1400',\r\n 'width_notebook' => '1240',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '500',\r\n 'height_tablet' => '400',\r\n 'height_mobile' => '400',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Screen', 'preset' => 'heropreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'off',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'vertical',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'right',\r\n 'bullets_align_vert' => 'center',\r\n 'bullets_offset_hor' => '30',\r\n 'bullets_offset_vert' => '0',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '868',\r\n 'height_notebook' => '768',\r\n 'height_tablet' => '960',\r\n 'height_mobile' => '720',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Width', 'preset' => 'heropreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'off', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'off',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'bottom',\r\n 'leftarrow_offset_hor' => '0',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'left',\r\n 'rightarrow_align_vert' => 'bottom',\r\n 'rightarrow_offset_hor' => '40',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'on',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'vertical',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'right',\r\n 'bullets_align_vert' => 'center',\r\n 'bullets_offset_hor' => '30',\r\n 'bullets_offset_vert' => '0',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '5',\r\n 'span_thumbnails_wrapper' => 'off',\r\n 'thumbnails_wrapper_color' => 'transparent',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '5',\r\n 'thumbnails_space' => '5',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '50',\r\n 'thumb_height' => '50',\r\n 'thumb_width_min' => '50',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'on',\r\n 'thumbs_under_hidden' => '778',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'center',\r\n 'thumbnails_offset_hor' => '20',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'off',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'off',\r\n 'carousel_maxrotation' => '0',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '50',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '1240',\r\n 'width_notebook' => '1024',\r\n 'width_tablet' => '778',\r\n 'width_mobile' => '480',\r\n 'height' => '600',\r\n 'height_notebook' => '500',\r\n 'height_tablet' => '400',\r\n 'height_mobile' => '300',\r\n 'enable_custom_size_notebook' => 'on',\r\n 'enable_custom_size_tablet' => 'on',\r\n 'enable_custom_size_iphone' => 'on',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_javascript' => '',\r\n 'custom_css' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Thumbs', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar-old',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#000000',\r\n 'thumbnails_wrapper_opacity' => '15',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-bottom',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'off',\r\n 'carousel_space' => '-150',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '5',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'on',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'on',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '600',\r\n 'width_notebook' => '600',\r\n 'width_tablet' => '600',\r\n 'width_mobile' => '600',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '600',\r\n 'height_mobile' => '600',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_endless.png', 'name' => 'Cover-Flow-Infinite', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'round',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#000000',\r\n 'thumbnails_wrapper_opacity' => '15',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-bottom',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '-150',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'on',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'on',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '600',\r\n 'width_notebook' => '600',\r\n 'width_tablet' => '600',\r\n 'width_mobile' => '600',\r\n 'height' => '600',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '600',\r\n 'height_mobile' => '600',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs.png', 'name' => 'Flat-Infinite-Thumbs', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => '#111111',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#222222',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-bottom',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '720',\r\n 'width_notebook' => '720',\r\n 'width_tablet' => '720',\r\n 'width_mobile' => '720',\r\n 'height' => '405',\r\n 'height_notebook' => '405',\r\n 'height_tablet' => '405',\r\n 'height_mobile' => '405',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel.png', 'name' => 'Flat-Infinite', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => '#111111',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'uranus',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'off',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#222222',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-bottom',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '720',\r\n 'width_notebook' => '720',\r\n 'width_tablet' => '720',\r\n 'width_mobile' => '720',\r\n 'height' => '405',\r\n 'height_notebook' => '405',\r\n 'height_tablet' => '405',\r\n 'height_mobile' => '405',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs_left.png', 'name' => 'Flat-Thumbs-Left', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => '#111111',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'uranus',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#222222',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-left',\r\n 'thumbnails_align_hor' => 'left',\r\n 'thumbnails_align_vert' => 'top',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '720',\r\n 'width_notebook' => '720',\r\n 'width_tablet' => '720',\r\n 'width_mobile' => '720',\r\n 'height' => '405',\r\n 'height_notebook' => '405',\r\n 'height_tablet' => '405',\r\n 'height_mobile' => '405',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_thumbs_right_fullscreen.png', 'name' => 'Full-Screen-Thumbs-Right', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1', \r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => '#111111',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'uranus',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#222222',\r\n 'thumbnails_wrapper_opacity' => '100',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'vertical',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'outer-right',\r\n 'thumbnails_align_hor' => 'right',\r\n 'thumbnails_align_vert' => 'top',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '0',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => 'px',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '3',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'off',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '900',\r\n 'width_notebook' => '720',\r\n 'width_tablet' => '720',\r\n 'width_mobile' => '720',\r\n 'height' => '720',\r\n 'height_notebook' => '405',\r\n 'height_tablet' => '405',\r\n 'height_mobile' => '405',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Full-Screen', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1',\r\n 'first_transition_active' => 'on',\r\n 'first_transition_type' => 'fade',\r\n 'first_transition_duration' => '1500',\r\n 'first_transition_slot_amount' => '7',\r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'navbar-old',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#000000',\r\n 'thumbnails_wrapper_opacity' => '15',\r\n 'thumbnails_style' => 'navbar',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '-150',\r\n 'carousel_borderr' => '0',\r\n 'carousel_borderr_unit' => '%',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '5',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'on',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'on',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullscreen',\r\n 'width' => '800',\r\n 'width_notebook' => '600',\r\n 'width_tablet' => '600',\r\n 'width_mobile' => '600',\r\n 'height' => '800',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '600',\r\n 'height_mobile' => '600',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n$presets[] = array (\r\n 'settings' => \r\n array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_full_rounded.png', 'name' => 'Cover-Flow-Rounded', 'preset' => 'carouselpreset' ),\r\n 'values' => \r\n array (\r\n 'next_slide_on_window_focus' => 'off',\r\n 'delay' => '9000',\r\n 'start_js_after_delay' => '0',\r\n 'image_source_type' => 'full',\r\n 0 => 'revapi39.bind(\\\\\"revolution.slide.layeraction\\\\\",function (e) {\r\n\t//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)\r\n\t//data.layertype - Layer Type (image,video,html)\r\n\t//data.layersettings - Default Settings for Layer\r\n\t//data.layer - Layer as jQuery Object\r\n});',\r\n 'start_with_slide' => '1',\r\n 'first_transition_active' => 'on',\r\n 'first_transition_type' => 'fade',\r\n 'first_transition_duration' => '1500',\r\n 'first_transition_slot_amount' => '7',\r\n 'stop_on_hover' => 'off',\r\n 'stop_slider' => 'on',\r\n 'stop_after_loops' => '0',\r\n 'stop_at_slide' => '1',\r\n 'shuffle' => 'off', \r\n 'viewport_start' => 'wait',\r\n 'viewport_area' => '80',\r\n 'enable_progressbar' => 'on', \r\n 'background_dotted_overlay' => 'none',\r\n 'background_color' => 'transparent',\r\n 'padding' => '0',\r\n 'show_background_image' => 'off',\r\n 'background_image' => '',\r\n 'bg_fit' => 'cover',\r\n 'bg_repeat' => 'no-repeat',\r\n 'bg_position' => 'center center',\r\n 'position' => 'center', \r\n 'use_spinner' => '-1',\r\n 'spinner_color' => '#FFFFFF',\r\n 'enable_arrows' => 'on',\r\n 'navigation_arrow_style' => 'round',\r\n 'arrows_always_on' => 'false',\r\n 'hide_arrows' => '200',\r\n 'hide_arrows_mobile' => '1200',\r\n 'hide_arrows_on_mobile' => 'off',\r\n 'arrows_under_hidden' => '600',\r\n 'hide_arrows_over' => 'off',\r\n 'arrows_over_hidden' => '0',\r\n 'leftarrow_align_hor' => 'left',\r\n 'leftarrow_align_vert' => 'center',\r\n 'leftarrow_offset_hor' => '30',\r\n 'leftarrow_offset_vert' => '0',\r\n 'rightarrow_align_hor' => 'right',\r\n 'rightarrow_align_vert' => 'center',\r\n 'rightarrow_offset_hor' => '30',\r\n 'rightarrow_offset_vert' => '0',\r\n 'enable_bullets' => 'off',\r\n 'navigation_bullets_style' => 'round-old',\r\n 'bullets_space' => '5',\r\n 'bullets_direction' => 'horizontal',\r\n 'bullets_always_on' => 'true',\r\n 'hide_bullets' => '200',\r\n 'hide_bullets_mobile' => '1200',\r\n 'hide_bullets_on_mobile' => 'on',\r\n 'bullets_under_hidden' => '600',\r\n 'hide_bullets_over' => 'off',\r\n 'bullets_over_hidden' => '0',\r\n 'bullets_align_hor' => 'center',\r\n 'bullets_align_vert' => 'bottom',\r\n 'bullets_offset_hor' => '0',\r\n 'bullets_offset_vert' => '30',\r\n 'enable_thumbnails' => 'on',\r\n 'thumbnails_padding' => '20',\r\n 'span_thumbnails_wrapper' => 'on',\r\n 'thumbnails_wrapper_color' => '#000000',\r\n 'thumbnails_wrapper_opacity' => '0',\r\n 'thumbnails_style' => 'preview1',\r\n 'thumb_amount' => '9',\r\n 'thumbnails_space' => '10',\r\n 'thumbnail_direction' => 'horizontal',\r\n 'thumb_width' => '60',\r\n 'thumb_height' => '60',\r\n 'thumb_width_min' => '60',\r\n 'thumbs_always_on' => 'false',\r\n 'hide_thumbs' => '200',\r\n 'hide_thumbs_mobile' => '1200',\r\n 'hide_thumbs_on_mobile' => 'off',\r\n 'thumbs_under_hidden' => '0',\r\n 'hide_thumbs_over' => 'off',\r\n 'thumbs_over_hidden' => '0',\r\n 'thumbnails_inner_outer' => 'inner',\r\n 'thumbnails_align_hor' => 'center',\r\n 'thumbnails_align_vert' => 'bottom',\r\n 'thumbnails_offset_hor' => '0',\r\n 'thumbnails_offset_vert' => '0',\r\n 'enable_tabs' => 'off',\r\n 'tabs_padding' => '5',\r\n 'span_tabs_wrapper' => 'off',\r\n 'tabs_wrapper_color' => 'transparent',\r\n 'tabs_wrapper_opacity' => '5',\r\n 'tabs_style' => '',\r\n 'tabs_amount' => '5',\r\n 'tabs_space' => '5',\r\n 'tabs_direction' => 'horizontal',\r\n 'tabs_width' => '100',\r\n 'tabs_height' => '50',\r\n 'tabs_width_min' => '100',\r\n 'tabs_always_on' => 'false',\r\n 'hide_tabs' => '200',\r\n 'hide_tabs_mobile' => '1200',\r\n 'hide_tabs_on_mobile' => 'off',\r\n 'tabs_under_hidden' => '0',\r\n 'hide_tabs_over' => 'off',\r\n 'tabs_over_hidden' => '0',\r\n 'tabs_inner_outer' => 'inner',\r\n 'tabs_align_hor' => 'center',\r\n 'tabs_align_vert' => 'bottom',\r\n 'tabs_offset_hor' => '0',\r\n 'tabs_offset_vert' => '20',\r\n 'touchenabled' => 'on',\r\n 'drag_block_vertical' => 'off',\r\n 'swipe_velocity' => '75',\r\n 'swipe_min_touches' => '50',\r\n 'swipe_direction' => 'horizontal',\r\n 'keyboard_navigation' => 'off',\r\n 'keyboard_direction' => 'horizontal',\r\n 'mousescroll_navigation' => 'off',\r\n 'carousel_infinity' => 'on',\r\n 'carousel_space' => '-150',\r\n 'carousel_borderr' => '50',\r\n 'carousel_borderr_unit' => '%',\r\n 'carousel_padding_top' => '0',\r\n 'carousel_padding_bottom' => '0',\r\n 'carousel_maxitems' => '5',\r\n 'carousel_stretch' => 'off',\r\n 'carousel_fadeout' => 'on',\r\n 'carousel_varyfade' => 'on',\r\n 'carousel_rotation' => 'off',\r\n 'carousel_varyrotate' => 'on',\r\n 'carousel_maxrotation' => '65',\r\n 'carousel_scale' => 'on',\r\n 'carousel_varyscale' => 'off',\r\n 'carousel_scaledown' => '55',\r\n 'carousel_hposition' => 'center',\r\n 'carousel_vposition' => 'center',\r\n 'use_parallax' => 'on',\r\n 'disable_parallax_mobile' => 'off',\r\n 'parallax_type' => 'mouse',\r\n 'parallax_origo' => 'slidercenter',\r\n 'parallax_speed' => '2000',\r\n 'parallax_level_1' => '2',\r\n 'parallax_level_2' => '3',\r\n 'parallax_level_3' => '4',\r\n 'parallax_level_4' => '5',\r\n 'parallax_level_5' => '6',\r\n 'parallax_level_6' => '7',\r\n 'parallax_level_7' => '12',\r\n 'parallax_level_8' => '16',\r\n 'parallax_level_9' => '10',\r\n 'parallax_level_10' => '50',\r\n 'lazy_load_type' => 'smart',\r\n 'seo_optimization' => 'none',\r\n 'simplify_ie8_ios4' => 'off',\r\n 'show_alternative_type' => 'off',\r\n 'show_alternate_image' => '',\r\n 'jquery_noconflict' => 'off',\r\n 'js_to_body' => 'false',\r\n 'output_type' => 'none',\r\n 'jquery_debugmode' => 'off',\r\n 'slider_type' => 'fullwidth',\r\n 'width' => '800',\r\n 'width_notebook' => '600',\r\n 'width_tablet' => '600',\r\n 'width_mobile' => '600',\r\n 'height' => '800',\r\n 'height_notebook' => '600',\r\n 'height_tablet' => '600',\r\n 'height_mobile' => '600',\r\n 'enable_custom_size_notebook' => 'off',\r\n 'enable_custom_size_tablet' => 'off',\r\n 'enable_custom_size_iphone' => 'off',\r\n 'main_overflow_hidden' => 'off',\r\n 'auto_height' => 'off',\r\n 'min_height' => '',\r\n 'custom_css' => '',\r\n 'custom_javascript' => '',\r\n ),\r\n );\r\n\t\t\r\n\t\t//add the presets made from customers\r\n\t\t$customer_presets = get_option('revslider_presets', array());\r\n\t\t\r\n\t\t\r\n\t\t$presets = array_merge($presets, $customer_presets);\r\n\t\t\r\n\t\t$presets = apply_filters('revslider_slider_presets', $presets);\r\n\t\t\r\n\t\tforeach($presets as $key => $preset){\r\n\t\t\tif(intval($preset['settings']['image']) > 0){\r\n\t\t\t\t$img = wp_get_attachment_image_src(esc_attr($preset['settings']['image']), 'medium');\r\n\t\t\t\t$presets[$key]['settings']['image'] = ($img !== false) ? $img['0'] : '';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $presets;\r\n\t\t\r\n\t}", "function tfuse_slideshow($atts, $content) {\n global $slide;\n $slide = array();\n extract(shortcode_atts(array('type_size' => ''), $atts));\n $get_slideshow = do_shortcode($content);\n $uniq = rand(1, 400);\n $i = 0;\n $output = '<div class=\"slider slider_'.$type_size.'\">\n <div class=\"slider_container clearfix\" id=\"slider'.$uniq.'\">';\n while (isset($slide['type'][$i])) {\n if( $slide['type'][$i]=='image' )\n {\n if($type_size=='medium'){\n $width = 600;\n $height = 338;\n }\n elseif($type_size=='small'){\n $width = 430;\n $height = 242;\n }\n else{\n $width = 240;\n $height = 135;\n }\n $getimage = new TF_GET_IMAGE();\n $img = $getimage->width($width)->height($height)->src($slide['content'][$i])->get_img();\n $output .= '<div class=\"slider-item\">'.$img .'</div>';\n }\n else $output .= ' <div class=\"slider-item\"><div class=\"inner\">'.$slide['content'][$i].'</div></div>';\n $i++;\n }\n $output .= '</div>\n <div class=\"slider_pagination\" id=\"slider'.$uniq.'_pag\"></div>\n </div>\n <script>\n jQuery(document).ready(function($) {\n $(\"#slider'.$uniq.'\").carouFredSel({\n pagination : \"#slider'.$uniq.'_pag\",\n infinite: false,\n auto: false,\n height: \"auto\",\n items: 1,\n scroll: {\n fx: \"fade\",\n duration: 200\n }\n });\n });\n </script>';\n return $output;\n}", "function get_slider_view()\r\n\t{\r\n\t\t$sort = get_option('sort'); if(empty($sort)){\r\n\t\t\t$sort = \"post_date\";\r\n\t\t}\r\n\t\t$order = get_option('order'); if(empty($order)){\r\n\t\t\t$order = \"DESC\";\r\n\t\t} // Non utilise\r\n\t\t$limit = get_option('limit'); if(empty($limit)){\r\n\t\t\t$limit = 350;\r\n\t\t} // Non utilise\r\n\t\t$points = get_option('points'); if(empty($points)){\r\n\t\t\t$points = \"...\";\r\n\t\t}\r\n\t\t$post_limit = get_option('limit_posts'); if(empty($limit_posts)){\r\n\t\t\t$limit_posts = \"-1\";\r\n\t\t}\r\n\t\t$auto_switch = get_option('auto_switch'); if(empty($auto_switch)){\r\n\t\t\t$auto_switch = \"1\";\r\n\t\t} // 1 = true, 0 = false\r\n\t\t$timeout = get_option('timeout'); if(empty($timeout)){\r\n\t\t\t$timeout = 5000;\r\n\t\t} // temps de transition par defaut\r\n\r\n\t\t$img_width = get_option('img_width');\r\n\t\tif(empty($img_width)) {\r\n\t\t\t$img_width = 580;\r\n\t\t}\r\n\r\n\t\t$img_height = get_option('img_height');\r\n\t\tif(empty($img_height)) {\r\n\t\t\t$img_height = 300;\r\n\t\t}\r\n\r\n\t\t// Get the slider content\r\n\t\tglobal $wpdb;\r\n\t\tglobal $post;\r\n\r\n\t\t$args = array( 'meta_key' => 'fading_slider',\r\n\t\t\t\t'meta_value'=> '1', // Seulement les objets dont la case est cochée dans le back\r\n\t\t\t\t'suppress_filters' => 0,\r\n\t\t\t\t'post_type' => array('post', 'page'),\r\n\t\t\t\t'orderby' => $sort,\r\n\t\t\t\t'order' => 'DESC', \t// DESC = Show last post first\r\n\t\t\t\t'numberposts'=> 4); // HTML Markup only allows 4 slides\r\n\r\n\t\t$myposts = get_posts( $args );\r\n\r\n\t\tif (function_exists('add_image_size')) {\r\n\t\t\tadd_image_size( 'fading_slider', $img_width, $img_height, true ); // Miniatures des archives\r\n\t\t}\r\n\r\n\t\t/* PHP Generated Styles here */\r\n\t\t?>\r\n\t\t<style type=\"text/css\">\r\n\r\n\t\t\t#fading_slider {\r\n\t\t\t\tbackground-color: #<?php $bg = get_option('fading_slider_bg'); if(!empty($bg)) {echo $bg;} else {echo \"FFF\";}?>;\r\n\t\t\t\tborder: 8px solid #<?php $border = get_option('fading_slider_border'); if(!empty($border)) {echo $border;} else {echo \"CCC\";}?>;\r\n\t\t\t\twidth: <?php $width = get_option('fading_slider_width'); if(!empty($width)) {echo $width;} else {echo \"580\";}?>px;\r\n\t\t\t}\r\n\t\t<?php\r\n\r\n\t\t\t$i = 1;\r\n\t\t\tforeach( $myposts as $post ) : setup_postdata($post);\r\n\r\n\t\t\t\t$custom = get_post_custom($post->ID);\r\n\t\t\t\techo \"/* ID POST : \" . $post->ID . \"*/\";\r\n\t\t\t\t$thumb = $this->get_wp_generated_thumb( get_the_post_thumbnail( $post->ID ) );\r\n\t\t\t\t// $thumb = $this->get_wp_generated_thumb( get_the_post_thumbnail($post->ID, \"fading_slider\") );\r\n\r\n\t\t\t\techo \".cr-container input.cr-selector-img-\".$i.\":checked ~ .cr-bgimg,\r\n\t\t.cr-bgimg div span:nth-child(\".$i.\"){\r\n\t\t background-image: url(\".$thumb.\");\r\n\t\t}\\n\";\r\n\r\n\t\t\t\t$i++;\r\n\t\t\tendforeach; wp_reset_postdata();\r\n\r\n\t\t?>\r\n\t\t</style>\r\n\r\n\t\t<div id=\"fading_slider\">\r\n\r\n <section class=\"cr-container\">\r\n\r\n <!-- boutons cliquables -->\r\n <input id=\"select-img-1\" name=\"radio-set-1\" type=\"radio\" class=\"cr-selector-img-1 current\" checked/>\r\n <label for=\"select-img-1\" class=\"cr-label-img-1\">1</label>\r\n\r\n \t<input id=\"select-img-2\" name=\"radio-set-1\" type=\"radio\" class=\"cr-selector-img-2\" />\r\n <label for=\"select-img-2\" class=\"cr-label-img-2\">2</label>\r\n\r\n \t<input id=\"select-img-3\" name=\"radio-set-1\" type=\"radio\" class=\"cr-selector-img-3\" />\r\n <label for=\"select-img-3\" class=\"cr-label-img-3\">3</label>\r\n\r\n \t<input id=\"select-img-4\" name=\"radio-set-1\" type=\"radio\" class=\"cr-selector-img-4\" />\r\n <label for=\"select-img-4\" class=\"cr-label-img-4\">4</label>\r\n\r\n\t <div class=\"clr\"></div>\r\n\r\n\t\t<!-- images (tranches) -->\r\n\t\t<div class=\"cr-bgimg\">\r\n\t\t\t<div>\r\n\t\t\t\t<span>Tranche 1 - Image 1</span>\r\n\t\t\t\t<span>Tranche 1 - Image 2</span>\r\n\t\t\t\t<span>Tranche 1 - Image 3</span>\r\n\t\t\t\t<span>Tranche 1 - Image 4</span>\r\n\t\t\t</div>\r\n\t\t\t<div>\r\n\t\t\t\t<span>Tranche 2 - Image 1</span>\r\n\t\t\t\t<span>Tranche 2 - Image 2</span>\r\n\t\t\t\t<span>Tranche 2 - Image 3</span>\r\n\t\t\t\t<span>Tranche 2 - Image 4</span>\r\n\t\t\t</div>\r\n\t\t\t<div>\r\n\t\t\t\t<span>Tranche 3 - Image 1</span>\r\n\t\t\t\t<span>Tranche 3 - Image 2</span>\r\n\t\t\t\t<span>Tranche 3 - Image 3</span>\r\n\t\t\t\t<span>Tranche 3 - Image 4</span>\r\n\t\t\t</div>\r\n\t\t\t<div>\r\n\t\t\t\t<span>Tranche 4 - Image 1</span>\r\n\t\t\t\t<span>Tranche 4 - Image 2</span>\r\n\t\t\t\t<span>Tranche 4 - Image 3</span>\r\n\t\t\t\t<span>Tranche 4 - Image 4</span>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<!-- titles -->\r\n\t\t<div class=\"cr-titles\">\r\n\r\n<?php\r\n\t$i = 1;\r\n\tforeach( $myposts as $post ) :\tsetup_postdata($post);\r\n\r\n\t\t\t// $custom = get_post_custom($post->ID);\r\n\t\t\t$thumb = $this->get_wp_generated_thumb( get_the_post_thumbnail($post->ID, \"fading_slider\") );\r\n?>\r\n\r\n\t\t\t<h3>\r\n\t\t\t\t<?php\r\n\t\t\t\t\t$category = get_the_category();\r\n\t\t\t\t\techo \"<span>\".$category[0]->cat_name.\"</span>\\n\";\r\n\t\t\t\t?>\r\n\t\t\t\t<span><a class=\"lienArticle\" href=\"<?php the_permalink();?>\" title=\"<?php _e(\"Read post\", \"wp-fading-content-slider-locale\");?>\"><?php the_title();?></a></span>\r\n \t<a class=\"lienImage\" href=\"<?php the_permalink();?>\" title=\"<?php _e(\"Read post\", \"wp-fading-content-slider-locale\");?>\"></a>\r\n\t\t\t</h3>\r\n\r\n<?php\r\n\t$i++;\r\n\tendforeach; wp_reset_postdata();\r\n?>\r\n\r\n </div>\r\n\r\n </section>\r\n\r\n</div>\r\n\r\n<script type=\"text/javascript\">\r\n\tvar $j = jQuery.noConflict();\r\n\tvar i = 2; // premier switch vers image 2\r\n\r\n\tfunction switchImage()\r\n\t{\r\n\t\t$j(\".current\").removeAttr('checked');\r\n\t\t$j(\".current\").removeClass('current');\r\n\r\n\t\t$j(\"#select-img-\"+i).addClass('current');\r\n\t\t$j(\"#select-img-\"+i).attr('checked', true);\r\n\r\n\t\tif (i==4)\r\n\t\t{\r\n\t\t\ti=1; // retour au debut sur image 1\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ti++; // image suivante\r\n\t\t}\r\n\t}\r\n\r\n\t$j(document).ready(function(){ //on lance l'annimation en boucle toute les 5 secondes (5000 miliseconde)\r\n\t\t<?php if ($auto_switch == \"1\") echo \"setInterval('switchImage();', \".$timeout.\");\\n\"; ?>\r\n\t});\r\n\r\n</script>\r\n\r\n\t\t<?php\r\n\r\n\t\t// TODO This should be prettier in the next version\r\n\t\t// include ( plugins_url() . '/wp-fading-content-slider/views/display.php' );\r\n\t}", "function soliloquy_custom_css_plugin_init() {\n\n add_action( 'soliloquy_updater', 'soliloquy_custom_css_updater' );\n add_filter( 'soliloquy_defaults', 'soliloquy_custom_css_defaults', 10, 2 );\n add_action( 'soliloquy_misc_box', 'soliloquy_custom_css_setting', 999 );\n add_filter( 'soliloquy_save_settings', 'soliloquy_custom_css_save', 10, 2 );\n\n // Metabox - Single Slide\n add_filter( 'soliloquy_meta_defaults', 'soliloquy_custom_css_meta_defaults', 10, 3 );\n add_action( 'soliloquy_after_image_meta_settings', 'soliloquy_custom_css_meta', 10, 3 );\n add_action( 'soliloquy_after_video_meta_settings', 'soliloquy_custom_css_meta', 10, 3 );\n add_filter( 'soliloquy_ajax_save_meta', 'soliloquy_custom_css_save_meta', 10, 4 );\n\n // Frontend\n add_filter( 'soliloquy_output_start', 'soliloquy_custom_css_output', 0, 2 );\n add_filter( 'soliloquy_output_item_classes', 'soliloquy_custom_css_classes_output', 10, 4 );\n\n\n}", "function civ_slider_options_page(){\n add_options_page('Civ Slider Options', 'Civ Slider Options', 8, 'civ_slider', 'civ_slider_options');\n}", "function carousel_slider(){\r\n\tregister_post_type('slider', array(\r\n\t\t\t'supports' => array('title', 'editor', 'excerpt'),\r\n\t\t\t'rewrite' => array('slug' => 'slider'),\r\n\t\t\t'has_archive' => true,\r\n\t\t\t'public' => true,\r\n\t\t\t'labels' => array(\r\n\t\t\t\t'name' => 'Slider',\r\n\t\t\t\t'add_new_item' => 'Add New Slider',\r\n\t\t\t\t'edit_item' => 'Edit Slider',\r\n\t\t\t\t'singular_name' => 'Slider'\r\n\t\t\t),\r\n\t\t\t'menu_icon' => 'dashicons-images-alt'));\r\n}", "public function get_slides_for_slider() {\n return $this->slides_to_include;\n }", "public static function wp_slim_styles(){\r\n\t echo '<style> \r\n\t .slim-btn-edit {\r\n\t background-image: url(\"'.plugin_dir_url(__FILE__).'assets/images/edit.png'.'\");\r\n\t } \r\n\t </style>';\r\n\t}", "protected function render() {\r\n $settings = $this->get_settings_for_display(); \r\n\r\n if ( $settings['list'] ) { ?>\r\n\r\n <div class=\"DSMCA__slide swiper-container\">\r\n <div class=\"swiper-wrapper\"> \r\n <?php foreach ( $settings['list'] as $item ) : ?>\r\n <div class=\"DSMCA__item_slide swiper-slide\">\r\n <img class=\"DSMCA__item-image\" src=\" <?php echo $item['imagen']['url'] ?> \">\r\n <h5 class=\"DSMCA__item-title\"><?php echo $item['titulo'] ?></h5>\r\n </div>\r\n <?php endforeach; ?> \r\n </div>\r\n <div class=\"swiper-button-prev\"></div>\r\n <div class=\"swiper-button-next\"></div>\r\n </div>\r\n\r\n\r\n <?php }\r\n\t}", "static function add_slides_small(): void {\r\n self::add_acf_inner_field(self::slides, self::slides_small, [\r\n 'label' => 'Small articles',\r\n 'type' => 'repeater',\r\n 'instructions' => '',\r\n 'required' => 1,\r\n 'conditional_logic' => 0,\r\n 'wrapper' => [\r\n 'width' => '',\r\n 'class' => '',\r\n 'id' => '',\r\n ],\r\n 'collapsed' => self::qualify_field(self::slides_small_post),\r\n 'min' => 3,\r\n 'max' => 3,\r\n 'layout' => 'row',\r\n 'button_label' => 'Add article',\r\n 'sub_fields' => [],\r\n ]);\r\n }", "function wpsight_sylt_image_slider( $post_id = '', $args = array() ) {\n\techo wpsight_sylt_get_image_slider( $post_id, $args );\n}", "function svs_css_customizer() {\n\t?>\n\t<style type = \"text/css\">\n\t\n\t\tbody { background-color: #<?php echo get_theme_mod('background_color'); ?>;}\n\t\t\n\t\th1,h2,h3,h4,h5,h6,h7,h8 {color: <?php echo get_theme_mod('headers_color'); ?>;}\n\t\t\n\t\ta {\tcolor: <?php echo get_theme_mod('link_color'); ?>;}\n\t\t\n\t\ta:hover, a:focus { color: <?php echo get_theme_mod('link_hover_color'); ?>;}\n\t\n\t<?php\n\t$content_layout = get_theme_mod('content_layout_setting');\n\n\tif ($content_layout == 'compressed') : ?>\n\t\t\n\t\t.the-post {\n\t\t\twidth: 95%;\n\t\t\theight: 100%; <!-- important!!! -->\n\t\t\tmargin: 5px 0 15px 0;\n\t\t\tborder-bottom: 1px solid #eee;\n\t\t}\n\t\t\n\t\t.vid-col {\n\t\t\twidth: 100%;\n\n\t\t}\n\t\t\n\t\t.vid-title {\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t\t\n\t\t.content-show, .content-hide {\n\t\t\tfont-size: 11px;\n\t\t\tfloat: right;\n\t\t}\n\n\t\t.content-layout{ display: none;}\n\t\t\n\t\n\t<?php endif;?>\n\t\t\n\t</style>\n\t\n\t<?php\n}", "function nirvana_pp_slider() {\n\t$nirvanas = nirvana_get_theme_options(); ?>\n\t<script type=\"text/javascript\">\n\tjQuery(document).ready(function() {\n\t\tjQuery('#slider').nivoSlider({\n\t\t\teffect: '<?php echo esc_html($nirvanas['nirvana_fpslideranim']); ?>',\n\t\t\tanimSpeed: <?php echo esc_html($nirvanas['nirvana_fpslidertime']); ?>,\n\t\t\t<?php if ($nirvanas['nirvana_fpsliderarrows']==\"Hidden\"): ?>directionNav: false,<?php endif;\n\t\t\tif ($nirvanas['nirvana_fpsliderarrows']==\"Always Visible\"): ?>directionNavHide: false,<?php endif; ?>\n\t\t\t//controlNavThumbs: true,\n\t\t\tbeforeChange: function(){\n\t\t\t\tjQuery('.nivo-caption h2').addClass('nivo-caption-mate');\n\t\t\t\tjQuery('.inline-slide-text').fadeOut(500);\n\t\t\t\tjQuery('.inline-slide-text').css({'opacity':'100','display':'inline'});\n\t\t\t\tjQuery('.readmore').fadeOut(500);\n\t\t\t\tjQuery('.readmore').css({'opacity':'100','display':'table'});\n\t\t\t},\n\t\t\tpauseTime: <?php echo esc_html($nirvanas['nirvana_fpsliderpause']); ?>\n\t\t});\n\t});\n\t</script>\n\t<?php\n}", "function cseas_simple_slider_enqueue_scripts_styles() {\n\t\twp_enqueue_script( 'cseas-simple-slider-js', plugins_url( 'slider.js', __FILE__ ), array( 'jquery' ) ); // slider.js\n\t\twp_enqueue_style( 'cseas-simple-slider-css', plugins_url( 'slider.css', __FILE__ ) );\n\t}", "public function slide(){\r\n\t\t\r\n\t}", "function slider_post_type() {\n\t$labels = array(\n\t\t'name' => _x( 'slider', 'Post Type General Name', 'resturant' ),\n\t\t'singular_name' => _x( 'slider', 'Post Type Singular Name', 'resturant' ),\n\t\t'menu_name' => __( 'slider', 'resturant' ),\n\t\t'parent_item_colon' => __( 'Parent slider', 'resturant' ),\n\t\t'all_items' => __( 'All slider', 'resturant' ),\n\t\t'view_item' => __( 'View slider', 'resturant' ),\n\t\t'add_new_item' => __( 'Add New slider', 'resturant' ),\n\t\t'add_new' => __( 'Add New', 'resturant' ),\n\t\t'edit_item' => __( 'Edit slider', 'resturant' ),\n\t\t'update_item' => __( 'Update slider', 'resturant' ),\n\t\t'search_items' => __( 'Search slider', 'resturant' ),\n\t\t'not_found' => __( 'Not Found', 'resturant' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'resturant' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'slider', 'resturant' ),\n\t\t'description' => __( 'slider news and reviews', 'resturant' ),\n\t\t'labels' => $labels,\n\t\t'menu_icon' => 'dashicons-slides\n',\n\t\t'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', ),\n\t\t'taxonomies' => array( 'genres' ),\t\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\n\t\t'menu_position' => 5,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t\t'taxonomies' => array( 'category' ),\n\t);\n\tregister_post_type( 'slider', $args );\n}", "static public function slider_config() {\n ?>\n\n /**\n * J'ai simplement recopié le script du plugin pour pouvoir modifier les\n * caractéristiques du slider car aucun moyen de le configurer n'est \n * mis à dispo dans le backoffice...\n *\n * source https://github.com/sayful1/filterable-portfolio/blob/master/assets/src/frontend/slider.js\n */\n if (tns) {\n var sliders,\n i,\n slider,\n sliderOuter,\n controls,\n showDots,\n showArrows,\n autoplay,\n autoplayHoverPause,\n autoplayTimeout,\n speed,\n gutter,\n loop,\n lazyload,\n slideBy,\n mobile,\n tablet,\n desktop,\n wideScreen,\n fullHD,\n highScreen;\n\n sliders = document.querySelectorAll('.fp-tns-slider');\n for(i=0;i<sliders.length;i++){\n slider=sliders[i];\n\n sliderOuter = slider.parentNode;\n controls = sliderOuter.querySelector('.fp-tns-slider-controls');\n\n mobile = parseInt(slider.getAttribute('data-mobile'));\n tablet = parseInt(slider.getAttribute('data-tablet'));\n desktop = parseInt(slider.getAttribute('data-desktop'));\n wideScreen = parseInt(slider.getAttribute('data-wide-screen'));\n fullHD = parseInt(slider.getAttribute('data-full-hd'));\n highScreen = parseInt(slider.getAttribute('data-high-screen'));\n\n showDots = slider.getAttribute('data-dots') === 'true';\n showArrows = slider.getAttribute('data-arrows') === 'true';\n\n autoplay = slider.getAttribute('data-autoplay') === 'true';\n autoplayHoverPause = slider.getAttribute('data-autoplay-hover-pause') === 'true';\n // Default is 5000\n autoplayTimeout = 10000;\n // Default is 500\n speed = 1000;\n\n gutter = parseInt(slider.getAttribute('data-gutter'));\n loop = slider.getAttribute('data-loop') === 'true';\n lazyload = slider.getAttribute('data-lazyload') === 'true';\n\n slideBy = slider.getAttribute('data-slide-by');\n slideBy = (slideBy === 'page') ? 'page' : parseInt(slideBy);\n\n tns({\n container: slider,\n slideBy: slideBy,\n loop: loop,\n lazyload: lazyload,\n autoplay: autoplay,\n autoplayTimeout: autoplayTimeout,\n autoplayHoverPause: autoplayHoverPause,\n speed: speed,\n gutter: gutter,\n nav: showDots,\n controls: showArrows,\n controlsContainer: controls ? controls : false,\n edgePadding: 0,\n items: mobile,\n responsive: {\n 600: {items: tablet},\n 1000: {items: desktop},\n 1200: {items: wideScreen},\n 1500: {items: fullHD},\n 1921: {items: highScreen}\n }\n });\n }\n }\n\n\n <?php\n }", "function sb_slideshow_options_meta() {\n\tglobal $post, $sb_slideshow_interface;\n\n\t$pause = get_post_meta( $post->ID, 'pause', true );\n\t$opacity = get_post_meta( $post->ID, 'opacity', true );\n\t$effect = get_post_meta( $post->ID, 'effect', true );\n\t$control = get_post_meta( $post->ID, 'control', true );\n\t$size = get_post_meta( $post->ID, 'size', true );\n\t\n\t$size_custom = get_post_meta( $post->ID, 'size_custom', true );\n\t$size_custom = ( is_array( $size_custom ) ) ? $size_custom : array( 'width' => 0, 'height' => 0 );\n\t\n\t$ssorri = get_post_meta($post->ID, 'ssorri', true);\n\t?>\n\n <p><strong><?php _e('Shortcode Output', 'startbox'); ?></strong></p>\n <p><?php _e('Should slides be used for a slideshow or single, random image?', 'startbox'); ?></p>\n <p id=\"slideshow_radio_buttons\">\n <?php //foreach($slideshow_or_random_image as $key => $value) { echo sb_slideshow_radio($key, $value, 'ssorri', ($ssorri == '' ? 'slideshow_on' : $ssorri)); } ?>\n <?php foreach ($sb_slideshow_interface['ssorris'] as $key => $value) echo sb_slideshow_radio( $key, $value, 'ssorri', ($ssorri == '' ? 'slideshow_on' : $ssorri) ); ?>\n </p>\n\n\t<p><strong><?php _e( 'Slideshow Size', 'startbox' ); ?></strong></p>\n\t<p id=\"size_radio_buttons\">\n\t<?php foreach ($sb_slideshow_interface['sizes'] as $key => $value) echo sb_slideshow_radio( $key, $value, 'size', ($size == '' ? 'min' : $size) ); ?>\n\t<span id=\"custom_size\" class=\"hide-if-js\">\n\t<label for=\"custom_width\"><?php _e( 'Width', 'startbox' ); ?></label>\n\t\t<input type=\"text\" id=\"custom_width\" class=\"pixelfield\" name=\"sb_size_custom[width]\"\n\t\t\tvalue=\"<?php echo esc_attr( $size_custom['width'] ); ?>\" /> <code>px</code>\n\t<label for=\"custom_height\"><?php _e( 'Height', 'startbox' ); ?></label>\n\t\t<input type=\"text\" id=\"custom_height\" class=\"pixelfield\" name=\"sb_size_custom[height]\"\n\t\t\tvalue=\"<?php echo esc_attr( $size_custom['height'] ); ?>\" /> <code>px</code>\n\t</span>\n\t</p>\n\t<div id=\"slideshow_on_options\">\n\t<p><strong><?php _e( 'Pause Timer', 'startbox' ); ?></strong></p>\n\t<p><?php _e( 'How long, in miliseconds, to pause on a slide before transitioning.', 'startbox' ); ?></p>\n\t<p><input type=\"text\" size=\"4\" name=\"sb_pause\"\n\t\tvalue=\"<?php echo esc_attr( ($pause == '' ? $sb_slideshow_interface['pause'] : $pause) ); ?>\" /> <code><?php _e( 'miliseconds', 'startbox' ); ?></code></p>\n\n\t<p><strong><?php _e( 'Caption Opacity', 'startbox' ); ?></strong></p>\n\t<p><?php _e( 'How opaque to make the slide caption.', 'startbox' ); ?></p>\n\t<p><input type=\"text\" size=\"4\" name=\"sb_opacity\"\n\t\tvalue=\"<?php echo esc_attr( ($opacity == '' ? $sb_slideshow_interface['opacity'] : $opacity) ); ?>\" /> <code><?php _e( '1 = 100%. Default: 0.8.', 'startbox' ); ?></code></p>\n<?php\n\tif( isset( $sb_slideshow_interface['transitions'] ) &&\n\t\tis_array( $sb_slideshow_interface['transitions'] ) &&\n\t\tcount( $sb_slideshow_interface['transitions'] ) > 0 ) :\n?>\n\t\t<p><strong><?php _e( 'Transition Effects', 'startbox' ); ?></strong></p>\n\t\t<p><?php _e( 'If no transition effect is checked, all effects will be used at random.', 'startbox' ); ?></p>\n\t\t<p><?php foreach ($sb_slideshow_interface['transitions'] as $option) echo sb_slideshow_checkbox( $option, $option, 'effect', $effect ); ?></p>\n<?php\n\tendif;\n\n\tif( isset( $sb_slideshow_interface['controls'] ) &&\n\t\tis_array( $sb_slideshow_interface['controls'] ) &&\n\t\tcount( $sb_slideshow_interface['controls'] ) > 0 ) :\n?>\n\t\t<p><strong><?php _e( 'Show', 'startbox' ); ?></strong></p>\n\t\t<p><?php foreach ($sb_slideshow_interface['controls'] as $key => $value)\n\t\t\techo sb_slideshow_checkbox( $key, $value, 'control', $control ); ?></p>\n </div>\n<?php\n\tendif;\n}", "protected function render() {\n\t\t$settings = $this->get_settings_for_display();\n\n $nav = $settings['nav'];\n $dots = $settings['dots'];\n $autoplay = $settings['autoplay'];\n $loop = $settings['loop'];\n $autoplayTimeout = $settings['autoplayTimeout'];\n $mouseDrag = $settings['mouseDrag'];\n $touchDrag = $settings['touchDrag'];\n\n $this->add_render_attribute(\n 'slider-wrapper',\n [\n 'class' => 'pnw-slider-wrapper',\n 'data-nav' => $nav,\n 'data-dots' => $dots,\n 'data-autoplay' => $autoplay,\n 'data-loop' => $loop,\n 'data-autoplay-timeout' => $autoplayTimeout,\n 'data-mouse-drag' => $mouseDrag,\n 'data-touch-drag' => $touchDrag\n ]\n );\n\n $args = array(\n\t\t\t'numberposts' => $settings['item_per_page'],\n\t\t\t'post_type' => 'listing'\n\t\t);\n \n ?>\n\t\t\t<div <?php echo $this->get_render_attribute_string('slider-wrapper'); ?>>\n\t\t\t\t<?php\n\t\t\t\t\t$recents = wp_get_recent_posts($args);\n\n if (is_array($recents) || is_object($recents) ) {\n\n\t\t\t\t\tforeach($recents as $recent) { \n $price = get_post_meta( $recent['ID'], 'lcf_PriceList', true );\n\t\t\t\t\t?>\n\t\t\t\t\t\t<div class=\"listing-cont\">\n <a href=\"<?php echo get_post_permalink( $recent['ID'] ); ?>\">\n <img src=\"<?php echo get_the_post_thumbnail_url( $recent['ID'] ); ?>\" alt=\"<?php echo get_the_title( $recent['ID'] ); ?>\"></a>\n <a href=\"<?php echo get_post_permalink( $recent['ID'] ); ?>\">\n <h3 class=\"list-address\"><?php echo get_the_title( $recent['ID'] ); ?></h3></a>\n <a href=\"<?php echo get_post_permalink( $recent['ID'] ); ?>\">\n <h4 class=\"list-price\"> <?php echo $price; ?></h4></a>\n </div>\n\t\t\t\t\t<?php } \n } ?>\n\t\t\t</div>\n\n \t\t<?php\t\n\t}", "function getDefaultSlideshow($width, $height) \n {\n $options = $this->_options['slideshow']['advanced'];\n $options['slideshow'] = get_option('home').'/?theme-constructor=slideshow&w='.$width.'&h='.$height;\n// $options['thumbPath'] = CONSTRUCTOR_DIRECTORY_URI.\"/libs/timthumb.php?src=\";\n $options = json_encode($options);\n \n echo '<div class=\"wp-sl\"></div>';\n wp_enqueue_script('constructor-slideshow', CONSTRUCTOR_DIRECTORY_URI.'/js/jquery.wp-slideshow.js', array('jquery'));\n wp_print_scripts('constructor-slideshow');\n echo \"\n <script type='text/javascript'>\n /* <![CDATA[ */\n var wpSl = $options;\n /* ]]> */\n </script>\";\n }", "function theme_views_slideshow_thumbnailhover_controls($vss_id, $view, $options) {\n $classes = array(\n 'views_slideshow_thumbnailhover_controls',\n 'views_slideshow_controls',\n );\n\n $attributes['class'] = implode(' ', $classes);\n\n $attributes['id'] = \"views_slideshow_thumbnailhover_controls_\" . $vss_id;\n $attributes = drupal_attributes($attributes);\n\n $output = \"<div$attributes>\";\n $output .= theme('views_slideshow_thumbnailhover_control_previous', $vss_id, $view, $options);\n if ($options['views_slideshow_thumbnailhover']['timeout']) {\n $output .= theme('views_slideshow_thumbnailhover_control_pause', $vss_id, $view, $options);\n }\n $output .= theme('views_slideshow_thumbnailhover_control_next', $vss_id, $view, $options);\n $output .= \"</div>\\n\";\n return $output;\n}", "function mySlider(){\n\t// $slider['images'] = ['glavnii' => [\n\t// ['img' => '1.jpg', 'title' => 'Праздник дня рождения', 'text' => 'Веселые ребята и их родители с нашими аниматорами'],\n\t// ['img' => '2.jpg', 'title' => 'Праздник дня рождения', 'text' => 'Веселые ребята и их родители с нашими аниматорами'],\n\t// ['img' => '3.jpg', 'title' => 'Праздник дня рождения', 'text' => 'Веселые ребята и их родители с нашими аниматорами'],\n\t// ]];\n\t// setOption('MySliders', $slider, true);\n\tinclude 'settings.php';\n}", "function ud_update_woo_flexslider_options($options) {\n\n\t// $options['sync'] = '.flex-control-thumbs';\n\n\t// $options['animation'] = 'slide';\n\t// $options['animationLoop'] = true;\n\n\t// $options['controlNav'] = 'thumbnails';\n\t// // show arrows\n\t// $options['directionNav'] = true;\n\t// $options['animation'] = \"slide\";\n\n\t// autoplay (work with only slideshow too)\n\t// $options['slideshow'] = true;\n\t// $options['autoplay'] = true;\n\n\t// control par texte (boolean) ou bien par vignettes\n\t// $options['controlNav'] = true;\n\t// $options['controlNav'] = \"thumbnails\";\n\n\t// $options['mousewheel'] = true;\n\t// $columns = 5; // change this to 2, 3, 5, etc. Default is 4.\n\t// $wrapper_classes[2] = 'woocommerce-product-gallery--columns-' . absint($columns);\n\n\t// return $options;\n\t// show arrows\n\t$options['directionNav'] = true;\n\t// $options['animation'] = \"slide\";\n\n\t// infinite loop\n\t// $options['animationLoop'] = true;\n\n\t// autoplay (work with only slideshow too)\n\t// $options['slideshow'] = false;\n\t// $options['autoplay'] = false;\n\n\t// control par texte (boolean) ou bien par vignettes\n\t// $options['controlNav'] = true;\n\t// $options['controlNav'] = \"thumbnails\";\n\n\t// $options['mousewheel'] = true;\n\n\t// $options['itemWidth'] = 350;\n\t// $options['itemHeight'] = 350;\n\n\t$options['prevText'] = '<i class=\"fal fa-arrow-right\"></i>';\n\t$options['nextText'] = '<i class=\"fal fa-arrow-left\"></i>';\n\n\treturn $options;\n}", "function add_slider_settings() {\n\t\t?>\n\t\t<script type=\"text/html\" id=\"tw-sliders-gallery-settings\">\n\t\t\t<div class=\"tw-sliders-slider-settings\">\n\t\t\t\t<h3><?php _e('Slider Settings','tw-sliders'); ?></h3>\n\t\t\t\t\n\t\t\t\t<label class=\"setting\">\t\t\t\t\t\n\t\t\t\t\t<input type=\"hidden\" class=\"uid\" data-setting=\"uid\" value=\"0\" />\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<label class=\"setting\">\n\t\t\t\t\t<span><?php _e('Image width','tw-sliders'); ?></span>\n\t\t\t\t\t<input type=\"text\" class=\"width\" data-setting=\"width\" />\n\t\t\t\t\t<p class=\"description\"><?php _e('Leave empty to inherit','tw-sliders'); ?> (<?php echo get_option('tw-sliders-image-width'); ?>)</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<label class=\"setting\">\n\t\t\t\t\t<span><?php _e('Image height','tw-sliders'); ?></span>\n\t\t\t\t\t<input type=\"text\" class=\"height\" data-setting=\"height\" />\n\t\t\t\t\t<p class=\"description\"><?php _e('Leave empty to inherit','tw-sliders'); ?> (<?php echo get_option('tw-sliders-image-height'); ?>)</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<?php if($this->transitions) { ?>\n\t\t\t\t\t<label class=\"setting\">\n\n\t\t\t\t\t\t<span><?php _e('Transition','tw-sliders'); ?></span>\n\n\t\t\t\t\t\t<select class=\"transition\" data-setting=\"transition\">\n\t\t\t\t\t\t\t<option value=\"inherit\" selected><?php _e( 'Current setting', 'tw-sliders' ); ?></option>\n\n\t\t\t\t\t\t\t<?php foreach( $this->transitions as $transition => $label ) { ?>\n\t\t\t\t\t\t\t\t<option value=\"<?php echo $transition; ?>\">\n\t\t\t\t\t\t\t\t\t<?php echo $label; ?>\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t<?php } ?>\n\n\t\t\t\t\t\t</select>\n\n\t\t\t\t\t</label>\n\t\t\t\t<?php } ?>\n\t\t\t\t\n\t\t\t\t<label class=\"setting\">\n\t\t\t\t\t<span><?php _e('Speed (ms)','tw-sliders'); ?></span>\n\t\t\t\t\t<input type=\"text\" class=\"speed\" data-setting=\"speed\" />\n\t\t\t\t\t<p class=\"description\"><?php _e('Leave empty to inherit','tw-sliders'); ?> (<?php echo get_option('tw-sliders-speed'); ?>)</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<label class=\"setting\">\n\t\t\t\t\t<span><?php _e('Timeout (ms)','tw-sliders'); ?></span>\n\t\t\t\t\t<input type=\"text\" class=\"timeout\" data-setting=\"timeout\" />\n\t\t\t\t\t<p class=\"description\"><?php _e('Leave empty to inherit','tw-sliders'); ?> (<?php echo get_option('tw-sliders-timeout'); ?>)</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<?php if($this->navigation) : ?>\n\t\t\t\t\t<label class=\"setting\">\n\t\t\t\t\t\t<span><?php _e('Navigation','tw-sliders'); ?></span>\n\t\t\t\t\t\t<select class=\"navigation\" data-setting=\"navigation\">\n\t\t\t\t\t\t\t<option value=\"inherit\" selected><?php _e('Current setting','tw-sliders'); ?></option>\n\t\t\t\t\t\t\t<?php foreach($this->navigation as $navigate=>$meta) : ?>\n\t\t\t\t\t\t\t\t<option value=\"<?php echo $navigate; ?>\"><?php echo $meta['name']; ?></option>\n\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</label>\n\t\t\t\t<?php endif; ?>\n\t\t\t</div>\n\t\t</script>\n\t\t<?php\n\t}", "public function builder_additional_styles() { ?>\n\n <style id=\"cv-builder-cv_section-module\">\n .cv-module-cv_section .cv-sidebar-representation {\n display: none;\n }\n @media (min-width: 800px) {\n .cv-module-cv_section:not(.sidebar_layout-no-sidebar) > .cv-sidebar-representation {\n display: block;\n position: absolute;\n top: 0; bottom: 0;\n margin: auto 0;\n height: 35px;\n line-height: 35px;\n width: 125px;\n text-align: center;\n font-weight: 400;\n font-size: 14px;\n color: #999;\n }\n .cv-module-cv_section:not(.sidebar_layout-no-sidebar) > .cv-module-content {\n min-height: 185px;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-module-content {\n border-left: 125px solid #eee !important;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-sidebar-representation {\n left: 0;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-module-content {\n border-right: 125px solid #eee !important;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-sidebar-representation {\n right: 0;\n }\n html:not([dir=\"rtl\"]) .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-module-content {\n -webkit-border-radius: 0px 3px 3px 0px;\n border-radius: 0px 3px 3px 0px;\n }\n html:not([dir=\"rtl\"]) .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-sidebar-representation {\n left: 35px;\n }\n html[dir=\"rtl\"] .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-module-content {\n -webkit-border-radius: 3px 0px 0px 3px;\n border-radius: 3px 0px 0px 3px;\n }\n html[dir=\"rtl\"] .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-sidebar-representation {\n right: 35px;\n }\n }\n </style>\n\n <?php }", "function frontpageSlideshow_CSS($options,$fslast) {\n/*?>\n<!-- added by plugin FrontpageSlideshow -->\n<!--[if IE]>\n\t<style type=\"text/css\">\n\t\t#fs-text { filter: alpha(opacity=<?php echo str_replace('%','',$options['values']['fs_text_opacity'])?>); }\n\t</style>\n<![endif]-->\n<?php*/ ob_start(); ?>\n#fs-main {\n\twidth: <?php echo $options['values']['fs_main_width']?>!important;\n\theight: <?php echo $options['values']['fs_main_height']?>!important;\n\tborder: 1px solid <?php echo $options['values']['fs_main_border_color']?>;\n<?php\nif ($options['values']['fs_rounded']) {\n?>\n\t-moz-border-radius: 5px;\n\t-khtml-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n<?php\n}\n?>\n\toverflow: hidden;\n\tbackground: <?php echo $options['values']['fs_main_color']?> <?php \n\t\t\t\tif ($options['values']['fs_main_background_image'] != '' && $options['values']['fs_main_background_image'] != 'none') {\n\t\t\t\t\t$url = $options['values']['fs_main_background_image'];\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')';\n\t\t\t\t} else {\n\t\t\t\t\techo 'none';\n\t\t\t\t}\n\t\t\t ?> repeat scroll center center!important;\n\tcolor: <?php echo $options['values']['fs_font_color']?>;\n\tfont-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;\n\ttext-align: left;\n}\n\n#fs-slide {\n\tfloat: <?php if ($options['values']['fs_buttons_position']=='right') echo 'left'; else echo 'right'; ?>;\n\twidth: <?php if ($options['values']['fs_show_buttons']) echo $options['values']['fs_slide_width']; else echo '100%'; ?>;\n\theight: 100%;\n<?php\nif ($options['values']['fs_rounded']) {\n?>\n\t-moz-border-radius: 5px;\n\t-khtml-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n<?php\n}\n?>}\n#fs-picture {\n\twidth: 100%;\n\theight: 100%;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: url(<?php\n\t\t\t\t\tif ($options['values']['fs_loader_image'] != '') {\n\t\t\t\t\t\t$url = $options['values']['fs_loader_image'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$url = get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/loading_black.gif';\n\t\t\t\t\t}\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo $url ?>);\n<?php\nif ($options['values']['fs_rounded']) {\n?>\n\t-moz-border-radius: 5px;\n\t-khtml-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n<?php\n}\n?>}\n#fs-placeholder {\n\theight: <?php echo $options['values']['fs_placeholder_height']?>;\n}\n#fs-placeholder a {\n\tdisplay: block;\n\theight: 100%;\n\twidth: 100%;\n\ttext-decoration: none;\n\tcolor: transparent;\n\tborder: none;\n}\n#fs-placeholder a:hover {\n\ttext-decoration: none;\n}\n#fs-text {\n<?php if ($options['values']['fs_show_comment']) {?>\n\topacity: <?php echo intval(str_replace('%','',$options['values']['fs_text_opacity'])) / 100; ?>;\n\tbackground-color: <?php echo $options['values']['fs_text_bgcolor']?>;\n\t/*margin-top: 10px;*/\n\tpadding: 10px;\n<?php } else { ?>\n\tdisplay: none;\n<?php } ?>\n}\n#fs-text a {\n\tcolor: #c0e7f8;\n\ttext-decoration: underline;\n}\n#fs-text a:visited {\n\tcolor: #99fbac;\n\ttext-decoration: underline;\n}\n#fs-title {\n\tfont-weight: bold;\n\tfont-size: 14px!important;\n\tline-height: 1.1em;\n\tmargin-bottom: 0.25em;\n\tfont-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;\n}\n#fs-title a , #fs-title a:visited {\n\tcolor: <?php echo $options['values']['fs_font_color']?>;\n\ttext-decoration: none;\n}\n#fs-title a:hover {\n\ttext-decoration: underline;\n}\n.fs-title {\n\tfont-weight: bold;\n\tfont-size: 11px!important;\n\tline-height: 1.4em;\n\tmargin: 0!important;\n\tpadding: 5px 5px 0!important;\n\tmargin-bottom: 0.25em;\n\tfont-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;\n}\n#fs-excerpt {\n\tfont-size: 14px!important;\n\tpadding-left: 10px;\n\tline-height: 1.4em;\n}\n.fs-comment {\n\tfont-size: 8px!important;\n\tline-height: 1.2em;\n\tfont-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;\n\tpadding: 0 5px 5px!important;\n}\n#fs-main ul {\n\tdisplay: block;\n\tfloat: <?php echo $options['values']['fs_buttons_position']?>!important;\n\tclear: none!important;\n\tmargin: 0!important;\n\tpadding: 0!important;\n\twidth: <?php if ($options['values']['fs_slide_width']=='100%' || !$options['values']['fs_show_buttons']) echo '0'; else echo $options['values']['fs_buttons_width']?>!important;\n\theight: 100%;\n\tlist-style: none!important;\n\tbackground: <?php echo $options['values']['fs_ul_background_color']?> <?php \n\t\t\t\tif ($options['values']['fs_ul_background_image'] != '' && $options['values']['fs_ul_background_image'] != 'none') {\n\t\t\t\t\t$url = $options['values']['fs_ul_background_image'];\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')';\n\t\t\t\t} else {\n\t\t\t\t\techo 'none';\n\t\t\t\t}\n\t\t\t ?> repeat scroll center center!important;\n<?php\nif ($options['values']['fs_rounded']) {\n?>\n\t-moz-border-radius: 5px;\n\t-khtml-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n<?php\n}\n?>\tz-index: 99999;\n}\n#fs-main li {\n\tdisplay: block!important;\n\tpadding: 0!important;\n\tmargin: 0!important;\n\twidth: 100%!important;\n\theight: <?php\n\t// auto calculate the height of buttons\n\t$number = str_replace('px','',str_replace('%','',$fslast));\n\t$height = str_replace('px','',str_replace('%','',trim($options['values']['fs_main_height'])));\n\t\n\t$h = floor($height/$number);\n\t\n\techo $h.'px';\n\t?>!important;\n<?php\nif ($options['values']['fs_rounded']) {\n?>\n\t-moz-border-radius: 3px;\n\t-khtml-border-radius: 3px;\n\t-webkit-border-radius: 3px;\n\tborder-radius: 3px;\n<?php\n}\n?>\n\tcursor: pointer;\n}\n#fs-main li:before { content:\"\"; }\n#fs-main li:after { content:\"\"; }\n\n.fs-entry {\n\tbackground: <?php echo $options['values']['fs_button_normal_color']?> <?php \n\t\t\t\tif ($options['values']['fs_button_background_image'] != '' && $options['values']['fs_button_background_image'] != 'none') {\n\t\t\t\t\t$url = $options['values']['fs_button_background_image'];\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')';\n\t\t\t\t} else {\n\t\t\t\t\techo 'none';\n\t\t\t\t}\n\t\t\t ?> repeat scroll center center!important;\n\tmargin: 0!important;\n\toverflow: hidden!important;\n}\n.fs-entry:hover {\n\tbackground: <?php echo $options['values']['fs_button_hover_color']?> <?php \n\t\t\t\tif ($options['values']['fs_button_hover_background_image'] != '' && $options['values']['fs_button_hover_background_image'] != 'none') {\n\t\t\t\t\t$url = $options['values']['fs_button_hover_background_image'];\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')';\n\t\t\t\t} else {\n\t\t\t\t\techo 'none';\n\t\t\t\t}\n\t\t\t ?> repeat scroll center center!important;\n}\n.fs-current {\n\tbackground: <?php echo $options['values']['fs_button_current_color']?> <?php \n\t\t\t\tif ($options['values']['fs_current_button_background_image'] != '' && $options['values']['fs_current_button_background_image'] != 'none') {\n\t\t\t\t\t$url = $options['values']['fs_current_button_background_image'];\n\t\t\t\t\t(is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')';\n\t\t\t\t} else {\n\t\t\t\t\techo 'none';\n\t\t\t\t}\n\t\t\t ?> repeat scroll center center!important;\n}\n.fs-skip {\n\tposition: absolute!important;\n\ttop: -300000px!important;\n\twidth: 0!important;\n\theight: 0!important;\n}\n<?php\n$css = ob_get_contents();\ndefine('FS_CSS',$css);\nob_end_clean();\n}", "public function set_slider_slides($slides) {\n $this->slides_to_include = $slides;\n }", "public function sliders()\n {\n \n $this->data['main_title']='Sliders';\n $this->data['url_title']='Sliders';\n $param=[];\n $this->data['slider_details']=$this->settings->sliderList($param);\n $this->load->view('slider/manage_slider',$this->data);\n }", "function register_non_admin_styles(){\r\n\t\r\n\t\t$cp_page_xml = '';\r\n\t\t$slider_type = '';\r\n\t\r\n\t\tglobal $post,$post_id,$cp_page_xml,$slider_type;\r\n\t\t\r\n\t\t$cp_page_xml = get_post_meta($post_id,'page-option-item-xml', true);\r\n\t\t$slider_type = get_post_meta ( $post_id, \"page-option-top-slider-types\", true );\r\n\t\t\r\n\t\t\r\n\t\twp_enqueue_style( 'default-style', get_stylesheet_uri() ); //Default Stylesheet\r\n\t\t\r\n\t\t//Woo-commerce Required 2 Files\r\n\t\twp_enqueue_style('woocommerce_frontend_styles',CP_PATH_URL.'/frontend/css/woocommerce.css');\r\n\t\twp_enqueue_style('cp-woocommerce',CP_PATH_URL.'/frontend/css/wp-commerce.css');\r\n\t\t\r\n\t\t// Politicize Update Responsive file\r\n\t\twp_enqueue_style('cp-woocommerce',CP_PATH_URL.'/frontend/css/update-responsive.css');\r\n\r\n\t\t\r\n\t\t//Bx-slider scripts\r\n\t\twp_register_script('cp-bx-slider', CP_PATH_URL.'/frontend/js/bxslider.min.js', false, '1.0', true);\r\n\t\twp_enqueue_script('cp-bx-slider');\t\r\n\t\twp_register_script('jquery.bxslider', CP_PATH_URL.'/frontend/js/jquery.bxslider.js', false, '1.0', true);\r\n\t\twp_enqueue_script('jquery.bxslider');\t\r\n\t\t\r\n\t\t//wp_enqueue_style('cp_default',CP_PATH_URL.'/frontend/css/cp_default.css'); //Include Default Widgets and Other settings\r\n\t\twp_enqueue_style('cp-bootstrap',CP_PATH_URL.'/frontend/css/bootstrap.css'); //Bootstrap Grid\r\n\t\twp_enqueue_style('cp-bootstrap-res',CP_PATH_URL.'/frontend/css/bootstrap-responsive.css'); //Bootstrap responsive\r\n\t\twp_enqueue_style('cp-jplayer-res',CP_PATH_URL.'/frontend/css/jplayer.css'); //Bootstrap responsive\r\n\t\r\n\t\twp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome.css');\r\n\t\twp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome-ie7.css');\r\n\t\r\n\t\t$rtl_layout = '';\r\n\t\t$site_loader = '';\r\n\t\t$element_loader = '';\r\n\t\t//General Settings Values\r\n\t\t$cp_general_settings = get_option('general_settings');\r\n\t\tif($cp_general_settings <> ''){\r\n\t\t\t$cp_logo = new DOMDocument ();\r\n\t\t\t$cp_logo->loadXML ( $cp_general_settings );\r\n\t\t\t$rtl_layout = find_xml_value($cp_logo->documentElement,'rtl_layout');\r\n\t\t\t$site_loader = find_xml_value($cp_logo->documentElement,'site_loader');\r\n\t\t\t$element_loader = find_xml_value($cp_logo->documentElement,'element_loader');\r\n\t\t}\r\n\t\t\r\n\t\t//Responsive stylesheet\r\n\t\t\r\n\t\t\r\n\t\twp_deregister_style('woocommerce-general');\r\n\t\twp_deregister_style('woocommerce-layout');\r\n\t\twp_deregister_style('woocommerce_frontend_styles');\t\t\r\n\t\twp_deregister_style('events-manager');\t\t\r\n\t\r\n\t\t\r\n\t\twp_enqueue_style('cp-event-manager',CP_PATH_URL.'/frontend/css/event-manager.css'); //Event Manager\r\n\t\twp_enqueue_style('woocommerce_frontend_styles',CP_PATH_URL.'/frontend/css/woocommerce.css');\t\t\t\r\n\t\t//Call own css for prayer box\r\n\t\tif(function_exists('pb_includePublicCSS')){\r\n\t\t\twp_enqueue_style('cp-prayer-box',CP_PATH_URL.'/frontend/css/gd-praybox-sc.css'); //prayer Manager\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//RTL Layouts\r\n\t\tif($rtl_layout == 'enable'){\r\n\t\t\twp_enqueue_style('cp-rtl',CP_PATH_URL.'/rtl.css');\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Facebook Fan Page Script\r\n\t\tif(isset($post->ID)){\r\n\t\t\t$facebook_fan = '';\r\n\t\t\t$facebook_fan = get_post_meta ( $post->ID, \"page-option-item-facebook-selection\", true );\r\n\t\t\tif($facebook_fan == 'Yes'){$facebook_fan = 'facebook_fan';\r\n\t\t\t\twp_enqueue_style('style_810',CP_PATH_URL.'/frontend/css/style810.css');\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\t$maintenance_mode = get_themeoption_value('maintenance_mode','general_settings');\t\t\t\t\r\n\t\tif($maintenance_mode == 'enable'){\t\t\r\n\t\t\twp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css');\r\n\t\t}\r\n\r\n\t\t$twitter_feed = get_themeoption_value('twitter_feed','general_settings');\r\n\t\tif($twitter_feed == 'enable'){ \r\n\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');\r\n\t\t}\r\n\r\n\t\tif(isset($post)){\r\n\t\t\t$content = strip_tags(get_the_content());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( has_shortcode( $post->post_content, 'event_counter_box' ) ) { \t\t\r\n\t\t\t\twp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( has_shortcode( $post->post_content, 'slider' ) ) { \t\t\r\n\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/shortcodes/bxslider.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( has_shortcode( $post->post_content, 'counter_circle' ) ) { \t\t\r\n\t\t\t\twp_enqueue_style('cp-easy-chart',CP_PATH_URL.'/frontend/shortcodes/chart.css');\r\n\t\t\t}\r\n\r\n\t\t\tif ( has_shortcode( $post->post_content, 'counters_circle' ) ) { \t\t\r\n\t\t\t\twp_enqueue_style('cp-easy-chart',CP_PATH_URL.'/frontend/shortcodes/chart.css');\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Widget Active\r\n\t\tif(is_active_widget( '', '', 'twitter_widget')){\t\t\t\r\n\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/shortcodes/bxslider.css');\r\n\t\t}\r\n\t\r\n\t\tif( is_search() || is_archive() ){\r\n\t\t\r\n\t\t\twp_enqueue_style('cp-anything-slider',CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');\r\n\t\r\n\t\t\r\n\t\r\n\t\t// Post post_type\r\n\t\t}else if( isset($post) && $post->post_type == 'post' || \r\n\t\t\tisset($post) && $post->post_type == 'event' ){\r\n\t\t\r\n\t\t\t\t// If using slider (flex slider)\t\r\n\t\t\t\tif(!is_home()){\r\n\t\t\t\t\t$thumbnail_types = '';\r\n\t\t\t\t\t$post_detail_xml = get_post_meta($post->ID, 'post_detail_xml', true);\r\n\t\t\t\t\tif($post_detail_xml <> ''){\r\n\t\t\t\t\t\t$cp_post_xml = new DOMDocument ();\r\n\t\t\t\t\t\t$cp_post_xml->loadXML ( $post_detail_xml );\r\n\t\t\t\t\t\t$thumbnail_types = find_xml_value($cp_post_xml->documentElement,'post_thumbnail');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif( $thumbnail_types == 'Slider'){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$event_detail_xml = get_post_meta($post->ID, 'event_detail_xml', true);\r\n\t\t\t\t\tif($event_detail_xml <> ''){\r\n\t\t\t\t\t\t$cp_event_xml = new DOMDocument ();\r\n\t\t\t\t\t\t$cp_event_xml->loadXML ( $event_detail_xml );\r\n\t\t\t\t\t\t$event_thumbnail = find_xml_value($cp_event_xml->documentElement,'event_thumbnail');\r\n\t\t\t\t\t\t//Call the CountDown Style\r\n\t\t\t\t\t\twp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css'); //Load Style\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t// Page post_type\r\n\t\t}else if( isset($post) && $post->post_type == 'page' ){\r\n\t\t\r\n\t\t\tglobal $post,$cp_page_xml, $slider_type, $cp_top_slider_type;\r\n\t\t\t$cp_page_xml = get_post_meta($post->ID,'page-option-item-xml', true);\r\n\t\t\t$cp_top_slider_switch = get_post_meta($post->ID,'page-option-top-slider-on', true);\r\n\t\t\t$slider_type = get_post_meta ( $post->ID, \"page-option-top-slider-types\", true );\r\n\t\t\t$cp_top_slider_type = get_post_meta($post->ID,'page-option-top-slider-types', true);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Layer Slider\r\n\t\t\tif(strpos($cp_page_xml,'<slider-type>Layer-Slider</slider-type>') > -1 || $slider_type == 'Layer-Slider'){\r\n\t\t\t\t//wp_enqueue_style('layerslider_js', CP_PATH_URL.'/frontend/css/layerslider.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using carousel slider\r\n\t\t\tif(\tstrpos($cp_page_xml,'<slider-type>Flex-Slider</slider-type>') > -1 || $slider_type == 'Flex-Slider'){\r\n\t\t\t\t\r\n\t\t\t\twp_enqueue_style('cp-flex-slider',CP_PATH_URL.'/frontend/css/flexslider.css');\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Bx Slider Condition\r\n\t\t\tif(strpos($cp_page_xml,'<slider-type>Bx-Slider</slider-type>') > -1 || $slider_type == 'Bx-Slider' ){\r\n\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(strpos($cp_page_xml,'<Column>') > -1){\r\n\t\t\t\twp_enqueue_style('cp-easy-chart',CP_PATH_URL.'/frontend/shortcodes/chart.css');\r\n\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/shortcodes/bxslider.css');\r\n\t\t\t\twp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css');\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif( strpos($cp_page_xml,'<eventview>Calendar View</eventview>') > -1 ){\r\n\t\t\r\n\t\t\t\twp_enqueue_style('cp-calender-view', CP_PATH_URL.'/framework/javascript/fullcalendar/fullcalendar.css');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t// If using filterable plugin\r\n\t\t\tif( strpos($cp_page_xml,'<show-filterable>') > -1 ){\r\n\t\t\t\r\n\t\t\t\twp_enqueue_style('cp-style-view', CP_PATH_URL.'/frontend/css/style_animate.css');\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using filterable plugin\r\n\t\t\tif( strpos($cp_page_xml,'<filterable>Yes</filterable>') > -1 ){\r\n\t\t\t\r\n\t\t\t\twp_register_script('filterable', CP_PATH_URL.'/frontend/shortcodes/jquery-filterable.js', false, '1.0', true);\r\n\t\t\t\twp_enqueue_script('filterable');\r\n\t\t\t\t\r\n\t\t\t\twp_register_script('jquery-easing-1.3', CP_PATH_URL.'/frontend/js/jquery-easing-1.3.js', false, '1.0', true);\r\n\t\t\t\twp_enqueue_script('jquery-easing-1.3');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using Services\r\n\t\t\tif( strpos($cp_page_xml,'<service-widget-style>Circle-Icon</service-widget-style>') > -1 ){\r\n\t\t\t\r\n\t\t\t\twp_enqueue_style('circle-hover',CP_PATH_URL.'/frontend/css/circle-hover.css');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using Events\r\n\t\t\tif( strpos($cp_page_xml,'<Events>') > -1 ){\r\n\t\t\t\twp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css'); //Load Style\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using NewsSlider\r\n\t\t\tif( strpos($cp_page_xml,'<News-Slider>') > -1 ){\r\n\t\t\t\r\n\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If using NewsSlider\r\n\t\t\tif( strpos($cp_page_xml,'<Client-Slider>') > -1 ){\r\n\t\t\t\r\n\t\t\t\twp_enqueue_style('cp-content-slider',CP_PATH_URL.'/frontend/css/content_slider_style.css');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\tif( strpos($cp_page_xml,'<Portfolio>') > -1 || strpos($cp_page_xml,'<Portfolio-Gallery>') > -1){\r\n\t\t\t\r\n\t\t\t\twp_enqueue_style('prettyPhoto',CP_PATH_URL.'/frontend/css/prettyphoto.css');\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t// if using timeline\r\n\t\t\tif( strpos($cp_page_xml,'<Timeline>') > -1 ){\r\n\t\t\t\twp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if using timeline\r\n\t\t\tif( strpos($cp_page_xml,'<Woo-Products>') > -1 ){\r\n\t\t\t\twp_enqueue_style('cp-woocommerce',CP_PATH_URL.'/frontend/css/wp-commerce.css');\r\n\t\t\t\twp_enqueue_style('prettyPhoto',CP_PATH_URL.'/frontend/css/prettyphoto.css');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( strpos($cp_page_xml,'<Sermons>') > -1 || strpos($cp_page_xml,'<Gallery>') > -1 || strpos($cp_page_xml,'<Our-Team>') > -1 || strpos($cp_page_xml,'<News>') > -1 || strpos($cp_page_xml,'<Events>') > -1){\r\n\t\t\t\twp_enqueue_style('prettyPhoto',CP_PATH_URL.'/frontend/css/prettyphoto.css');\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( strpos($cp_page_xml,'<Woo-Products>') > -1 ){\r\n\t\t\t\t//WooCommerce Style\r\n\t\t\t\twp_enqueue_style('woocommerce_frontend_styles',CP_PATH_URL.'/frontend/css/woocommerce.css');\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t$font_google = '';\r\n\t\t$font_size_normal = '';\r\n\t\t$menu_font_google = '';\r\n\t\t$fonts_array = '';\r\n\t\t$font_google_heading = '';\r\n\t\t$heading_h1 = '';\r\n\t\t$heading_h2 = '';\r\n\t\t$heading_h3 = '';\r\n\t\t$heading_h4 = '';\r\n\t\t$heading_h5 = '';\r\n\t\t$heading_h6 = '';\r\n\t\t$embed_typekit_code = '';\r\n\t\t$cp_typography_settings = get_option('typography_settings');\r\n\t\t\r\n\t\t//$dd = find_xml_node($logo_uploa_d,'logo_upload');\r\n\t\tif($cp_typography_settings <> ''){\r\n\t\t\t$cp_typo = new DOMDocument ();\r\n\t\t\t$cp_typo->loadXML ( $cp_typography_settings );\r\n\t\t\t$font_google = find_xml_value($cp_typo->documentElement,'font_google');\r\n\t\t\t$font_size_normal = find_xml_value($cp_typo->documentElement,'font_size_normal');\r\n\t\t\t$menu_font_google = find_xml_value($cp_typo->documentElement,'menu_font_google');\r\n\t\t\t$font_google_heading = find_xml_value($cp_typo->documentElement,'font_google_heading');\r\n\t\t\t$heading_h1 = find_xml_value($cp_typo->documentElement,'heading_h1');\r\n\t\t\t$heading_h2 = find_xml_value($cp_typo->documentElement,'heading_h2');\r\n\t\t\t$heading_h3 = find_xml_value($cp_typo->documentElement,'heading_h3');\r\n\t\t\t$heading_h4 = find_xml_value($cp_typo->documentElement,'heading_h4');\r\n\t\t\t$heading_h5 = find_xml_value($cp_typo->documentElement,'heading_h5');\r\n\t\t\t$heading_h6 = find_xml_value($cp_typo->documentElement,'heading_h6');\r\n\t\t\t$embed_typekit_code = find_xml_value($cp_typo->documentElement,'embed_typekit_code');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Body Font Installing\r\n\t\tif(cp_get_font_type($font_google) == 'Google_Font'){\r\n\t\t\t//Google Font Body\r\n\t\t\tif($font_google <> ''){\r\n\t\t\t\twp_enqueue_style('googleFonts', get_google_font_url($font_google));\r\n\t\t\t}\t\r\n\t\t} else{\r\n\t\t\t//Adobe Edge Font (TypeKit) \r\n\t\t\tif($font_google <> ''){\r\n\t\t\t\twp_register_script( 'adobe-edge-font', \"http://use.edgefonts.net/\".$font_google.\".js\", false, '1.0', false);\r\n\t\t\t\twp_enqueue_script('adobe-edge-font');\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(cp_get_font_type($font_google_heading) == 'Google_Font'){\r\n\t\t\tif($font_google_heading <> ''){\t\t\t\t\r\n\t\t\t\twp_enqueue_style('googleFonts-heading', get_google_font_url($font_google_heading) );\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($font_google_heading <> ''){\r\n\t\t\t\twp_register_script( 'adobe-edge-heading', \"http://use.edgefonts.net/\".$font_google_heading.\".js\", false, '1.0', false);\r\n\t\t\t\twp_enqueue_script('adobe-edge-heading');\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menu Font Installing\r\n\t\t//verify_google_menu($menu_font_google);\r\n\t\tif(cp_get_font_type($menu_font_google) == 'Google_Font'){\r\n\t\t\tif($menu_font_google <> ''){\r\n\t\t\t\twp_enqueue_style('menu-googleFonts-heading', get_google_font_url($menu_font_google));\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($menu_font_google <> ''){\r\n\t\t\t\twp_register_script( 'menu-edge-heading', \"http://use.edgefonts.net/\".$menu_font_google.\".js\", false, '1.0', false);\r\n\t\t\t\twp_enqueue_script('menu-edge-heading');\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "function register_cpt_slider() {\r\n\r\n $labels = array(\r\n 'name' => _x( 'Slider', 'slider' ),\r\n 'singular_name' => _x( 'Slider item', 'slider' ),\r\n 'add_new' => _x( 'Adicionar Slide', 'slider' ),\r\n 'add_new_item' => _x( 'Adicionar Slide', 'slider' ),\r\n 'edit_item' => _x( 'Editar Slide', 'slider' ),\r\n 'new_item' => _x( 'Novo Slide', 'slider' ),\r\n 'view_item' => _x( 'Ver Slide', 'slider' ),\r\n 'search_items' => _x( 'Procurar Slide', 'slider' ),\r\n 'not_found' => _x( 'Nenhum Slide encontrado', 'slider' ),\r\n 'not_found_in_trash' => _x( 'Nenhum Slide encontrado no lixo', 'slider' ),\r\n 'parent_item_colon' => _x( 'Slide Pai:', 'slider' ),\r\n 'menu_name' => _x( 'Slider', 'slider' ),\r\n );\r\n\r\n $args = array(\r\n 'labels' => $labels,\r\n 'hierarchical' => true,\r\n 'supports' => array('title', 'page-attributes', 'revisions'),\r\n 'taxonomies' => array('category','post_tag'),\r\n 'public' => true,\r\n 'show_ui' => true,\r\n 'show_in_menu' => true,\r\n 'menu_position' => 20,\r\n 'hierarchical' => true,\r\n 'show_in_nav_menus' => true,\r\n 'publicly_queryable' => true,\r\n 'exclude_from_search' => false,\r\n 'has_archive' => false,\r\n 'query_var' => true,\r\n 'can_export' => true,\r\n 'capability_type' => 'page'\r\n );\r\n\r\n register_post_type( 'slider', $args );\r\n}", "function rev_slider_shortcode($args, $mid_content = null){\n $zt_params = JComponentHelper::getParams('com_zt_layerslider');\n $js_defer = $zt_params->get('js_defer') ? 'defer=\"defer\"' : '';\n extract(shortcode_atts(array('alias' => ''), $args, 'zt_layerslider'));\n extract(shortcode_atts(array('settings' => ''), $args, 'zt_layerslider'));\n extract(shortcode_atts(array('order' => ''), $args, 'zt_layerslider'));\n\n if($settings !== '') $settings = json_decode(str_replace(array('({', '})', \"'\"), array('[', ']', '\"'), $settings) ,true);\n if($order !== '') $order = explode(',', $order);\n\n $sliderAlias = ($alias != '') ? $alias : ZTSliderFunctions::getVal($args,0);\n\n $gal_ids = check_for_shortcodes($mid_content); //check for example on gallery shortcode and do stuff\n\n ob_start();\n if(!empty($gal_ids)){ //add a gallery based slider\n $slider = ZTSliderOutput::putSlider($sliderAlias, '', $gal_ids);\n }else{\n $slider = ZTSliderOutput::putSlider($sliderAlias, '', array(), $settings, $order);\n }\n $content = ob_get_contents();\n ob_clean();\n ob_end_clean();\n\n if(!empty($slider)){\n // Do not output Slider if we are on mobile\n $disable_on_mobile = $slider->getParam(\"disable_on_mobile\",\"off\");\n if($disable_on_mobile == 'on'){\n $mobile = (strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad') || strstr($_SERVER['HTTP_USER_AGENT'],'Windows Phone') || wp_is_mobile()) ? true : false;\n if($mobile) return false;\n }\n\n $show_alternate = $slider->getParam(\"show_alternative_type\",\"off\");\n\n if($show_alternate == 'mobile' || $show_alternate == 'mobile-ie8'){\n if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad') || strstr($_SERVER['HTTP_USER_AGENT'],'Windows Phone') || wp_is_mobile()){\n $show_alternate_image = $slider->getParam(\"show_alternate_image\",\"\");\n return '<img class=\"tp-slider-alternative-image\" src=\"'.$show_alternate_image.'\" data-no-retina>';\n }\n }\n\n //handle slider output types\n echo \"<link rel='stylesheet' type='text/css' href='\".JUri::root(true) . '/administrator/components/com_zt_layerslider/assets/css/settings.css'.\"'>\";\n echo \"<script type='text/javascript' src='\".JUri::root(true) . '/administrator/components/com_zt_layerslider/assets/js/jquery.themepunch.tools.min.js'.\"' \".$js_defer.\" ></script>\";\n echo \"<script type='text/javascript' src='\".JUri::root(true) . '/administrator/components/com_zt_layerslider/assets/js/jquery.themepunch.revolution.min.js'.\"' \".$js_defer.\" ></script>\";\n echo $content;\n }else\n echo $content; //normal output\n\n }", "function wpvideocoach_dashboard_slider_content() {\r\n // Content of our Dashboard slider module\r\n\t$adminurl = admin_url('admin.php?page=wpvideocoach');\r\n\techo \"<div id='logo-slider-wrapper'><ul id='logo-slider'>\";\r\n echo wpvideocoach_videos_slider();\r\n\techo \"</ul></div><div id='dashboard-intro'><p>\" . wpvideocoach_dashboard_slider_introduction() . \"</p><p><a class='button' href='\" . $adminurl . \"'>Watch all videos</a></p></div>\";\r\n\techo wpvideocoach_video_link_color_slider();\r\n\techo \"<div class='clear'></div>\";\r\n}", "function admin_print_styles() {\n global $SlideDeckPlugin;\n\n wp_enqueue_style( \"{$this->namespace}-admin\" );\n\n if( $SlideDeckPlugin->is_plugin() ) {\n wp_enqueue_style( 'codemirror' );\n wp_enqueue_style( 'codemirror-theme-default' );\n wp_enqueue_style( 'jquery-minicolors' );\n }\n }", "public function styles() {\n\t\treturn apply_filters( 'tf_module_page_featured_image_styles', array(\n\t\t\t'tf_module_page_featured_image_container' => array(\n\t\t\t\t'label' => __( 'Image Container', 'themify-flow' ),\n\t\t\t\t'selector' => '.tf_page_featured_image',\n\t\t\t\t'basic_styling' => array( 'background', 'font', 'padding', 'margin', 'border' ),\n\t\t\t),\n\t\t\t'tf_module_page_featured_image_image' => array(\n\t\t\t\t'label' => __( 'Image', 'themify-flow' ),\n\t\t\t\t'selector' => '.tf_page_featured_image img',\n\t\t\t)\n\t\t) );\n\t}", "protected function image_style() {\n\t\t$this->start_controls_section(\n\t\t\t'section_style_retina_image',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Retina Image', 'boostify' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'width',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Width', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'tablet_default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'mobile_default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'size_units' => array( '%', 'px', 'vw' ),\n\t\t\t\t'range' => array(\n\t\t\t\t\t'%' => array(\n\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t\t'max' => 100,\n\t\t\t\t\t),\n\t\t\t\t\t'px' => array(\n\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t\t'max' => 1000,\n\t\t\t\t\t),\n\t\t\t\t\t'vw' => array(\n\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t\t'max' => 100,\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}} .boostify-retina-image img' => 'width: {{SIZE}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .boostify-retina-image .wp-caption .widget-image-caption' => 'width: {{SIZE}}{{UNIT}}; display: inline-block;',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'space',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Max Width', 'boostify' ) . ' (%)',\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'tablet_default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'mobile_default' => array(\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'size_units' => array( '%' ),\n\t\t\t\t'range' => array(\n\t\t\t\t\t'%' => array(\n\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t\t'max' => 100,\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}} .boostify-retina-image img' => 'max-width: {{SIZE}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .wp-caption-text' => 'max-width: {{SIZE}}{{UNIT}}; display: inline-block; width: 100%;',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_panel_style',\n\t\t\tarray(\n\t\t\t\t'type' => Controls_Manager::DIVIDER,\n\t\t\t\t'style' => 'thick',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'retina_image_border',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Border Style', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'default' => 'none',\n\t\t\t\t'label_block' => false,\n\t\t\t\t'options' => array(\n\t\t\t\t\t'none' => __( 'None', 'boostify' ),\n\t\t\t\t\t'solid' => __( 'Solid', 'boostify' ),\n\t\t\t\t\t'double' => __( 'Double', 'boostify' ),\n\t\t\t\t\t'dotted' => __( 'Dotted', 'boostify' ),\n\t\t\t\t\t'dashed' => __( 'Dashed', 'boostify' ),\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .boostify-retina-image-container .boostify-retina-img' => 'border-style: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'retina_image_border_size',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Border Width', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => array( 'px' ),\n\t\t\t\t'default' => array(\n\t\t\t\t\t'top' => '1',\n\t\t\t\t\t'bottom' => '1',\n\t\t\t\t\t'left' => '1',\n\t\t\t\t\t'right' => '1',\n\t\t\t\t\t'unit' => 'px',\n\t\t\t\t),\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'retina_image_border!' => 'none',\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .boostify-retina-image-container .boostify-retina-img' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'retina_image_border_color',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Border Color', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'retina_image_border!' => 'none',\n\t\t\t\t),\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .boostify-retina-image-container .boostify-retina-img' => 'border-color: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'image_border_radius',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Border Radius', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => array( 'px', '%' ),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .boostify-retina-image img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->start_controls_tabs( 'image_effects' );\n\n\t\t$this->start_controls_tab(\n\t\t\t'normal',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Normal', 'boostify' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'opacity',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Opacity', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => array(\n\t\t\t\t\t'px' => array(\n\t\t\t\t\t\t'max' => 1,\n\t\t\t\t\t\t'min' => 0.10,\n\t\t\t\t\t\t'step' => 0.01,\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}} .boostify-retina-image img' => 'opacity: {{SIZE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Css_Filter::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'css_filters',\n\t\t\t\t'selector' => '{{WRAPPER}} .boostify-retina-image img',\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab(\n\t\t\t'hover',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Hover', 'boostify' ),\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'opacity_hover',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Opacity', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => array(\n\t\t\t\t\t'px' => array(\n\t\t\t\t\t\t'max' => 1,\n\t\t\t\t\t\t'min' => 0.10,\n\t\t\t\t\t\t'step' => 0.01,\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}} .boostify-retina-image:hover img' => 'opacity: {{SIZE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Css_Filter::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'css_filters_hover',\n\t\t\t\t'selector' => '{{WRAPPER}} .boostify-retina-image:hover img',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hover_animation',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Hover Animation', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::HOVER_ANIMATION,\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'background_hover_transition',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Transition Duration', 'boostify' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => array(\n\t\t\t\t\t'px' => array(\n\t\t\t\t\t\t'max' => 3,\n\t\t\t\t\t\t'step' => 0.1,\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}} .boostify-retina-image img' => 'transition-duration: {{SIZE}}s',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->end_controls_tabs();\n\n\t\t$this->end_controls_section();\n\t}", "function wpbooklist_jre_carousel_frontend_ui_style() {\n wp_register_style( 'wpbooklist-carousel-frontend-ui', CAROUSEL_ROOT_CSS_URL.'carousel-frontend-ui.css' );\n wp_enqueue_style('wpbooklist-carousel-frontend-ui');\n}", "function soliloquy_custom_css_save_meta( $settings, $meta, $attach_id, $post_id ) {\n\n $settings['slider'][ $attach_id ]['custom_css_classes'] = isset( $meta['custom_css_classes'] ) ? $meta['custom_css_classes'] : '';\n return $settings;\n\n}", "public function ec_customizer_styles() {\n\t\t?>\n\t\t<style>\n\t\t\tli#customize-control-tribe_customizer-month_week_view-highlight_color,\n\t\t\tli#customize-control-tribe_customizer-photo_view-bg_color,\n\t\t\tli#customize-control-tribe_customizer-single_event-post_title_color {\n\t\t\t\topacity: 0.2;\n\t\t\t\tpointer-events: none;\n\t\t\t\tcursor: not-allowed;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\t}", "private function modifyPreviewModeSettings() {\n\t\t$params = $this->slider->getParams();\n\t\t$params['js_to_body'] = 'false';\n\n\t\t$this->slider->setParams( $params );\n\t}", "protected function livewireStyleDefinition()\n {\n return <<<'EOF'\n\n@livewireStyles\n\nEOF;\n }", "public function get_name(){\n return 'listslides';\n }", "function register_cpt_Slider() {\n\n $labels = array(\n 'name' => _x( 'Sliders', 'Slider' ),\n 'singular_name' => _x( 'Slider', 'Slider' ),\n 'add_new' => _x( 'Add New', 'Slider' ),\n 'add_new_item' => _x( 'Add New Slider', 'Slider' ),\n 'edit_item' => _x( 'Edit Slider', 'Slider' ),\n 'new_item' => _x( 'New Slider', 'Slider' ),\n 'view_item' => _x( 'View Slider', 'Slider' ),\n 'search_items' => _x( 'Search Sliders', 'Slider' ),\n 'not_found' => _x( 'No Sliders found', 'Slider' ),\n 'not_found_in_trash' => _x( 'No Sliders found in Trash', 'Slider' ),\n 'parent_item_colon' => _x( 'Parent Slider:', 'Slider' ),\n 'menu_name' => _x( 'Sliders', 'Slider' ),\n );\n\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true,\n 'description' => 'Customer Sliders',\n 'supports' => array( 'title'),\n 'public' => false,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-images-alt2',\n 'show_in_nav_menus' => true,\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'has_archive' => false,\n 'query_var' => true,\n 'can_export' => true,\n 'rewrite' => true,\n 'capability_type' => 'post'\n );\n\n register_post_type( 'Slider', $args );\n}", "function acf_slideshow_shortcode( $atts ) {\n\n\t// Attributes\n\textract( shortcode_atts(\n\t\tarray(\n\t\t\t'id' => '',\n\t\t), $atts )\n\t);\n\n\t// check if the repeater field has rows of data\n\tif( have_rows('slideshow', $id) ):\n\t\t$return = '<div class=\"flexslider\"><ul class=\"slides\">';\n\t\t// loop through the rows of data\n\t\twhile ( have_rows('slideshow', $id) ) : the_row();\n\t\t\t// get all the subfields for each slide\n\t\t\t$return .= '<li>';\n\t\t\t// Link\n\t\t\tif (get_sub_field('link_type') == 'Internal' && get_sub_field('link') != '') {\n\t\t\t\t$link = get_sub_field('link');\n\t\t\t} elseif (get_sub_field('link_type') == 'External' && get_sub_field('external_link') != '') {\n\t\t\t\t$link = get_sub_field('external_link');\n\t\t\t}\n\t\t\tif ($link != '') $return .= '<a href=\"'.$link.'\">';\n\t\t\t$image = get_sub_field('image');\n\t\t\tif( !empty($image) ): \n\n\t\t\t\t// vars\n\t\t\t\t$alt = $image['alt'];\n\n\t\t\t\t// thumbnail\n\t\t\t\t$size = 'slideshow';\n\t\t\t\t$thumb = $image['sizes'][ $size ];\n\t\t\t\t$width = $image['sizes'][ $size . '-width' ];;\n\t\t\t\t$height = $image['sizes'][ $size . '-height' ];\n\t\t\t\t\n\t\t\t\t$return .= '<div class=\"img-container\"><img src=\"'.$thumb.'\" alt=\"'.$alt.'\" width=\"'.$width.'\" height=\"'.$height.'\" /></div>';\n\t\t\t\t\n\t\t\tendif;\n\t\t\t$return .= '<div class=\"container--relative\">';\n\t\t\t$return .= '<div class=\"slide-caption\">';\n\t\t\tif (get_sub_field('caption')) $return .= '<h3 class=\"section-header--home\">'.get_sub_field('caption').'</h3>';\n\t\t\tif (get_sub_field('description')) $return .= '<h4>'.get_sub_field('description').'</h4>';\n\t\t\t$return .= '</div>'; //slide-caption\n\t\t\t$return .= '</div>'; //container\n\n\n\t\t\tif ($link != '') $return .= '</a>';\n\t\t\t$return .= '</li>';\n\t\tendwhile;\n\t\t$return .= '</ul></div>';\n\telse :\n\t\t// no rows found\n\t\t$return .= 'No slides found.';\n\tendif;\n\treturn $return;\n}", "function vcex_image_galleryslider_vc_map() {\n\tvc_map( array(\n\t\t'name' => __( 'Gallery Slider', 'wpex' ),\n\t\t'description' => __( 'Image slider with thumbnail navigation', 'wpex' ),\n\t\t'base' => 'vcex_image_galleryslider',\n\t\t'category' => WPEX_THEME_BRANDING,\n\t\t//'deprecated' => '3.0.0',\n\t\t'icon' => 'vcex-image-gallery-slider vcex-icon fa fa-picture-o',\n\t\t'params' => array(\n\t\t\t// Images\n\t\t\tarray(\n\t\t\t\t'type' => 'attach_images',\n\t\t\t\t'admin_label' => true,\n\t\t\t\t'heading' => __( 'Attach Images', 'wpex' ),\n\t\t\t\t'param_name' => 'image_ids',\n\t\t\t\t'description' => __( 'You can display captions by giving your images a caption and you can also display videos by adding an image that has a Video URL defined for it.', 'wpex' ),\n\t\t\t\t'group' => __( 'Images', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Post Gallery', 'wpex' ),\n\t\t\t\t'param_name' => 'post_gallery',\n\t\t\t\t'group' => __( 'Images', 'wpex' ),\n\t\t\t\t'description' => __( 'Enable to display images from the current post \"Image Gallery\".', 'wpex' ),\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'No', 'wpex' ) => '',\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t// General\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Visibility', 'wpex' ),\n\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t'value' => array_flip( wpex_visibility() ),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Randomize', 'wpex' ),\n\t\t\t\t'param_name' => 'randomize',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Unique Id', 'wpex' ),\n\t\t\t\t'param_name' => 'unique_id',\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Custom Classes', 'wpex' ),\n\t\t\t\t'param_name' => 'classes',\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Animation', 'wpex' ),\n\t\t\t\t'param_name' => 'animation',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Slide', 'wpex' ) => 'slide',\n\t\t\t\t\t__( 'Fade', 'wpex' ) => 'fade_slides',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Loop', 'wpex' ),\n\t\t\t\t'param_name' => 'loop',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'No', 'wpex' ) => '',\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Auto Height Animation', 'wpex' ),\n\t\t\t\t'std' => '500',\n\t\t\t\t'param_name' => 'height_animation',\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t\t'description' => __( 'You can enter \"0.0\" to disable the animation completely.', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Animation Speed', 'wpex' ),\n\t\t\t\t'param_name' => 'animation_speed',\n\t\t\t\t'std' => '600',\n\t\t\t\t'description' => __( 'Enter a value in milliseconds.', 'wpex' ),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Auto Play', 'wpex' ),\n\t\t\t\t'param_name' => 'slideshow',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t),\n\t\t\t\t'description' => __( 'Enable automatic slideshow? Disabled in front-end composer to prevent page \"jumping\".', 'wpex' ),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Auto Play Delay', 'wpex' ),\n\t\t\t\t'param_name' => 'slideshow_speed',\n\t\t\t\t'std' => '5000',\n\t\t\t\t'description' => __( 'Enter a value in milliseconds.', 'wpex' ),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t\t'dependency' => array( 'element' => 'slideshow', 'value' => 'true' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Arrows', 'wpex' ),\n\t\t\t\t'param_name' => 'direction_nav',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Arrows on Hover', 'wpex' ),\n\t\t\t\t'param_name' => 'direction_nav_hover',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Dot Navigation', 'wpex' ),\n\t\t\t\t'param_name' => 'control_nav',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'General', 'wpex' ),\n\t\t\t),\n\t\t\t// Image\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Image Size', 'wpex' ),\n\t\t\t\t'param_name' => 'img_size',\n\t\t\t\t'std' => 'wpex_custom',\n\t\t\t\t'value' => vcex_image_sizes(),\n\t\t\t\t'group' => __( 'Image', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Image Crop Location', 'wpex' ),\n\t\t\t\t'param_name' => 'img_crop',\n\t\t\t\t'std' => 'center-center',\n\t\t\t\t'value' => array_flip( wpex_image_crop_locations() ),\n\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t'group' => __( 'Image', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Image Crop Width', 'wpex' ),\n\t\t\t\t'param_name' => 'img_width',\n\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t'group' => __( 'Image', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Image Crop Height', 'wpex' ),\n\t\t\t\t'param_name' => 'img_height',\n\t\t\t\t'description' => __( 'Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex' ),\n\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t'group' => __( 'Image', 'wpex' )\n\t\t\t),\n\t\t\t// Thumbnails\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Columns', 'wpex' ),\n\t\t\t\t'param_name' => 'thumbnails_columns',\n\t\t\t\t'std' => '',\n\t\t\t\t'description' => __( 'This specific slider displays the thumbnails in \"rows\" if you want your thumbnails displayed under the slider as a carousel, use the \"Image Slider\" module instead.', 'wpex' ),\n\t\t\t\t'group' => __( 'Thumbnails', 'wpex' ),\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Default', 'wpex' ) => '',\n\t\t\t\t\t'6' => '6',\n\t\t\t\t\t'5' => '5',\n\t\t\t\t\t'4' => '4',\n\t\t\t\t\t'3' => '3',\n\t\t\t\t\t'2' => '2',\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Image Crop Width', 'wpex' ),\n\t\t\t\t'param_name' => 'img_thumb_width',\n\t\t\t\t'value' => '',\n\t\t\t\t'description' => __( 'Enter a width in pixels for your thumbnail image width. This won\\'t increase the grid, its only used so you can alter the cropping to your preferred proportions.', 'wpex' ),\n\t\t\t\t'group' => __( 'Thumbnails', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Image Crop Height', 'wpex' ),\n\t\t\t\t'param_name' => 'img_thumb_height',\n\t\t\t\t'value' => '',\n\t\t\t\t'description' => __( 'Enter a width in pixels for your thumbnail image height.', 'wpex' ),\n\t\t\t\t'group' => __( 'Thumbnails', 'wpex' ),\n\t\t\t),\n\t\t\t// Caption\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Enable', 'wpex' ),\n\t\t\t\t'param_name' => 'caption',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'No', 'wpex' ) => 'false',\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Based On', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_type',\n\t\t\t\t'std' => 'caption',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Title', 'wpex' ) => 'title',\n\t\t\t\t\t__( 'Caption', 'wpex' ) => 'caption',\n\t\t\t\t\t__( 'Description', 'wpex' ) => 'description',\n\t\t\t\t\t__( 'Alt', 'wpex' ) => 'alt',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Visibility', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_visibility',\n\t\t\t\t'value' => array_flip( wpex_visibility() ),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Style', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_style',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Black', 'wpex' ) => 'black',\n\t\t\t\t\t__( 'White', 'wpex' ) => 'white',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Rounded?', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_rounded',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'No', 'wpex' ) => '',\n\t\t\t\t\t__( 'Yes', 'wpex' ) => 'true',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Position', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_position',\n\t\t\t\t'std' => 'bottomCenter',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Bottom Center', 'wpex' ) => 'bottomCenter',\n\t\t\t\t\t__( 'Bottom Left', 'wpex' ) => 'bottomLeft',\n\t\t\t\t\t__( 'Bottom Right', 'wpex' ) => 'bottomRight',\n\t\t\t\t\t__( 'Top Center', 'wpex' ) => 'topCenter',\n\t\t\t\t\t__( 'Top Left', 'wpex' ) => 'topLeft',\n\t\t\t\t\t__( 'Top Right', 'wpex' ) => 'topRight',\n\t\t\t\t\t__( 'Center Center', 'wpex' ) => 'centerCenter',\n\t\t\t\t\t__( 'Center Left', 'wpex' ) => 'centerLeft',\n\t\t\t\t\t__( 'Center Right', 'wpex' ) => 'centerRight',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Show Transition', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_show_transition',\n\t\t\t\t'std' => 'up',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'wpex' ) => 'false',\n\t\t\t\t\t__( 'Up', 'wpex' ) => 'up',\n\t\t\t\t\t__( 'Down', 'wpex' ) => 'down',\n\t\t\t\t\t__( 'Left', 'wpex' ) => 'left',\n\t\t\t\t\t__( 'Right', 'wpex' ) => 'right',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Hide Transition', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_hide_transition',\n\t\t\t\t'std' => 'down',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'wpex' ) => 'false',\n\t\t\t\t\t__( 'Up', 'wpex' ) => 'up',\n\t\t\t\t\t__( 'Down', 'wpex' ) => 'down',\n\t\t\t\t\t__( 'Left', 'wpex' ) => 'left',\n\t\t\t\t\t__( 'Right', 'wpex' ) => 'right',\n\t\t\t\t),\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Width', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_width',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'value' => '100%',\n\t\t\t\t'description' => __( 'Enter a pixel or percentage value. You can also enter \"auto\" for content dependent width.', 'wpex' ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Font-Size', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_font_size',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Padding', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_padding',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'description' => __( 'Please use the following format: top right bottom left.', 'wpex' ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Horizontal Offset', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_horizontal',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t\t'description' => __( 'Please enter a px value.', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Vertical Offset', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_vertical',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t\t'description' => __( 'Please enter a px value.', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Delay', 'wpex' ),\n\t\t\t\t'param_name' => 'caption_delay',\n\t\t\t\t'std' => '500',\n\t\t\t\t'dependency' => Array( 'element' => 'caption', 'value' => array( 'true' ) ),\n\t\t\t\t'group' => __( 'Caption', 'wpex' ),\n\t\t\t\t'description' => __( 'Enter a value in milliseconds.', 'wpex' ),\n\t\t\t),\n\t\t\t// Links\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Image Link', 'wpex' ),\n\t\t\t\t'param_name' => 'thumbnail_link',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'wpex' ) => 'none',\n\t\t\t\t\t__( 'Lightbox', 'wpex' ) => 'lightbox',\n\t\t\t\t\t__( 'Custom Links', 'wpex' ) => 'custom_link',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'exploded_textarea',\n\t\t\t\t'heading' => __( 'Custom links', 'wpex' ),\n\t\t\t\t'param_name' => 'custom_links',\n\t\t\t\t'description' => __( 'Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol.', 'wpex' ),\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => array( 'custom_link' )\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __('Custom link target', 'wpex' ),\n\t\t\t\t'param_name' => 'custom_links_target',\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => 'custom_link',\n\t\t\t\t),\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Same window', 'wpex' ) => 'self',\n\t\t\t\t\t__( 'New window', 'wpex' ) => '_blank'\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Lightbox Skin', 'wpex' ),\n\t\t\t\t'param_name' => 'lightbox_skin',\n\t\t\t\t'value' => vcex_ilightbox_skins(),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => array( 'lightbox' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Lightbox Thumbnails Placement', 'wpex' ),\n\t\t\t\t'param_name' => 'lightbox_path',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Horizontal', 'wpex' ) => 'horizontal',\n\t\t\t\t\t__( 'Vertical', 'wpex' ) => 'vertical',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => array( 'lightbox' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Lightbox Title', 'wpex' ),\n\t\t\t\t'param_name' => 'lightbox_title',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'wpex' ) => 'none',\n\t\t\t\t\t__( 'Alt', 'wpex' ) => 'alt',\n\t\t\t\t\t__( 'Title', 'wpex' ) => 'title',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => array( 'lightbox' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Lightbox Caption', 'wpex' ),\n\t\t\t\t'param_name' => 'lightbox_caption',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Enable', 'wpex' ) => 'enable',\n\t\t\t\t\t__( 'Disable', 'wpex' ) => 'false',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Links', 'wpex' ),\n\t\t\t\t'dependency' => Array(\n\t\t\t\t\t'element' => 'thumbnail_link',\n\t\t\t\t\t'value' => array( 'lightbox' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\t// CSS\n\t\t\tarray(\n\t\t\t\t'type' => 'css_editor',\n\t\t\t\t'heading' => __( 'CSS', 'wpex' ),\n\t\t\t\t'param_name' => 'css',\n\t\t\t\t'group' => __( 'Design', 'wpex' ),\n\t\t\t),\n\n\t\t)\n\n\t) );\n}", "function carousel_slider($atts, $content = null){\n\textract(shortcode_atts(array(\n\t\t\"enable_slider\" => 'yes',\n\t\t\"hover_effect\" => 'hover-effect2',\n\t\t\"columns\" => 'col3',\n\t\t\"title_tag\" => 'h2',\n\t\t\"title\" => 'Our Team',\n\t\t\"type\" => '',\n\t\t\"auto_play\" => 'false',\n\t\t\"slide_duration\" => '',\n\t\t'animate' => '',\n\t\t'transition' => '',\n\t\t'duration' => '',\n\t\t'delay' => ''\n\t\t), $atts));\n\n\t$animate_class = \"\";\n\t$slideTransition = \"\";\n\t$animateDuration = \"\";\n\t$slideDelay = \"\";\n\n\tif($animate == \"Yes\"){\n\n\t\t$animate_class = ' pix-animate-cre';\n\n\t\t$slideTransition = isset($transition) ? ' data-trans=\"'. esc_attr($transition) .'\"' : '';\n\n\t\t$animateDuration = isset($duration) ? ' data-duration=\"'. $duration .'\"' : '';\n\n\t\t$slideDelay = isset($delay) ? ' data-delay=\"'. $delay .'\"' : '';\n\n\t}\n\n\t$sliderClassName = '';\n\t$slider = ($enable_slider == 'yes') ? 'fcsCarousel' : '';\n\n\t$autoPlay = ($auto_play == 'true') ? 'data-autoplay=\"'. esc_attr($auto_play) .'\"' : '';\n\t$slideDuration = isset($slide_duration) ? 'data-duration=\"'. esc_attr($slide_duration) .'\"' : '';\n\n\t$slider = ($enable_slider == 'yes') ? 'fcsCarousel' : '';\n\n\tif ($type == 'clients')\n\t\t$sliderClassName = 'ourClients';\n\telse if ($type == 'staffs')\n\t\t$sliderClassName = 'member';\t\n\t\n\t$output = '<section class=\"newSection container popup-gallery ' . $slider . ' '.$columns.' '. $sliderClassName .'\" '. $autoPlay .' '. $slideDuration .'>';\n $output .= '<'.$title_tag.' class=\"mainTitle'. esc_attr($animate_class) .'\"'. $slideTransition .' '. $animateDuration .' '. $slideDelay .'>'.esc_html($title).'</'.$title_tag.'>';\n $output .= '<div class=\"carousel-items-con '. $hover_effect .' featuredWorks\">';\n $output .= '<ul class=\"carousel-items\">';\n\t\n\t$output .= do_shortcode($content);\n\t\n\t$output .= '</ul>';\n\tif($enable_slider == 'yes'){\n\t\t$output .= '<div class=\"slider-nav\">';\n\t\t$output .= '<a href=\"#\" data-dir=\"prev\" class=\"slider-btn prevSlide\">&lsaquo;</a>';\n\t\t$output .= '<a href=\"#\" data-dir=\"next\" class=\"slider-btn nextSlide\">&rsaquo;</a>';\n\t\t$output .= '</div> ';\n\t}\n\t$output .= '</div>';\n\t$output .= '</section>';\n\treturn $output;\n}", "function slider_post_type() {\n $labels = [\n 'name' => 'Slider',\n 'singular_name' => 'Slider',\n 'add_new' => 'Add Item',\n 'all_item' => 'All Item',\n 'edit_item' => 'Edit Item',\n 'new_item' => 'New Item',\n 'view_item' => 'View Item',\n 'search_item' => 'Search Referens',\n 'not_found' => 'No item found',\n 'not_found_in_trash' => 'No item found in trash',\n 'parent_item_colon' => 'Parent Item'\n ];\n $args = [\n 'labels' => $labels,\n 'public' => true,\n 'has_archive' => true,\n 'publicly_queryable' => true,\n 'query-var' => true,\n 'rewrite' => true,\n 'hierarchical' => true,\n 'supports' => [\n 'title',\n 'editor',\n 'thumbnail',\n 'revisions',\n ],\n 'taxonomies' => ['category', 'post_tag'],\n 'menu_position' => 4,\n 'execlude_from_search' => false\n ];\n register_post_type('slider',$args);\n}", "public function get_title() {\n return __( 'ListSlides', 'elementor-listslides' );\n }", "public function putSliderBase( $sliderID ) {\n\n\t\ttry {\n\t\t\tself::$sliderSerial++;\n\n\t\t\t$this->slider = new RevSlider();\n\t\t\t$this->slider->initByMixed( $sliderID );\n\n\t\t\t$doWrapFromTemplate = false;\n\n\t\t\tif ( $this->slider->isSlidesFromPosts() && $this->slider->getParam( 'slider_template_id',false ) !== false ) { // need to use general settings from the Template Slider\n\t\t\t\t$this->slider->initByMixed( $this->slider->getParam( 'slider_template_id',false ) );\n\t\t\t\t$doWrapFromTemplate = $sliderID;\n\t\t\t}\n\n\t\t\t// modify settings for admin preview mode\n\t\t\tif ( $this->previewMode == true ) {\n\t\t\t\t$this->modifyPreviewModeSettings(); }\n\n\t\t\t// set slider language\n\t\t\t$isWpmlExists = UniteWpmlRev::isWpmlExists();\n\t\t\t$useWpml = $this->slider->getParam( 'use_wpml','off' );\n\t\t\tif (\t$isWpmlExists && $useWpml == 'on' ) {\n\t\t\t\tif ( $this->previewMode == false ) {\n\t\t\t\t\t$this->sliderLang = UniteFunctionsWPRev::getCurrentLangCode(); }\n\t\t\t}\n\n\t\t\t// edit html before slider\n\t\t\t$htmlBeforeSlider = '';\n\t\t\tif ( $this->slider->getParam( 'load_googlefont','false' ) == 'true' ) {\n\t\t\t\t$googleFont = $this->slider->getParam( 'google_font' );\n\t\t\t\tif ( is_array( $googleFont ) ) {\n\t\t\t\t\tforeach ( $googleFont as $key => $font ) {\n\t\t\t\t\t\t$htmlBeforeSlider .= RevOperations::getCleanFontImport( $font );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$htmlBeforeSlider .= RevOperations::getCleanFontImport( $googleFont );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// pub js to body handle\n\t\t\tif ( $this->slider->getParam( 'js_to_body','false' ) == 'true' ) {\n\t\t\t\t$operations = new RevOperations();\n\t\t\t\t$arrValues = $operations->getGeneralSettingsValues();\n\t\t\t\t$enable_logs = UniteFunctionsRev::getVal( $arrValues, 'enable_logs','off' );\n\n\t\t\t\tif ( $enable_logs == 'on' ) {\n\t\t\t\t\t$urlIncludeJS = UniteBaseClassRev::$url_plugin . 'rs-plugin/js/jquery.themepunch.enablelog.js?rev=' . GlobalsRevSlider::SLIDER_REVISION;\n\t\t\t\t\t$htmlBeforeSlider .= \"<script type='text/javascript' src='$urlIncludeJS'></script>\";\n\t\t\t\t}\n\n\t\t\t\t$urlIncludeJS = UniteBaseClassRev::$url_plugin . 'rs-plugin/js/jquery.themepunch.tools.min.js?rev=' . GlobalsRevSlider::SLIDER_REVISION;\n\t\t\t\t$htmlBeforeSlider .= \"<script type='text/javascript' src='$urlIncludeJS'></script>\";\n\t\t\t\t$urlIncludeJS = UniteBaseClassRev::$url_plugin . 'rs-plugin/js/jquery.themepunch.revolution.min.js?rev=' . GlobalsRevSlider::SLIDER_REVISION;\n\t\t\t\t$htmlBeforeSlider .= \"<script type='text/javascript' src='$urlIncludeJS'></script>\";\n\t\t\t}\n\n\t\t\t// the initial id can be alias\n\t\t\t$sliderID = $this->slider->getID();\n\n\t\t\t$bannerWidth = $this->slider->getParam( 'width',null,RevSlider::VALIDATE_NUMERIC,'Slider Width' );\n\t\t\t$bannerHeight = $this->slider->getParam( 'height',null,RevSlider::VALIDATE_NUMERIC,'Slider Height' );\n\n\t\t\t$sliderType = $this->slider->getParam( 'slider_type' );\n\n\t\t\t// set wrapper height\n\t\t\t$wrapperHeigh = 0;\n\t\t\t$wrapperHeigh += $this->slider->getParam( 'height' );\n\n\t\t\t// add thumb height\n\t\t\tif ( $this->slider->getParam( 'navigaion_type' ) == 'thumb' ) {\n\t\t\t\t$wrapperHeigh += $this->slider->getParam( 'thumb_height' );\n\t\t\t}\n\n\t\t\t$this->sliderHtmlID = 'rev_slider_' . $sliderID . '_' . self::$sliderSerial;\n\t\t\t$this->sliderHtmlID_wrapper = $this->sliderHtmlID . '_wrapper';\n\n\t\t\t$containerStyle = '';\n\n\t\t\t$sliderPosition = $this->slider->getParam( 'position','center' );\n\n\t\t\t// set position:\n\t\t\tif ( $sliderType != 'fullscreen' ) {\n\n\t\t\t\tswitch ( $sliderPosition ) {\n\t\t\t\t\tcase 'center':\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$containerStyle .= 'margin:0px auto;';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\t\t$containerStyle .= 'float:left;';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\t\t$containerStyle .= 'float:right;';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add background color\n\t\t\t$backgrondColor = trim( $this->slider->getParam( 'background_color' ) );\n\t\t\tif ( ! empty( $backgrondColor ) ) {\n\t\t\t\t$containerStyle .= \"background-color:$backgrondColor;\"; }\n\n\t\t\t// set padding\n\t\t\t$containerStyle .= 'padding:' . $this->slider->getParam( 'padding','0' ) . 'px;';\n\n\t\t\t// set margin:\n\t\t\tif ( $sliderType != 'fullscreen' ) {\n\n\t\t\t\tif ( $sliderPosition != 'center' ) {\n\t\t\t\t\t$containerStyle .= 'margin-left:' . $this->slider->getParam( 'margin_left','0' ) . 'px;';\n\t\t\t\t\t$containerStyle .= 'margin-right:' . $this->slider->getParam( 'margin_right','0' ) . 'px;';\n\t\t\t\t}\n\n\t\t\t\t$containerStyle .= 'margin-top:' . $this->slider->getParam( 'margin_top','0' ) . 'px;';\n\t\t\t\t$containerStyle .= 'margin-bottom:' . $this->slider->getParam( 'margin_bottom','0' ) . 'px;';\n\t\t\t}\n\n\t\t\t// set height and width:\n\t\t\t$bannerStyle = 'display:none;';\n\n\t\t\t// add background image (to banner style)\n\t\t\t$showBackgroundImage = $this->slider->getParam( 'show_background_image','false' );\n\t\t\tif ( $showBackgroundImage == 'true' ) {\n\t\t\t\t$backgroundImage = $this->slider->getParam( 'background_image' );\n\t\t\t\t$backgroundFit = $this->slider->getParam( 'bg_fit', 'cover' );\n\t\t\t\t$backgroundRepeat = $this->slider->getParam( 'bg_repeat', 'no-repeat' );\n\t\t\t\t$backgroundPosition = $this->slider->getParam( 'bg_position', 'center top' );\n\n\t\t\t\tif ( ! empty( $backgroundImage ) ) {\n\t\t\t\t\t$bannerStyle .= \"background-image:url($backgroundImage);background-repeat:\" . $backgroundRepeat . ';background-fit:' . $backgroundFit . ';background-position:' . $backgroundPosition . ';'; }\n\t\t\t}\n\n\t\t\t// set wrapper and slider class:\n\t\t\t$sliderWrapperClass = 'rev_slider_wrapper';\n\t\t\t$sliderClass = 'rev_slider';\n\n\t\t\t$putResponsiveStyles = false;\n\n\t\t\tswitch ( $sliderType ) {\n\t\t\t\tcase 'responsitive':\n\t\t\t\t\t// $containerStyle .= \"height:\".$bannerHeight.\"px;\";\n\t\t\t\t\t$putResponsiveStyles = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fullwidth':\n\t\t\t\t\t$sliderWrapperClass .= ' fullwidthbanner-container';\n\t\t\t\t\t$sliderClass .= ' fullwidthabanner';\n\t\t\t\t\t$bannerStyle .= 'max-height:' . $bannerHeight . 'px;height:' . $bannerHeight . 'px;';\n\t\t\t\t\t$containerStyle .= 'max-height:' . $bannerHeight . 'px;';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fullscreen':\n\t\t\t\t\t// $containerStyle .= \"height:\".$bannerHeight.\"px;\";\n\t\t\t\t\t$sliderWrapperClass .= ' fullscreen-container';\n\t\t\t\t\t$sliderClass .= ' fullscreenbanner';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fixed':\n\t\t\t\tdefault:\n\t\t\t\t\t$bannerStyle .= 'height:' . $bannerHeight . 'px;width:' . $bannerWidth . 'px;';\n\t\t\t\t\t$containerStyle .= 'height:' . $bannerHeight . 'px;width:' . $bannerWidth . 'px;';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$htmlTimerBar = '';\n\n\t\t\t$timerBar = $this->slider->getParam( 'show_timerbar','top' );\n\n\t\t\tif ( $timerBar == 'true' ) {\n\t\t\t\t$timerBar = $this->slider->getParam( 'timebar_position','top' ); }\n\n\t\t\tswitch ( $timerBar ) {\n\t\t\t\tcase 'top':\n\t\t\t\t\t$htmlTimerBar = '<div class=\"tp-bannertimer\"></div>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'bottom':\n\t\t\t\t\t$htmlTimerBar = '<div class=\"tp-bannertimer tp-bottom\"></div>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'hide':\n\t\t\t\t\t$htmlTimerBar = '<div class=\"tp-bannertimer tp-bottom\" style=\"visibility: hidden !important;\"></div>';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// check inner / outer border\n\t\t\t$paddingType = $this->slider->getParam( 'padding_type','outter' );\n\t\t\tif ( $paddingType == 'inner' ) {\n\t\t\t\t$sliderWrapperClass .= ' tp_inner_padding'; }\n\n\t\t\tglobal $revSliderVersion;\n\n\t\t\tif ( $putResponsiveStyles == true ) {\n\t\t\t\t$this->putResponsitiveStyles(); }\n\n\t\t\techo $htmlBeforeSlider . \"\\n\";\n\t\t\techo '<div id=\"';\n\t\t\techo $this->sliderHtmlID_wrapper;\n\t\t\techo '\" ';\n\t\t\techo 'class=\"' . $sliderWrapperClass . '\"';\n\n\t\t\t$show_alternate = $this->slider->getParam( 'show_alternative_type','off' );\n\t\t\tif ( $show_alternate !== 'off' ) {\n\t\t\t\t$show_alternate_image = $this->slider->getParam( 'show_alternate_image','' );\n\t\t\t\techo ' data-aimg=\"' . $show_alternate_image . '\" ';\n\t\t\t\tif ( $show_alternate == 'mobile' || $show_alternate == 'mobile-ie8' ) {\n\t\t\t\t\techo ' data-amobile=\"enabled\" ';\n\t\t\t\t} else {\n\t\t\t\t\techo ' data-amobile=\"disabled\" ';\n\t\t\t\t}\n\t\t\t\tif ( $show_alternate == 'mobile-ie8' || $show_alternate == 'ie8' ) {\n\t\t\t\t\techo ' data-aie8=\"enabled\" ';\n\t\t\t\t} else {\n\t\t\t\t\techo ' data-aie8=\"disabled\" ';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\techo ' style=\"' . $containerStyle . \"\\\">\\n\";\n\n\t\t\techo '<!-- START REVOLUTION SLIDER ' . $revSliderVersion . ' ' . $sliderType . \" mode -->\\n\";\n\n\t\t\techo ' <div id=\"';\n\t\t\techo $this->sliderHtmlID;\n\t\t\techo '\" ';\n\t\t\techo 'class=\"' . $sliderClass . '\"';\n\t\t\techo ' style=\"' . $bannerStyle . \"\\\">\\n\";\n\n\t\t\techo $this->putSlides( $doWrapFromTemplate );\n\t\t\techo $htmlTimerBar;\n\t\t\techo \"\t</div>\\n\";\n\n\t\t\t$this->putJS();\n\n\t\t\techo '</div>';\n\t\t\techo '<!-- END REVOLUTION SLIDER -->';\n\t\t} catch (Exception $e) {\n\t\t\t$message = $e->getMessage();\n\t\t\t$this->putErrorMessage( $message );\n\t\t}\n\n\t}", "function sb_slideshow_post_admin_head() {\n\tglobal $post, $sb_slideshow_interface, $sb_slideshow_slides;\n\n\t$attachments = array();\n\tforeach ($sb_slideshow_slides as $slide) array_push( $attachments, $slide['attachment'] );\n\n\tif (!sb_verify_post_type('slideshow')) return; // verify post type\n?>\n\t<script type=\"text/javascript\">\n\t\t//<![CDATA[\n\t\t;(function($) {\n\t\t\t$(document).ready(function(){\n\t\t\t\tvar attachments = <?php echo json_encode( $attachments ); ?>\n\t\t\t\t// sortable container resize\n\t\t\t\tfunction container_resize() {\n\t\t\t\t\t$.each(['#sb_slides', '#sb_library'], function( index, obj ) {\n\t\t\t\t\t\t$(obj).removeClass( 'closed' ); // make sure meta box is opened before calculating width\n\t\t\t\t\t\tvar sortable = $('ul.connectedSortable', obj);\n\t\t\t\t\t\tsortable.outerWidth( ($('li.sb_item:visible', sortable).length + 1) * $('li.sb_item:visible:first', sortable).outerWidth() );\n\t\t\t\t\t\t$('div.scrollingHotSpotLeft, div.scrollingHotSpotRight', obj).outerHeight( sortable.outerHeight() );\n\t\t\t\t\t});\n\n\t\t\t\t\tcheckScrollPos();\n\t\t\t\t}\n\t\t\t\tcontainer_resize(); // initial sizing\n\n\t\t\t\t// update hidden sortable inputs\n\t\t\t\tfunction hidden_inputs() {\n\t\t\t\t\t$('#sb_slides ul.connectedSortable li').each(function(index) {\n\t\t\t\t\t\t$('.sb_order', this).val( index );\n\t\t\t\t\t});\n\t\t\t\t\t$('#sb_slides ul.connectedSortable li .sb_box').val( 'slides' );\n\t\t\t\t\t$('#sb_library ul.connectedSortable li .sb_box').val( 'library' );\n\t\t\t\t}\n\n\t\t\t\t// prepend an item to a box\n\t\t\t\tfunction prepend_to( location, sb_item ) {\n\t\t\t\t\tvar sortable = $('#sb_' + location + ' ul.connectedSortable');\n\t\t\t\t\tsortable.parent().stop().animate({ scrollLeft: 0 }, 'slow'); // alternative: sortable.outerWidth() - $(this).scrollLeft()\n\t\t\t\t\tsb_item = $(sb_item); // force object\n\t\t\t\t\tsb_item.fadeOut('fast', function() {\n\t\t\t\t\t\tsb_item.prependTo( sortable ); // alternative: append\n\t\t\t\t\t\tsb_item.fadeIn('slow');\n\t\t\t\t\t\tfilter_library();\n\t\t\t\t\t\tcontainer_resize();\n\t\t\t\t\t\thidden_inputs();\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// move sortable item via add/remove link\n\t\t\t\t$('.move-to-library').live('click', function() {\n\t\t\t\t\tprepend_to( 'library', $(this).parent('div.sb_right').parent('li.sb_item') );\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t\t$('.move-to-slides').live('click', function() {\n\t\t\t\t\tprepend_to( 'slides', $(this).parent('div.sb_right').parent('li.sb_item') );\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\n\t\t\t\t// connected sortable lists\n\t\t\t\t$('#sb_slides ul.connectedSortable, #sb_library ul.connectedSortable').sortable({\n\t\t\t\t\tconnectWith: '.connectedSortable',\n\t\t\t\t\thandle: 'img',\n\t\t\t\t\tforceHelperSize: false,\n\t\t\t\t\tforcePlaceholderSize: true,\n\t\t\t\t\thelper: function( ev, el ) { return $('img', el).clone().width(<?php\n\t\t\t\t\t\techo floor( $sb_slideshow_interface['slide_width'] / 3 ); ?>).height(<?php\n\t\t\t\t\t\techo floor( $sb_slideshow_interface['slide_height'] / 3 ); ?>); },\n\t\t\t\t\tplaceholder: 'placeholder',\n\t\t\t\t\trevert: true,\n\t\t\t\t\tcursor: 'move',\n\t\t\t\t\tcursorAt: { top: -1, left: <?php echo floor( $sb_slideshow_interface['slide_height'] / 4.2 ); ?> },\n\t\t\t\t\tcontainment: '#normal-sortables',\n\t\t\t\t\tscrollSensitivity: 0,\n\t\t\t\t\ttolerance: 'pointer'\n\t\t\t\t});\n\t\t\t\t$('#sb_slides ul.connectedSortable, #sb_library ul.connectedSortable').bind('sortreceive', function( ev, ui ) {\n\t\t\t\t\tfilter_library();\n\t\t\t\t\tcontainer_resize();\n\t\t\t\t});\n\t\t\t\t$('#sb_slides ul.connectedSortable').bind('sortupdate', function( ev, ui ) {\n\t\t\t\t\thidden_inputs();\n\t\t\t\t});\n\n\t\t\t\t// sortable list scrolling\n\t\t\t\tvar interval_id = 0;\n\t\t\t\t$('div.scrollingHotSpotLeft, div.scrollingHotSpotRight').mouseenter(function() {\n\t\t\t\t\tvar scrollDiv = $(this).parent();\n\t\t\t\t\tvar scrollAmount = $('li.sb_item:first', scrollDiv).outerWidth() * 2;\n\t\t\t\t\tscrollAmount *= ($(this).attr('class') == 'scrollingHotSpotLeft' ? -1 : 1);\n\n\t\t\t\t\tif( interval_id == 0 ) {\n\t\t\t\t\t\tinterval_id = setInterval(function() {\n\t\t\t\t\t\t\tscrollDiv.stop().animate({ scrollLeft: scrollDiv.scrollLeft() + scrollAmount }, 280);\n\t\t\t\t\t\t}, 400);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('div.scrollingHotSpotLeft, div.scrollingHotSpotRight').mouseleave(function() {\n\t\t\t\t\tif( interval_id != 0 ) {\n\t\t\t\t\t\tclearInterval(interval_id);\n\t\t\t\t\t\tinterval_id = 0;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('div.scrollingContainer').scroll(function() {\n\t\t\t\t\tcheckScrollPos();\n\t\t\t\t});\n\t\t\t\tfunction checkScrollPos() {\n\t\t\t\t\t$('div.scrollingContainer').each(function() {\n\t\t\t\t\t\tvar scrollLeft = $(this).scrollLeft();\n\t\t\t\t\t\tvar left = $('div.scrollingHotSpotLeft', this);\n\t\t\t\t\t\tvar right = $('div.scrollingHotSpotRight', this);\n\t\t\t\t\t\tvar sortableW = $('ul.connectedSortable', this).outerWidth();\n\t\t\t\t\t\tvar containerW = $(this).outerWidth();\n\n\t\t\t\t\t\tif( sortableW > containerW ) {\n\t\t\t\t\t\t\tif( scrollLeft == 0 )\n\t\t\t\t\t\t\t\tleft.fadeOut('slow');\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tleft.fadeIn('slow');\n\n\t\t\t\t\t\t\tif( scrollLeft == (sortableW - containerW) )\n\t\t\t\t\t\t\t\tright.fadeOut('slow');\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tright.fadeIn('slow');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tleft.fadeOut('slow');\n\t\t\t\t\t\t\tright.fadeOut('slow');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// library filtering\n\t\t\t\t$('div#libraryFilters input').keypress(function( e ) {\n\t\t\t\t\tif( e.which == 13 ) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('div#libraryFilters input').keyup(function() {\n\t\t\t\t\tvar oldVal = $(this).val();\n\t\t\t\t\tvar newVal = (!isNaN( parseInt( oldVal, 10 ) ) ? parseInt( oldVal ) : '');\n\t\t\t\t\tnewVal = String( newVal ).replace( /[^0-9]/g, '' );\n\n\t\t\t\t\tif( newVal == '0' )\n\t\t\t\t\t\t$(this).val( 0 );\n\t\t\t\t\telse\n\t\t\t\t\t\t$(this).val( newVal );\n\n\t\t\t\t\tif (oldVal == '' || oldVal.slice( 0, -1 ) != newVal) filter_library();\n\t\t\t\t});\n\t\t\t\t$('div#libraryFilters select').not('select#filter_year').change(function() {\n\t\t\t\t\tfilter_library();\n\t\t\t\t});\n\t\t\t\t// show/hide filter months on year change\n\t\t\t\tfunction filterMonthToggle( monthClass ) {\n\t\t\t\t\tvar monthClass = (monthClass != 'all' ? ', option.y' + monthClass : '');\n\t\t\t\t\t$('select#filter_month option').removeAttr( 'selected' ).removeAttr( 'disabled' ).not('option:first' + monthClass).attr( 'disabled', 'disabled' );\n\t\t\t\t\t$('select#filter_month option:first').attr( 'selected', 'selected' );\n\t\t\t\t}\n\t\t\t\t$('select#filter_year').change(function() {\n\t\t\t\t\tfilterMonthToggle( $(this).val() );\n\t\t\t\t\tfilter_library();\n\t\t\t\t});\n\t\t\t\tfilterMonthToggle( $('select#filter_year').val() ); // initial month input value\n\t\t\t\tvar stopFiltering;\n\t\t\t\tfunction filter_library() {\n\t\t\t\t\tstopFiltering = true;\n\n\t\t\t\t\tvar year = $('#filter_year').val();\n\t\t\t\t\tvar month = $('#filter_month').val();\n\t\t\t\t\tvar type = $('#filter_type').val();\n\t\t\t\t\tvar width_ltgt = $('#filter_width_ltgt').val();\n\t\t\t\t\tvar width = parseInt( $('#filter_width').val() );\n\t\t\t\t\tvar height_ltgt = $('#filter_height_ltgt').val();\n\t\t\t\t\tvar height = parseInt( $('#filter_height').val() );\n\n\t\t\t\t\t$(attachments).each(function( index, attachment ) {\n\t\t\t\t\t\tif( index == 0 ) {\n\t\t\t\t\t\t\tstopFiltering = false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (stopFiltering) return false; // stop if mid-way through when a new is filter initiated\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tslide = $('#sb_library ul.connectedSortable li#attachment_id-' + attachment.id);\n\n\t\t\t\t\t\tif( slide.length != 0 ) { // check if slide exists\n\t\t\t\t\t\t\tvar hide = false;\n\n\t\t\t\t\t\t\tif( year != 'all' && attachment.year != year ) hide = true;\n\n\t\t\t\t\t\t\tif( month != 'all' && attachment.month != month ) hide = true;\n\n\t\t\t\t\t\t\tif( type != 'all' && attachment.type != type ) hide = true;\n\n\t\t\t\t\t\t\tattachment.width = parseInt( attachment.width );\n\t\t\t\t\t\t\tif( typeof width == 'number' && typeof attachment.width == 'number' ) {\n\t\t\t\t\t\t\t\tif (width_ltgt == 'lt' && attachment.width > width) hide = true;\n\t\t\t\t\t\t\t\tif (width_ltgt == 'gt' && attachment.width < width) hide = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tattachment.height = parseInt( attachment.height );\n\t\t\t\t\t\t\tif( typeof height == 'number' && typeof attachment.height == 'number' ) {\n\t\t\t\t\t\t\t\tif (height_ltgt == 'lt' && attachment.height > height) hide = true;\n\t\t\t\t\t\t\t\tif (height_ltgt == 'gt' && attachment.height < height) hide = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (hide) slide.hide(); else slide.show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (index == $(attachments).length-1) container_resize(); // resize container when finished filtering\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tfilter_library(); // initial filtering\n\n\t\t\t\t// clear filters\n\t\t\t\t$('#clear-filters').click(function() {\n\t\t\t\t\t$('div#libraryFilters select').each(function( i, v ) {\n\t\t\t\t\t\t$('option:selected', this).removeAttr( 'selected' );\n\t\t\t\t\t\t$('option:first', this).attr( 'selected', 'selected' );\n\t\t\t\t\t});\n\t\t\t\t\t$('div#libraryFilters input#filter_width').val(<?php echo $sb_slideshow_interface['filter_width']; ?>);\n\t\t\t\t\t$('div#libraryFilters input#filter_height').val(<?php echo $sb_slideshow_interface['filter_height']; ?>);\n\n\t\t\t\t\tfilter_library();\n\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\n\t\t\t\t// file upload\n\t\t\t\tvar fid = 'userfile';\n\t\t\t\tnew AjaxUpload($('a#uploadlink'), {\n\t\t\t\t\taction: ajaxurl,\n\t\t\t\t\tname: fid,\n\t\t\t\t\tdata: { action: 'sb_action_handle_upload_ajax', file_id: fid },\n\t\t\t\t\tresponseType: 'json',\n\t\t\t\t\tonSubmit: function( file , ext ){\n\t\t\t\t\t\tif( ext && /^(jpg|png|jpeg|gif)$/.test(ext) ) {\n\t\t\t\t\t\t\t$('span#uploadresult').html( 'Uploading ' + file + '...' );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// extension is not allowed\n\t\t\t\t\t\t\t$('span#uploadresult').html( 'Error: Only images are allowed.' );\n\t\t\t\t\t\t\treturn false;\t// cancel upload\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tonComplete: function( file, response ){\n\t\t\t\t\t\tif( response.error != '' ) {\n\t\t\t\t\t\t\t$('span#uploadresult').html( response.error ); // show user the error\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('span#uploadresult').html( file + ' has been uploaded!' );\n\n\t\t\t\t\t\t\tvar offset = $(attachments).length;\n\t\t\t\t\t\t\t$.post(ajaxurl, { action: 'sb_slideshow_upload', id: '<?php echo $post->ID; ?>', index_offset: offset }, function(response) {\n\t\t\t\t\t\t\t\tattachments[offset] = $.parseJSON( response.object ); // append to attachments array\n\t\t\t\t\t\t\t\taddToSelect( 'type', attachments[offset]['type'], null ); // add mime type to filter area if not already present\n\n\t\t\t\t\t\t\t\t// add year and month to filter if not already present\n\t\t\t\t\t\t\t\tvar year = attachments[offset]['year'];\n\t\t\t\t\t\t\t\taddToSelect( 'year', year, null );\n\t\t\t\t\t\t\t\taddToSelect( 'month', attachments[offset]['month'], year );\n\n\t\t\t\t\t\t\t\t$('select#filter_month option').sort( sortNum ).appendTo( 'select#filter_month' ); // sort the months to make sure they are in order\n\t\t\t\t\t\t\t\tfilterMonthToggle( $('select#filter_year').val() ); // enable/disable months based on year value\n\t\t\t\t\t\t\t\tprepend_to( 'library', response.html ); // prepend to library\n\t\t\t\t\t\t\t}, 'json');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// this is stupid, but it works for now\n\t\t\t\tfunction addToSelect( key, text, year ) {\n\t\t\t\t\tsel = 'select#filter_' + key;\n\n\t\t\t\t\tvar kill = false;\n\t\t\t\t\t$(sel + ' option').each(function( i, v ) {\n\t\t\t\t\t\tif ($(this).val() == text) {\n\t\t\t\t\t\t\tif (year != null) $(this).addClass('y' + year);\n\n\t\t\t\t\t\t\tkill = true; // not able to add to select, option already exists\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tif (kill) return false;\n\n\t\t\t\t\tif (year != null)\n\t\t\t\t\t\t$('<option>').val( text ).text( text ).addClass('y' + year).appendTo( sel );\n\t\t\t\t\telse\n\t\t\t\t\t\t$('<option>').val( text ).text( text ).appendTo( sel );\n\n\t\t\t\t\treturn true; // option added to select\n\t\t\t\t}\n\n\t\t\t\t// custom number sorting funtion\n\t\t\t\tfunction sortNum( a, b ){\n\t\t\t\t\tif ($(a).val() == 'all') return -1;\n\t\t\t\t\treturn $(a).val() > $(b).val() ? 1 : -1;\n\t\t\t\t};\n\n\t\t\t\t// show/hide custom size\n\t\t\t\t$('#size_radio_buttons input[type=\"radio\"]').change(function() {\n\t\t\t\t\tif( $(this).val() == 'custom' )\n\t\t\t\t\t\t$('#custom_size').show();\n\t\t\t\t\telse\n\t\t\t\t\t\t$('#custom_size').hide();\n\t\t\t\t});\n\t\t\t\tif( $('#size_radio_buttons input[id=\"size_custom\"]').is(':checked') )\n\t\t\t\t\t$('#custom_size').show(); // initial custom size show/hide\n\n\t\t\t\t// slideshow options view\n\t\t\t\t$('#slideshow_radio_buttons input[type=\"radio\"]').change(function() {\n\t\t\t\t\tif($(this).val() == 'slideshow_on')\n\t\t\t\t\t\t$('#slideshow_on_options').show();\n\t\t\t\t\telse\n\t\t\t\t\t\t$('#slideshow_on_options').hide();\n\t\t\t\t});\n\t\t\t\tif( $('#slideshow_radio_buttons input[id=\"ssorri_slideshow_off\"]').is(':checked') )\n\t\t\t\t\t$('#slideshow_on_options').hide();\n\n\t\t\t\t// slideshow title is required\n\t\t\t\t$('input#publish, input#save-post, a#post-preview').mousedown(function(e) {\n\t\t\t\t\tif( $('input#title').val() == '' ) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t$('input#title').focus();\n\t\t\t\t\t\talert( 'You must enter a title for this slideshow!' );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\n\t\t\t\t// clear default link\n\t\t\t\t$('input.slide-link').live('focus', function() {\n\t\t\t\t\tif ($(this).val() == '<?php echo $sb_slideshow_interface['link_text']; ?>') $(this).val( '' );\n\t\t\t\t});\n\t\t\t\t$('input.slide-link').live('blur', function() {\n\t\t\t\t\tif ($(this).val() == '') $(this).val( '<?php echo $sb_slideshow_interface['link_text']; ?>' );\n\t\t\t\t});\n\t\t\t});\n\t\t})(jQuery);\n\t\t//]]>\n\t</script>\n\n\t<style type=\"text/css\">\n\t\t/* slides and library */\n\t\t#sb_slides div.inside,\n\t\t#sb_library div.inside { position:relative; }\n\t\tdiv.scrollingContainer {\n\t\t\toverflow:auto;\n\t\t\twhite-space:nowrap;\n\t\t\tmargin:0;\n\t\t}\n\t\tul.connectedSortable { width:9999px; overflow:auto; }\n\t\tul.connectedSortable li {\n\t\t\tfloat:left;\n\t\t\tdisplay:inline;\n\t\t\tposition:relative;\n\t\t\tmargin:0;\n\t\t}\n\t\tul.connectedSortable img { cursor:move;\t}\n\t\tul.connectedSortable li,\n\t\t.ui-sortable-helper { padding:5px; }\n\t\t.placeholder { background:#257DA6 !important; }\n\t\tdiv.sb_right { position:absolute; top:1px; right:2px; padding:5px 10px; }\n\t\tdiv.sb_right a { text-decoration:none; }\n\n\t\t/* slides */\n\t\t#sb_slides ul.connectedSortable {\n\t\t\tmin-width:<?php echo $sb_slideshow_interface['slide_width'] * 2; ?>px;\n\t\t\tmin-height:<?php echo $sb_slideshow_interface['slide_height'] + 87; ?>px;\n\t\t}\n\t\t#sb_slides.closed ul.connectedSortable { min-height:0; }\n\t\t#sb_slides ul.connectedSortable img {\n\t\t\twidth:<?php echo $sb_slideshow_interface['slide_width']; ?>px;\n\t\t\theight:<?php echo $sb_slideshow_interface['slide_height']; ?>px;\n\t\t}\n\t\t#sb_slides ul.connectedSortable .placeholder {\n\t\t\twidth:<?php echo $sb_slideshow_interface['slide_width'] + 2; ?>px;\n\t\t\theight:<?php echo $sb_slideshow_interface['slide_height'] + 77; ?>px;\n\t\t}\n\t\t#sb_slides ul.connectedSortable textarea {\n\t\t\twidth:<?php echo $sb_slideshow_interface['slide_width']; ?>px;\n\t\t\theight:50px;\n\t\t\tdisplay:block;\n\t\t}\n\t\t#sb_slides ul.connectedSortable label { float:left; line-height:32px; width:55px; }\n\t\t#sb_slides ul.connectedSortable .slide-link {\n\t\t\theight:25px;\n\t\t\tmargin-top:5px;\n\t\t\tdisplay:block; width:<?php echo $sb_slideshow_interface['slide_width'] - 54; ?>px;\n\t\t}\n\t\t#sb_slides ul.connectedSortable .sb_right a.move-to-slides { display:none; }\n\n\t\t/* library */\n\t\t#sb_library ul.connectedSortable {\n\t\t\tmin-width:<?php echo $sb_slideshow_interface['slide_width'] * 2; ?>px;\n\t\t\tmin-height:<?php echo ($sb_slideshow_interface['slide_height'] / 3) + 10; ?>px;\n\t\t}\n\t\t#sb_library ul.connectedSortable img,\n\t\t#sb_library .placeholder {\n\t\t\twidth:<?php echo floor($sb_slideshow_interface['slide_width'] / 3); ?>px;\n\t\t\theight:<?php echo floor($sb_slideshow_interface['slide_height'] / 3); ?>px;\n\t\t}\n\t\t#sb_library ul.connectedSortable textarea,\n\t\t#sb_library ul.connectedSortable label,\n\t\t#sb_library ul.connectedSortable .slide-link,\n\t\t#sb_library ul.connectedSortable .sb_right a.move-to-library { display:none !important; }\n\n\t\t/* scrolling hotspots */\n\t\tdiv.scrollingHotSpotLeft, div.scrollingHotSpotRight {\n\t\t\tdisplay:none;\n\t\t\twidth:50px;\n\t\t\theight:100%;\n\t\t\ttop:0;\n\t\t\tposition:absolute;\n\t\t\tz-index:200;\n\t\t\tbackground-position:center center;\n\t\t\tbackground-repeat:no-repeat;\n\t\t\tbackground-color:#F9F9F9;\n\t\t\topacity:0.35;\n\t\t\t-moz-opacity:0.35;\n\t\t\tfilter:alpha(opacity = 35);\n\t\t\tzoom:1; /* trigger \"hasLayout\" in Internet Explorer 6 or older */\n\t\t}\n\t\tdiv.scrollingHotSpotLeft\t{\n\t\t\tleft: 0;\n\t\t\tbackground-image: url(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/arrow_left.gif'; ?>);\n\t\t\tcursor: url(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/cursors/cursor_arrow_left.cur'; ?>),\n\t\t\t\turl(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/cursors/cursor_arrow_left.cur'; ?>), w-resize;\n\t\t}\n\t\tdiv.scrollingHotSpotRight {\n\t\t\tright: 0;\n\t\t\tbackground-image: url(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/arrow_right.gif'; ?>);\n\t\t\tcursor: url(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/cursors/cursor_arrow_right.cur'; ?>),\n\t\t\t\turl(<?php echo INCLUDES_URL . '/extensions/startbox-slideshows/images/admin/cursors/cursor_arrow_right.cur'; ?>), w-resize;\n\t\t}\n\n\t\t/* interface */\n\t\tdiv.scrollingContainer,\n\t\t.ui-sortable-helper,\n\t\tdiv.sb_right,\n\t\tul.connectedSortable li {\n\t\t\tbackground:<?php echo $sb_slideshow_interface['color']; ?>;\n\t\t}\n\t\tinput.pixelfield { width:44px; }\n\t\tinput.urlfield { width:155px; }\n\t\t#uploaddiv { position:absolute; top:-29px; left:110px; }\n\t\tdiv#libraryFilters { margin-top:8px; text-align:left; overflow:auto; }\n\t\tdiv#libraryFilters div {\n\t\t\tmargin-top:6px;\n\t\t\tline-height:2em;\n\t\t\twhite-space:nowrap;\n\t\t\tfloat:left;\n\t\t\tmargin-left:10px;\n\t\t}\n\t\tdiv#libraryFilters div em { line-height:2em; display:block; }\n\t\tdiv.filterGroup {\n\t\t\tpadding-left:10px;\n\t\t\tborder-left:1px solid #EAEAEA;\n\t\t}\n\t</style>\n<?php\n}", "function dt_sc_single_product_slider( $attrs, $content = null ) {\n\n\t\tglobal $post, $woocommerce, $product;\n\t\tif(!is_object($woocommerce) || !is_object($woocommerce->query) || empty($product)) return;\n\n\t\t$output = \"<div class='product-slider-container'>\";\n\t\t$output .= \"<ul class='product-slider'>\";\n\t\t\t\t\tif( has_post_thumbnail( $post->ID ) ) {\n\t\t\t\t\t\t$output .= \"<li>\".get_the_post_thumbnail( $post->ID, 'full', array('alt' => $title ) ).\"</li>\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$attachment_ids = $product->get_gallery_attachment_ids();\n\t\t\t\t\tif ( $attachment_ids ) {\n\t\t\t\t\t\tforeach ( $attachment_ids as $attachment_id ) {\n\t\t\t\t\t\t\t$image_title \t= esc_attr( get_the_title( $attachment_id ) );\n\t\t\t\t\t\t\t$image_caption \t= esc_attr( get_post_field( 'post_excerpt', $attachment_id ) );\n\t\t\t\t\t\t\t$image = wp_get_attachment_image( $attachment_id, 'full', 0, $attr = array('title'\t=> $image_title, 'alt'\t=> $image_title) );\n\n\t\t\t\t\t\t\t$output .= \"<li>\".$image.\"</li>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t$output .= \"</ul>\";\n\t\t$output .= \"</div>\";\n\n\t\treturn $output;\n\t}", "function np_register_styles() {\n // register\n wp_register_style('np_styles', plugins_url('nivo-slider/nivo-slider.css', __FILE__));\n wp_register_style('np_styles_theme', plugins_url('nivo-slider/themes/default/default.css', __FILE__));\n \n // enqueue\n wp_enqueue_style('np_styles');\n wp_enqueue_style('np_styles_theme');\n}", "function thmplt_carousel_add_jscss() {\r\n global $post;\r\n\t$url_to_here = str_replace( TEMPLATEPATH, get_bloginfo('template_url'), dirname(__FILE__) );\r\n\tif ('thmplt_carousel' === $post->post_type) {\t\t\r\n\t\techo \"<script type='text/javascript' src='\".$url_to_here. \"/carousel.js'></script>\\n\";\r\n\t\t#echo \"<link rel='stylesheet'href='\".$plugin_url.\"/editor.css' type='text/css' media='all' \\>\\n\";\t\t\r\n\t}\r\n}", "function add_slideshow( $slides = null, $options = null, $position = null ) {\n\n\t\t$module = new I2M_Module__slideshow( $slides, $options, $position );\n\n\t\t$this->module_list[] = $module->get_acf_layout();\n\t\t$this->modules[] = $module;\n\n\t\treturn $module;\n\n\t}" ]
[ "0.7163396", "0.6579227", "0.6411208", "0.6399297", "0.6370105", "0.63146704", "0.6293575", "0.6271795", "0.6225943", "0.62078696", "0.62013036", "0.61960953", "0.6153122", "0.61516774", "0.614801", "0.6116234", "0.6109848", "0.607009", "0.6043716", "0.6013781", "0.6012693", "0.6000559", "0.599605", "0.5992651", "0.5986803", "0.5965136", "0.59564215", "0.595479", "0.5949984", "0.5947015", "0.59346306", "0.591172", "0.590331", "0.58997035", "0.58976483", "0.5895878", "0.5888695", "0.58630574", "0.5861093", "0.585511", "0.5852725", "0.58525145", "0.5850784", "0.5848134", "0.58217794", "0.58068264", "0.5806049", "0.57951987", "0.57940114", "0.57927", "0.57898295", "0.5788901", "0.57865995", "0.5760289", "0.57555276", "0.5752559", "0.5745819", "0.57399076", "0.5739692", "0.5731818", "0.5727104", "0.57132703", "0.57105887", "0.570771", "0.57024395", "0.57012314", "0.5697829", "0.56974673", "0.56949824", "0.5694252", "0.56881964", "0.5686737", "0.56817734", "0.56799155", "0.56725615", "0.56717277", "0.56717265", "0.56527036", "0.5641605", "0.56403214", "0.5629443", "0.5629368", "0.56288564", "0.5624877", "0.5622223", "0.56216615", "0.56179607", "0.561467", "0.5614191", "0.56138206", "0.561374", "0.56086695", "0.5608154", "0.56074226", "0.5599966", "0.5599771", "0.55982053", "0.5595294", "0.55930156", "0.5587939" ]
0.7036279
1
Sort date from eventList
Сортировка даты из eventList
private function sortEventList($eventList){ $anz = count($eventList); $temp=""; for ($a = 0; $a < $anz; $a++) { for ($b = 0; $b < $anz -2; $b++) { if ($eventList[$b +1]->start_date < $eventList[$b]->start_date) { $temp = $eventList[$b]; $eventList[$b] = $eventList[$b +1]; $eventList[$b +1] = $temp; } } } return $eventList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_sort_event_list()\n\t{\n\t$temp = $this->get_event_list();\n\tif (!empty($temp))\n\t{\n\t\tusort($temp, [&$this, \"ical_dtstart_compare\"]);\n\t\treturn $temp;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}", "public function sort_projects_by_date ()\n {\n\n }", "public function getSortedEvents() {\n\t\tif ($events = $this->getEvents()) {\n\t\t\tusort(\n\t\t\t\t$events, function ($a, $b) {\n\t\t\t\t\treturn $a['DTSTART'] > $b['DTSTART'];\n\t\t\t\t}\n\t\t\t);\n\t\t\treturn $events;\n\t\t}\n\t\treturn array();\n\t}", "function sortFunction( $a, $b ) {\n\t\t\t\treturn strtotime($a[\"event_start_date_time\"]) - strtotime($b[\"event_start_date_time\"]);\n\t\t\t}", "private function update_data_filter_and_sort()\n {\n\n $array = get_data_from_API();\n //create a new array for only the data we want\n $filteredEvents = array();\n\n //loop through the array with all event data. \n foreach ($array as $events) {\n //Pull the data we want. \n $eName = $events['event']['name'];\n $eDate = $events['event']['end_date'];\n $eDate = str_replace('-', '/', $eDate);\n //grab the event's end date and save it as a datetime object for comparison\n $eDateTime = strtotime($eDate);\n $sDate = $events['event']['start_date'];\n $sDate = str_replace('-', '/', $sDate);\n $eLink = \"placeholder.com\";\n\n //Save it into an array called $singleEvent\n $singleEvent = array(\n 'name' => $eName,\n 'start_date' => $sDate,\n 'end_date' => $eDate,\n 'event_link' => $eLink\n );\n\n\n //checks to see if the $singleEvent is relevant or not (older than today's date)\n $date_now = getDatetimeNow();\n\n $date_now = strtotime($date_now);\n\n //if today's date is less than the stored date, add it\n //(i.e. the event hasn't happened yet, it is an upcoming event)\n if ($eDateTime > $date_now && $eDateTime != null) {\n array_push($filteredEvents, $singleEvent);\n } else {\n //do nothing\n }\n }\n\n //sort the array ascending by dates (most recent event first)\n foreach ($filteredEvents as $key => $value) {\n $sort_data[$key] = $value['end_date'];\n }\n array_multisort($sort_data, SORT_ASC, $filteredEvents);\n\n return $filteredEvents;\n }", "function sortDateAscending($thisFiles) {\n \tusort($thisFiles, \"cmpDA\");\n \treturn $thisFiles;\n }", "public function sortArrayByDate($array) {\n //so they can be displayed in the correct order regardless of when they were entered\n for($i = 1; $i < count($array); $i++) {\n //Storing current entry\n $entry = $array[$i];\n \n //Storing date of current entry\n $date = $array[$i]->{'Datum'};\n \n //Storing $i in separate variable $j for manipulation\n $j = $i;\n \n //As long as $j is greater than zero (index of the first entry) and the date of the entry in the previous iteration\n //is less than that of the current entry\n while($j > 0 && $array[$j - 1]->{'Datum'} < $date) {\n \n //The entry at the index of the current iteration is assigned the value of the previous iteration\n $array[$j] = $array[$j - 1];\n \n //$j is decremented in order to move \"left\" in the array\n $j -= 1;\n }\n \n //When there are no longer any entries with earlier dates,\n //place the stored entry at the position we are currently in\n $array[$j] = $entry;\n }\n \n return $array;\n \n }", "public function sort_events_by_date( $elem1, $elem2 ) {\r\n\t\treturn strtotime( $elem2['date'] ) - strtotime( $elem1['date'] );\r\n\t}", "function sort_events( $vars ) {\n\n\t\t// Check if we're viewing the 'event' post type.\n\t\tif ( isset( $vars['post_type'] ) && 'event' == $vars['post_type'] ) {\n\n\t\t\t// Check if 'orderby' is set to 'recurring'.\n\t\t\tif ( isset( $vars['orderby'] ) && 'recurring' == $vars['orderby'] ) {\n\n\t\t\t\t// Merge the query vars with our custom variables.\n\t\t\t\t$vars = array_merge(\n\t\t\t\t\t$vars,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'meta_key' => 'be_recurring_event',\n\t\t\t\t\t\t'orderby' => 'meta_value_num',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $vars;\n\t}", "function sortEvents($x,$y)\n\t\t{\n\t\t\tinclude \"convertTime.php\";\n\t\t\t\n\t\t\t// Converts all times to 24 hour time\n\t\t\t$xStart = convertTime($x[1],$x[2],$x[3]);\n\t\t\t$yStart = convertTime($y[1],$y[2],$y[3]);\n\t\t\t$xEnd = convertTime($x[4],$x[5],$x[6]);\n\t\t\t$yEnd = convertTime($y[4],$y[5],$y[6]);\n\t\t\t\n\t\t\t// Checks which event starts first\n\t\t\tif($xStart==$yStart)\n\t\t\t{\n\t\t\t\t// If the start times are equal then it checks end times\n\t\t\t\tif($xEnd==$yEnd)\n\t\t\t\t{\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\telse if($xEnd>$yEnd)\n\t\t\t\t{\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if($xStart>$yStart)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}", "public function sortBy(){\n global $SnickerPlugin;\n\n if($SnickerPlugin->getValue(\"frontend_order\") === \"date_asc\"){\n uasort($this->db, function($a, $b){\n return $a[\"date\"] > $b[\"date\"];\n });\n } else if($SnickerPlugin->getValue(\"frontend_order\") === \"date_desc\"){\n uasort($this->db, function($a, $b){\n return $a[\"date\"] < $b[\"date\"];\n });\n }\n return true;\n }", "function _datesort($a,$b){\n $da = $this->_meta($a,'cdate');\n $db = $this->_meta($b,'cdate');\n if($da < $db) return -1;\n if($da > $db) return 1;\n return strcmp($a['file'],$b['file']);\n }", "function SortArticlesByDate( $a, $b ){\n return strtotime($a['date']) < strtotime( $b['date'] );\n}", "function sortByDate( $a, $b ) {\n return strtotime($b[\"date\"]) - strtotime($a[\"date\"]);\n}", "function logSorter_sort($list) {\n uasort($list, 'logSorter_cmpFiles');\n return $list;\n}", "function sortDateDescending($thisFiles) {\n \tusort($thisFiles, \"cmpDD\");\n \treturn $thisFiles;\n }", "public function sortAppointmentsList($a, $b) {\nif ((strtotime($a['title']) !== false) && (strtotime($b['title']) !== false)) { // sort by time, if they're times\n\t$a = strtotime($a['title']);\n\t$b = strtotime($b['title']);\n} else { // if not, sort as text\n\t$a=preg_replace('~[^a-z0-9]~', '', strtolower($a['title']));\n\t$b=preg_replace('~[^a-z0-9]~', '', strtolower($b['title']));\n}\nreturn $a==$b ? 0 : ($a<$b) ? -1 : 1;\n}", "function sortFunction( $a, $b ) {\n return strtotime($a['date']) - strtotime($b[\"date\"]);\n}", "function sortFunction( $a, $b ) {\n return strtotime($b[\"date\"]) - strtotime($a[\"date\"]);\n}", "public static function _sortEventsByTime($a, $b)\n\t{\n\t\t//if ($a->publish_up() == $b->publish_up()) return 0;\n\n\t\tlist($adate, $atime) = explode(' ', $a->publish_up());\n\t\tlist($bdate, $btime) = explode(' ', $b->publish_up());\n\n\t\t// if allday event, sort by title first on day\n\t\tif ($a->alldayevent())\n\t\t\t$atime = '00:00' . $a->title();\n\t\tif ($b->alldayevent())\n\t\t\t$btime = '00:00' . $b->title();\n\n\t\treturn strcmp($atime, $btime);\n\n\t}", "function cmp($a, $b){\n if ((int)$a->date[0] == (int)$b->date[0]) {\n return 0;\n }\n return ((int)$a->date[0] > (int)$b->date[0]) ? -1 : 1;\n}", "function cmp($a, $b){\n if ((int)$a->date[0] == (int)$b->date[0]) {\n return 0;\n }\n return ((int)$a->date[0] > (int)$b->date[0]) ? -1 : 1;\n}", "public function getSortOrderByDate() \n {\n return $this->_fields['SortOrderByDate']['FieldValue'];\n }", "public function asort() {}", "function sortByDate(array $a, array $b): int {\n return strtotime($b['publishDate']) - strtotime($a['publishDate']);\n}", "function extSortUpcoming($aItem,$bItem){\n $aBegin = $aItem['mday'] ? $aItem['mday'] : $aItem['begin'];\n $bBegin = $bItem['mday'] ? $bItem['mday'] : $bItem['begin'];\n\n if($aBegin>$bBegin){\n return 1;\n }elseif($aBegin<$bBegin){\n return -1;\n }\n\n if($aItem['uid']<$bItem['uid']){\n return -1;\n }elseif($aItem['uid']>$bItem['uid'])\n return 1;\n return 0;\n }", "private function sortEvents(\\Illuminate\\Support\\Collection $events, DateTimeZone $timezone)\n {\n return $this->option('next')\n ? $events->sortBy(fn ($event) => $this->getNextDueDateForEvent($event, $timezone))\n : $events;\n }", "function sortFunction( $a, $b ) {\n return strtotime($a[0]) - strtotime($b[0]);\n }", "public function date_get_eventlist($date, $gid = 0)\n {\n if (is_array($date)) {\n $from = $this->esc($date[0]);\n $to = $this->esc($date[1]);\n } else {\n $date = $from = $to = $this->esc($date);\n }\n // Support for filtering out events from groups not included in result set according to query type\n $eventListFilter = $this->getQueryTypeFilter($gid);\n $gidFilter = $this->getGroupAndShareFilter($gid);\n\n $return = array();\n $query = 'SELECT DISTINCT e.`id` '\n .', IF(rp.`type`!=\"-\", UNIX_TIMESTAMP(CONCAT(DATE_FORMAT(\"'.$date.'\", \"%Y-%m-%d\"), \" \",DATE_FORMAT(e.`starts`, \"%T\")) ), UNIX_TIMESTAMP(e.`starts`) ) as start'\n .', IF(rp.`type`!=\"-\", UNIX_TIMESTAMP(CONCAT(DATE_FORMAT(\"'.$date.'\", \"%Y-%m-%d\"), \" \",DATE_FORMAT(e.`ends`, \"%T\")) ), UNIX_TIMESTAMP(e.`ends`) ) as end'\n .',e.`starts`, e.`ends`, e.`location`, e.`title`, e.`description`, e.`type`, e.`status`, e.`opaque`, rp.`type` `repeat_type`, rp.`until` `repeat_until`'\n .',IF(fs.`val` IS NULL, \"\", fs.`val`) `colour`'\n .', (SELECT `mode` FROM '.$this->Tbl['cal_reminder'].' WHERE `uid`='.$this->uid.' AND `eid`=e.`id` AND `ref`=\"evt\" LIMIT 1) `warn_mode`'\n .' FROM '.$this->Tbl['cal_repetition'].' rp, '.$this->Tbl['cal_event'].' e'\n .' LEFT JOIN '.$this->Tbl['cal_group'].' eg ON eg.`gid`=e.`gid`'\n .' LEFT JOIN '.$this->Tbl['user_foldersettings'].' fs ON fs.`fid`=e.`gid` AND fs.`handler`=\"calendar\" AND fs.`key`=\"foldercolour\" AND fs.uid='.$this->uid\n .$eventListFilter[0]\n .' WHERE rp.`eid`=e.`id` AND rp.`ref`=\"evt\" AND ('.$gidFilter.')'.$eventListFilter[1]\n .' AND IF (rp.`type`!=\"-\", DATE_FORMAT(e.`starts`, \"%Y%m%d\") <= DATE_FORMAT(\"'.$from.'\", \"%Y%m%d\"), 1)'\n .' AND IF (rp.`type`!=\"-\" AND rp.`until` IS NOT NULL AND rp.`until` != \"0-0-0 0:0:0\", rp.`until`>\"'.$to.'\",1) AND ('\n // Begins or ends today\n .'DATE_FORMAT(e.`starts`, \"%Y%m%d\")=DATE_FORMAT(\"'.$date.'\", \"%Y%m%d\") OR DATE_FORMAT(e.`ends`, \"%Y%m%d\")=DATE_FORMAT(\"'.$date.'\", \"%Y%m%d\") OR '\n // Begins in the past AND ends in the future\n .'( DATE_FORMAT(e.`starts`, \"%Y%m%d\")<=DATE_FORMAT(\"'.$date.'\", \"%Y%m%d\") AND DATE_FORMAT(e.`ends`, \"%Y%m%d\")>=DATE_FORMAT(\"'.$date.'\", \"%Y%m%d\") ) OR '\n // Is an event occuring yearly. Todays date matches the repetition date\n .'(rp.`type`=\"year\" AND (DATE_FORMAT(e.`starts`,\"%m%d\")=DATE_FORMAT(\"'.$date.'\", \"%m%d\") OR DATE_FORMAT(e.`ends`,\"%m%d\")=DATE_FORMAT(\"'.$date.'\",\"%m%d\"))) OR '\n // A monthly event, repetition day is today, repetition month is empty or matches\n .'(rp.`type`=\"month\" AND rp.`repeat`=DATE_FORMAT(\"'.$date.'\", \"%e\") AND (rp.`extra`=\"\" OR FIND_IN_SET(DATE_FORMAT(\"'.$date.'\", \"%c\"), rp.`extra`)>0) ) OR '\n // Monthly event on e.g. the 31st of month with months shorter than 31 days, this is only supported from MySQL 4.1.1 onward\n .'(rp.`type`=\"month\" AND rp.`repeat`=31 AND (rp.`extra`=\"\" OR FIND_IN_SET(DATE_FORMAT(\"'.$date.'\", \"%c\"), rp.`extra`)>0) AND LAST_DAY(\"'.$date.'\")=DATE_FORMAT(\"'.$date.'\", \"%Y-%m-%d\"))'\n // A weekly event, repetition weekday is today\n .' OR (rp.`type`=\"week\" AND rp.`repeat`=DATE_FORMAT(\"'.$date.'\", \"%w\") AND IF(rp.`extra` IN(\"\", \"1\"), 1, ABS(MOD(DATEDIFF(e.`starts`, \"'.$date.'\")/7, rp.`extra`))=0) ) OR '\n // A \"daily\" event, where the bit pattern should match today's weekday\n .'(rp.`type`=\"day\" AND (rp.`repeat`=\"0\" OR SUBSTRING(LPAD(BIN(rp.`repeat`), 8, 0), IF(DATE_FORMAT(\"'.$date.'\", \"%w\")=0, 8, DATE_FORMAT(\"'.$date.'\", \"%w\")+1), 1) = 1 ) )'\n .') ORDER BY `start` ASC';\n $qh = $this->query($query);\n while ($line = $this->assoc($qh)) {\n if ($line['warn_mode'] == '?') {\n $qid2 = $this->query('SELECT `mode` FROM '.$this->Tbl['cal_reminder']\n .' WHERE `uid`='.$this->uid.' AND `eid`='.$line['id'].' AND `ref`=\"evt\" AND `mode` != \"-\" LIMIT 1');\n list ($rem) = $this->fetchrow($qid2);\n $line['warn_mode'] = $rem ? $rem : '-';\n } elseif ($line['warn_mode'] == '' || is_null($line['warn_mode'])) {\n $line['warn_mode'] = '-';\n }\n $return[] = $line;\n }\n return $return;\n }", "static function default_sort_key(): string { return 'date_till'; }", "function sort_notes($a, $b) {\n return strtotime($b['date']) - strtotime($a['date']);\n }", "public function Sorting_DateUpdate($desc = false) {\r\n\t\treturn array(\r\n\t\t\t'order'\t=> array(\r\n\t\t\t\t'ext_project_project.date_update ' . self::getSortDir($desc)\r\n\t\t\t)\r\n\t\t);\r\n\t}", "private function sortByDate($a, $b) {\n\n return strcmp($a->tstamp, $b->tstamp);\n }", "public static function sortByWhenOrScheduledWhen(Array $departuresList): Array\n {\n uasort($departuresList, function($a, $b) {\n $dateA = $a->when;\n if($dateA == null) {\n $dateA = $a->scheduledWhen;\n }\n\n $dateB = $b->when;\n if($dateB == null) {\n $dateB = $b->scheduledWhen;\n }\n\n return ($dateA < $dateB) ? -1 : 1;\n });\n\n return $departuresList;\n }", "function edit_event_load() {\n\n\t\tadd_filter( 'request', array( $this, 'sort_events' ) );\n\t}", "private function sortDates(array $dates)\n\t{\n\t\tusort($dates, function($date1, $date2)\n\t\t{\n\t\t\tif($date1->lt($date2))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if($date1->gt($date2))\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "function sortByDate($a, $b) \n{\n $aStats = explode ( \":\", $a );\n\t$bStats = explode ( \":\", $b );\n\t\n return -1 * (strcmp( $aStats[1],$bStats[1] ));\n}", "function printEventsList($args = array()) {\n\t \t$echo = true;\n\t \t$before = $after = '';\n\n\t \t$template = get_option('fse_template_lst');\n\t \t$groupby = get_option('fse_groupby');\n\t \t$groupby_hdr = get_option('fse_groupby_header');\n\n\t \t$pagination = get_option('fse_pagination');\n\n\t \tif (isset($_GET['wpcal-page'])) {\n\t \t\t$args['page'] = intval($_GET['wpcal-page']);\n\t \t} else {\n\t \t\t$args['page'] = 1;\n\t \t}\n\n\t \tforeach($args as $k => $a) {\n\t \t\tswitch($k) {\n\t \t\t\tcase 'echo':\n\t \t\t\t\tif (is_bool($a))\n\t \t\t\t\t$echo = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'before':\n\t \t\t\t\t$before = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'after':\n\t \t\t\t\t$after = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'template':\n\t \t\t\t\t$template = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'groupby':\n\t \t\t\t\tif (in_array($a, array('','d','m','y')))\n\t \t\t\t\t$groupby = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'groupby_header':\n\t \t\t\t\t$groupby_hdr = $a;\n\t \t\t\t\tbreak;\n\t \t\t\tcase 'pagination':\n\t \t\t\t\t$pagination = ($a == true ? true : false); // Allow type cast using == instead of ===$\n\t \t\t\t\tbreak;\n\n\t \t\t}\n\t \t}\n\n\t \t// Sort must be by date, the user can choos, if asc or desc...\n\t \tif (isset($filter['orderby'])) {\n\t \t\tunset($filter['orderby']);\n\t \t}\n\t \t$filter['orderby'] = array('datefrom');\n\n\t \tif (isset($filter['orderdir'])) {\n\t \t\t$dir = $filter['orderdir'];\n\t \t\tif (isset($dir[0]))\n\t \t\t$dir = $dir[0];\n\t \t\telse\n\t \t\t$dir = 'asc';\n\t \t\tunset($filter['orderdir']);\n\t \t} else {\n\t \t\t$dir = 'asc';\n\t \t}\n\t \t$filter['orderdir'] = array($dir);\n\n\t \t$ret = '';\n\n\t \t$evt = $this->getEventsExternal($args);\n\n\n\t \tif ($pagination) {\n\t \t\t$args['count'] = true;\n\t \t\t$count = $this->getEventsExternal($args);\n\n\t \t\t// If no pagination is needed, disabled it\n\t \t\tif (count($evt) == $count) {\n\t \t\t\t$pagination = false;\n\t \t\t}\n\t \t}\n\n\t \tif ($evt !== false) {\n\t \t\t$d = $m = $y = -1;\n\t \t\tforeach($evt as $e) {\n\t \t\t\t$dn = $e->getStart('d');\n\t \t\t\t$mn = $e->getStart('m');\n\t \t\t\t$yn = $e->getStart('y');\n\n\t \t\t\tif (($groupby == 'y' && $yn != $y) ||\n\t \t\t\t($groupby == 'm' && ($yn != $y || $mn != $m)) ||\n\t \t\t\t($groupby == 'd' && ($yn != $y || $mn != $m || $dn != $d))) {\n\n\t \t\t\t\t//echo $yn.'-'.$y.':'.$mn.'-'.$m.'<br />';\n\n\t \t\t\t\tif ($d != -1) {\n\t \t\t\t\t\t$ret .= '</ul></li>';\n\t \t\t\t\t}\n\t \t\t\t\t$ret .= '<li class=\"event_header\">'.$e->getStart($groupby_hdr).'<ul class=\"events\">';\n\t \t\t\t\t$d = $dn;\n\t \t\t\t\t$m = $mn;\n\t \t\t\t\t$y = $yn;\n\t \t\t\t}\n\t \t\t\t$ret .= '<li class=\"event\" id=\"event-'.$e->eventid.'\">';\n\t \t\t\t$ret .= $this->filterContent($template, $e);\n\t \t\t\t$ret .= '</li>';\n\t \t\t}\n\t \t\tif ($d != -1) {\n\t \t\t\t$ret .= '</ul></li>';\n\t \t\t}\n\t \t}\n\n\t \t$pagstr = '';\n\t \tif ($pagination) {\n\t \t\t$pagstr = $this->getEventsPagination($count, $args);\n\t \t}\n\n\t \t$ret = $pagstr.$before.'<ul class=\"groups\">'.$ret.'</ul>'.$after.$pagstr;\n\n\t \tif ($echo == true)\n\t \t\techo $ret;\n\t \telse\n\t \t\treturn $ret;\n\t }", "function getEvents($filter, $sort_string = '', $limit = 0, $start = 0, $count = false) {\n\t \tglobal $wpdb;\n\n\t \tif (empty($sort_string)) {\n\t \t\t$sort_string = 'e.`datefrom` ASC';\n\t \t}\n\t \t\n\t \t// Convert timestamps to mysql date format\n\t \tif (isset($filter['datefrom']) && !empty($filter['datefrom'])) {\n\t \t\t// Neu auch text unterstützen\n\t \t\tif (strpos(strtolower($filter['datefrom']), 'now') !== false) { // Now\n\t \t\t\t$filter['datefrom'] = $this->calculate_dates($filter['datefrom']);\n\t \t\t} else if (strpos(strtolower($filter['datefrom']), 'today') !== false) { // Today\n\t \t\t\t$filter['datefrom'] = $this->calculate_dates($filter['datefrom']);\n\t \t\t} else if (strpos($filter['datefrom'], '-') === false) { // Integer format\n\t \t\t\t$filter['datefrom'] = date('Y-m-d H:i:s', $filter['datefrom']);\n\t \t\t} else {\n\t \t\t\t// Validate!\n\t \t\t\tif (strtotime($filter['datefrom']) == false || strtotime($filter['datefrom']) == -1) {\n\t \t\t\t\t$filter['datefrom'] = $this->calculate_dates('now');\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t \tif (isset($filter['dateto']) && !empty($filter['dateto'])) {\n\t \t\tif (strpos(strtolower($filter['dateto']), 'now') !== false) {\n\t \t\t\t$filter['dateto'] = $this->calculate_dates($filter['dateto']);\n\t \t\t} else if (strpos(strtolower($filter['dateto']), 'today') !== false) {\n\t \t\t\t$filter['dateto'] = $this->calculate_dates($filter['dateto'], true);\n\t \t\t} else if (strpos($filter['dateto'], '-') === false) {\n\t \t\t\t$filter['dateto'] = date('Y-m-d H:i:s', $filter['dateto']);\n\t \t\t} else {\n\t \t\t\t// Validate!\n\t \t\t\tif (strtotime($filter['dateto']) == false || strtotime($filter['dateto']) == -1) {\n\t \t\t\t\tunset($filter['dateto']);\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\n\t \t// If its an allday event, modify any selection time, because allday events allways starts at 00:00\n\t \tif (isset($filter['allday']) && $filter['allday'] == true) {\n\t \t\tif (isset($filter['datefrom'])) {\n\t \t\t\t$df = $filter['datefrom'];\n\t \t\t\t$filter['datefrom'] = date('Y-m-d H:i:s', mktime(0,0,0,mysql2date('m', $df), mysql2date('d', $df), mysql2date('Y', $df)));\n\t \t\t}\n\t \t\tif (isset($filter['dateto'])) {\n\t \t\t\t$df = $filter['dateto'];\n\t \t\t\t$filter['dateto'] = date('Y-m-d H:i:s', mktime(0,0,0,mysql2date('m', $df), mysql2date('d', $df)+1, mysql2date('Y', $df)) - 1);\n\t \t\t}\n\t \t}\n\n\t \t$where = ' WHERE ';\n\t \tif (isset($filter['id_inc']) && is_array($filter['id_inc']))\n\t \t$where .= \" e.`eventid` IN (\".implode(',', $filter['id_inc']).\") AND\";\n\t \tif (isset($filter['id_exc']) && is_array($filter['id_exc']))\n\t \t$where .= \" e.`eventid` NOT IN (\".implode(',', $filter['id_exc']).\") AND\";\n\t \tif (isset($filter['state']) && isset(self::$valid_states[$filter['state']]))\n\t \t$where .= \" e.`state`='{$filter['state']}' AND\";\n\t \tif (isset($filter['author']))\n\t \t$where .= \" e.`author`='{$filter['author']}' AND\";\n\t \tif (isset($filter['allday']))\n\t \t$where .= \" e.`allday`=\".($filter['allday'] === true ? '1' : '0').\" AND\";\n\t \tif (isset($filter['datefrom']) || isset($filter['dateto'])) {\n\n\t \t\tif (!isset($filter['datemode'])) {\n\t \t\t\t$filter['datemode']\t= FSE_DATE_MODE_ALL;\n\t \t\t}\n\n\t \t\t// Make date selection complete\n\t \t\tif (!isset($filter['datefrom']) || empty($filter['datefrom']))\n\t \t\t$filter['datefrom'] = date('Y-m-d H:i:s', 0);\n\t \t\tif (!isset($filter['dateto']) || empty($filter['dateto']))\n\t \t\t$filter['dateto'] = date('Y-m-d H:i:s', mktime(23, 59, 59, 12, 31, 2037));\n\n\t \t\t// Allday events to-stamp is at the beginning of the day!\n\t \t\t$date_to_allday = date('Y-m-d H:i:s', mktime(0, 0, 0, mysql2date('m', $filter['datefrom']), mysql2date('d', $filter['datefrom']), mysql2date('y', $filter['datefrom'])));\n\n\n\t \t\t// Events must always start before the end and\n\t \t\t// must end after start\n\t \t\t$where .= ' (e.`datefrom` <= \"'.$filter['dateto'].'\") AND '.\n \t\t\t\t\t\t' ((e.`dateto` >= \"'.$filter['datefrom'].'\") OR (e.`dateto` >= \"'.$date_to_allday.'\" AND `allday` = 1))'; \n\n\t \t\t//\n\t \t\tif ($filter['datemode'] == FSE_DATE_MODE_START) {\n\t \t\t\t$where .= ' AND (e.`datefrom` >= \"'.$filter['datefrom'].'\")';\n\t \t\t} elseif ($filter['datemode'] == FSE_DATE_MODE_END) {\n\t \t\t\t$where .= ' AND (e.`datefrom` <= \"'.$filter['dateto'].'\")';\n\t \t\t}\n\n\t \t\t$where .= ' AND';\n\t \t}\n\n\t \t// Join for categories\n\t \t$join = '';\n\t \tif (isset($filter['categories'])) {\n\t \t\t$f = $filter['categories'];\n\t \t\tif (!is_array($f))\n\t \t\t$f = array($f);\n\t \t\t$in = '';\n\t \t\tforeach($f as $c) {\n\t \t\t\t$c = intval($c);\n\t \t\t\tif (!empty($c))\n\t \t\t\t$in .= $c.',';\n\t \t\t}\n\n\t \t\tif (!empty($in)) {\n\t \t\t\t$in = substr($in, 0, strlen($in)-1);\n\t \t\t\t$where .= ' c.`catid` IN ('.$in.') AND';\n\t \t\t\t$join = ' LEFT JOIN `'.$wpdb->prefix.'fsevents_cats` AS c ON e.`eventid` = c.`eventid` ';\n\t \t\t}\n\t \t}\n\n\t \tif ($where != ' WHERE ')\n\t \t\t$where = substr($where, 0, strlen($where) - 3);\n\t \telse\n\t \t\t$where = '';\n\n\t \t// Special Case 'Count'!\n\t \tif ($count == true) {\n\t \t\t$sql = 'SELECT DISTINCT count(e.`eventid`) FROM `'.$wpdb->prefix.'fsevents` AS e '.$join.$where.' ORDER BY '.$sort_string;\n\t \t\treturn $wpdb->get_var($sql);\n\t \t} else {\n\t \t\t$sql = 'SELECT DISTINCT e.`eventid` FROM `'.$wpdb->prefix.'fsevents` AS e '.$join.$where.' ORDER BY '.$sort_string;\n\t \t\tif (!empty($limit)) {\n\t \t\t\t$sql .= ' LIMIT '.intval($start).', '.intval($limit);\n\t \t\t}\n\t \t}\n\n\t \tif (defined('FSE_SQL_DEBUG') && FSE_SQL_DEBUG == true && defined('WP_DEBUG') && WP_DEBUG == true) {\n\t \t\techo '<p>'.$sql.'</p>';\n\t \t}\t\n\t \t\n\t \t$res = $wpdb->get_col($sql);\n\n\t \tif ($res === NULL)\n\t \t\treturn false;\n\n\t \treturn $res;\n\t }", "public static function _sortEventsByModificationDate($a, $b)\n\t{\n\n\t\t$adate = $a->modified();\n\t\t$bdate = $b->modified();\n\n\t\t// reverse created date\n\t\treturn -strcmp($adate, $bdate);\n\n\t}", "public function sortPhoneData(){\n usort($this->phoneData, function($a, $b) {\n return $a['activationDate'] <=> $b['activationDate'];\n });\n\n }", "private function _sort_by_date( $current, $next ) {\n\t\t\tif ( (int) $current['content']['date'] === (int) $next['content']['date'] ):\n\t\t\t\treturn 0;\n\t\t\telseif ( (int) $current['content']['date'] < (int) $next['content']['date'] ):\n\t\t\t\treturn - 1;\n\t\t\telse:\n\t\t\t\treturn 1;\n\t\t\tendif;\n\t\t}", "function extSort($aItem,$bItem){\n $aBegin = $aItem['mday'] ? $aItem['mday'] : $aItem['begin'];\n $bBegin = $bItem['mday'] ? $bItem['mday'] : $bItem['begin'];\n\n if($aItem['allday']<$bItem['allday']){\n return 1;\n }elseif($aItem['allday']>$bItem['allday'])\n return -1;\n \n if($aBegin>$bBegin){\n return 1;\n }elseif($aBegin<$bBegin){\n return -1;\n }\n\n if($aItem['uid']<$bItem['uid']){\n return -1;\n }elseif($aItem['uid']>$bItem['uid'])\n return 1;\n return 0;\n }", "public function sort();", "public function sortCheckInDay()\n {\n // Database query\n $this->db->query('SELECT guests.id, guests.room_number, guests.full_name, guests.check_in_date, guests.check_out_date, guests.notes, reservations.status FROM guests INNER JOIN reservations ON guests.id = reservations.guest WHERE DATE_FORMAT(check_in_date, \"%Y-%m-%d\") = CURDATE()');\n // Get records\n $results = $this->db->resultSet();\n\n return $results;\n }", "private function sortListeners($eventName)\n {\n $this->_sorted[$eventName] = array();\n\n if (isset($this->_listeners[$eventName])) {\n krsort($this->_listeners[$eventName]);\n $this->_sorted[$eventName] = call_user_func_array('array_merge', $this->_listeners[$eventName]);\n }\n }", "public function index()\n {\n $seo = new SEOTools();\n\n $seo->setTitle('Home');\n $seo->setCanonical('https://citizenwarfare.com');\n\n\n $sorted = [];\n $pubEvents = Event::where('private', 0)->with('organization')->get();\n\n $events = new EventController();\n $timezonedata = $events->getTimeZone();\n session()->put('timezone', $timezonedata->time_zone->name);\n\n\n //remove outdated public events\n if(!$today = Carbon::now()->setTimezone(session()->get('timezone'))->format('Y-m-d')){\n $today = Carbon::now()->setTimezone(session()->get('timezone'))->format('Y-m-d');\n }\n //dd($this->data['pubEvents']);\n foreach ($pubEvents as $k => $event) {\n $parsed = Carbon::parse($event->start_date)->setTimezone(session()->get('timezone'))->format('Y-m-d');\n if ($parsed < $today) {\n unset($pubEvents[$k]);\n }\n //sort for front page and profile.\n $weekStart = Carbon::getWeekStartsAt();\n $weekEnd = Carbon::getWeekEndsAt();\n\n if(Carbon::parse($event->start_date)->setTimezone(session()->get('timezone'))->format('Y-m-d') < $weekEnd && $event > $weekStart){\n $sorted['thisWeek'][] = $event;\n }elseif(Carbon::parse($event->start_date)->setTimezone(session()->get('timezone'))->format('m') === Carbon::now()->setTimezone(session()->get('timezone'))->format('m')){\n $sorted['thisMonth'][] = $event;\n }elseif(Carbon::parse($event->start_date)->setTimezone(session()->get('timezone'))->format('Y-m-d') === Carbon::now()->setTimezone(session()->get('timezone'))->format('Y-m-d')){\n $sorted['today'][] = $event;\n }\n }\n\n return view('home')->with('sorted', $sorted);\n }", "private function makeDayEventListArray()\n\t{\n\t\t$outevents = array();\n\t\t$n = 0;\n\t\tforeach($this->eventItems as $item) {\n\t\t\tif($item['date'] == $this->curYear.'-'.$this->curMonth.'-'.$this->dayOfMonth) {\t\t\n\t\t\t\t$outevents[$n]['category'] = $item['cat'];\n\t\t\t\t\n\t\t\t\tif($item['stdurl']) {\n\t\t\t\t\t$outevents[$n]['url'] = $item['url'].'?id='.$item['id'];\n\t\t\t\t} else {\n\t\t\t\t\t$outevents[$n]['url'] = $item['url'];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$outevents[$n]['summary'] = $item['text'];\n\t\t\t\t$outevents[$n]['description'] = $item['desc'];\n\t\t\t\t$outevents[$n]['categorycolor'] = (strlen($item['catcolor']) > 0 ? str_replace('#','',$item['catcolor']) : '#eeeeee');\n\t\t\t}\n\t\t\t$n++;\n\t\t}\n\t\t\n\t\tif(count($outevents)) {\n\t\t\treturn $outevents;\n\t\t}\n\t\treturn false;\n\t}", "function getEvents()\n{\n require_once 'model/dbConnector.php';\n $connexion = openDBConnexion();\n $request = $connexion->prepare('SELECT * FROM bdd_satisfevent.events ORDER BY Date Desc');\n $request->execute(array());\n $result = $request->fetchAll();\n return $result;\n}", "function _buildContentOrderBy()\n\t{\t\t\t\n\t\t$orderEvents = EventBookingHelper::getConfigValue('order_events');\n\t\tif ($orderEvents == 2) {\n\t\t\t$orderby = ' ORDER BY a.event_date ';\n\t\t} else {\n\t\t\t$orderby = ' ORDER BY a.ordering ';\t\n\t\t}\t\t\t\n\t\treturn $orderby;\n\t}", "public function Sorting_dateStart($desc = false) {\r\n\t\treturn array(\r\n\t\t\t'order'\t=> array(\r\n\t\t\t\t'ext_project_project.date_start ' . self::getSortDir($desc)\r\n\t\t\t)\r\n\t\t);\r\n\t}", "function __construct(vevent $event, $from_date, $to_date)\r\n {\r\n //$this_day = date('d', $from_date);\r\n //$this_month = date('m', $from_date);\r\n //$this_year = date('Y', $from_date);\r\n\r\n //For the list view\r\n $date = getdate();\r\n $date_unixtime = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']);\r\n // TODO: List view needs to start today, not on the last selected date.\r\n// \t$from_date = ($date_unixtime + $to_date) / 2;\r\n \t$this_day = date('d', $from_date);\r\n $this_month = date('m', $from_date);\r\n $this_year = date('Y', $from_date);\r\n// \t$this_day = $date['mday'];\r\n// \t$this_month = $date['mon'];\r\n// \t$this_year = $date['year'];\r\n\r\n $start_month = $date['mon'] - 1;\r\n $start_year = $date['year'];\r\n $end_month = $this_month + 1;\r\n $end_year = $this_year;\r\n\r\n\r\n if ($this_month == 1)\r\n {\r\n $start_month = 12;\r\n $start_year --;\r\n }\r\n if ($this_month == 12)\r\n {\r\n $end_month = 1;\r\n $end_year ++;\r\n }\r\n\r\n $this->event = $event;\r\n $this->view_start = mktime(0, 0, 0, $start_month, 1, $start_year);\r\n $this->view_end = mktime(0, 0, 0, $end_month, 31, $end_year);\r\n\r\n if ($this->debug)\r\n {\r\n echo '<hr />';\r\n echo '<b>ICAL RECURRENCE</b>';\r\n echo '<hr />';\r\n echo '<table class=\"data_table\">';\r\n echo '<thead>';\r\n echo '<tr><th>Variable</td><th>Value</td>';\r\n echo '</thead>';\r\n echo '<tbody>';\r\n echo '<tr><td>Title</td><td>' . $this->event->summary['value'] . '</td>';\r\n echo '<tr><td>View begin</td><td>' . $this->view_start . ' (' . date('r', $this->view_start) . ')</td>';\r\n echo '<tr><td>View end</td><td>' . $this->view_end . ' (' . date('r', $this->view_end) . ')</td>';\r\n // echo '<tr><td>Event</td><td>';\r\n // echo '<pre>';\r\n // echo print_r($this->event, true);\r\n // echo '</pre>';\r\n // echo '</td>';\r\n // echo '</tr>';\r\n echo '</tbody>';\r\n echo '</table>';\r\n }\r\n }", "public function getTimeEventsList(){\n return $this->_get(8);\n }", "public function setSortOrderByDate($value) \n {\n $this->_fields['SortOrderByDate']['FieldValue'] = $value;\n return $this;\n }", "function set_sort (\t$in_keys\t/**<\tThis is the way we control a sort. It is both very powerful, and non-trivial.\n\t\t\t\t\t\t\t\t\t\t\t\tThis is an associative array, and the order of the keys determines sort priority,\n\t\t\t\t\t\t\t\t\t\t\t\twith the first key being the highest priority, and subsequent keys descending in\n\t\t\t\t\t\t\t\t\t\t\t\timportance.\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\tThis sort is far more powerful than the basic one used in the root server. It is designed\n\t\t\t\t\t\t\t\t\t\t\t\tto allow you to be very specific in your sort criteria for your printed list.\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\tThe value of each key determines the direction of the sort. If it is 0, false or null,\n\t\t\t\t\t\t\t\t\t\t\t\tthe sort will be descending (lower to greater). If it is 1 or true, then the sort will\n\t\t\t\t\t\t\t\t\t\t\t\tbe ascending.\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\tThis function executes the sort, so the meeting_data array is sorted after this function.\n\t\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t)\n\t\t\t{\n\t\t\t\tif ( isset ( $in_keys['week_starts'] ) && ($in_keys['week_starts'] > 0) && ($in_keys['week_starts'] < 8) )\t// This little dope fiend move is how we set a non-Sunday week start.\n\t\t\t\t\t{\n\t\t\t\t\tself::$week_starts = $in_keys['week_starts'];\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tself::$sort_order_keys = $in_keys;\n\t\t\t\t$ret = usort ( $this->meeting_data, self::$sort_callback );\n\t\t\t\treturn $ret;\n\t\t\t}", "function wp_list_sort($input_list, $orderby = array(), $order = 'ASC', $preserve_keys = \\false)\n {\n }", "function sortEvt($a,$b) { return strcmp(str_pad($a['sti'],5).$b['adt'], str_pad($b['sti'],5).$a['adt']); }", "private function _sort_by_added($a, $b)\n {\n if(strpos($a['date_scanned'], \":\") !== false) {\n $adate = DateTime::createFromFormat('j M Y H:i', $a['date_scanned']);\n } else {\n $adate = DateTime::createFromFormat('j M Y', $a['date_scanned']);\n }\n\n if(strpos($b['date_scanned'], \":\") !== false) {\n $bdate = DateTime::createFromFormat('j M Y H:i', $b['date_scanned']);\n } else {\n $bdate = DateTime::createFromFormat('j M Y', $b['date_scanned']);\n }\n\n if($bdate == $adate){\n return $this->_sort_by_show($a, $b);\n }\n\n if($this->sorting_order == \"az\")\n {\n return ($adate > $bdate);\n }\n\n return ($adate < $bdate);\n }", "public function getAllSortByDate()\n\t{\n\t\t$table = \"\";\n\t\t$table = $this->getTableName();\n\t\t$db_connection = get_db_connection();\n\t\t$dataArray = array();\n\t\t\n\t\t$query = \"select * from $table order by year_posted, month_posted\";\t\t\n\t\t$result = mysqli_query($db_connection, $query);\n\t\t$dataArray = $this->getData($result, $db_connection);\n\t\tmysqli_close($db_connection);\n\t\t\n\t\treturn $dataArray;\n\t}", "function sort_by_updated ($a, $b) {\n\t\treturn strtotime($b['LASTCHANGEDDATE']) - strtotime($a['LASTCHANGEDDATE']);\n\t}", "function agenda_get_item_list($course_id, $user_id, $user_group_list, $order='DESC')\n\n{\n\t$tbl = get_conf('mainTblPrefix') . 'event AS event INNER JOIN ' \n\t\t. get_conf('mainTblPrefix') . 'rel_event_recipient AS rel_event_recipient' \n\t\t. ' ON event.id = rel_event_recipient.event_id';\n\n\t$sql = \"SELECT event.id \t\t\t\t\t\tAS id,\n\t\t\t\t event.title \t\t\t\t\t\tAS title,\n\t\t\t\t event.description \t\t\t\tAS description,\n\t\t\t\t event.start_date \t\t\t\tAS start_date,\n\t\t\t\t event.end_date \t\t\t\t\tAS end_date,\n\t\t\t\t event.author_id \t\t\t\t\tAS author_id,\n\t\t\t\t event.master_event_id\t\t\tAS master_event_id,\n\t\t\t\t rel_event_recipient.user_id\t \tAS user_id,\n\t\t\t\t rel_event_recipient.group_id \tAS group_id,\n\t\t\t\t rel_event_recipient.visibility \tAS visibility\n\t\tFROM \" . $tbl . \"\n\t\tWHERE \t(rel_event_recipient.course_id = '\" . $course_id .\"'\n\t\t\t\tAND rel_event_recipient.user_id = \" . (int) $user_id .\")\n\t\t\tOR\n\t\t\t\t(rel_event_recipient.course_id = '\" . $course_id .\"'\n\t\t\t\tAND rel_event_recipient.user_id is NULL\n\t\t\t\tAND rel_event_recipient.group_id is NULL)\";\n\t\tforeach($user_group_list as $this_group)\n\t\t{\n\t\t\t$sql .=\" OR\n\t\t\t(rel_event_recipient.course_id = '\" . $course_id .\"'\n\t\t\tAND rel_event_recipient.user_id is NULL\n\t\t\tAND rel_event_recipient.group_id = \". (int) $this_group .\")\";\n\t\t}\n\n\n\t\t$sql .=\"ORDER BY event.start_date \" . ('DESC' == $order?'DESC':'ASC');\n\n\treturn claro_sql_query_fetch_all($sql);\n}", "public function getDateSortie() {\n return $this->dateSortie;\n }", "public function sortProductByCreatedAt()\n {\n $query=new \\yii\\db\\Query();\n return $sort=$query->from('product')->where(['status' => self::ACTIVE_STATUS])->orderBy('created_at DESC')->all();\n }", "function sortArticlesByDate(array $a, array $b) : int {\n return strtotime($b['published_date']) - strtotime($a['published_date']);\n}", "public function index()\n { $eventuser=[];\n $events=Event::all()->sortBy('startDate');\n foreach($events as $event){\n $eventuser[]= ['user'=> $event->user,'event'=>$event ];\n \n }\n return ['data' => $eventuser];\n }", "public function bookingListByDate()\n {\n $dateOptipns = [];\n $bookingMgr = new BookingMgr();\n $bookings = $bookingMgr->getBookings();\n foreach ($bookings->toArray() as $booking) {\n $dateOptipns[] = $booking['reserve_date'];\n }\n $dateOptipns = array_unique($dateOptipns);\n $dateOptipns = array_sort($dateOptipns);\n \n return view('booking/date', [\n 'dateOptipns' => $dateOptipns,\n ]);\n }", "public function findAllOrderedByUpdatedAtDate()\n {\n $query = $this->createQueryBuilder('e')\n ->orderBy('e.updatedAt', 'DESC');\n return $query->getQuery()->getResult();\n }", "public function getItems($params)\n\t{\n\t\t$eventcats = $params->get('eventcats', array());\n\t\t$eventcount = $params->get('eventcount', 5);\n\t\t$order = $params->get('order', 1);\n\t\t$Itemid = BabioonEventRouteHelper::getItemid('events');\n\t\t$db = JFactory::getDBO();\n\t\t$user\t\t= JFactory::getUser();\n\t\t$now = gmdate(\"Y-m-d\");\n\n\t\t$query = $db->getQuery(true);\n\t\t$query->select('MONTHNAME(e.sdate) AS mon')\n\t\t\t\t->select('YEAR(e.sdate) AS year')\n\t\t\t\t->select('e.*')\n\t\t\t\t->select('cc.title AS cctitle')\n\t\t\t\t->from('#__babioonevent_events AS e')\n\t\t\t\t->from('#__categories AS cc')\n\t\t\t\t->where('(e.sdate >= \"' . $now . '\" OR e.edate >= \"' . $now . '\")')\n\t\t\t\t->where('e.catid = cc.id')\n\t\t\t\t->where('e.enabled = 1')\n\t\t\t\t->where('cc.published = 1')\n\t\t\t\t->order('e.sdate, cc.title');\n\n\t\tif (!empty($eventcats) && trim($eventcats[0]) != \"\")\n\t\t{\n\t\t\t$catfilter = 'catid in (' . implode(',', $eventcats) . ') ';\n\t\t\t$query->where($catfilter);\n\t\t}\n\n\t\t// Implement View Level Access\n\t\tif (!$user->authorise('core.admin'))\n\t\t{\n\t\t\t$groups = implode(',', $user->getAuthorisedViewLevels());\n\t\t\t$query->where('cc.access IN (' . $groups . ')');\n\t\t}\n\n\t\t$db->setQuery($query, 0, $eventcount);\n\n\t\t$c = $db->loadObjectList();\n\t\t$ccount = count($c);\n\t\t$link = 'index.php?option=com_babioonevent&view=event' . '&Itemid=' . $Itemid . '&id=';\n\n\t\t$categorylist = array();\n\t\t$nr = array();\n\n\t\tfor ($i = 0; $i < $ccount; $i ++)\n\t\t{\n\t\t\t$obj = new stdClass;\n\t\t\t$crow = $c [$i];\n\t\t\t$obj = $crow;\n\t\t\t$obj->link = $link . $crow->babioonevent_event_id;\n\t\t\t$nr [] = $obj;\n\t\t\t$categorylist [$obj->catid] = $obj->cctitle;\n\t\t}\n\n\t\tif ($order == 2)\n\t\t{\n\t\t\t$result = array();\n\n\t\t\tif (!empty($eventcats))\n\t\t\t{\n\t\t\t\tforeach (explode(',', $eventcats) as $elm)\n\t\t\t\t{\n\t\t\t\t\tforeach ($nr as $r)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($elm == $r->catid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$result [] = $r;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (asort($categorylist, SORT_LOCALE_STRING) === true)\n\t\t\t\t{\n\t\t\t\t\tforeach ($categorylist as $key => $value)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($nr as $r)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($key == $r->catid)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$result [] = $r;\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\telse\n\t\t\t\t{\n\t\t\t\t\t$result = $nr;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $nr;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function asort()\n {\n }", "private function beautifyEvents(array $events): array\n {\n foreach ($events as $event) {\n $event->dtstart = $this->formatDate($event->dtstart);\n $event->dtend = $this->formatDate($event->dtend);\n $event->dtstamp = $this->formatDate($event->dtstamp);\n $event->created = ($event->created !== null)? $this->formatDate($event->created) : null;\n $event->lastmodified = ($event->lastmodified !== null)? $this->formatDate($event->lastmodified) : null;\n $event->start = $event->dtstart;\n $event->end = $event->dtstart;\n }\n return $events;\n }", "private function _sort_by_added($a, $b)\n {\n if(strpos($a['date_scanned'], \":\") !== false) {\n $adate = DateTime::createFromFormat('j M Y H:i', $a['date_scanned']);\n } else {\n $adate = DateTime::createFromFormat('j M Y', $a['date_scanned']);\n }\n\n if(strpos($b['date_scanned'], \":\") !== false) {\n $bdate = DateTime::createFromFormat('j M Y H:i', $b['date_scanned']);\n } else {\n $bdate = DateTime::createFromFormat('j M Y', $b['date_scanned']);\n }\n\n if($this->sorting_order == \"az\")\n {\n return ($adate > $bdate);\n }\n\n return ($adate < $bdate);\n }", "function getEvents() {\n\n $events = ['new' => __('New change'),\n 'update' => __('Update of a change'),\n 'solved' => __('Change solved'),\n 'validation' => __('Validation request'),\n 'validation_answer' => __('Validation request answer'),\n 'closed' => __('Closure of a change'),\n 'delete' => __('Deleting a change')];\n\n $events = array_merge($events, parent::getEvents());\n asort($events);\n return $events;\n }", "function sort ($block,$field,$dir = \"\") {\n\t\t$sort = [];\n\n\t\tforeach ($this->data as $event) {\n\t\t\t$sortval = $event->get($block,$field);\n\n\t\t\tif (is_array ($sortval))\n\t\t\t\t$sortval = $sortval[0];\n\n\t\t\t$sort[$sortval] = $event;\n\t\t}\n\n\t\t# choose sort direction\n\t\tif (strtoupper($dir) == \"DESC\")\n\t\t\tkrsort ($sort);\n\t\telse\n\t\t\tksort($sort);\n\n\t\t$this->data = $sort;\n\t}", "public function archive()\n\t{\n\t\t// --------------------------------------\n\t\t// Prep no_results to avoid conflicts\n\t\t// --------------------------------------\n\n\t\t$this->_prep_no_results();\n\n\t\t// --------------------------------------\n\t\t// Get the events\n\t\t// --------------------------------------\n\n\t\tif ( ! ($events = $this->_get_event_entries()))\n\t\t{\n\t\t\t$this->_log('No events found, returning no results');\n\t\t\treturn $this->EE->TMPL->no_results();\n\t\t}\n\n\t\t// --------------------------------------\n\t\t// Loop through events and add them to the months array\n\t\t// --------------------------------------\n\n\t\t$months = array();\n\n\t\tforeach ($events AS $event)\n\t\t{\n\t\t\t// Create Low Date objects from each date\n\t\t\t$start = new Low_date($event['start_date']);\n\t\t\t$end = new Low_date($event['end_date']);\n\n\t\t\t// Set both dates to the first of the month\n\t\t\t// and return the month url: YYYY-MM\n\t\t\t$start_month = $start->first_of_month()->month_url();\n\t\t\t$end_month = $end->first_of_month()->month_url();\n\n\t\t\t// If event starts and ends in the same month,\n\t\t\t// simply add it to the months array\n\t\t\tif ($start_month == $end_month)\n\t\t\t{\n\t\t\t\t$months[$start_month][] = $event['entry_id'];\n\t\t\t}\n\t\t\t// Or else add each spanning month to the months array\n\t\t\telse\n\t\t\t{\n\t\t\t\t// To do this, increase the start date by a month\n\t\t\t\t// until it exceeds the end month\n\t\t\t\twhile ($start->month_url() <= $end_month)\n\t\t\t\t{\n\t\t\t\t\t$months[$start->month_url()][] = $event['entry_id'];\n\t\t\t\t\t$start->add('month');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------\n\t\t// Sort the array by month\n\t\t// --------------------------------------\n\n\t\tif ($this->EE->TMPL->fetch_param('sort', 'asc') == 'asc')\n\t\t{\n\t\t\tksort($months);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tkrsort($months);\n\t\t}\n\n\t\t// --------------------------------------\n\t\t// Create data array based on month\n\t\t// --------------------------------------\n\n\t\t$data = array();\n\n\t\tforeach ($months AS $month => $rows)\n\t\t{\n\t\t\t// Initiate new row for data\n\t\t\t$row = array(\n\t\t\t\t'month_url' => $month,\n\t\t\t\t'events_in_month' => count($rows)\n\t\t\t);\n\n\t\t\t// Create new date for this month\n\t\t\t$date = new Low_Date($month);\n\n\t\t\t// Add each possible format to this row\n\t\t\tforeach ($this->formats AS $fmt => $key)\n\t\t\t{\n\t\t\t\t$row[$key] = $date->ee_format($fmt);\n\t\t\t}\n\n\t\t\t// Then add the row to the data array\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\treturn $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $data);\n\n\t}", "public function get_timeline_events() {\r\n\t\t$contents[] = $this->get_content_posts();\r\n\t\t$contents[] = $this->get_content_tweets();\r\n\t\t$contents[] = $this->get_content_stories();\r\n\t\t\r\n\t\t$events = array();\r\n\t\t\r\n\t\t// Process each of the contents we have attempted to grab and combine them as events by year.\r\n\t\tforeach( $contents as $content ) {\r\n\t\t\tif( is_array ( $content ) ) {\r\n\t\t\t\tforeach ( $content as $date_group => $values ) {\r\n\t\t\t\t\tif( empty( $events[$date_group] ) || !isset( $events[$date_group] ) ) {\r\n\t\t\t\t\t\t$events[$date_group] = $values;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t$events[$date_group] = array_merge( $events[$date_group], $values);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tforeach( $events as $year=>&$event ) {\r\n\t\t\tusort( $event, array( &$this, 'sort_events_by_date' ) );\r\n\t\t}\r\n\t\t\r\n\t\tuksort( &$events, array( &$this, 'sort_date_groups' ) );\r\n\r\n\t\treturn $events;\r\n\t}", "public function test_it_returns_trainings_sorted_by_date()\n {\n Exercice::factory()\n ->has(\n Training::factory()->count(2)->sequence(\n ['created_at' => now()->subDay(), 'value' => 2],\n ['created_at' => now(), 'value' => 3],\n ))->create([\n 'name' => 'Abdos',\n ]);\n\n Exercice::factory()\n ->has(\n Training::factory()->count(2)->sequence(\n ['created_at' => now()->subDay(), 'value' => 15],\n ['created_at' => now(), 'value' => 20],\n ))->create([\n 'name' => 'Pompes',\n ]);\n\n // When sorting them using the sort by date action\n $trainings = Training::with('exercice:id,name')\n ->betweenDates()\n ->get();\n\n $trainings = (new SortTrainingsByDate())->handle($trainings);\n\n // Then it should have the date as array keys\n $this->assertEquals(now()->format('Y-m-d'), $trainings->keys()[0]);\n $this->assertEquals(now()->subDay()->format('Y-m-d'), $trainings->keys()[1]);\n\n // and then each should have the exercise name as key\n foreach ($trainings as $training)\n {\n $this->assertEquals('abdos', $training->keys()[0]);\n $this->assertEquals('pompes', $training->keys()[1]);\n }\n }", "function obj_do_cx_events_list( $events ) {\n\tif (is_array($events) ) {\n echo '<div class=\"event-list-grid\">';\n foreach ($events as $event ) {\n obj_do_cx_event_item_output($event);\n }\n echo '</div>';\n }\n}", "function listEventTitle($e_id) {\n\t\t$e_id = mysql_real_escape_string($e_id);\n\t\t$this->eid = $e_id;\n\t\t$query = \"SELECT e_title, v.name, start_datetime, end_datetime \n\t\tFROM yam14.F_event e, yam14.F_venue v \n\t\tWHERE e.venue_id = v.v_id\n\t\tAND e_id = $this->eid;\";\n\t\t\n\t\t$result = mysql_query($query);\n\t\tif (!$result) {\n\t\t\t$message='Invalid Query' .mysql_errno().\" \\n\";\n\t\t $message .= 'Whole Query' . $query;\n\t\t die($message);\n\t\t}//end if\n\t\t\n\t\twhile($row = mysql_fetch_assoc($result)){\n\t\t\t\n\t\t\t$this->title = $row['e_title'];\n\t\t\t$this->venue = $row['name'];\n\t\t\t$this->startdate = date('l, M d, Y',strtotime($row['start_datetime']));\n\t\t\t$this->starttime = date('H:i A',strtotime($row['start_datetime']));\n\t\t\t$this->enddate = date('l, M d, Y',strtotime($row['end_datetime']));\n\t\t\t$this->endtime =date('H:i A',strtotime($row['end_datetime']));\n\t\t\t\n\t\t\techo \"<div>\";\n\t\t\techo \"<h3>$this->title</h3>\";\n\t\t\techo \"<h4>$this->venue</h4>\";\n\t\t\techo \"<h4>From $this->startdate $this->starttime </h4><h4>To $this->enddate $this->endtime </h4>\";\n\t\t\techo \"<hr />\";\n\t\t\techo \"</div>\";\n\t\t}\t\n\t\t\n\t\tmysql_free_result($result);\n\t\t\n\t}", "private static function sort()\n\t{\n\t\t//Setup order of importantance\n\t\t$changefreqs = array(\n\t\t\t'hourly' => 5,\n\t\t\t'daily' => 4,\n\t\t\t'weekly' => 3,\n\t\t\t'monthly' => 2,\n\t\t\t'yearly' => 1,\n\t\t\t'never' => 0\n\t\t);\n\n\t\t//Setup invidual arrays to sort by\n\t\tforeach(static::$links as $index => $link)\n\t\t{\n\t\t\t$priority[$index] = $link->priority ? $link->priority : 0;\n\t\t\t$changefreq[$index] = $link->changefreq ? $changefreqs[$link->changefreq] : 0;\n\t\t\t$loc[$index] = $link->loc;\n\t\t}\n\n\t\tarray_multisort($priority, SORT_DESC, $changefreq, SORT_DESC, $loc, SORT_ASC, static::$links);\n\t}", "public function Sorting_DateCreate($desc = false) {\r\n\t\treturn array(\r\n\t\t\t'order'\t=> array(\r\n\t\t\t\t'ext_project_project.date_create ' . self::getSortDir($desc)\r\n\t\t\t)\r\n\t\t);\r\n\t}", "function getEvents($date = '') {\r\n //Include db configuration file\r\n include 'dbConfig.php';\r\n $eventListHTML = '';\r\n $date = $date ? $date : date(\"Y-m-d\");\r\n //Get events based on the current date\r\n $result = $db->query(\"SELECT title FROM floralbookings WHERE date = '\" . $date . \"' AND status = 1\");\r\n if ($result->num_rows > 0) {\r\n $eventListHTML = '<h2>Events on ' . date(\"l, d M Y\", strtotime($date)) . '</h2>';\r\n $eventListHTML .= '<ul>';\r\n while ($row = $result->fetch_assoc()) {\r\n $eventListHTML .= '<li>' . $row['title'] . '</li>';\r\n }\r\n $eventListHTML .= '</ul>';\r\n }\r\n echo $eventListHTML;\r\n}", "private static function sortByAsc($a, $b)\n {\n return strcmp($a->comment_date, $b->comment_date);\n }", "private function getEventsOnADate($date)\n {\n # Load EventLinks\n $eventlinks = $this->eventlinks;\n\n # Convert Date to currently displayed month\n $dayDate = $this->getDayDate($date);\n\n # get all events on a day\n $events = array_first($eventlinks, function ($eventDate, $url) use ($dayDate) {\n return $eventDate == $dayDate;\n }, false);\n\n return $events ;\n }", "function date_compare($a, $b) {\n //var_dump($a);\n $t1 = strtotime($a);\n $t2 = strtotime($b);\n // The negative in front the result sorts by the most recent entry\n return -($t1 - $t2);\n }", "public function getAllEvents(){\n\t\t//$events = EventPage::get()->sort('Date', 'DESC')->limit(5);\n\t\t$limit = 10;\n\n\t\t$items = DataObject::get(\"EventPage\", \"Date > NOW()\", \"Date\", null, $limit);\n\t\treturn $items;\n\n\t}", "public function setEvents($events, $format = false)\n {\n $this->_events = $events;\n if ($format !== false)\n $this->_format = $format;\n ksort($this->_events);\n }", "function ReadEvents()\n {\n $this->ApplicationObj()->Events=\n $this->Sql_Select_Hashes\n (\n $this->ApplicationObj()->HtmlEventsWhere(),\n array(),\n array(\"StartDate\",\"ID\")\n );\n \n $this->ApplicationObj()->Events=array_reverse($this->ApplicationObj()->Events);\n }", "public function time_sort($timeslots) \n {\n usort($timeslots, function ($t1,$t2) \n {\n if ($t1->get_start()==$t2->get_start()) \n return 0;\n \n return ($t1->get_start()<$t1->get_start())?-1:1;\n });\n }", "function getFilterDate($top){\n\tif(!$top)\n\t\t$top=20;\n\n\t$data = M('event');\n\t$date_set = Array();\n\t$condition = Array('event_date' => Array('egt', todayDate()));\n\t$result = $data->where($condition)->group('event_date')->limit($top)->order('event_date asc')->select();\n\tforeach($result as $value)\n\t\tarray_push($date_set, $value['event_date']);\n\n\treturn $date_set;\n}", "public function getSorting();", "function delete_events() {\n\n\t$args = array(\n\t\t'post_type' => 'tribe_events',\n\t\t'post_status' => 'any',\n\t\t'meta_key' => '_EventStartDate',\n\t\t'orderby' => 'meta_value',\n\t\t'meta_query' => array(\n\t\t\tarray(\n\t\t\t\t'key' => '_EventStartDate',\n\t\t\t\t'value' => (new DateTime(\"2017-01-01 00:00\"))->format(DateTime::ATOM),\n\t\t\t\t'compare' => '<=',\n\t\t\t),\n\t\t),\n\t\t'order' => 'ASC',\n\t\t'suppress_filters' => true,\n\t\t'posts_per_page' => -1\n\t);\n\n\t$out = '';\n\t$query = get_posts( $args );\n\tforeach($query as $post) {\n\t\t$out .= tribe_get_start_date($post, true) . \" \" . $post->post_title . '<br>';\n\t\t//wp_delete_post($post->ID, true);\n\t}\n\treturn $out;\n}", "protected function sortDataArray() {}", "public function buildDayList($date){\n\t\t$events = $this->getDayEvents($date);\n\t\t$count = 0;\n\t\t\n\t\tob_start();\n\t\tif(count($events) > 0){\n\t\t\tforeach($events as $key => $event){\t\t\t\n\t\t\t\t$recurringDays = $event->getRecurringDays();\n\t\t\t\t\t\t\n\t\t\t\t$dayOfWeek = date_create($date);\n\t\t\t\t$dayOfWeek = strtolower(date_format($dayOfWeek, \"l\"));\n\t\t\t\t//echo $dayOfWeek;\n\n\t\t\t\tif(count($recurringDays)){\n\t\t\t\t\tif(in_array($dayOfWeek, $recurringDays)){\n\t\t\t\t\t\techo '<h4>Events for ' . $this->getDate($date) . '</h4>';\n\t\t\t\t\t\techo $event->toHtml('listing');\n\t\t\t\t\t\techo '<hr />';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo '<h4>Events for ' . $this->getDate($date) . '</h4>';\n\t\t\t\t\techo $event->toHtml('listing');\n\t\t\t\t\techo '<hr />';\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t$count++;\n\t\t\t}\n\t\t}\n\t\treturn ob_get_clean();\n\t}", "function cmpUIDs($a, $b)\n\t\t{\n\t\t\tif ($a['uid'] == $b['uid']) {\n\t\t\t\tif ($a['startdate'] == $b['startdate'])\n\t\t\t\t\treturn 0;\n\t\t\t\telse if ($a['startdate'] < $b['startdate'])\n\t\t\t\t\treturn -1;\n\t\t\t\telse\n\t\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn ($a['uid'] < $b['uid']) ? -1 : 1;\n\t\t}", "public function sortDaysByDateAndTime(array $days)\n {\n if (count($days)) {\n $eventDate = array();\n $eventTime = array();\n foreach ($days as $key => $day) {\n $eventDate[$key] = $day['eventDate']; // integer\n $eventTime[$key] = $day['EventTime']; // string\n }\n array_multisort($eventDate, SORT_ASC, SORT_NUMERIC, $eventTime, SORT_ASC, SORT_STRING, $days);\n }\n\n return $days;\n }", "public function get_event_list()\n\t{\n\treturn $this->cal['VEVENT'];\n\t}", "function publisher_getOrderBy($sort)\r\n{\r\n if ($sort == \"datesub\") {\r\n return \"DESC\";\r\n } else if ($sort == \"counter\") {\r\n return \"DESC\";\r\n } else if ($sort == \"weight\") {\r\n return \"ASC\";\r\n }\r\n}", "public static function sortIndex($a,$b) {\n\t\t$a_time = strtotime($a['date']);\n\t\t$b_time = strtotime($b['date']);\n\t\tif ($a_time == $b_time) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn ($a_time < $b_time) ? 1 : -1;\n\t}", "public function findAllDates()\n {\n $workflowList = $this->entityManager\n ->getRepository('SiowebDummyBundle:Test')\n ->findBy(array(), array('date' => 'DESC'));\n #$workflowList = $this->entityManager->getRepository('SiowebDummyBundle:Test')->findAll();\n\n return $workflowList;\n }", "function formatEvent($time, $date, $firstInList=false)\n{\n\t$str = \"\";\n\t$event = $time->get(\"-event:time\");\n\t$organisers = array();\n\tgetOrganisers($organisers, $event);\n\t$places = array();\n\tgetPlaces($places, $event);\n\n\t$sid = sid($time);\n\n\tglobal $eventcounter;\n\tglobal $eventdate;\n\t$eventcounter++;\n\tif($eventcounter <= 10 || $eventdate == $date) { $featured = \"featured \"; } else { $featured = \"\"; }\n\tif($eventcounter <= 10) { $eventdate = $date; }\n\t$starts = \"\";\n\tif( $time->has( \"tl:start\" ) && substr($time->getString(\"tl:start\"), 0, 10) == $date )\n\t{\n\t\t$starts = \" <span class='date'>(\".formatTime($time->getString( \"tl:start\" ), $date).\")</span>\";\n\t}\n\t$str .= \"<div class='event $featured\".($firstInList?\"first-event \":\"\").implode(\" \", array_keys($organisers)).\" \".implode(\" \", array_keys($places)).\"' itemscope itemtype='http://data-vocabulary.org/Event'>\\n\";\n\t$str .= \"\\t<h3 itemprop='summary'><img class='small-chevron' src='img/chevron_small_right.png' alt='' />\".htmlspecialchars($event->label()).\"$starts</h3><div class='event-links'><a href='#' class='expand-link'>Read more</a>\";\n\tif( $event->has( \"foaf:homepage\" ) )\n\t{\n\t\t$str .= \" | <a href='\".htmlspecialchars($event->get( \"foaf:homepage\" )).\"' itemprop='url' target='_blank'>View event</a>\";\n\t}\n\t$str .= \"</div>\\n\";\n\t$str .= \"\\t<div class='event-more' id='\".$sid.\"'>\\n\";\n\t$str .= \"\\t\\t<div class='event-info'>\\n\";\n\tif( $time->has( \"tl:start\" ) && substr($time->getString(\"tl:start\"), 0, 10) == $date )\n\t{\n\t\t$str .= \"\\t\\t\\t<div>\";\n\t\t$str .= formatTime($time->getString( \"tl:start\" ), $date);\n\t\tif( $time->has( \"tl:end\" ) )\n\t\t{\n\t\t\t$str .= \" - \".formatTime($time->getString( \"tl:end\" ), $date);\n\t\t}\n\t\t$str .= \"</div>\\n\";\n\t\t$str .= \"<span style='display:none' itemprop='startDate'>\".$time->getString( \"tl:start\" ).\"</span>\";\n\t\tif( $time->has( \"tl:end\" ) )\n\t\t{\n\t\t\t$str .= \"<span style='display:none' itemprop='endDate'>\".$time->getString( \"tl:end\" ).\"</span>\";\n\t\t}\n\t}\n\t$str .= getEventPlaces($event, \"Place\");\n\t$str .= getEventPlaces($event, \"Additional Place Info\");\n\t$organisers = getEventAgents($event, \"Organiser\");\n\tif(count($organisers) > 0)\n\t{\n\t\tsort($organisers);\n\t\t$str .= \"\\t\\t\\t<div class='organisers'>Organised by: \";\n\t\tforeach($organisers as $organiser)\n\t\t{\n\t\t\t$str .= $organiser.\" \";\n\t\t}\n\t\t$str .= \"</div>\\n\";\n\t}\n\t$str .= \"\\t\\t</div>\\n\";\n\t//$str .= \"\\t<div style='clear:left'></div>\\n\";\n\t$speakers = getEventAgents($event, \"Speaker\");\n\tif(count($speakers) > 0)\n\t{\n\t\t$str .= \"\\t\\t<div class='speakers'>Speaker\".((count($speakers) > 1) ? \"s\" : \"\").\": \";\n\t\tforeach($speakers as $speaker)\n\t\t{\n\t\t\t$str .= $speaker.\" \";\n\t\t}\n\t\t$str .= \"</div>\\n\";\n\t}\n\tif( $event->has( \"dct:description\" ) )\n\t{\n\t\t$str .= \"\\t\\t<div class='description' itemprop='description'>\".$event->getString( \"dct:description\" ).\"</div>\\n\";\n\t}\n\t$str .= \"\\t\\t<div style='clear:both'></div>\\n\";\n\t$str .= \"\\t</div>\\n\";\n\t$str .= \"</div>\\n\";\n\treturn $str;\n}" ]
[ "0.74938416", "0.65839666", "0.6485", "0.6463082", "0.63868636", "0.6334563", "0.6244892", "0.6176524", "0.6129585", "0.60245866", "0.60062766", "0.6005522", "0.5977371", "0.5972849", "0.5971844", "0.59616023", "0.5933118", "0.59314245", "0.59272987", "0.5795483", "0.5784241", "0.5784241", "0.5766477", "0.5679141", "0.5659537", "0.5657179", "0.5646759", "0.56326336", "0.56293774", "0.5627386", "0.56249404", "0.5598749", "0.5596622", "0.5583604", "0.5581983", "0.55622816", "0.55436", "0.553978", "0.5531959", "0.55301386", "0.55276036", "0.5519433", "0.5501687", "0.5500175", "0.5474605", "0.54445136", "0.54417163", "0.54399204", "0.5434579", "0.54334444", "0.54276526", "0.5415815", "0.54131025", "0.53981185", "0.53954", "0.5380438", "0.53607404", "0.5339649", "0.5338637", "0.5334655", "0.5320833", "0.53142786", "0.53059775", "0.52959293", "0.5261456", "0.5261263", "0.5256696", "0.52565205", "0.52538055", "0.5253529", "0.5251934", "0.5251412", "0.52482486", "0.5247768", "0.5247176", "0.5244642", "0.5241597", "0.5237982", "0.52366596", "0.5235475", "0.523159", "0.5214386", "0.5197168", "0.5194301", "0.51880616", "0.51820207", "0.517539", "0.51670116", "0.5162335", "0.51623327", "0.5159417", "0.51344913", "0.5133451", "0.5131482", "0.5131051", "0.5126211", "0.51035017", "0.5102331", "0.5091453", "0.50890917" ]
0.81565565
0
For methods that require Auth Adding Middle Layer to authenticate every request Checking if the request has valid api key as part of the parameters
Для методов, требующих авторизацию Добавление среднего слоя для проверки каждой заявки Проверка того, имеет ли запрос действительный API-ключ в качестве параметра
function authenticate(\Slim\Route $route) { // Getting request headers //$headers = apache_request_headers(); $response = array(); $app = \Slim\Slim::getInstance(); $apiKey = $app->request->params('apikey'); // Verifying Authorization Header if (isset($apiKey)) { $db = new DbHandler(); if (!$db->isValidApiKey($apiKey)) { // api key is not present in users table $response["error"] = TRUE; $response["message"] = "Access Denied. Invalid Api key"; echoRespnse(401, $response); $app->stop(); } else { global $user_id; // get user primary key id $user_id = $db->getUserId($apiKey); } } else { // api key is missing in header $response["error"] = TRUE; $response["message"] = "Api key is missing"; echoRespnse(400, $response); $app->stop(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function authenticate(\\Slim\\Route $route) {\r\n // getting request header\r\n $headers = apache_request_headers();\r\n $response = array();\r\n $app = \\Slim\\Slim::getInstance();\r\n // verifying authorization header\r\n \r\n if (isset($headers['Authorization'])) {\r\n // $db = new DbHandler();\r\n // get the api key\r\n $api_key = $headers['Authorization'];\r\n // validating api key\r\n //echo $api_key;\r\n if ($api_key!='123456') {\r\n \t//echo '1';\r\n \r\n $response['error'] = true;\r\n $response['message'] = 'Access denied. Invalid api key';\r\n \r\n jsonResponse1( 200, $response );\r\n // echoResponse(401, $response);\r\n $app->stop();\r\n } else {\r\n \t//echo '2';\r\n \t//jsonResponse1( 200, $response );\r\n /* global $user_id;\r\n // get user primary key id\r\n $user = $db->getUserId($api_key);\r\n if ($user != NULL) {\r\n $user_id = $user['id'];\r\n } */\r\n }\r\n } else {\r\n // api key is missing in header\r\n $response['error'] = true;\r\n $response['message'] = \"Api key is missing\";\r\n echoResponse(400, $response);\r\n $app->stop();\r\n }\r\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidApiKey($api_key)) {\n // api key is not present in users table\n $response[\"error\"] = true;\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $client_id;\n // get user primary key id\n $client_id = $db->getUserId($api_key);\n }\n } else {\n // api key is missing in header\n $response[\"error\"] = true;\n $response[\"message\"] = \"Api key is misssing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "function authenticate(\\Slim\\Route $route) {\r\n // Getting request headers\r\n $headers = apache_request_headers();\r\n $response = array();\r\n $app = \\Slim\\Slim::getInstance();\r\n\r\n // Verifying Authorization Header\r\n if (isset($headers['Authorization'])) {\r\n $db = new DbHandler();\r\n\r\n // get the api key\r\n $api_key = $headers['Authorization'];\r\n // validating api key\r\n if (!$db->isValidApiKey($api_key)) {\r\n // api key is not present in users table\r\n $response[\"error\"] = true;\r\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\r\n echoRespnse(401, $response);\r\n $app->stop();\r\n } else {\r\n global $user_id;\r\n // get user primary key id\r\n $user_id = $db->getUserId($api_key);\r\n }\r\n } else {\r\n // api key is missing in header\r\n $response[\"error\"] = true;\r\n $response[\"message\"] = \"Api key is misssing\";\r\n echoRespnse(400, $response);\r\n $app->stop();\r\n }\r\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidApiKey($api_key)) {\n // api key is not present in users table\n $response[\"errorcode\"] = true;\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $user_id;\n // get user primary key id\n $user_id = $db->getUserId($api_key);\n }\n } else {\n // api key is missing in header\n $response[\"errorcode\"] = true;\n $response[\"message\"] = \"Api key is misssing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidApiKey($api_key)) {\n // api key is not present in users table\n $response[\"error\"] = true;\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $user_id;\n // get user primary key id\n $user_id = $db->getUserId($api_key);\n }\n } else {\n // api key is missing in header\n $response[\"error\"] = true;\n $response[\"message\"] = \"Api key is misssing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidApiKey($api_key)) {\n // api key is not present in users table\n $response[\"error\"] = true;\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $user_id;\n // get user primary key id\n $user_id = $db->getUserId($api_key);\n }\n } else {\n // api key is missing in header\n $response[\"error\"] = true;\n $response[\"message\"] = \"Api key is misssing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "function auth_apikey($key){\n\t\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new dbUser();\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidApiKey($api_key)) {\n // api key is not present in users table\n response('Invalid user ','Authorization', 'failed',true);\n $app->stop();\n } else {\n global $user_id;\n // get user primary key id\n $user_id = $db->getUserId($api_key);\n }\n } else {\n // api key is missing in header\n response('Api Key is missing ','Authorization', 'failed',true);\n $app->stop();\n }\n}", "function authenticate(\\Slim\\Route $route) {\n\n $app = \\Slim\\Slim::getInstance();\n // Getting request headers\n $api_key = $app->request->headers(\"Authorization\");\n // Verifying Authorization Header\n $db = new DbHandler();\n if (!$db->isValidHeader($api_key)) {\n $app->stop();\n }\n}", "function authenticate(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $apikey = $headers['Authorization'];\n // validating apikey\n if (!$db->isValidApiKey($apikey)) {\n // apikey is not present in users table\n $response['error'] = \"true\";\n $response['rest'] = \"authenticate\";\n\t\t $response['message'] = \"Apikey Error\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $user_id;\n // get user primary key id\n $user_id = $db->getUserId($apikey);\n }\n } else {\n // apikey is missing in header\n\t\t$response['error'] = \"true\";\n\t\t$response['rest'] = \"authenticate\";\n\t\t$response['message'] = \"Apikey Missing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "function authenticated(\\Slim\\Route $route) {\n // Getting request headers\n $headers = apache_request_headers();\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n\n // Verifying Authorization Header\n if (isset($headers['Authorization'])) {\n $db = new DbHandler();\n\n // get the api key\n $api_key = $headers['Authorization'];\n // validating api key\n if (!$db->isValidProffApiKey($api_key)) {\n // api key is not present in users table\n $response[\"error\"] = true;\n $response[\"message\"] = \"Access Denied. Invalid Api key\";\n echoRespnse(401, $response);\n $app->stop();\n } else {\n global $proff_id;\n // get user primary key id\n $proff_id = $db->getProffId($api_key);\n }\n } else {\n // api key is missing in header\n $response[\"error\"] = true;\n $response[\"message\"] = \"Api key is misssing\";\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "public function processApi() {\r\n\tif($this->securedRest){\r\n\t if(!isset($this->requestSecure) || !isset($this->requestPublicKey)){\r\n\t\t$this->response('Utilisateur non authentifié', 401);\r\n\t }\r\n\t if(!$this->verifyKeys($this->requestPublicKey, $this->requestSecure)){\r\n\t\t$this->response('Utilisateur non authentifié', 401);\r\n\t }\r\n\t}\r\n\t\r\n\t$func = $this->_method;\r\n\tif ((int) method_exists($this, $func) > 0){\r\n\t $this->$func();\r\n\t}else{\r\n\t $this->response('', 404);\r\n\t}\r\n\t\r\n }", "private function verify_request()\n {\n try{\n $headers = $this->input->request_headers();\n $token = $headers['X-API-KEY'];\n if(!$token) {\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized access!'];\n $this->response($res, $status);\n return;\n }\n\n $data = AUTHORIZATION::validateToken($token);\n if($data === false){\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized accesss'];\n $this->response($res, $status);\n exit();\n }else{\n return $data;\n }\n\n }catch(Exception $e){\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized access!'];\n $this->response($res, $status);\n }\n }", "private function verify_request()\n {\n try{\n $headers = $this->input->request_headers();\n $token = $headers['X-API-KEY'];\n if(!$token) {\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized access!'];\n $this->response($res, $status);\n return;\n }\n\n $data = AUTHORIZATION::validateToken($token);\n if($data === false){\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized accesss'];\n $this->response($res, $status);\n exit();\n }else{\n return $data;\n }\n\n }catch(Exception $e){\n $status = parent::HTTP_UNAUTHORIZED;\n $res = ['status' => $status, 'msg' => 'Unauthorized access!'];\n $this->response($res, $status);\n }\n }", "protected function verify_token()\n {\n // lookup API Key record by value from HTTP header\n if (isset($this->rest->key) && is_null($this->rest->key)) {\n $key = $this->input->get_request_header(config_item('rest_key_name'));\n if (is_null($key)) {\n $key = $this->input->get_post('Token');\n }\n if (is_null($key)) {\n return;\n }\n $this->mApiKey = $this->api_keys->get_by(config_item('rest_key_column'), $key);\n if (!is_null($this->mApiKey)) {\n $this->rest->key = $this->mApiKey->{config_item('rest_key_column')};\n\n isset($this->mApiKey->user_id) && $this->rest->user_id = $this->mApiKey->user_id;\n isset($this->mApiKey->level) && $this->rest->level = $this->mApiKey->level;\n isset($this->mApiKey->ignore_limits) && $this->rest->ignore_limits = $this->mApiKey->ignore_limits;\n\n $this->_apiuser = $this->mApiKey;\n }\n\n } else {\n $this->mApiKey = $this->_apiuser;\n }\n\n if (!empty($this->mApiKey)) {\n $this->mUser = $this->users->get_by('username', $this->mApiKey->user_id);\n // only when the API Key represents a user\n if (!empty($this->mUser)) {\n $this->mUserRoles = $this->i2_auth->get_user_roles($this->mUser->id);\n// $this->mUserTenant = $this->users->get_user_tenant($this->mUser->id);\n $this->mUserTenant = $this->i2_auth->get_user_tenant($this->mUser->id);\n $this->tenant_table_prefix = $this->mUserTenant->tenant_name;\n $this->set_t_prefix();\n $this->mUserMainRole = $this->mUserRoles[0]->name;\n } else {\n // anonymous access via API Key\n $this->mUserMainRole = 'anonymous';\n }\n }\n }", "public function validateAuthKey($authKey){\n }", "public function authenticate() {}", "public function validateApiKey()\n {\n $request = $this->call('GET', 'helper/ping');\n return !empty($request);\n }", "public function checkAuthentication(\\WP_Rest_Request $request)\n {\n if ($request->get_param('key') != $this->key) {\n $this->responseJson(['message' => 'Key invalid'], 422);\n }\n\n return $this->handle($request);\n }", "function base_request(Request $request, $key) {\r\n if($this->needs_auth($key)) {\r\n echo 'needs auth';\r\n session(['return_url' => $request->fullUrl()]);\r\n session()->save();\r\n\r\n if(phpsaaswrapper()->authorize($key) !== true) {\r\n $cookie = cookie('eon_referrer', $request->fullUrl(), 45000);\r\n return redirect(phpsaaswrapper()->authorize($key))->withCookie($cookie);\r\n }\r\n\r\n dd(phpsaaswrapper()->authorize($key));\r\n } else {\r\n // consume service\r\n\r\n return phpsaaswrapper()->display_api_uses($key);\r\n }\r\n }", "abstract public function authenticate(Request $request);", "public function is_apikey($apikey){\n $this->apiKey = false;\n if(!empty($apikey) &&$apikey==AUTH_KEY){\n $this->apiKey = true;\n }\n }", "public function __construct()\n {\n $this->middlewere('api.auth', ['except'=>['index','show']]);\n }", "public function authenticate($request);", "private function verify_request()\n{\n $headers = $this->input->request_headers();\n // Extract the token\n $token = $headers['Authorization'];\n // Use try-catch\n // JWT library throws exception if the token is not valid\n try {\n // Validate the token\n // Successfull validation will return the decoded user data else returns false\n $data = AUTHORIZATION::validateToken($token);\n if ($data === false) {\n $status = parent::HTTP_UNAUTHORIZED;\n $response = ['status' => $status, 'msg' => 'Unauthorized Access!'];\n $this->response($response, $status);\n exit();\n } else {\n return $data;\n }\n } catch (Exception $e) {\n // Token is invalid\n // Send the unathorized access message\n $status = parent::HTTP_UNAUTHORIZED;\n $response = ['status' => $status, 'msg' => 'Unauthorized Access! '];\n $this->response($response, $status);\n }\n}", "public function apikey_validate(Request $request)\r\n {\r\n $validator = Validator::make($request->all(), [\r\n 'domain' => 'required',\r\n 'key' => 'required',\r\n 'secret_key' => 'required',\r\n ]);\r\n \r\n if ($validator->fails()) {\r\n $response = api_create_response($validator->errors(), $this->failureText, 'Please enter valid input.');\r\n return response()->json($response, $this->statusCodes->bad_request);\r\n }\r\n \r\n\t\t$validateKeys = array(\r\n\t\t\t'key' => $request->key,\r\n\t\t\t'secret_key' => $request->secret_key,\r\n\t\t\t'domain' => $request->domain,\r\n\t\t);\r\n $data = ApikeyModel::where($validateKeys)->first();\r\n\r\n if(isset($data)) {\r\n \r\n // Update used_at\r\n $data->used_at = date('Y-m-d H:i:s');\r\n $data->save();\r\n\r\n $this->responseStatusCode = $this->statusCodes->success;\r\n $response = api_create_response($data, $this->successText, 'Api Key Details.');\r\n \r\n }else{\r\n\r\n $this->responseStatusCode = $this->statusCodes->not_found;\r\n $response = api_create_response(2, $this->failureText, 'No Api Key Found.');\r\n }\r\n \r\n return response()->json($response, $this->responseStatusCode);\r\n }", "public function authenticateApiKey(MvcEvent $event)\n {\n $routeMatch = $event->getRouteMatch();\n if (!$routeMatch->getParam('__API__')) {\n // This is not an API request.\n return;\n }\n\n $identity = $event->getRequest()->getQuery('key_identity');\n $credential = $event->getRequest()->getQuery('key_credential');\n\n if (is_null($identity) || is_null($credential)) {\n // No identity/credential key to authenticate against.\n return;\n }\n\n $auth = $event->getApplication()->getServiceManager()\n ->get('Omeka\\AuthenticationService');\n $auth->getAdapter()->setIdentity($identity);\n $auth->getAdapter()->setCredential($credential);\n $auth->authenticate();\n }", "public function authorizeRequest(Http\\HapiClient $hapiClient, Http\\Request $request);", "public function checkAuthentication() {}", "function validateApiCredentials() { \n if( $this->options['api_type'] == \"\" || $this->options['api_path'] == \"\" ) {\n $this->error_handler( 'Repository url not valid' );\n } elseif($this->options['username'] == \"\") {\n $this->error_handler( 'Username Required' );\n } else if($this->options['password'] == \"\") {\n $this->error_handler( 'Password Required' );\n }\n }", "public function authenticate() {\n }", "function authenticate() {}", "public function validateAuthKey($authKey) {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function validateAuthKey($authKey)\n {\n }", "public function preAuth(Request $request, Response $response);", "public function preAuth(Request $request, Response $response);", "abstract protected function auth();", "public function validateAuthKey($authKey)\n {}", "public function getApiKey();", "public function authenticate(Request $request)\n\n {\n\n $this->validate($request, [\n\n 'email' => 'required',\n\n 'password' => 'required'\n\n ]);\n\n $user = User::where('email', $request->input('email'))->first();\n\n if(Hash::check($request->input('password'), $user->password)){\n\n $apikey = base64_encode(str_random(40));\n\n User::where('email', $request->input('email'))->update(['api_key' => \"$apikey\"]);;\n\n return response()->json(['status' => 'success','api_key' => $apikey]);\n\n }else{\n\n return response()->json(['status' => 'fail'],401);\n\n }\n\n }", "function checkAPICall()\r\n{\r\n $request = [];\r\n $request['method'] = $_SERVER['REQUEST_METHOD'];\r\n $request['url'] = rtrim($_SERVER['REQUEST_URI'], '/');\r\n \r\n $trimmed_url = ltrim($_SERVER['REQUEST_URI'], '/');\r\n $url_parts = explode('/', $trimmed_url);\r\n\r\n $request['url_parts'] = $url_parts;\r\n\r\n if (in_array($_SERVER['REQUEST_METHOD'], ['POST', 'PUT'])) {\r\n $request['body'] = json_decode(file_get_contents('php://input'), true);\r\n }\r\n \r\n if ($url_parts[0] === 'api') {\r\n array_shift($url_parts);\r\n if (count($url_parts) >= 1) {\r\n $api_function_name = array_shift($url_parts);\r\n $params = $url_parts;\r\n $request['params'] = $params;\r\n array_unshift($params, $request);\r\n\r\n $request_uri = $request['method'] . ' /' . $api_function_name;\r\n if (array_key_exists($request_uri, API_FN)) {\r\n call_user_func_array(API_FN[$request_uri], $params);\r\n } else {\r\n http_response_code(405);\r\n echo json_encode([\"message\" => \"Method Not Allowed\"]);\r\n }\r\n } else {\r\n http_response_code(405);\r\n echo json_encode([\"message\" => \"Method Not Allowed\"]);\r\n }\r\n die();\r\n }\r\n}", "protected function authenticateRequest($autho_key){\n $api_autho_key_model = new ApiAuthoKeysModel($this->cnx);\n $api_autho_key = $api_autho_key_model->getByAuthoKey($autho_key);\n if(!$api_autho_key){\n return false;\n }\n if($api_autho_key->autho_key !== $autho_key){\n return false;\n }\n return true;\n }", "public function handle($request, Closure $next, $keyPair = NULL) {\n\n //IF no keypair defined,\n // developer responsibility through testing to solve this\n if (empty($keyPair)) {\n return $this->abort(Response::HTTP_INTERNAL_SERVER_ERROR, Err::KEYSECRET__AUTHORITY_NOT_DEFINED);\n }\n\n // Put the key pair in uppercase to reflect env\n $keyPair = strtoupper($keyPair);\n $key = env('KS_'.$keyPair.'_KEY');\n\n // IF the requested keypair not found in env\n // developer responsibility through testing to solve this\n if( empty($key)){\n return $this->abort(Response::HTTP_INTERNAL_SERVER_ERROR, Err::KEYSECRET__AUTHORITY_NOT_SET);\n }\n\n // Do not sent cache control headers on testing.\n // Fails phpUnits\n if( !App::environment('testing')){\n header('Cache-Control: no-cache, must-revalidate, max-age=0');\n }\n\n // Check validity\n $has_supplied_credentials = $request->headers->has('php-auth-user') && $request->headers->has('php-auth-pw');\n if( !$has_supplied_credentials){\n return $this->abort(Response::HTTP_UNAUTHORIZED, Err::KEYSECRET__AUTHORITY_MISSING);\n }\n\n\n $is_not_authenticated = (\n !$has_supplied_credentials ||\n $request->headers->get('php-auth-user') != $key ||\n $request->headers->get('php-auth-pw') != env('KS_'.$keyPair.'_SECRET')\n );\n\n // Unabled to match key pair with request\n if ($is_not_authenticated) {\n return $this->abort(Response::HTTP_UNAUTHORIZED, Err::KEYSECRET__AUTHORITY_UNKNOWN);\n }\n\n return $next($request);\n }", "private function checkApiKey(): ?Response\n {\n $keyConfig = Configuration::getConfiguration('key');\n if ($keyConfig['enable']) {\n $apiKey = $this->request->getHeader($keyConfig['header_name']);\n if (is_null($apiKey)) {\n $apiKey = $this->request->getParameter($keyConfig['parameter_name']);\n }\n if ($apiKey != $keyConfig['key']) {\n return $this->abortForbidden();\n }\n }\n return null;\n }", "private function _needsAuthentication() {\n\t\tif(isset(Environment::$api->noAuthRoutes) && is_array(Environment::$api->noAuthRoutes) && is_array($this->request->params)) {\n\t\t\t$requestRoute = implode('/', $this->request->params);\n\t\t\tforeach (Environment::$api->noAuthRoutes as $key => $route) {\n\t\t\t\tif($route===$requestRoute) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(Environment::$api->noAuth) { \n\t\t\treturn false;\n\t\t}\n\t\tif($this->method==='OPTIONS') {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function authenticate();", "public function authenticate();", "public function authenticate();", "public function processApi(){\n\t\t\t$func = explode('/', trim($_SERVER['PATH_INFO'],'/'))[0];\n\n\t\t\t$good = false;\n\t\t\tforeach ($this->AUTHORIZED_FUNCTION as $authorizedFunc){\n\t\t\t\tif($authorizedFunc == $func){\n\t\t\t\t\t$good = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(! $good) $this->response('', 404);\n\n\t\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t\t$this->$func();\n\t\t\telse\n\t\t\t\t$this->sendMessage('', 404);\n\t\t}", "function permly_api($api_key=''){\n\t\t$this->api_key = $api_key;\n\t\t$this->url = $this->api_server_protocol.\"://\".$this->api_server.\"/?remote_service=rs_external_api&key=1&interface=eai_permly&version=\".$this->api_version;\n\t}", "function verifyKey($msg){\n\n // TODO: check if this key is in the database!\n if(isset($_GET['key'])){\n $apiKey = $_GET['key'];\n $userid = $_GET['userid'];\n\n if($apiKey == getApiKey($userid)){\n // Fillter on datatype\n filterRequest($msg);\n }else{\n $msg->message = 'Invalid key!';\n $msg->toJson();\n }\n }else{\n $msg->message = 'Key not set!';\n $msg->toJson();\n }\n}", "public function validateAuth(Request $request){\n\n $api_url = 'https://app.nemoexpress.ro/nemo/API/list_services';\n $api_key = $request->api_key;\n \n \n $response = Http::get($api_url, [\n \n 'api_key' => $api_key,\n ]);\n\n\n if($response->getStatusCode()!=200) {\n return response([\n 'success' => 0,\n 'message' => 'Eroare la logare'\n \n \n ], 200);\n\n }\n\n else {\n\n $response = json_decode($response);\n if (isset($response->error)){\n\n return response([\n 'success' => 0,\n 'message' => 'Eroare la logare'\n \n \n ], 200);\n\n }\n return response([\n 'success' => 1,\n 'message' => 'Autentificare reusita'\n \n ], 200);\n }\n \n }", "public function checkAuth();", "public function checkAuth();", "public function __construct()\r\n {\r\n $this->middleware('auth:api', ['except' => ['login', 'recovery', 'testRecoveryCode', 'updatePassword']]);\r\n }", "function auth (){\n //$app = \\Slim\\Slim::getInstance();\n //$headers = $app->request()->headers();\n //$token = JWT::decode($headers['X-Auth-Token'], 'secret_server_key');\n //print_r($token);\n //echo $headers['X-Auth-Token'];\n}", "public function handle($request, Closure $next)\n {\n \n if(!empty(Request::get('user_key')) && !empty(Request::get('api_key'))){ \n\n $user = User::where('api_user_key',Request::get('user_key'))->first();\n\n if($user){\n if($user->is_active === 1){\n if($user->api->first()->api_key == Request::get('api_key')){\n\n if(Auth::loginUsingId($user->id)){\n return $next($request);\n }\n else\n {\n return response(['Error: Authentication Failed']);\n }\n }\n else{\n return response(['Error: Posted Api Key does not match Stored Api Key']);\n }\n }\n else{\n return response(['Error: User is no longer active']);\n }\n\n }\n else{\n return response(['Error: Posted User Key does not match Stored User Key']);\n }\n }\n else\n {\n return response(['Warning: Invalid Credentials']);\n }\n }", "public function __construct(){\n //laravel passport api protection against unauthenticated users\n $this->middleware('auth:api');\n }", "abstract public function authorize();", "abstract public function authorize();", "abstract public function authenticate(CakeRequest $request, CakeResponse $response);", "static public function key_is_correct($api_key = '') {\n\n\t\treturn preg_match('/^[a-z\\d]{3,15}$|^$/', $api_key);\n\n\t}", "function authGet() { }", "public function __construct(){\n\n $this->middleware('auth:api');\n\n}", "function validateToken(){\n $CI = get_instance();\n if (array_key_exists('HTTP_AUTHORIZATION', $_SERVER) && !empty($_SERVER['HTTP_AUTHORIZATION'])) {\n $decodedToken = AUTHORIZATION::validateToken($_SERVER['HTTP_AUTHORIZATION']);\n if ($decodedToken != false) {\n return true;\n } else {\n return false;\n }\n }\n return false;\n}", "public function handle($request, Closure $next)\n {\n if ($this->config['status'] === static::STATUS_ON) {\n\n // get excludes_handler\n $excludes_handler = $this->config['excludes']['handler'];\n if (!is_callable($excludes_handler)) {\n throw new RuntimeException('config(\"api_auth.excludes.handler\") is not function !');\n }\n\n if (call_user_func_array($excludes_handler, [$request, $this->config['excludes']['urls']])) {\n return $next($request);\n }\n\n // get error_handler\n $error_handler = $this->config['error_handler'];\n if (!is_callable($error_handler)) {\n throw new RuntimeException('config(\"api_auth.error_handler\") is not function !');\n }\n\n // get excludes_handler\n $auth_info_getter = $this->config['auth_info_getter'];\n if (!is_callable($auth_info_getter)) {\n throw new RuntimeException('config(\"api_auth.auth_info_getter\") is not function !');\n }\n\n list($access_key, $timestamp, $echostr, $signature) = call_user_func_array($auth_info_getter, [$request]);\n\n if (empty($timestamp) || empty($access_key) || empty($echostr) || empty($signature)) {\n return call_user_func_array($error_handler, [\n $request,\n LaravelApiAuth::LACK_HEADER\n ]); // 缺少请求头\n }\n\n $roles = $this->config['roles'];\n if (!isset($roles[$access_key])) {\n return call_user_func_array($error_handler, [\n $request,\n LaravelApiAuth::ACCESS_KEY_ERROR\n ]); // access_key 不存在\n }\n\n // get encrypting\n $encrypting = $this->config['encrypting'];\n if (!is_callable($encrypting)) {\n throw new RuntimeException('config(\"api_auth.encrypting\") is not function !');\n }\n\n // get rule\n $rule = $this->config['rule'];\n if (!is_callable($rule)) {\n throw new RuntimeException('config(\"api_auth.rule\") is not function !');\n }\n\n $server_signature = call_user_func_array($encrypting, [$roles[$access_key]['secret_key'], $echostr, $timestamp]);\n\n if (!call_user_func_array($rule, [$roles[$access_key]['secret_key'], $signature, $server_signature])) {\n return call_user_func_array($error_handler, [\n $request,\n LaravelApiAuth::SIGNATURE_ERROR\n ]); // 签名不一致\n }\n\n $timeout = $this->config['timeout'] ?? 60;\n if (time() - $timestamp > $timeout) {\n return call_user_func_array($error_handler, [\n $request,\n LaravelApiAuth::SIGNATURE_LAPSE\n ]); // 签名失效\n }\n\n if (!is_null(app('cache')->pull('api_auth:' . $signature))) {\n return call_user_func_array($error_handler, [\n $request,\n LaravelApiAuth::SIGNATURE_REPETITION\n ]); // 签名重复(已存在该签名记录)\n } else {\n app('cache')->put('api_auth:' . $signature, $request->getClientIp(), $timeout / 60);\n }\n\n /**\n * 添加 role_name 到 $request 中\n */\n if ($request->has('client_role')) {\n $request->offsetSet('_client_role', $request->get('client_role'));\n }\n $request->offsetSet('client_role', $roles[$access_key]['name']);\n }\n return $next($request);\n }", "public function validateAuthKey($authKey): bool {\n }", "private function check_api_key() {\n return true;\n $post_token = $this->input->post('App-Request-Token');\n $post_datetime = $this->input->post('App-Request-Timestamp');\n if ($post_token && $post_datetime) {\n $date = gmdate('Y-m-d H:i:s');\n if (strtotime($post_datetime) >= (strtotime($date) - 300) && strtotime($post_datetime) <= strtotime($date)) {\n $token = sha1(config_item('api_request_key') . $post_datetime);\n if ($post_token === $token) {\n return true;\n }\n }\n } else {\n $this->send_error('ERROR');\n exit;\n }\n }", "public function authenticate(Request $request)\n {\n $this->validate($request, [\n 'email' => 'required',\n 'password' => 'required'\n ]);\n $user = Users::where('email', $request->input('email'))->first();\n if(Hash::check($request->input('password'), $user->password)){\n $apikey = base64_encode(str_random(40));\n $after1hour = date('Y-m-d H:i:s', strtotime('+1 hour'));\n Users::where('email', $request->input('email'))->update(['api_key' => \"$apikey\",'expired_at' => $after1hour ]);\n return response()->json(['status' => 'success','token' => $apikey, 'ttl' => '3600']);\n }else{\n return response()->json(['status' => 'fail'],401);\n }\n }", "public function _construct(){\n $this->middleware('auth:api', ['except' => ['login', 'register']]);\n }", "public function getApiKey(): string;", "public function __construct() {\n\t\t$this->middleware('auth:api');\n\t}", "public function __construct() {\n $this->middleware('auth:api');\n }", "public function validateAuthKey($authKey): bool;", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "private function prepareAPIRequest()\n {\n $api_key = $this->getAPIKey();\n\n $api_key_parts = \"\";\n if (count($api_key_parts = explode(\"-\", $api_key)) != 2) {\n throw new Exception(\"Invalid API Key\");\n }\n\n $this->setAPIEndpoint(\"https://$api_key_parts[1].api.mailchimp.com/\" . $this->api_version);\n }", "public function verifyApiCaller() : bool\n {\n $verified = false;\n\n // check for NOAUTH and no-auth-pages configuration for current page\n // these two settings must be present for the endpoint to be visible outside of REDCap\n if (isset($_GET['NOAUTH']) && in_array($_GET['page'], parent::getConfig()[\"no-auth-pages\"])) \n {\n // MODIFY THIS CHECK for the security needs of your system.\n // This hardcoded token should be changed and pulled from a secure location,\n // if using with a third-party service.\n $rctoken = $_REQUEST['rctoken'];\n if ($rctoken === 'ca5d63d58b507615c328da941270ddf0')//IMPORTANT: modify token and pull from a secure location\n {\n $verified = true;\n }\n }\n // if endpoint is not externally accessible, then this endpoint user has been authenticated by REDCap\n else\n {\n $verified = true;\n }\n\n\n return $verified;\n }", "function check_apikey ($apikey)\n{\n\t//check message with global_hush_hush\n\tglobal $global_hush_hush, $global_mysqli_link;\n\t$global_hush_hush = false;\n\t\n\t//check apikey: is this api key exist in database?\t\n\t$apisqlquerry = mysqli_query($global_mysqli_link, \"SELECT apikeys.verifier, apikeys.ipFilter FROM apikeys WHERE\n\t\t\tapikeys.verifier = '$apikey'\") or die_nice(\"failed to execute query on Apikey check.\");\n\t\t\n\t// if it exist, it must be found 1 row (because apiKeyOrDomain are unique)\n\tif ($querry = mysqli_fetch_array($apisqlquerry))\n\t{\n\t\t// check for ip filter\t\n\t\tif ($_SERVER['REMOTE_ADDR'] != $querry['ipFilter'] && $querry['ipFilter'] != NULL)\n\t\t{\n\t\t\tdie_nice(\"IP address is not accepted for this API key.\");\n\t\t}\n\t} \n\telse\n\t{\n\t\tdie_nice(\"API key is not recognized: $apikey.\");\n\t}\n}", "public function testApikey() {\n $this->assertNotNull($this->object->apikey('8f14e45fceea167a5a36dedd4bea2543'));\n }", "public function isAuth() {}", "function api_key() {\n\tif(check_value(chevereto_config('api_key'))) return chevereto_config('api_key');\n}", "public function __construct() {\n $this->middleware('auth:api', ['except' => []]);\n }", "public function __construct()\n {\n $this->middleware('auth:api');\n }", "public function __construct()\n {\n $this->middleware('auth:api');\n }", "public function __construct()\n {\n $this->middleware('auth:api');\n }", "public function __construct()\n {\n $this->middleware('auth:api', ['except' => ['login','signup']]);\n }", "public function doAuthentication();", "private function getApikey() {\n\t\treturn $this->_apikey;\n\t}", "public function __construct()\n {\n $this->middleware([\"auth:api\", 'checkActive'], ['except' => ['store']]);\n }", "public function __construct()\n {\n $this->middleware('auth:api', ['except' => [\n 'login', \n 'signup', \n 'signupGoogle', \n 'signupFacebook', \n 'signupLinkedIn']]);\n }", "public function isAuthenticated()\n {\n //get headers from postMan\n $this->headers = getallheaders();\n //cut the first word from the header, ex:Bearer, the space before and after the token\n $token = !empty($this->headers['Authorization']) ? trim(substr($this->headers['Authorization'], 6)) : null;\n\n //request in the database to take the token\n $tokenDataBase = $this->authToken->getToken();\n\n //the token in the header must exist and be the same as in the base date in order to make the request\n if (!$token || $token !== $tokenDataBase) {\n http_response_code(401);\n echo json_encode(array(\"message\" => \"Unauthorized\"));\n exit;\n }\n }", "public function __construct()\n {\n \n // API accepts only POST request for now\n if ($_SERVER['REQUEST_METHOD'] != 'POST') {\n // echo \"Method is not post\";\n $this->throwException(REQUEST_METHOD_NOT_VALID, 'Request Method is not valid');\n }\n // open input stream from HTTP POST\n $input_stream = fopen('php://input', 'r');\n $this->request = stream_get_contents($input_stream);\n \n $this->validateRequest($this->request);\n \n // generate user object\n $this->user = new user();\n \n \n // Switch-case to handle different type request\n // Probalby best practice is list all cases here, so not a single service(function) is available without intend\n switch ($this->serviceName) \n {\n\n case \"validateAccessToken\":\n $this->validateAccessToken();\n break;\n case \"validateRefreshToken\":\n $this->validateRefreshToken();\n break;\n case \"generateToken\":\n //\n break;\n case \"getUserPermById\":\n $this->validateAccessToken();\n $this->getUserPermById();\n break;\n // list all authorization needed services here\n case \"startProcessingImages\":\n case \"getEventCodes\":\n case \"editEvent\":\n case \"getEventList\":\n case \"eventFromHashId\":\n case \"printUnusedCodes\":\n case \"clearUnusedCodes\":\n case \"generateCodes\":\n case \"getUnusedCodes\":\n case \"getUsedCodes\":\n case \"deleteUser\":\n case \"addUser\":\n case \"editUser\":\n case \"getUsers\":\n case \"getPermissions\":\n case \"getRoles\":\n case \"testAuthorization\":\n $this->validateAccessToken();\n break;\n // These request do not require authorization\n // Carefully add functions here\n case \"getGallery\":\n case \"isGalleryAvailable\":\n break;\n default:\n //If service is allready implemented but not list above we get this error\n $this->throwException(API_DOES_NOT_EXIST, \"API does not exist.\");\n }\n \n }", "public function __construct()\n {\n $this->middleware('auth:api', ['except' => ['login', 'createUser', 'getToken']]);\n }", "protected function authenticate()\n\t{\n\t\t$config = $this->getConfig();\n\n\t\tif(empty($config->api->auth->username) && empty($config->api->auth->password))\n\t\t\treturn true;\n\n\t\t$key = $this->getRequest()->getPost('key');\n\t\t$serviceKey = md5($config->api->auth->username . ':' . $config->api->auth->password);\n\t\tif($key && $key == $serviceKey)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}" ]
[ "0.7394396", "0.7387564", "0.7354594", "0.73307085", "0.732884", "0.732884", "0.732862", "0.72336626", "0.7229021", "0.71814793", "0.70410246", "0.6886968", "0.6789589", "0.6789589", "0.66653436", "0.65309656", "0.6482107", "0.64532775", "0.6401184", "0.63812876", "0.6373667", "0.6330658", "0.6305012", "0.63007885", "0.62968814", "0.62806606", "0.6247256", "0.62166613", "0.62060124", "0.6197131", "0.61970085", "0.6192592", "0.61616296", "0.61395496", "0.61395496", "0.61395496", "0.61395496", "0.61395496", "0.61395496", "0.6139228", "0.6139228", "0.6136708", "0.6126064", "0.611673", "0.6115695", "0.6108121", "0.60650843", "0.6056893", "0.605428", "0.60538405", "0.6048271", "0.6048271", "0.6048271", "0.60459316", "0.5997082", "0.5987983", "0.59833205", "0.59824204", "0.59824204", "0.5976933", "0.5973037", "0.59654546", "0.59650344", "0.59336257", "0.59336257", "0.59240466", "0.5909041", "0.5908945", "0.590368", "0.5901082", "0.58998936", "0.588126", "0.5880915", "0.5862777", "0.58627397", "0.58626556", "0.58582735", "0.58572567", "0.5856754", "0.58504045", "0.58504045", "0.5844631", "0.58418757", "0.58378345", "0.5809619", "0.58079666", "0.58063906", "0.5802003", "0.5799071", "0.5799071", "0.5799071", "0.57806265", "0.5776722", "0.5775089", "0.5775071", "0.5768654", "0.5767564", "0.5763676", "0.5762088", "0.5760654" ]
0.7400555
0
Find a region by ID.
Найдите регион по ID.
public static function find($id) { $regionDb = Yadda_Db_Table::getInstance('region'); $select = $regionDb ->select() ->from('region') ->where('status = ?', 'active') ->where('id = ?', $id); $region = $regionDb->fetchRow($select); if ($region === null) { throw new Yadda_Model_Exception('There is no region with the supplied ID.'); } return self::toArray($region); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function find($id) {\n\t\treturn Doctrine::getTable ( 'Regions' )->findOneBy ( 'region_id', $id );\n\t}", "public function getRegionById($id)\n\t{\n\t\tif($id === null)\n\t\t\treturn null;\n\t\t$this->ensureRegionsLoaded(array($id));\n\t\tif(!isset($this->_regions[$id]))\n\t\t\treturn null;\n\t\treturn new GmthBridgeRegion($this, $this->_regions[$id]);\n\t}", "function get( $id=\"\" )\n {\n $db =& eZDB::globalDatabase();\n if ( $id != \"\" )\n {\n $db->array_query( $region_array, \"SELECT * FROM eZAddress_Region WHERE ID='$id'\" );\n\t\t\t\n if ( count( $region_array ) == 1 )\n {\n $this->fill( $region_array[0] );\n }\n }\n }", "public static function find($id);", "public static function findById($id);", "function eZRegion( $id = \"\" )\n {\n if ( is_array( $id ) )\n {\n $this->fill( $id );\n }\n else if ( $id != \"\" )\n {\n $this->ID = $id;\n\t\t\t$this->get( $this->ID );\n }\n }", "public function find($id)\r\n {\r\n if (!is_array($id)) {\r\n return $this->location->where('id', $id)->first();\r\n }\r\n \r\n return $this->location->whereIn('id', $id)->get();\r\n }", "public static function findById($id)\n {\n }", "public static function findById($id)\n\t{\n\t\n\t}", "public function show($id)\n {\n $region = Region::find($id);\n if($region != null){\n if($region->softDelete != True)return response()->json($region);\n return response()->json([\"message\"=>\"La región está eliminada.\"]);\n }\n return response()->json([\"message\"=>\"El id no existe\"]);\n }", "function getId_region()\n {\n if (!isset($this->iid_region) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_region;\n }", "static public function find($id) {\n return static::getMapper()->find($id);\n }", "public function show($id)\n {\n $region = Region::findOrFail($id);\n\n return view('regions.show', compact('region'));\n }", "public function show($id)\n {\n $region = $this->regionRepository->findWithoutFail($id);\n\n if (empty($region)) {\n Flash::error('Region not found');\n\n return redirect(route('regions.index'));\n }\n\n return view('admin.regions.show')->with('region', $region);\n }", "public function getPlaceByID( $id );", "public function getRegiones($id){ //id del pais\n return Region::where('codPais','=',$id)->get();\n \n }", "public static function findIdentity($id);", "public function edit($id)\n {\n try\n {\n \n $region = Region::findOrFail($id);\n\n $params = [\n 'title' => 'Edit Region',\n \n 'region' => $region\n \n ];\n\n return view('admin.regions.regions_edit')->with($params);\n }\n catch (ModelNotFoundException $ex) \n {\n if ($ex instanceof ModelNotFoundException)\n {\n return response()->view('errors.'.'404');\n }\n }\n }", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id)\n {\n return $this->repo->find($id);\n }", "public function find($id)\n {\n return $this->repo->find($id);\n }", "public function packingFind($id);", "public function find($id)\n\t{\n\t\t// TODO: Implement find() method.\n\t}", "public function edit($id)\n {\n $region = Region::findOrFail($id);\n \n\n return view('regions.edit', compact('region'));\n }", "public function find($id)\r\n {\r\n return $this->repository->find($id);\r\n }", "public function find($id)\r\n {\r\n return $this->scopeRepository->find($id);\r\n }", "function findById($id)\n {\n }", "public function find($id)\n {\n return $this->service->find($id);\n }", "public function show($id)\n {\n //\n try\n {\n $region = Region::findOrFail($id);\n\n $params = [\n 'title' => 'Delete region',\n 'region' => $region,\n ];\n\n return view('admin.regions.regions_delete')->with($params);\n }\n catch (ModelNotFoundException $ex) \n {\n if ($ex instanceof ModelNotFoundException)\n {\n return response()->view('errors.'.'404');\n }\n }\n }", "abstract public function find($id);", "public function find( $id );", "public function show($id)\n {\n $region = $this->model->show($id);\n\n return response($region->load(['provinces']));\n }", "public function find($id)\n {\n return $this->getRepository()->find($id);\n }", "public function find($id)\n {\n return $this->getRepository()->find($id);\n }", "public function find($id)\n {\n return $this->getRepository()->find($id);\n }", "public static function getRegion($region_id)\n {\n $database = DatabaseFactory::getFactory()->getConnection();\n\n $sql = \"SELECT region_id, region_name FROM region WHERE region_id = :region_id LIMIT 1\";\n $query = $database->prepare($sql);\n $query->execute(array(':region_id' => $region_id));\n\n // fetch() is the PDO method that gets a single result\n return $query->fetch();\n }", "function findById($id);", "protected function findModel($id)\n {\n if (($model = Region::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public static function find($id) {\n\t\treturn self::find_by('id', $id);\n\t}", "public function show($id)\n {\n // Laravel Eloquent\n $regionsRepository = new RegionsRepository();\n $region = $regionsRepository->find($id);\n if (!$region) {\n return response()\n ->json($this->_getResponseDataMessageEntityDoesNotExistError('Region', $id))\n ->setStatusCode(Response::HTTP_NOT_FOUND);\n }\n\n // Fractal\n $resource = new FractalResource\\Item($region, new GenericTransformer());\n\n return response()\n ->json($this->_getResponseData($resource))\n ->setStatusCode(Response::HTTP_OK);\n }", "public function find($id)\n {\n return $this->repository->find($id);\n }", "function find($id);", "function getRegion($region_id,$db_handle){\n $result=$db_handle->runQuery('select region_name from global_region where region_id=\\''.$region_id.'\\'');//returns null if empty resultset\n if (is_null($result)){\n \treturn 'region_name not found.';\n }else{\n \t// var_dump($result[0]);\n \treturn $result[0]['region_name'];\n }\n}", "public function findById ( $id )\n\t{\n\t\treturn $this->abstractFindById(self::RETURNTYPE,$id);\n\t}", "public function find( $id )\n {\n return $this->getMapper()\n ->find( $id );\n }", "public function find( $id )\n {\n return $this->getMapper()\n ->find( $id );\n }", "public function find( $id )\n {\n return $this->getMapper()\n ->find( $id );\n }", "public function show($id)\n\t{\n\t\t//\n\t\t$http_status = 200;\n\t\t$data = array();\n\n\t\t$recurso = BitacoraCargaEPRegion::find($id);\n\n\t\tif(is_null($recurso)){\n\t\t\t$http_status = 404;\n\t\t\t$data = array(\"data\"=>\"No existe el recurso que quiere solicitar.\",'code'=>'U06');\n\t\t}else{\n\t\t\t$data = array(\"data\"=>$recurso->toArray());\n\t\t}\n\n\t\treturn Response::json($data,$http_status);\n\t}", "public function edit($id)\n {\n $region = $this->regionRepository->findWithoutFail($id);\n $city = city::latest()->pluck('display_name_en','id');\n\n if (empty($region)) {\n Flash::error('Region not found');\n\n return redirect(route('regions.index'));\n }\n\n return view('admin.regions.edit')->with('region', $region)->with('city', $city);\n }", "public function getRegion(): RegionInterface;", "public static function locatedAt($id)\n {\n return static::where(compact('id'))->firstOrFail();\n }", "public static function find($id) {\n return parent::find(__CLASS__, $id);\n }", "public function find($id)\n {\n return parent::find($id);\n }", "public function find($id)\n {\n return parent::find($id);\n }", "public function find($id)\n {\n return parent::find($id);\n }", "static function find($id) {\n return self::findBy(\"id\", $id);\n }", "public static function LocatedAtID($id) {\n return static::where(compact('id'))->firstOrFail();\n }", "public function find($id)\n {\n }", "public function find($id)\n {\n }", "public function find($id)\n {\n }", "public function findByID($id){\n return $this->Find(self::TABLE,$id);\n }", "public function find($id)\n {\n return $this->mainRepository->find($id);\n }", "public function findById ($id);", "public function find(int $id) ;", "public static function find($id = null)\n {\n return self::doSearch($id);\n }", "public function loadLocation($id): LocationInterface;", "public function findForCode($id) {\n\t\treturn $this->queryCode($id)->find();\n\t}", "function lookupRegionByCity($city){\n\t$data = M('georegion');\n\tif(strlen($city)>0){\n\t\t$condition = Array('citylist' => Array('like', '%'.$city.'%'));\n\t\tif($region = $data->where($condition)->find()){\n\t\t\treturn $region['id'];\n\t\t}\n\t\telse\n\t\t\treturn '0';\n\t}\n\treturn false;\n}", "public function testFindForId() {\n\t\t$id = 1;\n\n\t\t$result = $this->ItemsTable->findForId($id);\n\t\t$this->assertInternalType(\n\t\t\t'array',\n\t\t\t$result,\n\t\t\t'The result should always be an array.'\n\t\t);\n\t\t$this->assertEquals(\n\t\t\t$id,\n\t\t\t$result['id'],\n\t\t\t'The id key/value of the result for id should be equal to the id.'\n\t\t);\n\t\t$this->assertEquals(\n\t\t\t'Candy',\n\t\t\t$result['firstName'],\n\t\t\t'The id key/value of the result for firstName should be equal to `Candy`.'\n\t\t);\n\t\t$this->assertEquals(\n\t\t\t'Crush',\n\t\t\t$result['lastName'],\n\t\t\t'The id key/value of the result for lastName should be equal to `Crush`.'\n\t\t);\n\t\t$this->assertEquals(\n\t\t\t'Stripper',\n\t\t\t$result['occupation'],\n\t\t\t'The id key/value of the result for occupation should be equal to `Stripper`.'\n\t\t);\n\t\t$this->assertEquals(\n\t\t\t'1924 Sucka Drive',\n\t\t\t$result['address'],\n\t\t\t'The id key/value of the result for address should be equal to `1924 Sucka Drive`.'\n\t\t);\n\t\t\n\t}", "public function find($identifier);", "public function findById($id) {\n \treturn $this->find($id)->current();\n }", "public function planFind($id);", "public function getMainRegion($regionID) {\n\t if($regionID>0){\n\t foreach ($this->arRegions as $val){\n\t if($regionID==$val[\"GeoRegionId\"]){\n\t if( $val[\"GeoRegionType\"]==\"City\" || $val[\"GeoRegionType\"]==\"Village\" ) return $val[\"GeoRegionId\"];\n\t else {\n\t $cityReg=$this->getCityByRegion($val[\"GeoRegionId\"]);\n\t if($cityReg>0) return $cityReg;\n\t else return $val[\"GeoRegionId\"];\n\t }\n\t }\n\t }\n\t }\n\t else return 0;\n\t}", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public static function findById($id){\n \t$data = self::find($id);\n \tif (!$data) {\n \t\tabort(404);\n \t}\n \treturn $data;\n }", "public function getRegion()\n {\n return $this->hasOne(Regions::class, ['id' => 'region_id']);\n }", "public function find($id)\n\t{\n\t\treturn $this->fetchRow(array(\n\t\t\t$this->getAdapter()->quoteIdentifier($this->getPrimaryName()) . ' = ?' => $id\n\t\t));\n\t}" ]
[ "0.8358393", "0.66860247", "0.66278726", "0.64072245", "0.6303355", "0.62986165", "0.6257389", "0.62041575", "0.61952657", "0.6162741", "0.6153608", "0.61195225", "0.6116599", "0.6092943", "0.6081218", "0.6079749", "0.6052687", "0.60417145", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.60000944", "0.59961134", "0.59961134", "0.59953785", "0.59902436", "0.59840983", "0.59705216", "0.5970138", "0.59606117", "0.5953992", "0.5947341", "0.59446466", "0.5935342", "0.5930801", "0.59222615", "0.59222615", "0.59222615", "0.5917109", "0.5902474", "0.58981335", "0.5897132", "0.587761", "0.5867144", "0.5848754", "0.5843855", "0.58379674", "0.5825468", "0.5825468", "0.5825468", "0.58152723", "0.5814883", "0.5803202", "0.5799159", "0.5792463", "0.57913715", "0.57913715", "0.57913715", "0.5788077", "0.5786964", "0.5781787", "0.5781787", "0.5781787", "0.5777294", "0.5772178", "0.57555544", "0.57478005", "0.57459277", "0.5735248", "0.5710149", "0.5683686", "0.56748676", "0.56707406", "0.5663156", "0.5661084", "0.5653231", "0.56488967", "0.56488967", "0.56488967", "0.5644984", "0.5640894" ]
0.7944306
1
Return a list of files with eod data.
Верните список файлов с данными за конец дня.
private function _get_option_eod_summary_files() { $files = []; if(is_dir('/Users/spicer/Dropbox/Apps/Stockpeer')) { $base = '/Users/spicer/Dropbox/Apps/Stockpeer/'; } else { $base = '/tmp/market_data/'; $this->_get_data_from_dropbox(); } foreach($this->eod_option_summary_files AS $key => $row) { $files[] = $base . $row; } return $files; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDatafiles()\n {\n return $this->game->getDatafiles();\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "public function getFiles ();", "public static function getFiles()\n\t{\n\t\t$result = Array();\n\t\t$files = sfCore::$db->query(\"SELECT * FROM `swoosh_file_storage`\")->asObjects();\n\t\tforeach($files as $file){\n\t\t\t$sfFileStorageItem = sfCore::make('sfFileStorageItem');\n\t\t\t$sfFileStorageItem->loadFromObject($file);\n\t\t\t$result[] = $sfFileStorageItem;\n\t\t}\n\t\treturn $result;\n\t}", "function get_file_objs() {\n return $this->file_objs;\n }", "function list_files () {\n\t\t$root = $this->get_root();\n\t\t\n\t\treturn $this->_list_files($root);\n\t}", "public function getFiles()\n {\n return FileInfo::findBy( Condition::EQ(FileInfo::TABLE, 'module_id', $this->getId()),\n new ArrayObject(array('sort'=>$this->getSortBy(), 'ord'=>'asc')) );\n }", "public function getFiles() {}", "private function getFileList()\n {\n\n $count = $this->getFileCount();\n $size = $this->getSize() + 4;\n\n $this->seek(\n $this->offset\n + 18\n + $this->getAliasSize()\n + 4\n + $this->getMetadataSize()\n );\n\n return $this->readFileList($count, $size);\n }", "public function getFiles() {\n return $this->getPartFiles(0);\n }", "public function getFilesList() : array {\n $sqlQuery = 'SELECT * FROM files';\n $statement = $this->_dbHandle->prepare($sqlQuery);\n $statement->execute();\n\n $dataSet = [];\n while ($row = $statement->fetch()) {\n $dataSet[] = new File($row);\n }\n return $dataSet;\n }", "public function getAllFilesRobot() {\n $sql = \"SELECT * FROM archivo_organizado\";\n $result = $this->_db->prepare($sql);\n $result->execute();\n\n if(!is_null($result->errorInfo()[2]))\n return array('error' => $result->errorInfo()[2]);\n else\n return $result->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getDataFilesList(){\r\n $data_dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Data';\r\n $files = scandir($data_dir);\r\n\r\n $files_list = array();\r\n $index = 0;\r\n foreach ($files as $file) {\r\n if($file != '.' && $file != '..'){\r\n $files_list[$index]['name'] = $file;\r\n $files_list[$index]['update_time'] = filemtime($data_dir . DIRECTORY_SEPARATOR . $file);\r\n $files_list[$index]['type'] = $this->getFileType($file);\r\n $index++;\r\n }\r\n }\r\n\r\n $update_times = array();\r\n foreach($files_list as $data){\r\n $update_times[] = $data['update_time'];\r\n }\r\n array_multisort($update_times, SORT_DESC, $files_list);\r\n return $files_list;\r\n }", "function get_list_of_files() {\n $result = $this->pdo->query('SELECT * FROM files ORDER BY filename ASC');\n return $result;\n }", "function _generateFilesList() {\n return array();\n }", "public function readFilesInFileadmin() {\n $fileArr = $newArr = array();\n\n // direktes auslesen des Ordners, da evtl. nicht alle Dateien in Tabellen indexiert sind\n $path = GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT') . GeneralUtility::getIndpEnv('TYPO3_SITE_PATH') . 'fileadmin/';\n $fileList = GeneralUtility::getAllFilesAndFoldersInPath($fileArr, $path);\n\n $pathCount = strlen($path);\n // deployment-Ordner exkludieren\n foreach ($fileList as $filekey => $filevalue) {\n if (strstr($filevalue, '/fileadmin/deployment') == FALSE) {\n $newArr[$filekey] = substr($filevalue, $pathCount);\n }\n }\n\n return $newArr;\n }", "public function all()\n {\n $dir = public_path() . '/uploads/temp/' . Session::getId() . '/';\n $data = [];\n $mimetypes = new Mimetype;\n if(file_exists($dir)) {\n foreach(scandir($dir) as $file) {\n if(in_array($file, ['.', '..'])) continue;\n $filedata = [];\n $filedata['name'] = $file;\n $filedata['url'] = url('/uploads/temp/' .Session::getId() . '/' .$file);\n $filedata['size'] = File::size($dir . $file);\n $filedata['type'] = $mimetypes->detectByFileExtension(File::extension($file));\n $data[] = $filedata;\n }\n return $data;\n }\n }", "private function searchFiles()\n {\n $query = File::whereNull('deleted_at');\n $data = $query->get();\n\n return $data;\n }", "public function getFiles(): array;", "protected function getAllFiles() {\n $sql = \"SELECT * FROM satdatameta\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute();\n $results = $stmt->fetchAll();\n return $results;\n }", "private function get_files(): array {\n\t\t$files = [];\n\n\t\tif ( $this->directory->is_readable() ) {\n\t\t\tforeach ( $this->directory->get_files() as $file ) {\n\t\t\t\tif ( ! $file->isFile() || ! $file->isReadable() || $file->getSize() === 0 ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( $this->extension !== null && $this->extension !== $file->getExtension() ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$files[] = $file->getFileInfo();\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "public function getEmbeddedFiles() {}", "public function getFiles()\n\t{\n\t\tif ($this->_files === null) {\n\t\t\t$command = 'show --pretty=\"format:\" --name-only '.$this->hash;\n\t\t\tforeach(explode(\"\\n\",$this->repository->run($command)) as $line) {\n\t\t\t\t$this->_files[] = trim($line);\n\t\t\t}\n\t\t}\n\t\treturn $this->_files;\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/jestr.php',\n 'sources_custom/forum/cns.php',\n 'lang_custom/EN/jestr.ini',\n 'themes/default/templates_custom/EMOTICON_IMG_CODE_THEMED.tpl',\n 'forum/pages/modules_custom/topicview.php',\n 'sources_custom/hooks/systems/config/jestr_avatar_switch_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_emoticon_magnet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_leet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_piglatin_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes_shown_for.php',\n );\n }", "private function item_files()\r\n\t{\r\n\t\t$items = array();\r\n\t\t$items = glob(ITEMDATA.'*.xml');\r\n\t\tsort($items);\r\n\t\treturn array_reverse($items);\r\n\t}", "public function getOtherFiles(): array;", "public function getFiles() : Array\n\t{\n\t\t$files = [];\n\n\t\tif ($this->exists() && $this->isReadable()) {\n\n\t\t\t$directory = opendir($this->directory);\n\t\t\twhile($opened = readdir($directory)) {\n\t\t\t\n\t\t\t\tif (is_file($this->directory . DIRECTORY_SEPARATOR . $opened) && !Directory::isBlockListed($opened)) {\n\t\t\t\t\t$files[] = $opened;\n\t\t\t\t}\n\t\t\n\t\t\t}\n\n\t\t\tclosedir($directory);\n\t\t}\n\n\t\treturn $files;\n\t}", "public function get_files()\n {\n }", "public function loadFiles(){\n\n $files = array();\n\n if($this->id == -1 || empty($this->databasePath))\n return $series;\n\n\n $sqlQuery = 'SELECT D.* FROM data D , books B WHERE B.id = D.book AND B.id='.$this->id;\n\n $pdo = new SPDO($this->databasePath);\n foreach ($pdo->query($sqlQuery) as $row)\n $files[] = BookFile::_createFromRow($this->databasePath, $row); \n \n return $files;\n }", "function getAllFiles() {\n global $pdo;\n $statement = $pdo->prepare('SELECT `sid`, `mime_type`, `name`, `comment` FROM `file`');\n $statement->execute();\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n}", "public function getAll()\n {\n return $files;\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}", "public function getFiles(): array\n {\n return [$this->file];\n }", "public function getFiles(): array\n {\n return $this->files;\n }", "public function readAll()\r\n {\r\n $plugins_dir = $this->basePath.\"/extern/openInviter/plugins\";\r\n $array_file=array();\r\n \r\n $temp=glob(\"{$plugins_dir}/*.php\");\r\n foreach ($temp as $file) {\r\n// echo 'File: '.$file.' - Check: '.str_replace(\"{$plugins_dir}/\",'',$file).\"\\n\";\r\n\r\n if (($file!=\".\") AND ($file!=\"..\") AND (!isset($this->ignoredFiles[str_replace(\"{$plugins_dir}/\",'',$file)]))) {\r\n $array_file[$file]=$file;\r\n }\r\n }\r\n\r\n return $array_file;\r\n }", "public function provideFileInfos()\n {\n return array(\n array('someName', 'someContent')\n );\n }", "public function files();", "public function files();", "public function files();", "public function getFiles() : array\n {\n return $this->files;\n }", "public function getFileList()\n {\n return array_map(\n function (FileEntry $file) {\n return $file->getFilename();\n },\n $this->pharchive->getFiles()\n );\n }", "public function getAllFiles()\n {\n }", "function &getFiles() {\n\t\tif (!isset($this->files)) {\n\t\t\t$res = db_query_params ('SELECT id,artifact_id,description,filename,filesize,' .\n\t\t\t\t\t'filetype,adddate,submitted_by,user_name,realname\n\t\t\t\t\t FROM artifact_file_user_vw WHERE artifact_id=$1',\n\t\t\t\t\t\tarray ($this->getID())) ;\n\t\t\t$rows=db_numrows($res);\n\t\t\tif ($rows > 0) {\n\t\t\t\tfor ($i=0; $i < $rows; $i++) {\n\t\t\t\t\t$this->files[$i]=new ArtifactFile($this,db_fetch_array($res));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->files=array();\n\t\t\t}\n\t\t}\n\t\treturn $this->files;\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/trickstr.php',\n 'sources_custom/programe/.htaccess',\n 'sources_custom/programe/aiml/.htaccess',\n 'sources_custom/programe/aiml/index.html',\n 'sources_custom/programe/index.html',\n 'sources_custom/hooks/modules/chat_bots/knowledge.txt',\n 'sources_custom/hooks/modules/chat_bots/trickstr.php',\n 'sources_custom/programe/aiml/readme.txt',\n 'sources_custom/programe/aiml/startup.xml',\n 'sources_custom/programe/aiml/std-65percent.aiml',\n 'sources_custom/programe/aiml/std-pickup.aiml',\n 'sources_custom/programe/botloaderfuncs.php',\n 'sources_custom/programe/customtags.php',\n 'sources_custom/programe/db.sql',\n 'sources_custom/programe/graphnew.php',\n 'sources_custom/programe/respond.php',\n 'sources_custom/programe/util.php',\n );\n }", "public function ShowFiles() {\n $i = 0;\n if ($handle = opendir($this->filePath)) {\n while (false !== ($file = readdir($handle))) {\n if (($file != '..') && ($file != '.') && ($file != 'Thumbs.db')) {\n $files[$i] = $file;\n $i++;\n }\n }\n closedir($handle);\n }\n return($files);\n }", "public function files() :array\n {\n $files = DB::query(\"SELECT `ft_filename` AS 'filename', `ft_size` AS 'size' FROM `file_table` WHERE `ft_ut_id` = :u_id ORDER BY `ft_filename` ASC\", array(':u_id'=>$_SESSION['user_id']));\n\n $list = [];\n $i = 0;\n\n foreach($files as $file){\n $list[$i] = array($file['filename'], round($file['size']/1024, 2));\n $i++;\n }\n return $list;\n }", "public static function getAll_files() {\n $db = DBInit::getInstance();\n\n $statement = $db->prepare(\"SELECT id, file_name, uploaded, user FROM files\");\n $statement->execute();\n\n return $statement->fetchAll();\n }", "public function getFiles()\n {\n $files = [];\n if($attachmentData = $this->setAttachmentData()){\n $files['attachment'] = $this->setAttachmentData();\n }\n return $files;\n }", "protected function getFiles(): array\n {\n return [];\n }", "public function getFiles()\n {\n return $this->_files;\n }", "protected function getFileList()\n\t\t{\n\t\t\t$dirname=opendir($this->ruta);\n\t\t\t$files=scandir($this->ruta);\n\t\t\tclosedir ($dirname);\t\n\t\t\t\n\t\t\treturn $files;\t\t\n\t\t}", "public function getFiles() {\n\t\treturn $this->files;\n\t}", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "private function getFileList(){\n // Using the high-level iterators returns ALL the objects in your bucket, low level returns truncated result of about 1000 files\n $objects = $this->AmazonClient->getIterator('ListObjects', array('Bucket' => $this->getDataFromBucket));\n return $objects;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/purrrr.php',\n 'data_custom/images/lolcats/index.html',\n 'data_custom/images/lolcats/thumbs/index.html',\n 'data_custom/images/lolcats/funny-pictures-basement-cat-has-pink-sheets.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-ai-calld-jenny-craig.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-asks-you-for-a-favor.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-asks-you-to-pay-fine.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-can-poop-rainbows.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-comes-to-save-day.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-decides-what-to-do.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-does-math.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-does-not-see-your-point.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-eyes-steak.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-has-a-beatle.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-has-a-close-encounter.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-has-had-fun.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-has-trophy-wife.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-hates-your-tablecloth.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-a-doctor.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-a-hoarder.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-a-people-lady.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-on-steroids.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-stuck-in-drawer.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-is-very-comfortable.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-kermit-was-about.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-looks-like-a-vase.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-looks-like-boots.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-ok-captain-obvious.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-pounces-on-deer.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-sits-in-box.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-sits-on-your-laptop.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-special-delivery.jpg',\n 'data_custom/images/lolcats/funny-pictures-cat-winks-at-you.jpg',\n 'data_custom/images/lolcats/funny-pictures-cats-are-in-a-musical.jpg',\n 'data_custom/images/lolcats/funny-pictures-cats-have-war.jpg',\n 'data_custom/images/lolcats/funny-pictures-fish-and-cat-judge-your-outfit.jpg',\n 'data_custom/images/lolcats/funny-pictures-kitten-drops-a-nickel-under-couch.jpg',\n 'data_custom/images/lolcats/funny-pictures-kitten-ends-meeting2.jpg',\n 'data_custom/images/lolcats/funny-pictures-kitten-fixes-puppy.jpg',\n 'data_custom/images/lolcats/funny-pictures-kitten-tries-to-stay-neutral.jpg',\n 'data_custom/images/lolcats/funny-pictures-kittens-dispose-of-boyfriend.jpg',\n 'data_custom/images/lolcats/funny-pictures-kittens-yell-at-eachother.jpg',\n 'data_custom/images/lolcats/ridiculous_poses_moddles.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-basement-cat-has-pink-sheets.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-ai-calld-jenny-craig.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-asks-you-for-a-favor.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-asks-you-to-pay-fine.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-can-poop-rainbows.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-comes-to-save-day.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-decides-what-to-do.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-does-math.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-does-not-see-your-point.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-eyes-steak.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-has-a-beatle.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-has-a-close-encounter.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-has-had-fun.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-has-trophy-wife.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-hates-your-tablecloth.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-a-doctor.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-a-hoarder.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-a-people-lady.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-on-steroids.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-stuck-in-drawer.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-is-very-comfortable.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-kermit-was-about.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-looks-like-a-vase.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-looks-like-boots.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-ok-captain-obvious.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-pounces-on-deer.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-sits-in-box.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-sits-on-your-laptop.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-special-delivery.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cat-winks-at-you.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cats-are-in-a-musical.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-cats-have-war.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-fish-and-cat-judge-your-outfit.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kitten-drops-a-nickel-under-couch.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kitten-ends-meeting2.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kitten-fixes-puppy.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kitten-tries-to-stay-neutral.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kittens-dispose-of-boyfriend.jpg',\n 'data_custom/images/lolcats/thumbs/funny-pictures-kittens-yell-at-eachother.jpg',\n 'data_custom/images/lolcats/thumbs/ridiculous_poses_moddles.jpg',\n );\n }", "function getExportFiles()\n\t{\n\t\t$dir = $this->getExportDirectory();\n\n\t\t// quit if export dir not available\n\t\tif (!@is_dir($dir) or\n\t\t\t!is_writeable($dir))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// open directory\n\t\t$dir = dir($dir);\n\n\t\t// initialize array\n\t\t$file = array();\n\n\t\t// get files and save the in the array\n\t\twhile ($entry = $dir->read())\n\t\t{\n\t\t\tif ($entry != \".\" and\n\t\t\t\t$entry != \"..\" and\n\t\t\t\tpreg_match(\"/^[0-9]{10}_{2}[0-9]+_{2}([a-z0-9]{3})_usrf\\.[a-z]{1,3}\\$/\", $entry, $matches))\n\t\t\t{\n\t\t\t\t$filearray[\"filename\"] = $entry;\n\t\t\t\t$filearray[\"filesize\"] = filesize($this->getExportDirectory().\"/\".$entry);\n\t\t\t\tarray_push($file, $filearray);\n\t\t\t}\n\t\t}\n\n\t\t// close import directory\n\t\t$dir->close();\n\n\t\t// sort files\n\t\tsort ($file);\n\t\treset ($file);\n\n\t\treturn $file;\n\t}", "public function getRemoteExtListFile() {}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/idolisr.php',\n 'sources_custom/hooks/modules/members/idolisr.php',\n 'sources_custom/miniblocks/main_stars.php',\n 'sources_custom/miniblocks/side_recent_points.php',\n 'themes/default/templates_custom/POINTS_GIVE.tpl',\n 'themes/default/templates_custom/BLOCK_MAIN_STARS.tpl',\n 'themes/default/templates_custom/BLOCK_SIDE_RECENT_POINTS.tpl',\n );\n }", "public function getFiles()\n {\n return R::findAll('upload');\n }", "function getFiles()\r\n\t{\r\n\t\treturn $this->files;\r\n\t}", "protected function obtenerListadoDeArchivos(){\n $directorio = storage_path() . '/app/backup';\n // Array en el que obtendremos los resultados\n $res = array();\n\n // Agregamos la barra invertida al final en caso de que no exista\n if(substr($directorio, -1) != \"/\") $directorio .= \"/\";\n\n // Creamos un puntero al directorio y obtenemos el listado de archivos\n $dir = @dir($directorio) or die(\"getFileList: Error abriendo el directorio $directorio para leerlo\");\n while (($archivo = $dir->read()) !== false) {\n // Obviamos los archivos ocultos\n if($archivo[0] == \".\") continue;\n if(is_dir($directorio . $archivo)) {\n $res[] = array(\n \"nombre\" => $archivo,\n \"tamaño\" => 0,\n \"modificado\" => filemtime($directorio . $archivo)\n );\n } else if (is_readable($directorio . $archivo)) {\n $fileTime = Carbon::now()->timestamp(filemtime($directorio . $archivo));\n $res[] = array(\n \"nombre\" => $archivo,\n \"tamaño\" => $this->formatBytes(filesize($directorio . $archivo)),\n //\"modificado\" => date(\"F d Y H:i:s.\",filemtime($directorio . $archivo))\n //\"modificado\" => filemtime($directorio . $archivo)->diffForHuman()\n \"modificado\" => $fileTime->diffForHumans(),\n );\n }\n }\n $dir->close();\n return $res;\n }", "public function listFiles() {\n \n $list = [];\n \n for ($i = 0; $i < $this->zip_archive->numFiles; $i++) {\n $name = $this->zip_archive->getNameIndex($i);\n if ($name === false) {\n throw new Exception(self::getStatus($this->zip_archive->status));\n }\n $list[] = $name;\n }\n\n return $list;\n }", "public function getFiles() {\r\n\r\n $files = array();\r\n\r\n $userId= $this->userId;\r\n $trackingId = $this->trackingFormId;\r\n $dir = FILEPATH . $userId. '/' . $trackingId;\r\n\r\n if (is_dir($dir)) {\r\n if ($dh = opendir($dir)) {\r\n while (($file = readdir($dh)) !== false) {\r\n if($file != '.' && $file != '..') {\r\n $size = $this->Size($dir . '/' . $file);\r\n array_push($files, array('name'=>$file,\r\n 'urlfilename'=>urlencode($file),\r\n 'size'=>$size));\r\n }\r\n }\r\n closedir($dh);\r\n }\r\n }\r\n\r\n return $files;\r\n }", "public function getContents()\n {\n $list = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($this->_root)\n );\n $elements = array();\n foreach ($list as $element) {\n if ($this->_include->isIncluded($element)\n && !$this->_ignore->isIgnored($element)) {\n $file = substr($element->getPathname(), strlen($this->_root));\n $elements[$file] = array(\n 'role' => $this->_role->getRole($file),\n 'as' => $this->_install_as->getInstallAs($file, 'Horde_' . basename($this->_root))\n );\n }\n }\n return $elements;\n }", "private function getTestFileList() {\n\t\treturn [\n\t\t\tself::makeFileInfo('a.txt', 4, 2.3 * \\pow(10, 9)),\n\t\t\tself::makeFileInfo('q.txt', 5, 150),\n\t\t\tself::makeFileInfo('subdir2', 87, 128, true),\n\t\t\tself::makeFileInfo('b.txt', 2.2 * \\pow(10, 9), 800),\n\t\t\tself::makeFileInfo('o.txt', 12, 100),\n\t\t\tself::makeFileInfo('subdir', 88, 125, true),\n\t\t];\n\t}", "protected function getFiles() {\n\t\tif ($this->_files === null) {\n\t\t\t$files = array(\n\t\t\t\t\"test.txt\" => uniqid(),\n\t\t\t\t\"test2.txt\" => uniqid(),\n\t\t\t\t\"test3.txt\" => uniqid(),\n\t\t\t);\n\t\t\tforeach($files as $file => $content) {\n\t\t\t\tfile_put_contents($this->path.\"/\".$file,$content);\n\t\t\t\t$this->assertTrue(file_exists($this->path.\"/\".$file));\n\t\t\t}\n\t\t\t$this->_files = array_keys($files);\n\t\t}\n\t\treturn $this->_files;\n\t}", "public function getFiles() {\n return $this->files;\n }", "public function getFiles() {\n return $this->files;\n }", "public function getFiles(NodeInterface $node) {\n $fids = $this->connection->query(\"SELECT fid FROM {file_usage} WHERE type = 'node' AND id = :nid\", array(':nid' => $node->id()))->fetchCol();\n return File::loadMultiple($fids);\n }", "public function findFiles();", "public function getFiles(): array\n {\n try {\n if (count($this->_filesCollection) === 0) {\n $path = $this->_flysystemHelper->getCurrentPath();\n\n $contents = $this->_flysystemManager->getAdapter()->listContents($path);\n foreach ($contents as $file) {\n if ($this->validateFile($file)) {\n $this->_filesCollection[] = $file;\n }\n }\n }\n } catch (\\Exception $e) {\n $this->_messageManager->addErrorMessage($e->getMessage());\n return [];\n }\n\n return $this->_filesCollection;\n }", "public function getFiles() {\n\t\tif ($this->_files === null) {\n\t\t\t$command = 'show --pretty=\"format:\" --name-only '.$this->hash;\n\t\t\tforeach(explode(\"\\n\",$this->branch->repository->run($command)) as $line) {\n\t\t\t\t$this->_files[] = trim($line);\n\t\t\t}\n\t\t}\n\t\treturn $this->_files;\n\t}", "public function listApplicationFiles() {\r\n\t\t$preload = array(\r\n\t\t\t\"config/main.js\"\r\n\t\t);\r\n\t\t\r\n\t\t$return = array();\r\n\t\t$fullPath = $this->applicationPath;\r\n\t\r\n\t\tforeach($preload as $file) {\r\n\t\t\t$return[] = $fullPath.\"/\".$file;\r\n\t\t}\r\n\t\t\r\n\t\t$options = array(\r\n\t\t\t\"fileTypes\" => array(\"js\"),\r\n\t\t\t\"exclude\" => array_merge($preload, array(\r\n\t\t\t\t\"data\", \"messages\", \"compiled.js\"\r\n\t\t\t))\r\n\t\t);\r\n\t\t\r\n\t\t$return = array_merge($return, CFileHelper::findFiles($fullPath,$options));\r\n\t\t\r\n\t\t\r\n\t\treturn $return;\r\n\t}", "protected function _getFiles() {\n\t\t$Directory = new RecursiveDirectoryIterator(BACKUPS);\n\t\t$It = new RecursiveIteratorIterator($Directory);\n\t\t$Regex = new RegexIterator($It, '/dbdump_.*?[\\.sql|\\.gz]$/', RecursiveRegexIterator::GET_MATCH);\n\t\t$files = array();\n\t\tforeach ($Regex as $v) {\n\t\t\t$files[] = $v[0];\n\t\t}\n\t\t$files = array_reverse($files);\n\t\treturn $files;\n\t}", "public function getDates() {\n // get the files\n $files = $this->readFiles();\n\n // build data using only the names\n $data = [];\n foreach ($files as $file) {\n $data[$file->getName()] = $file->getName();\n }\n\n return $data;\n }", "public function files()\n {\n return $this->_array[\"files\"];\n }", "public function getFiles()\n {\n return isset($this->source['files']) && is_array($this->source['files']) ? $this->source['files'] : [];\n }", "public function files()\r\n {\r\n return $this->files;\r\n }", "public function getFiles()\n {\n if (isset($this->raw->files)) {\n $base = $this->getBasePath();\n $files = array();\n\n foreach ((array) $this->raw->files as $file) {\n $file = new SplFileInfo(\n $path = $base . DIRECTORY_SEPARATOR . Path::canonical($file)\n );\n\n if (false === $file->isFile()) {\n throw new RuntimeException(\n sprintf(\n 'The file \"%s\" does not exist or is not a file.',\n $path\n )\n );\n }\n\n $files[] = $file;\n }\n\n return $files;\n }\n\n return array();\n }", "private function _get_files($ext=false)\n\t{\n\t\t\n\t\t$files = PerchUtil::get_dir_contents(PERCH_RESFILEPATH);\n\n\t\t$returnfiles = array();\n\t\tif(PerchUtil::count($files) > 0) {\n\t\t\tforeach($files as $file) {\n\t\t\t\t// if a file extension has been provided only add files with that extension\n\t\t\t\tif($ext) {\n\t\t\t\t\tif(strtolower(trim($ext)) == strtolower(PerchUtil::file_extension($file))) {\n\t\t\t\t\t\t$returnfiles[] = array('label'=>$file, 'value'=>$file);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// prepare all files for display\n\t\t\t\t\t$returnfiles[] = array('label'=>$file, 'value'=>$file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(PerchUtil::count($returnfiles) > 0) {\n\t\t\treturn $returnfiles;\n\t\t} else {\t\n\t\t\treturn false;\n\t\t}\n\t}", "public function fileList()\n {\n return array_values(array_diff(scandir($this->location), ['.', '..']));\n }", "public function getDirContent(){\n $files = [\n 'errors' => '',\n 'path' => $this->path,\n 'value' => []\n ];\n\n //if it's not a dir then return error\n if(!$this->isDir) {\n $files['errors'] = 'Only dir may include files';\n return $files;\n }\n\n $dir = opendir($this->path);\n\n //read content of dir\n while($file = readdir($dir)){\n if(in_array($file, $this->exclude))\n continue;\n\n $files['value'][] = $this->getFileInfo($file, ($this->path).$file);\n }\n\n return $files;\n }", "public function list_owned_files() {\n $stmt = $this->pdo->prepare('select filename from file where user_id = :id');\n $stmt->bindValue(':id', $this->id);\n $stmt->execute();\n $res = $stmt->fetchAll();\n $result = array();\n foreach ($res as $f) {\n array_push($result, $f['filename']);\n }\n return $result;\n }", "function getFilesByObject() {\n if($this->object_id == '') return ;\n $sql = \"SELECT * FROM \".$this->tableImages().\" WHERE object_id = $this->object_id \";\n return $this->db->query($sql)->result('array');\n\t}", "public function getFiles($where = null){\n $result = null;\n $temp = parent::getObjects(null, $where);\n if(count($temp) > 0){\n $result = array();\n foreach($temp as $item){\n $f = new File();\n $f->setID($item->ID);\n $f->setIdUtente($item->id_utente);\n $f->setUrlFile($item->url_file);\n $f->setDescrizione($item->descrizione);\n array_push($result, $f);\n }\n }\n return $result;\n }", "public function listInscriptionFiles(){\n $req = $this->db->query('SELECT file_url, title_file FROM admin_files');\n $req->setFetchMode(\\PDO::FETCH_CLASS | \\PDO::FETCH_PROPS_LATE, \n 'taekwondo\\model\\FileAdmin');\n return $req;\n }", "public function getFiles()\n {\n echo json_encode($this->galery->getFiles());\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/wiki_sync.php',\n '_tests/tests/unit_tests/wiki_sync.php',\n 'lang_custom/EN/wiki_sync.ini',\n 'sources_custom/wiki_sync.php',\n 'sources_custom/hooks/systems/config/wiki_alt_changes_link_stub.php',\n 'sources_custom/hooks/systems/config/wiki_enable_git_sync.php',\n 'sources_custom/hooks/systems/config/wiki_enable_wysiwyg.php',\n 'sources_custom/hooks/systems/config/wiki_sync_media_directory.php',\n 'sources_custom/hooks/systems/config/wiki_sync_page_directory.php',\n 'sources_custom/hooks/systems/cron/wiki_sync_git.php',\n 'sources_custom/hooks/systems/notifications/wiki_failed_git_pull.php',\n 'sources_custom/wiki.php',\n 'site/pages/modules_custom/wiki.php',\n 'cms/pages/modules_custom/cms_wiki.php',\n );\n }", "public function getUserFiles()\n {\n $user_files = Helper::getUserFiles();\n return $user_files;\n }" ]
[ "0.6756202", "0.6754651", "0.6754651", "0.6754651", "0.6681217", "0.6674859", "0.665485", "0.6650601", "0.66485107", "0.6637627", "0.6613034", "0.65925366", "0.65880877", "0.65870667", "0.6546304", "0.65412086", "0.6536871", "0.6536775", "0.6522086", "0.6520818", "0.6515558", "0.6504113", "0.6501648", "0.6493762", "0.64851004", "0.64478105", "0.64312387", "0.6426829", "0.63426095", "0.632056", "0.6316152", "0.6307504", "0.6299157", "0.6295011", "0.6289518", "0.6277387", "0.62271017", "0.62228453", "0.62135667", "0.62135667", "0.62135667", "0.6207719", "0.6207294", "0.61970073", "0.6188355", "0.6179182", "0.6178587", "0.61763954", "0.6173548", "0.61602527", "0.6138659", "0.6125108", "0.61215794", "0.61115617", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.6099159", "0.60835207", "0.60822886", "0.6080021", "0.60726035", "0.60617375", "0.60590255", "0.60586566", "0.6051394", "0.60466266", "0.6045774", "0.6039536", "0.60325855", "0.6031245", "0.60272515", "0.60272515", "0.60157955", "0.6015779", "0.60109293", "0.6010209", "0.6004949", "0.6004717", "0.6000233", "0.5999953", "0.59960306", "0.5991248", "0.5981379", "0.59779054", "0.59772325", "0.5975615", "0.5970401", "0.59634376", "0.59570265", "0.59534305", "0.59381336", "0.5929624", "0.5928531" ]
0.73023045
0
Get the facade class.
Получить фасадный класс.
protected static function getFacadeClass(): string { return Facade::class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFacadeClass()\n {\n return TravelPerk::class;\n }", "protected function getFacadeClass()\n {\n return PusherBeams::class;\n }", "public function retornaFacade ()\n {\n try {\n // Retorna o nome da classe facade\n return $this->_classeFacade;\n } catch ( Exception $e ) {\n // Gera o erro\n throw new Zend_Exception ( $e->getMessage () );\n }\n }", "protected static function getFacadeAccessor(): string\n {\n return Factory::class;\n }", "protected function getFacadeClass()\n {\n return Git::class;\n }", "protected function getFacadeClass()\n {\n return Httplug::class;\n }", "protected static function getFacadeAccessor(): string\n {\n return NotifyFactory::class;\n }", "public final static function getFacadeAccessor() {\n\n\t\t/**\n\t\t * Facade is very simple to use but it can provide a real troubles\n\t\t * if we want have a new instance of related object every time instead a singleton.\n\t\t */\n\t\tunset(static::$resolvedInstance['DelegapiClient']);\n\t\treturn 'DelegapiClient';\n\t}", "public static function get_class(){\n return self::class;}", "protected static function getFacadeAccessor(): string {\n return JsonMarshallerObject::class;\n }", "protected static function getFacadeAccessor()\n {\n return Base::class;\n }", "public function get_class()\n {\n return $this->class;\n }", "protected static function getFacadeAccessor()\n {\n return Concret::class;\n }", "protected static function getFacadeAccessor()\n {\n return Factory::class;\n }", "protected static function getFacadeAccessor()\n {\n return Factory::class;\n }", "public static function getFacadeClass()\n {\n return 'PHPMailChimp\\Core\\Modules\\Lists\\Lists';\n }", "public static function getClass()\n {\n $type = explode('\\\\', get_called_class());\n\n return $type[count($type) - 1];\n }", "protected static function getFacadeAccessor()\n {\n return ResponseFactoryContract::class;\n }", "protected static function getFacadeAccessor()\n {\n return GateContract::class;\n }", "public static function getClass()\n {\n return get_class(new static);\n }", "protected function derive_class() {\n\t\t$class = null;\n\t\t$callable_reference = $this->get_callable_reference();\n\n\t\t// Validate the potential class name.\n\t\tif ( is_string( $callable_reference ) && class_exists( $callable_reference ) ) { // Just the class name.\n\t\t\t$class = $callable_reference;\n\t\t} elseif ( is_array( $callable_reference ) && isset( $callable_reference[0] ) && class_exists( $callable_reference[0] ) ) { // A class and method.\n\t\t\t$class = $callable_reference[0];\n\t\t}\n\t\treturn $class;\n\t}", "public static function getClass() {\n return Singleton::$_class;\n }", "protected function getFacadeRoot()\n {\n return GitWrapperManager::class;\n }", "protected function getFacadeRoot()\n {\n return PusherBeamsManager::class;\n }", "protected static function getFacadeAccessor()\n {\n return \\MonthlyCloud\\Sdk\\Builder::class;\n }", "public function getReflectionClass()\n {\n if (!$this->reflClass) {\n $this->reflClass = new \\ReflectionClass($this->getClassName());\n }\n\n return $this->reflClass;\n }", "protected static function getFacadeAccessor()\n {\n return Decorator::class; // the IoC binding.\n }", "protected static function getFacadeAccessor()\n {\n return Client::class;\n }", "protected static function getFacadeAccessor()\n {\n return Client::class;\n }", "public function getClass()\n {\n if (is_null($this->_class)) {\n $this->_class = $this->_getClassName();\n }\n return $this->_class;\n }", "final public static function getClass(){\n return get_called_class();\n }", "protected function getFacadeRoot()\n {\n return TravelPerkManager::class;\n }", "public static function getFacadeRoot()\n {\n return static::resolveFacadeInstance(static::getFacadeAccessor());\n }", "public static function getFacadeRoot()\n {\n return static::resolveFacadeInstance(static::getFacadeAccessor());\n }", "protected static function getFacadeAccessor()\n {\n return CircuitBreaker::class;\n }", "protected function getClass()\n {\n return __CLASS__;\n }", "public function get_class() {\n\t\tif ( ! $this->is_class_set ) {\n\t\t\t$this->set_class( $this->derive_class() );\n\t\t}\n\t\treturn $this->class;\n\t}", "public function getClass() {\n return $this->class;\n }", "protected static function getFacadeAccessor()\n {\n return \"Liger\\Fetcher\";\n }", "protected static function getFacadeAccessor()\n {\n return LiqPayClientInterface::class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "protected static function getFacadeAccessor() {\n\t\t\treturn CronManager::class;\n\t\t}", "protected static function getFacadeAccessor()\n {\n return CandyClient::class;\n }", "public function getFacade() {\r\n if (self::$_facade === null) {\r\n $repository = $this->_repositoryFactory->getRepository();\r\n $call = new Monitor\\Call();\r\n $storage = new Monitor\\Storage($repository, $call, new Monitor\\Storage\\State());\r\n $storage->attach($repository);\r\n\r\n $ticker = $this->_getTicker($storage, $repository);\r\n $analyzator = new Monitor\\Analyzator($storage, $call);\r\n $statistic = new Monitor\\Statistic($storage, $call);\r\n $display = $this->_displayFactory->getDisplay();\r\n\r\n self::$_facade = new Monitor\\Facade($storage, $ticker, $analyzator, $statistic, $display);\r\n }\r\n\r\n return self::$_facade;\r\n }", "protected static function getFacadeAccessor()\n {\n return IFXDatabase::class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n $cls_name = $this->getClassName();\n if (empty($this->class_reflection) && !empty($cls_name)) {\n $this->class_reflection = new \\ReflectionClass($cls_name);\n }\n return $this->class_reflection;\n }", "protected static function getSingletonClass()\n {\n return get_called_class();\n }", "protected static function getFacadeAccessor()\n {\n return 'Fastly';\n }", "public static function getFacadeRoot ( )\n {\n return static::resolveFacadeInstance ( static::getFacadeAccessor ( ) );\n }", "protected static function getFacadeAccessor(): string\n {\n return 'Shakurov\\Coinbase\\Coinbase';\n }", "protected static function getFacadeAccessor()\n {\n return Envcrypt::class;\n }", "protected static function getFacadeAccessor()\n {\n return \\AlexGeno\\PhoneVerificationLaravel\\PhoneVerification::class;\n }", "public function getReflectionClass()\n {\n return ReflectionPool::getInstance($this->className);\n }", "public function fetchClass()\n {\n return $this->class;\n }", "protected function derive_class_reflector() {\n\t\ttry {\n\t\t\t$class_reflector = $this->is_class_reference() ? new ReflectionClass( $this->get_class() ) : null;\n\t\t} catch ( ReflectionException $exception ) {\n\t\t\t$class_reflector = null;\n\t\t}\n\t\treturn $class_reflector;\n\t}", "public function getCls() {}", "public function getClass() {\r\n\t\treturn $this->class;\r\n\t}", "public function getClass()\n {\n return get_class($this);\n }", "protected static function getFacadeAccessor()\n {\n return Toast::class;\n }", "protected static function getFacadeAccessor()\n {\n return \\Pnuggz\\LaravelRestrictedUrl\\ServiceRepository\\Services\\RestrictedUrlService::class;\n }", "public function get_called_class() {\n\n\t\tif ( false !== static::$class_path ) {\n\t\t\treturn static::$class_path;\n\t\t}\n\n\t\t$class_path = get_called_class();\n\t\tstatic::$class_path = $class_path;\n\t\treturn $class_path;\n\n\t}", "public function getClass(): ReflectionClass;", "public function getClass()\n\t{\n\t\treturn $this->_class;\n\t}", "public function getClass()\n\t{\n\t\treturn $this->_class;\n\t}", "public function getClass() {\n \treturn $this->_class;\n }", "protected static function getFacadeAccessor(): string\n {\n return 'fitbit';\n }", "protected function getFacadeRoot()\n {\n return HttplugManager::class;\n }", "public function get_class_reflector() {\n\t\tif ( ! $this->is_class_reflector_set ) {\n\t\t\t$this->set_class_reflector( $this->derive_class_reflector() );\n\t\t}\n\t\treturn $this->class_reflector;\n\t}", "protected static function getFacadeRoot(): string\n {\n return AutoPresenterMapper::class;\n }", "protected static function getFacadeAccessor()\n {\n return SmsClient::class;\n }", "public function getClass(): string\n {\n return $this->class;\n }", "protected static function getFacadeAccessor()\n {\n return PsrContainerInterface::class;\n }", "public function getClass(): ?string\r\n {\r\n return $this->class;\r\n }", "public function getReflectionClass()\n {\n return new \\ReflectionClass($this->getName());\n }", "public static function __getClass()\n {\n return __CLASS__;\n }", "protected static function getFacadeAccessor()\n {\n return Transform::class;\n }", "public function getReflectionClass();", "protected static function getInstance()\n {\n\t\treturn static::getFacadeAccessor();\n }", "protected static function getFacadeAccessor()\n {\n return ChannelManager::class;\n }", "protected static function getFacadeAccessor()\n\t{\n\t\tif (!static::$app) {\n\t\t\tstatic::$app = FlattenServiceProvider::make();\n\t\t}\n\n\t\treturn 'flatten';\n\t}", "protected static function getFacadeAccessor()\n {\n return \\Maksa988\\LaravelAdmin\\LaravelAdmin::class;\n }", "public static function getFacadeAccessor()\n {\n return \\App\\Helpers\\General\\EmailHelper::class;\n }", "public function getClass()\n {\n \treturn $this->class;\n }", "public function getClass()\n\t{\n\t\treturn $this->class;\n\t}", "public function getClass()\n\t{\n\t\treturn $this->class;\n\t}", "protected static function getFacadeAccessor(): string\n {\n return 'web3.multicall';\n }", "protected static function getFacadeAccessor()\n {\n return DefaultAcsClient::class;\n }" ]
[ "0.76561874", "0.76208615", "0.7610145", "0.74600923", "0.72164166", "0.7214597", "0.71838", "0.70774853", "0.7060769", "0.7029519", "0.7000669", "0.6887118", "0.68383116", "0.6817372", "0.6817372", "0.67685515", "0.6760814", "0.6748346", "0.6720909", "0.66768444", "0.66576254", "0.6652125", "0.66443473", "0.663175", "0.6612343", "0.6595773", "0.6594913", "0.65792096", "0.65792096", "0.6575993", "0.65706706", "0.65704054", "0.65337986", "0.65337986", "0.652848", "0.6520442", "0.65110505", "0.6501693", "0.6500944", "0.64995754", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.64995015", "0.6493819", "0.64840734", "0.64813465", "0.64760864", "0.64618", "0.64603925", "0.6452982", "0.64509845", "0.6436809", "0.64253885", "0.64099926", "0.63997144", "0.63813585", "0.6375904", "0.63715214", "0.6370223", "0.63654125", "0.636269", "0.6362063", "0.6357912", "0.63574046", "0.6351307", "0.6349263", "0.6349263", "0.6348606", "0.6344229", "0.6333768", "0.6329565", "0.63205874", "0.63084126", "0.63079876", "0.6296967", "0.62934834", "0.62877834", "0.627754", "0.6269339", "0.6267088", "0.6261512", "0.62610847", "0.62597245", "0.62526876", "0.62486607", "0.624531", "0.6223665", "0.6223665", "0.6216861", "0.621273" ]
0.8359229
0
use kill command to stop process it is unsafe and particularly dangerous for running gearman worker
использовать команду kill для остановки процесса небезопасно и особенно опасно для запущенного worker gearman
public function gearmanWorkerStop() { for($i = 0; $i < $this->_gearmanForkCount; $i++){ $this->sub_process_keys[] = $i+1; } foreach ($this->sub_process_keys as $_sub_key) { $shell_cmd = "ps aux | grep ".$this->_workerFileName. " |"; $shell_cmd .= "grep -v 'grep' | awk '{print $2}' |"; $sub_process_name = $this->_workerFileName."_".$_sub_key; $pid_file = $this->_lockDir.$this->_workerFileName."_".$_sub_key.".pid"; $pid_cmd = "cat $pid_file"; $pid = exec($pid_cmd); $shell_cmd .= " grep $pid"; echo $shell_cmd."\n"; //查看进程是不是存在 $ps_res = exec($shell_cmd); if (empty($ps_res)) { echo "process $sub_process_name is not running!\n"; } else { $kill_cmd = "kill $pid"; exec($kill_cmd); $this->killed_sub_process_keys[] = $_sub_key; echo "process $sub_process_name is stopped\n"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kill();", "private function serveStop()\n {\n foreach ($this->pid as $pid) {\n $command = \"kill -9 {$pid} > /dev/null 2> /dev/null &\";\n @exec($command, $output);\n }\n }", "public function kill(): void;", "function kill_Process()\n {\n $this->set_kill_Command();\n //Fire Script \n $this->fire_Script();\n $response = array(\"status\"=>$this->status,\n \"script_ouput\"=>$this->script_output,\n \"executation_time\"=>$this->time_interval,\n \"message\"=>$this->message);\n \n echo json_encode($response, JSON_PRETTY_PRINT);\n }", "public function stop()\n {\n if (OS::isWin()) {\n $cmd = \"taskkill /pid {$this->pid} -t -f\";\n } else {\n $cmd = \"kill -9 {$this->pid}\";\n }\n shell_exec($cmd);\n }", "function killProcess(string $id) : void\n {\n shell_exec(\"kill $id\");\n }", "function killProcess($pid)\n{\n $mapper = systemToolkit::getInstance()->getMapper('process', 'process');\n $process = $mapper->searchOneByField('pid', $pid);\n if($process) {\n $mapper->delete($process);\n }\n}", "public function stop() {\n try {\n $pid = $this->getPidFile()->read();\n\n Logger::log(\"Killing THIS PID: \" . $pid, \\Zend_Log::WARN);\n posix_kill($pid, SIGTERM);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n $this->_exit();\n }", "public function killCommand()\n {\n $this->registry->set(Registry::DAEMON_KILL_KEY, time());\n $this->outputLine('Broadcast kill signal');\n }", "private function stop_ATD()\n\t{\n\t\texecuteCommand('killall run-lowmem.sh', '', $result, $return_status);\n\t}", "function stdapi_sys_process_kill($req, &$pkt) {\n # that isn't enabled by default, but better to try it and avoid shelling\n # out when unnecessary.\n my_print(\"doing kill\");\n $pid_tlv = packet_get_tlv($req, TLV_TYPE_PID);\n $pid = $pid_tlv['value'];\n if (is_callable('posix_kill')) {\n $ret = posix_kill($pid, 9);\n $ret = $ret ? ERROR_SUCCESS : posix_get_last_error();\n if ($ret != ERROR_SUCCESS) {\n my_print(posix_strerror($ret));\n }\n } else {\n $ret = ERROR_FAILURE;\n if (is_windows()) {\n my_cmd(\"taskkill /f /pid $pid\");\n # Don't know how to check for success yet, so just assume it worked\n $ret = ERROR_SUCCESS;\n } else {\n if (\"foo\" == my_cmd(\"kill -9 $pid && echo foo\")) {\n $ret = ERROR_SUCCESS;\n }\n }\n }\n return $ret;\n}", "public static function killProcesses() {\n foreach(self::$__pIds as $pid => $active) {\n if(self::$__infoKill) {\n echo sprintf(self::$__infoKill, date('r'), $pid) . PHP_EOL;\n }\n exec('kill ' . $pid);\n unset(self::$__pIds[$pid]);\n };\n }", "public function killChild()\n\t{\n\t\tif (!$this->child) {\n\t\t\t$this->logger->log(LogLevel::DEBUG, 'No child to kill.');\n\t\t\treturn;\n\t\t}\n\n\t\t$context = array('child' => $this->child);\n\t\t$this->logger->log(LogLevel::INFO, 'Killing child at {child}', $context);\n\t\tif (exec('ps -o pid,s -p ' . $this->child, $output, $returnCode) && $returnCode != 1) {\n\t\t\t$context = array('child' => $this->child);\n\t\t\t$this->logger->log(LogLevel::DEBUG, 'Child {child} found, killing.', $context);\n\t\t\tposix_kill($this->child, SIGKILL);\n\t\t\t$this->child = null;\n\t\t} else {\n\t\t\t$context = array('child' => $this->child);\n\t\t\t$this->logger->log(LogLevel::INFO, 'Child {child} not found, restarting.', $context);\n\t\t\t$this->shutdown();\n\t\t}\n\t}", "public function stop() {\n\t\tLogger::getRootLogger ()->info ( \"Stopping IPsec\" );\n\t\t$pid = file_exists ( self::PID_PATH ) ? Functions::shellCommand ( \"pgrep -F \" . self::PID_PATH ) : 0;\n\t\tif ($pid > 0) {\n\t\t\tFunctions::shellCommand ( \"/bin/kill {$pid}\" );\n\t\t}\n\t}", "protected function killProcess(): void\n {\n if (($pid = $this->getAttribute('pid')) === null) {\n return;\n }\n\n if ($this->systemCommands()->isProcessRunning($pid)) {\n $this->systemCommands()->killProcess($pid);\n }\n }", "public function stop() {\n\t\t$this->invoke(\"stop\");\n\t}", "protected abstract function killFree();", "protected function stop()\n {\n $pidFile = $this->getPidFile();\n\n if(!is_file($pidFile)){\n echo \"PID file not present, so service is not started\\n\";\n exit;\n }\n if(!is_writable($pidFile)){\n echo \"Insufficient permissions. Please execute as service like 'sudo service anyterm start'\";\n exit;\n }\n\n shell_exec('kill `cat /var/run/anyterm.pid`');\n unlink($pidFile);\n }", "public function gracefulStop(){\n $this->handleWorkerOutput('warn', \"Work done, exiting now.\");\n $this->stop();\n }", "public function terminate();", "public function kill()\n {\n $this->log(\"Killing process {$this->pid}\");\n $command = \"kill {$this->pid}\";\n exec($command, $output);\n\n if ($this->processIsRunning()) {\n $this->log(\"Process {$this->pid} cannot die!\");\n return false;\n }\n\n $this->log(\"Process {$this->pid} is dead.\");\n return true;\n }", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop() {}", "public function stop() {\n $cmd = sprintf(\"./control.sh stop %s -game %s\", $this->sid, $this->gameId);\n ssh($cmd, $this->host);\n DB::get()->query(\"UPDATE `servers` SET `status` = 0 WHERE `serverID` = '\" . $this->serverId . \"'\");\n }", "public function stop()\n {\n die;\n }", "function killbyname($procname) {\n\treturn mwexec(\"/bin/killall \" . escapeshellarg($procname));\n}", "public function cancelOperation() {\n printf(\"Cancelling...\\n\");\n $this->_cancelled = true;\n posix_kill($this->_pid, SIGKILL);\n pcntl_signal_dispatch();\n }", "public function handle()\r\n {\r\n try {\r\n $this->call(\"swooliy:stop\");\r\n\r\n sleep(2);\r\n \r\n $this->call(\"swooliy:start\");\r\n } catch (Throwable $e) {\r\n die($e);\r\n }\r\n }", "public function killJob($args){\n \\Queue::killJob($args[0]);\n }", "public function kill_process($pid)\n {\n\n if (!is_numeric($pid)) return false;\n $pid = (int)$pid;\n $sql = \"KILL $pid\";\n\n return $this->db->query($sql);\n }", "public function stop() {\n\t\t// Setup\n\t\t$options = array(\n\t\t\t'appName' => 'cakedaemon',\n\t\t\t'logLocation' => TMP . \"logs\" . DS . 'cakedaemon.log'\n\t\t);\n\n\t\tSystem_Daemon::setOptions($options);\n\t\tSystem_Daemon::stopRunning();\n\t}", "public function killWithoutQueue()\n {\n $processList = $this->getProcessList(\"| grep -v 'queue'\");\n $this->killAll($processList);\n }", "public function terminate(Process $process);", "public function kill($force = false){\n\t\tif(!$this->_pid) return (bool) false;\n\n\t\t$command = 'kill ';\n\t\tif($force) $command .= '9 ';\n\t\t$command .= $this->_pid;\n\t\texec($command);\n\n\t\tif(!$this->isAlive()) $this->writeState(self::STATE_CANCELED);\n\n\t\treturn $this->isAlive();\n\t}", "private function stopServer() {\n\t\t$this->socketSend('shutdown');\n\t\tforeach($this->pipes as $pipe) {\n\t\t\tfclose($pipe);\n\t\t}\n\t\tproc_close($this->server);\n\t}", "public function stopProcess() {\n // Do not change the status of an idle migration\n db_update('migrate_status')\n ->fields(array('status' => MigrationBase::STATUS_STOPPING))\n ->condition('machine_name', $this->machineName)\n ->condition('status', MigrationBase::STATUS_IDLE, '<>')\n ->execute();\n }", "abstract public function stop();", "public function killProcess($pid)\n {\n return posix_kill($pid, SIGKILL);\n }", "function kill($error) {\n echo $error.\"<br /><br />\";\n die();\n }", "function stop()\n{\n global $ipfsutils, $avahi_type, $avahi_port, $staticFile, $urlpath;\n\n // Stop the daemon\n $cmd = $ipfsutils.\" stop \";\n $cmd_res = execute_program($cmd);\n\n // Un-announce the IPFS instance to the community cloud via any of the\n // available methods -including IPFS itself, if enabled-\n $unpub_res = avahi_unpublish($avahi_type, $avahi_port);\n\n $flash_content = txt(t('ipfs_flash_stopping')) . ptxt($cmd_res['output'][0]);\n $flash_content .= txt(t('ipfs_flash_unpublish')) . ptxt($unpub_res);\n\n setFlash($flash_content);\n return(array('type'=>'redirect','url'=>$staticFile.$urlpath));\n}", "public function terminate()\n {\n $this->logger->debug(MessageFormatter::receivedTerminateSignal('Supervisor'));\n\n foreach ($this->consumerProcesses as $processGroup) {\n $processGroup->sendStopSignal();\n }\n\n foreach ($this->consumerProcesses as $processGroup) {\n $processGroup->stopCompletely();\n }\n\n die();\n }", "public function stop(): void;", "public function stop(): void;", "public function stop(): void;", "public function stop(): void;", "public function stop(): void;", "public function Kill( $message = '' )\r\n\t{\r\n\t\tif( strlen( $message ) > 0 )\r\n\t\t{\r\n\t\t\texit( $message );\r\n\t\t} \r\n\t\telse\r\n\t\t{\r\n\t\t\texit( $this->Error() );\r\n\t\t}\r\n\t}", "protected function stopTask() {}", "public function kill()\n {\n $this->option('-k');\n return $this;\n }", "public function stopProcess($pid, $grace = 5)\n { $log = usingLog()->startAction(\"stop process '{$pid}' on host '{$this->args[0]}'\");\n\n // is the process running at all?\n if (!fromHost($this->args[0])->getPidIsRunning($pid)) {\n $log->endAction(\"process is not running\");\n return;\n }\n\n // yes it is, so stop it\n // send a TERM signal to the screen session\n $log->addStep(\"send SIGTERM to process '{$pid}'\", function() use ($pid) {\n if ($this->getIsLocalhost()) {\n posix_kill($pid, SIGTERM);\n }\n else {\n usingHost($this->args[0])->runCommand(\"kill {$pid}\");\n }\n });\n\n // has this worked?\n $isStopped = $log->addStep(\"wait for process to terminate\", function() use($pid, $grace, $log) {\n for($i = 0; $i < $grace; $i++) {\n if (!fromHost($this->args[0])->getPidIsRunning($pid)) {\n return true;\n }\n\n // process still exists\n sleep(1);\n }\n\n return false;\n });\n\n // did the process stop?\n if ($isStopped) {\n $log->endAction();\n return;\n }\n\n $log->addStep(\"send SIGKILL to process '{$pid}'\", function() use($pid) {\n if ($this->getIsLocalhost()) {\n posix_kill($pid, SIGKILL);\n }\n else {\n usingHost($this->args[0])->runCommand(\"kill -9 {$pid}\");\n }\n sleep(1);\n });\n\n // success?\n if (fromHost($this->args[0])->getProcessIsRunning($pid)) {\n $log->endAction(\"process is still running :(\");\n throw new E5xx_ActionFailed(__METHOD__);\n }\n\n // all done\n $log->endAction(\"process has finished\");\n }", "public function Terminate ();", "public function handle()\n {\n $this->info('socket service is shutting down...');\n echo shell_exec('sudo ps -ef | grep \\'socket start\\' | grep -v grep | awk \\'{ print $2 }\\' | sudo xargs kill -9');\n }", "function sigkillbyname($procname, $sig) {\n\treturn mwexec(\"/bin/killall -{$sig} \" . escapeshellarg($procname));\n}", "public function stop()\n {\n // nop\n }", "function VM_stopVMCommandFile($vmName)\n{\n\t$cmd.=\"; rm \\\"/m23/vms/runningVMs/$vmName.run\\\"\";\n}", "public function shutdown();", "public function shutdown();", "public function stop(): bool\n {\n return $this->processRunner->stop();\n }", "public function kill()\n {\n session_regenerate_id();\n $_SESSION[CCID] = array(); // session_unset();\n session_destroy();\n }", "public function reload()\n {\n if ($this->config['server_type'] == 'process') {\n $pid = $this->getPid('worker');\n } else {\n $pid = $this->getPid('master');\n }\n\n if (empty($pid)) {\n die(\"{$this->config['process_name']} has not process\".PHP_EOL);\n }\n\n exec(\"kill -USR1 \" . implode(' ', $pid), $output, $return);\n\n if ($return === false) {\n die(\"{$this->config['process_name']} reload fail\".PHP_EOL);\n }\n echo \"{$this->config['process_name']} reload success\".PHP_EOL;\n }", "public function testStopProcess()\n {\n $command = new SchedulerCommands('unittest');\n\n $exec = $this->getFunctionMock('Martin1982\\LiveBroadcastBundle\\Broadcaster\\Linux', 'exec');\n $exec->expects($this->once())->willReturnCallback(\n function ($command) {\n self::assertEquals('kill 1337', $command);\n }\n );\n\n $command->stopProcess(1337);\n }", "public function stop()\n {\n }", "public function stop()\n {\n\n }", "public function shutdown ()\n {\n $this->_signalAllWorkers(SIGKILL);\n \n $this->_logger->info('Exiting...');\n $this->_shutdown = true;\n \n exit(1);\n }", "public function stop()\n {\n }", "public function JStop() {}", "function stop();", "protected function killProcessById(Server $server, $pid)\n\t{\n\t\tposix_kill($pid, SIGKILL);\n\t\tif ($server->getVerboseExit())\n\t\t{\n\t\t\techo sprintf(\"Terminating server %d\\n\", $pid);\n\t\t}\n\t}", "public function stop()\r\n {\r\n\r\n }", "public function stop( $args, $assoc_args ) {\n\t\t$this->site_docker_compose_execute( $args[0], 'stop', $args, $assoc_args);\n\t}", "function stopDownloadToPool()\n\t{\n\t\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\t\t$this->addInfoMessage($I18N_downloadAborted);\n\n\t\tSERVER_deleteFile($this->getPoolDir().'/lock');\n\n\t\tSERVER_killBackgroundJob('downloadPoolPackages');\n\t}", "function cleanup($sig = '?') {\n global $g_pidfile;\n if ($g_pidfile) {\n Filesystem::remove($g_pidfile);\n $g_pidfile = null;\n }\n\n global $g_future;\n if ($g_future) {\n $g_future->resolveKill();\n $g_future = null;\n }\n\n exit(1);\n}", "public function shutdown() {\n\t\t$this->stop();\n\t}", "public function halt();", "function deactivate_ipc(){\n\t\t\n\t\t}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function kill( $threadId );", "public function unregisterIPC($id);", "public function stopEngine(int $code = 0, string $reason = \"\");", "function fsl_session_kill($name){\n unset($_SESSION[''.$name.'']);\n unset($_SESSION[''.$name.'_timeout']);\n session_destroy();\n return true;\n}", "public static function stopPhantomDriver()\n {\n if (static::$phantomProcess) {\n static::$phantomProcess->stop();\n }\n }", "function killbypid($pidfile) {\n\tsigkillbypid($pidfile, \"TERM\");\n\tunlink_if_exists($pidfile);\n}", "public function unregisterWorker()\n\t{\n\t\tif (is_object($this->currentJob)) {\n\t\t\t$this->currentJob->fail(new DirtyExitException());\n\t\t}\n\n\t\t$id = (string)$this;\n\t\tResque::redis()->srem('workers', $id);\n\t\tResque::redis()->del('worker:' . $id);\n\t\tResque::redis()->del('worker:' . $id . ':started');\n\t\tStat::clear('processed:' . $id);\n\t\tStat::clear('failed:' . $id);\n\t}", "public function stop()\n {\n // Update worker state and set it as finished\n $this->update(['resume_token' => 0, 'has_finished' => true]);\n }", "public function stop(): bool {}", "private function _demonize()\n {\n umask(self::$umask);\n\n if (pcntl_fork() != 0)\n {\n exit();\n }\n\n posix_setsid();\n\n if (pcntl_fork() != 0)\n {\n exit();\n }\n }", "public function noKill()\n {\n $this->option('--nokill');\n return $this;\n }", "protected function stopped()\n {\n $this->redis->zrem(Queue::redisKey($this->queue, 'running'), $this->payload);\n\n Stats::decr('running', 1);\n Stats::decr('running', 1, Queue::redisKey($this->queue, 'stats'));\n }", "public function handle()\n {\n// echo 'Shutdown...';\n }" ]
[ "0.780975", "0.7335286", "0.72063285", "0.7094114", "0.7086525", "0.70338255", "0.6961979", "0.6866553", "0.6847355", "0.67614466", "0.66687155", "0.6592907", "0.6512263", "0.6483066", "0.6429606", "0.6396682", "0.63490456", "0.6286256", "0.62840074", "0.6283107", "0.6277343", "0.62764525", "0.62764525", "0.62764525", "0.62764525", "0.62764525", "0.62764525", "0.62764525", "0.62764525", "0.62553215", "0.6248004", "0.6229279", "0.6210344", "0.619005", "0.6171383", "0.6168404", "0.6142335", "0.6141891", "0.6134061", "0.60864806", "0.606204", "0.6025498", "0.6018085", "0.5993814", "0.5984131", "0.5951886", "0.5943531", "0.59251577", "0.58856916", "0.58856916", "0.58856916", "0.58856916", "0.58856916", "0.5882288", "0.5881562", "0.58059627", "0.58020645", "0.5786736", "0.57826066", "0.5770095", "0.5764979", "0.5764038", "0.5762554", "0.5762554", "0.5744244", "0.574296", "0.57335997", "0.5728373", "0.57103133", "0.56955296", "0.56811047", "0.5677397", "0.5667465", "0.56660175", "0.5654272", "0.56404984", "0.5631592", "0.5629497", "0.56243813", "0.56095207", "0.5606634", "0.5595783", "0.55789757", "0.55789757", "0.55789757", "0.55789757", "0.55789757", "0.5567449", "0.5552761", "0.5550814", "0.55469733", "0.55434763", "0.55380213", "0.5536373", "0.55302894", "0.55164033", "0.551323", "0.55061865", "0.55007416", "0.548629" ]
0.7410336
1
fonction getIdTitulaire(num_complet_cpte) returns id_titulaire,id_cpte,num_complete_cpte t361
fonction getIdTitulaire(num_complet_cpte) возвращает id_titulaire,id_cpte,num_complete_cpte t361
function getIdtitulaire($num_complete_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = " SELECT id_cpte,id_titulaire,num_complet_cpte from ad_cpt where num_complet_cpte = '$num_complete_cpte' ; "; $result = $db->query($sql); if (DB::isError($result)) { $dbHandler->closeConnection(false); signalErreur(__FILE__,__LINE__,__FUNCTION__); // "DB: ".$result->getMessage() } $dbHandler->closeConnection(true); if ($result->numRows() == 0) return NULL; $tmpRow = $result->fetchrow(); return $tmpRow; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public static function ConsultarTemporalCid() {\r\n $db = new Conexion();\r\n\t\t$sql = $db->query(\"select MAX(idcompra) as id from compra;\");\r\n\t\t$dato3 = $db->recorrer($sql);\r\n return $dato3[0];\r\n }", "function getId_situacion()\n {\n if (!isset($this->iid_situacion) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_situacion;\n }", "function getId_situacion()\n {\n if (!isset($this->iid_situacion) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_situacion;\n }", "public function getMvtsCpteClientParNumero($id_cpte, $numero){\n\n global $global_remote_id_agence;\n $sql = \"SELECT \tA.id_his,A.infos,A.type_fonction,A.date,b.libel_ecriture,T .traduction AS libel_operation, b.type_operation, b.info_ecriture, C.sens, C.montant\n FROM\tad_his A INNER JOIN ad_ecriture b USING (id_ag, id_his) INNER JOIN ad_mouvement C USING (id_ag, id_ecriture)\n INNER JOIN ad_traductions T ON T .id_str = b.libel_ecriture\n INNER JOIN ad_agc ag on ag.id_ag = a.id_ag and ag.langue_systeme_dft = T.langue \";\n $sql .= \"WHERE (a.id_ag = $global_remote_id_agence) AND c.cpte_interne_cli = $id_cpte \";\n\n $sql .= \" ORDER BY b.id_ecriture DESC LIMIT $numero\";\n\n $result = $this->getDbConn()-> prepareFetchAll ($sql);\n\n if ($result === FALSE || count($result) == 0) {\n return new ErrorObj(ERR_DB_SQL, $result);\n }\n\n return $result;\n }", "public function getUltimoId() { \n return $this->ultimoId;\n }", "function getId_situacion(): int\n {\n if (!isset($this->iid_situacion) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_situacion;\n }", "public function ultimoID()\n {\n $sentencia = \"SELECT id, clNumReporte FROM tsreportebocadetubo ORDER BY id DESC LIMIT 1\";\n try {\n $stm = $this->db->prepare($sentencia);\n $stm->execute();\n $registros = $stm->fetchAll(PDO::FETCH_OBJ);\n\n return $registros;\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "function getDatosId_situacion()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_situacion'));\n $oDatosCampo->setEtiqueta(_(\"id_situacion\"));\n return $oDatosCampo;\n }", "function getDatosId_situacion()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_situacion'));\n $oDatosCampo->setEtiqueta(_(\"id_situacion\"));\n return $oDatosCampo;\n }", "public function id_tarjeta();", "function getId_carrera(){\n\t\treturn $this->id_carrera;\n\t}", "public function buscarID()\n {\n $sentencia = \"SELECT id, cl FROM tsreportebocadetubo ORDER BY id DESC LIMIT 1\";\n try {\n $stm = $this->db->prepare($sentencia);\n $stm->execute();\n $registros = $stm->fetchAll(PDO::FETCH_OBJ);\n foreach ($registros as $r) {\n $id = $r->id;\n }\n return $id;\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function getIdcotizacion(){\n return $this->idcotizacion;\n }", "public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }", "public function getIdOrdenCompra() {\n return $this->id_orden_compra;\n }", "public function getIdMotCle()\n {\n return $this->idMotCle;\n }", "function generarNumOC(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_GENOCDE_IME';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function getCod_entidad_tuicion()\n {\n return $this->cod_entidad_tuicion;\n }", "public function getIdPartita() {\n \tif (isset($_REQUEST['id_partita'])) {\n \t\treturn $_REQUEST['id_partita'];\n \t} else\n \t\treturn false;\n }", "function getLoteIdGenerado($prov_id, $arti_id, $depo_id, $cod_lote){\n\n\t\t$empr_id = empresa();\n\t\t$url = AJST.'/services/asp/ALMDataService/lote/id/prov_id/'.$prov_id.'/arti_id/'.$arti_id.'/depo_id/'.$depo_id.'/empr_id/'.$empr_id.'/cod_lote/'.$cod_lote;\n\t\t$aux = $this->rest->callAPI(\"GET\",$url);\n\t\t$aux =json_decode($aux[\"data\"]);\n\t\treturn $aux->lote->lote_id;\n\t}", "public function getIdre()\n {\n return $this->idre;\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 getIdContratoFinanceiroNota()\n {\n return $this->id_contrato_financeiro_nota;\n }", "function getSolicitud_id ($id_solicitud) {\n $db = new MySQL();\n $sql = \"SELECT \n t01.id as id_solicitud,\n date_format(t01.fecha_solicitud,'%d-%m-%Y') fecha_solicitud, \n t01.id_paciente, \n t01.id_medico,\n t03.nombre as medico,\n t01.id_lugarentrega,\n t01.id_servicio,\n concat(t02.nombres,' ', t02.apellidos) paciente,\n t02.edad,\n t02.id_sexo,\n t02.id_empresa,\n t04.nombre as empresa,\n t01.sumas,\n t01.descuento,\n t01.venta_total\n FROM lab_solicitud t01\n LEFT JOIN mnt_paciente t02 ON t02.id = t01.id_paciente\n LEFT JOIN ctl_medico t03 ON t03.id = t01.id_medico\n LEFT JOIN ctl_empresa t04 ON t04.id = t01.id_empresa\n WHERE t01.id=$id_solicitud\";\n return $db->fetch_array($db->consulta($sql));\n }", "function getDatosId_preceptor()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_preceptor'));\n $oDatosCampo->setEtiqueta(_(\"id_preceptor\"));\n return $oDatosCampo;\n }", "public function getId_carte_bleu()\n {\n return $this->id_carte_bleu;\n }", "function obtenirIdEtablissementsOffrantChambres ($connexion) {\r\n\r\n $req = \"SELECT DISTINCT id FROM Etablissement e \r\n INNER JOIN Offre o ON e.id = o.idEtab \r\n ORDER BY id\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt;\r\n\r\n }", "public function getId_cuisinier() {\r\n\t\treturn $this->id_cuisinier;\r\n\t}", "static public function get_id_partida($id_ronda){\n\n $query = \"SELECT par_ron.id_partida AS 'id_partida' FROM partida_ronda_usupreg AS par_ron WHERE par_ron.id_partida_ronda_usupreg = \".self::$conexion->safeText(utf8_encode($id_ronda)).\" LIMIT 1\";\n\n $result = self::$conexion->query_db($query);\n\n if(!empty(isset($result[0])))\n return $result[0]['id_partida'];\n else\n return false;\n }", "static public function get_id_partida($id_ronda){\n\n $query = \"SELECT par_ron.id_partida AS 'id_partida' FROM partida_ronda_usupreg AS par_ron WHERE par_ron.id_partida_ronda_usupreg = \".self::$conexion->safeText(utf8_encode($id_ronda)).\" LIMIT 1\";\n\n $result = self::$conexion->query_db($query);\n\n if(!empty(isset($result[0])))\n return $result[0]['id_partida'];\n else\n return false;\n }", "public function obtenerUltimoCodigoTipoResiduo(){\n //Insertar provincia se invoca al metodo en datos\n $this->tipoResiduoAccesoDatos->conectar();\n $resultado = $this->tipoResiduoAccesoDatos->obtenerUltimoCodigoTipoResiduo();\n $this->tipoResiduoAccesoDatos->cerrarConexion();\n return $resultado;\n }", "function getId_asignatura()\n {\n if (!isset($this->iid_asignatura) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_asignatura;\n }", "function cuponyaobtenido($idreg,$idcupon,$link) {\n $obten=0;\n $consulta = \"select * from bdlt_participacion a inner join bdlt_codigos b on a.id_codigo=b.id where a.id_registro=\".$idreg.\" and b.id_cupon=\".$idcupon.\" LIMIT 1;\";\n if ($resultado = mysqli_query($link, $consulta)) {\n while ($fila = mysqli_fetch_row($resultado)) {\n $obten=1;\n }\n /* liberar el conjunto de resultados */\n mysqli_free_result($resultado);\n }\n return $obten;\n}", "function getId_tarifa()\n {\n if (!isset($this->iid_tarifa) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_tarifa;\n }", "public function cirugias_tatalCirugias(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idCirugia) as cantidadCirugias from tb_cirugias \";\n\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['cantidadCirugias'];\t\t\t\n\t\t\t\n\t\t\t\n }", "public function getNumIdccEmployeur() {\n return $this->numIdccEmployeur;\n }", "function getDatosId_activ()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_activ'));\n $oDatosCampo->setEtiqueta(_(\"id_activ\"));\n return $oDatosCampo;\n }", "function get_entrada_lote_id($id,$auth){\n\t\tif($auth==0){\n\t\t\t$validacion=\"and prf.usuario_validador_id=0 \";\n\t\t} else {\n\t\t\t$validacion=\" and prf.usuario_validador_id>0 \";\n\t\t}\n\t\t\t\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct on (e.pr_facturas_id) e.pr_facturas_id, e.id as id1, date(e.fecha) fecha, ( 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 estatuse, e.lote_id, cel.tag as estatus_traspaso \".\n\t\t\t\t\"from entradas as e \".\n\t\t\t\t\"left join cproveedores as pr on pr.id=e.cproveedores_id \".\n\t\t\t\t\"left join pr_facturas as prf on prf.id=e.pr_facturas_id \".\n\t\t\t\t\"left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id \".\n\t\t\t\t\"left join estatus_general as eg on eg.id=e.estatus_general_id \".\n\t\t\t\t\"left join lotes_pr_facturas as lf on lf.pr_factura_id=prf.id \".\n\t\t\t\t\"left join cestatus_lotes as cel on cel.id=lf.cestatus_lote_id \".\n\t\t\t\t\"where e.estatus_general_id=1 and ctipo_entrada=1 and lf.lote_id='$id' $validacion\".\n\t\t\t\t\"group by e.pr_facturas_id, e.id, e.fecha, importe_factura, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id,e.lote_id, prf.descuento, cel.tag \".\n\t\t\t\t\"order by e.pr_facturas_id desc,e.fecha desc \";\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 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 }", "function obtenirNbEtabOffrantChambres ($connexion) {\r\n\r\n $req = \"SELECT COUNT(DISTINCT idEtab) FROM Offre\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }", "public function getIdLieuTravail() {\n return $this->idLieuTravail;\n }", "public function getIdEdificio()\n {\n return $this->c_id_edificio;\n }", "function get_entrada_pr_pedido_id($id){\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct on (e.pr_facturas_id) e.pr_facturas_id, e.id as id1, date(e.fecha) fecha, prf.monto_total as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatuse, e.lote_id, cel.tag as estatus_traspaso \".\n\t\t\t\t\"from entradas as e \".\n\t\t\t\t\"left join cproveedores as pr on pr.id=e.cproveedores_id \".\n\t\t\t\t\"left join pr_facturas as prf on prf.id=e.pr_facturas_id \".\n\t\t\t\t\"left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id \".\n\t\t\t\t\"left join estatus_general as eg on eg.id=e.estatus_general_id \".\n\t\t\t\t\"left join lotes_pr_facturas as lf on lf.pr_factura_id=prf.id \".\n\t\t\t\t\"left join cestatus_lotes as cel on cel.id=lf.cestatus_lote_id \".\n\t\t\t\t\"where e.estatus_general_id=1 and ctipo_entrada=1 and prf.pr_pedido_id='$id'\".\n\t\t\t\t\"group by e.pr_facturas_id, e.id, e.fecha, importe_factura, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id,e.lote_id, cel.tag \".\n\t\t\t\t\"order by e.pr_facturas_id desc,e.fecha desc\";\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 verRespuestaDetallePersonal($idEstudiante, $idPregunta) {\n global $ruta, $db;\n $query_buscarespuesta = \"SELECT EstudianteDetallesPersonalesId \n FROM EstudianteDetallesPersonales \n WHERE idestudiantegeneral='\" . $idEstudiante . \"' AND idobs_admitidos_contexto='\" . $idPregunta . \"'\";\n\n $respuestaestu = $db->Execute($query_buscarespuesta);\n $totalRows = $respuestaestu->RecordCount();\n\n if ($totalRows == 0) {\n return \"null\";\n } else {\n $rowrespuesta = $respuestaestu->FetchRow();\n return $rowrespuesta[\"EstudianteDetallesPersonalesId\"];\n }\n }", "public function getdernierid(){ \n $req=\"SELECT id FROM contrat WHERE id = (SELECT MAX(id) FROM contrat)\";\n //print_r($req);\n $resultat = $this->pdo->query($req);\n $ligne = $resultat->fetch();\n $donnees = $ligne['id'];\n return intval($donnees);\n }", "private function _vtc_get_tran_id($result)\n\t{\n\t if(!isset($result['data'])) return false;\n\t $data = $result[\"data\"];\n\t $string = explode('|',$data);\n\t $tran_id = isset($string[0]) ? $string[0] : 0;\n\t return $tran_id;\n\t}", "function get_id_periodo ($cuatrimestre, $anio_lectivo){\n $sql=\"SELECT t_p.id_periodo\n FROM periodo t_p \n JOIN cuatrimestre t_c ON (t_p.id_periodo=t_c.id_periodo)\n WHERE t_c.numero=$cuatrimestre AND t_p.anio_lectivo=$anio_lectivo \";\n \n $periodo=toba::db('gestion_aulas')->consultar($sql);\n \n return ($periodo[0]);\n }", "function get_control_salida_extra_id_sucursal_new($id_sucursal=''){\n\t\n\t\t$sQuery=\"SELECT * FROM control_salida_extra WHERE 1 = 1\";\n\t\tif($id_sucursal) {\t$sQuery.=\" AND id_sucursal = '$id_sucursal' \";\t}\n\t\t$sQuery.=\" ORDER BY id_por_sucursal_new DESC \";\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\tif($res_array[0]['id_por_sucursal_new'])\t\n\t\t{\t\n\t\t\t$new_id_por_sucursal_new=$res_array[0]['id_por_sucursal_new'];\n\t\t\t$new_id_por_sucursal_new++;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\n\t\t\t$new_id_por_sucursal_new=1;\n\t\t}\n\t\t\n\t\treturn($new_id_por_sucursal_new);\n\t\t\t\n\t}", "public function idinformacion(){\n\t\treturn $this->_idinformacion;\n\t}", "function getDatosId_asignatura()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_asignatura'));\n $oDatosCampo->setEtiqueta(_(\"id_asignatura\"));\n return $oDatosCampo;\n }", "public function getCod_entidad_relacionada()\n {\n return $this->cod_entidad_relacionada;\n }", "public function idDefinitivo($tipo,$id){\n $iddef=0;\n $objA=new admonDAO(); //direcionador =1 mandar a admon\n $objM=new medicoDAO(); //direcionar=2 mandar a medico\n $objP=new pacienteDAO(); //direccionar=3 mandar a paciente\n $resul1=$objA->readOneById($id); //error en datos\n $resul2=$objM->readOneById($id);\n $resul3=$objP->readOneById($id);\n \n if($tipo==1){\n for($i=0;$i<count($resul1);$i++){\n $iddef=$resul1[$i]['id_admon'];\n }\n }\n if($tipo==2){\n for($i=0;$i<count($resul2);$i++){\n $iddef=$resul2[$i]['id_medico'];\n }\n }\n if($tipo==3){\n for($i=0;$i<count($resul3);$i++){\n $iddef=$resul3[$i]['id_paciente'];\n }\n }\n \n return $iddef;\n }", "public function getidinscripcion()\n {\n return $this->idinscripcion;\n }", "public function getIdFamilleproduit()\n {\n return $this->Id_familleproduit;\n }", "public function getIdComentario()\n {\n return $this->id_comentario;\n }", "public function getIdTanah()\n {\n return $this->id_tanah;\n }", "public function generarCodigoTipoUsuario() {\n $pdo = Database::connect();\n $sql = \"select max(ID_TIPO_USU) as cod from INV_TAB_TIPO_USUARIO\";\n $consulta = $pdo->prepare($sql);\n $consulta->execute();\n $res = $consulta->fetch(PDO::FETCH_ASSOC);\n $nuevoCod = '';\n if ($res['cod'] == NULL) {\n $nuevoCod = 'TUSU-0001';\n } else { \n $rest= ((substr($res['cod'], -4))+1).''; // Separacion de la parte numerica TUSU-0023 --> 23\n // Ciclo que completa el codigo segun lo retornado para completar los 9 caracteres \n // TUSU-00 --> 67, TUSU-0 --> 786\n if($rest >1 && $rest <=9){\n $nuevoCod = 'TUSU-000'.$rest;\n }else{\n if($rest >=10 && $rest <=99){\n $nuevoCod = 'TUSU-00'.$rest;\n }else{\n if($rest >=100 && $rest <=999){\n $nuevoCod = 'TUSU-0'.$rest;\n }else{\n $nuevoCod = 'TUSU-'.$rest; \n } \n } \n }\n }\n Database::disconnect();\n return $nuevoCod; // RETORNO DEL NUEVO CODIGO DE TIPO USUARIO\n }", "function getId_asignatura(): int\n {\n if (!isset($this->iid_asignatura) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_asignatura;\n }", "public function getIdfa();", "public function idPenjualan()\n {\n $get_id = $this->penjualan->get_idmax();\n\n return $get_id; //TRX00001\n }", "function getDatosId_preceptor()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_preceptor'));\n $oDatosCampo->setEtiqueta(_(\"nombre preceptor\"));\n return $oDatosCampo;\n }", "function getCarteCommisssion()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=1\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }", "function comprobanteEstaRepetido($cuie, $periodo, $prestacionid, $idprestacion, $idrecepcion, $datosnomenclador, $elcomprobante, $fechaprestacion, $beneficiario, $idfactura, $idvacuna) {\r\n // repitiendo el id de prestacion interno, cosa que no sucede casi nunca\r\n $query = \"SELECT fc.cuie as cuie, ff.recepcion_id AS idrecepcion, id_debito,fp.id_prestacion\r\n FROM facturacion.factura ff \r\n INNER JOIN facturacion.comprobante fc ON (ff.id_factura = fc.id_factura) \r\n INNER JOIN facturacion.prestacion fp ON (fc.id_comprobante = fp.id_comprobante) \r\n LEFT JOIN facturacion.debito d ON (fc.id_comprobante=d.id_comprobante)\r\n WHERE fc.cuie='$cuie' \r\n AND ff.periodo='$periodo' \r\n AND fc.idprestacion='$prestacionid'\r\n AND fp.id_prestacion<>$idprestacion\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $ctrl_repetido['debito'] = false;\r\n $yadebitado = $resultado->fields['id_debito'];\r\n $recibidodespues = $resultado->fields['id_prestacion'] < $prestacionid;\r\n if (($resultado->RecordCount() > 0) && !($yadebitado) && $recibidodespues) {\r\n //$var['existe_id'] = 'si';\r\n $idrecepcion_idb = $resultado->fields['idrecepcion'];\r\n if ($idrecepcion_idb != $idrecepcion) {\r\n $ctrl_repetido['msj_error'] = 'ID Prestacion ya existente en el sistema';\r\n $ctrl_repetido['id_error'] = 73;\r\n }\r\n if ($idrecepcion_idb == $idrecepcion) {\r\n $ctrl_repetido['msj_error'] = 'ID Prestacion ya existente en el archivo';\r\n $ctrl_repetido['id_error'] = 74;\r\n }\r\n $ctrl_repetido['debito'] = true;\r\n } else {\r\n if (esNomencladorVacuna($datosnomenclador)) {\r\n\r\n //Controles para los nomencladores que son vacuna\r\n $query = \"SELECT fc.id_comprobante, nro_exp\r\n FROM facturacion.prestacion fp\r\n INNER JOIN facturacion.comprobante fc ON (fc.id_comprobante = fp.id_comprobante)\r\n INNER JOIN facturacion.factura f ON (fc.id_factura=f.id_factura)\r\n WHERE id_prestacion<>$idprestacion\r\n\t\tAND fc.fecha_comprobante=to_date('$fechaprestacion','DD-MM-YYYY')\r\n AND fp.id_nomenclador='\" . $datosnomenclador[0] . \"'\r\n\t\tAND fc.clavebeneficiario='$beneficiario'\r\n AND fc.id_comprobante<>'$elcomprobante'\r\n AND fc.idvacuna='$idvacuna'\r\n\t\tAND fc.id_comprobante NOT IN(\r\n SELECT id_comprobante \r\n FROM facturacion.debito \r\n WHERE id_factura='$idfactura')\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $recibidodespues = $resultado->fields['id_comprobante'] < $idcomprobante;\r\n if (($resultado->RecordCount() > 0) && ($recibidodespues)) {\r\n $ctrl_repetido['msj_error'] = 'Prestacion liquidada en Expediente: ' . $resultado->fields['nro_exp'];\r\n $ctrl_repetido['id_error'] = 74;\r\n $ctrl_repetido['debito'] = true;\r\n }\r\n } else {\r\n\r\n //Controles para los nomencladores que no son de vacu\r\n $query = \"SELECT fc.id_comprobante, nro_exp\r\n FROM facturacion.prestacion fp\r\n INNER JOIN facturacion.comprobante fc ON (fc.id_comprobante = fp.id_comprobante)\r\n INNER JOIN facturacion.factura f ON (fc.id_factura=f.id_factura)\r\n WHERE id_prestacion<>$idprestacion\r\n\t\tAND fc.fecha_comprobante=to_date('$fechaprestacion','DD-MM-YYYY')\r\n\t\tAND fp.id_nomenclador='\" . $datosnomenclador[0] . \"'\r\n\t\tAND fc.clavebeneficiario='$beneficiario'\r\n AND fc.id_comprobante<>'$elcomprobante'\r\n\t\tAND fc.id_comprobante NOT IN(\r\n SELECT id_comprobante \r\n FROM facturacion.debito \r\n WHERE id_factura='$idfactura')\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $recibidodespues = $resultado->fields['id_comprobante'] < $idcomprobante;\r\n if (($resultado->RecordCount() > 0) && ($recibidodespues)) {\r\n $ctrl_repetido['msj_error'] = 'Prestacion liquidada en Expediente: ' . $resultado->fields['nro_exp'];\r\n $ctrl_repetido['id_error'] = 74;\r\n $ctrl_repetido['debito'] = true;\r\n }\r\n }\r\n }\r\n return $ctrl_repetido;\r\n}", "public function generar_codigo($basedatos,$cantidad) {\n\t\t\t$tabla = DB::table($basedatos)\n ->select(DB::raw('max(codigo) as codigo'))\n ->get();\n\n //conversion a string y suma uno para el siguiente id\n $idsuma = (int)$tabla[0]->codigo + 1;\n\n\t\t \t//concatenar con ceros\n\t\t \t$correlativocompleta = str_pad($idsuma, $cantidad, \"0\", STR_PAD_LEFT); \n\n\t \t\treturn $correlativocompleta;\n\n\t}", "public function getIdreferencia() {\n return $this->idreferencia;\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 calcularId(){\n\n $registros = PorcentajeBecaArancel::All();\n\n $max_valor = count($registros);\n\n\n if($max_valor > 0){\n\n $max_valor++;\n\n } else {\n\n $max_valor = 1;\n }\n\n return $max_valor;\n\n }", "function emetteur_account_id() {\n global $account_type;\n foreach ($account_type as $key => $accounts) {\n foreach ($accounts as $key => $account) {\n if ($account == test_input($_POST[\"compte_emetteur\"])) {\n return $accounts[\"id\"];\n }\n }\n }\n }", "function formulaires_editer_encart_identifier_dist($id_encart='new', $retour='', $lier_trad=0, $config_fonc='', $row=array(), $hidden=''){\n\treturn serialize(array(intval($id_encart)));\n}", "public function getIdTarif()\n {\n return $this->idTarif;\n }", "public function getIdsucursal()\n {\n\n return $this->idsucursal;\n }", "function get_convocatoria_actual($tipo){\n $actual=date('Y-m-d');\n $anio_actual= date(\"Y\", strtotime($actual));\n switch ($tipo) {\n case 3:$id_tipo=1;//3 es reco\n break;\n default:$id_tipo=2;\n break;\n }\n $sql=\"select id_conv from convocatoria_proyectos \"\n //. \" where anio=$anio_actual and id_tipo=$id_tipo\";\n .\" where fec_inicio<='\".$actual.\"' and fec_fin >='\".$actual.\"'\"\n . \" and id_tipo=$id_tipo\";\n $resul=toba::db('designa')->consultar($sql);\n if(count($resul)>0){\n return $resul[0]['id_conv'];\n }else \n return null;\n }", "function buatID($tabel, $inisial){ \n $struktur = mysql_query(\"select * from $tabel\") or die(\"query tidak dapat dijalankan!\"); \n $field = mysql_field_name($struktur,0); \n $panjang = mysql_field_len($struktur,0); \n $row = mysql_num_rows($struktur); \n \n $panjanginisial = strlen($inisial); \n $awal = $panjanginisial + 1; \n $bnyk = $panjang-$panjanginisial; \n \n if ($row >= 1){ \n $query = mysql_query(\"select max(substring($field,$awal,$bnyk)) as max from $tabel\") or die(\"query tidak dapat dijalankan!\"); \n $hasil = mysql_fetch_assoc($query); \n $angka = intval($hasil['max']); \n } \n else{ \n $angka = 0; \n } \n \n $angka++; \n $tmp= \"\"; \n for ($i=0; $i < ($panjang-$panjanginisial-strlen($angka)) ; $i++){ \n $tmp = $tmp.\"0\"; \n } \n //return hasil generate ID \n return strval($inisial.$tmp.$angka); \n }", "function buatID($tabel, $inisial){ \n $struktur = mysql_query(\"select * from $tabel\") or die(\"query tidak dapat dijalankan!\"); \n $field = mysql_field_name($struktur,0); \n $panjang = mysql_field_len($struktur,0); \n $row = mysql_num_rows($struktur); \n \n $panjanginisial = strlen($inisial); \n $awal = $panjanginisial + 1; \n $bnyk = $panjang-$panjanginisial; \n \n if ($row >= 1){ \n $query = mysql_query(\"select max(substring($field,$awal,$bnyk)) as max from $tabel\") or die(\"query tidak dapat dijalankan!\"); \n $hasil = mysql_fetch_assoc($query); \n $angka = intval($hasil['max']); \n } \n else{ \n $angka = 0; \n } \n \n $angka++; \n $tmp= \"\"; \n for ($i=0; $i < ($panjang-$panjanginisial-strlen($angka)) ; $i++){ \n $tmp = $tmp.\"0\"; \n } \n //return hasil generate ID \n return strval($inisial.$tmp.$angka); \n }", "public function id_nilai_alternatif()\n {\n $q = $this->db->query(\"select MAX(RIGHT(id_nilai_alternatif,5)) as id_max from tbl_nilai_alternatif\");\n $id = \"\";\n if ($q->num_rows() > 0) {\n foreach ($q->result() as $k) {\n $tmp = ((int) $k->id_max) + 1;\n $id = sprintf(\"%05s\", $tmp);\n }\n } else {\n $id = \"00001\";\n }\n return \"NAL-\" . $id;\n }", "public function getIdunidadbase()\n {\n return $this->idunidadbase;\n }", "public function obttacce($id_biopsia){\n $stmt=$this->objPDO->prepare(\"SELECT num_tacos from sisanatom.detalle_bioce where id_biopsia=:id_biopsia\");\n $stmt->execute(array('id_biopsia'=>$id_biopsia));\n $tacospq=$stmt->fetchAll(PDO::FETCH_OBJ);\n return $tacospq[0]->num_tacos;\n }", "public function getId_produit()\n {\n return $this->id_produit;\n }", "public function getIdTipobeneficio()\n {\n return $this->id_tipobeneficio;\n }", "function getLastMvtCpt($id_cpte) {\n global $dbHandler, $global_id_agence;\n $db = $dbHandler->openConnection();\n $sql = \"SELECT MAX(date_comptable) FROM ad_mouvement m,ad_ecriture e WHERE e.id_ag = m.id_ag AND m.id_ag = $global_id_agence AND cpte_interne_cli='$id_cpte' AND m.id_ecriture=e.id_ecriture\";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $dbHandler->closeConnection(true);\n $retour = $result->fetchrow();\n return $retour[0];\n}", "function add_traduccion_temp($id_palabra, $id_idioma, $traduccion,$explicacion,$pronunciacion,$id_colaborador,$estado) {\n\t\t$timestamp=time();\n\t\t$fecha=date(\"Y-m-d H:i:s\",$timestamp);\n\t\t$fecha_modificacion=date(\"Y-m-d H:i:s\",$timestamp);\n\t\t\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$ssql = \"INSERT INTO traducciones_temp (id_palabra, traduccion, explicacion,pronunciacion, id_idioma, id_colaborador, estado, fecha_alta, fecha_modificacion) \n\t\t\tVALUES ('$id_palabra', '$traduccion', '$explicacion', '$pronunciacion','$id_idioma', '$id_colaborador', '$estado', '$fecha', '$fecha')\";\n\t\t\t\n\t\t\t//lo inserto en la base de datos\n\t\t\tif (mysql_query($ssql,$connection)){\n\t\t\t\t//recibo el último id\n\t\t\t\t$ultimo_id = mysql_insert_id($connection);\n\t\t\t\tmysql_close($connection);\n\t\t\t\treturn $ultimo_id;\n\t\t\t}else{\n\t\t\t\tmysql_close($connection);\n\t\t\t\treturn false;\n\t\t\t} \t\t\n\t}", "public function getIdmontacargas()\n {\n\n return $this->idmontacargas;\n }", "function getSituationCoffr($id_ag, $date) {\n global $dbHandler, $global_id_agence, $global_multidevise;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT m.devise, m.sens, m.montant, cpte_cpta_coffre from ad_agc a, ad_mouvement m \";\n if ($global_multidevise)\n \t$sql .= \" where m.compte = a.cpte_cpta_coffre||'.'||m.devise and date(m.date_valeur) = '$date' and m.id_ag = a.id_ag and a.id_ag = $id_ag \";\n else\n \t$sql .= \" where m.compte = a.cpte_cpta_coffre and date(m.date_valeur) = '$date' and m.id_ag = a.id_ag and a.id_ag = $id_ag \";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $newSitCoff = array ();\n while ($tmprow = $result->fetchrow()){\n \t if ($global_multidevise)\n\t\t\t$compte = $tmprow[3].\".\".$tmprow[0];\n\t\telse\n\t\t\t$compte = $tmprow[3];\n if($tmprow[1] == 'c')\n \t$newSitCoff[$compte][\"montant_cred\"] += $tmprow[2];\n else\n \t$newSitCoff[$compte][\"montant_deb\"] += $tmprow[2];\n\t\t$newSitCoff[$compte][\"compte\"] = $compte;\n $newSitCoff[$compte][\"devise\"] = $tmprow[0];\n }\n\t foreach($newSitCoff as $key_compte => $value){\n\t\t//récupérer le solde du coffre-fort dans chaque devise à la date donnée\n\n\t\t//récupérer le montant inscrit au crédit depuis la date donnée à la date d'aujourd'hui\n\t\t$sql = \"SELECT sum(m.montant) from ad_mouvement m where sens= 'c' and compte = '$key_compte' and date(m.date_valeur) > '$date' and date(m.date_valeur) <= date(now())\";\n\t\t$result1 = $db->query($sql);\n\t if (DB :: isError($result1)) {\n\t $dbHandler->closeConnection(false);\n\t signalErreur(__FILE__, __LINE__, __FUNCTION__, $result1->getMessage());\n\t }\n\t $row = $result1->fetchrow();\n \t$mnt_credit = $row[0];\n \t//récupérer le montant inscrit au débit depuis la date donnée à la date d'aujourd'hui\n\t\t$sql = \"SELECT sum(m.montant) from ad_mouvement m where sens= 'd' and compte = '$key_compte' and date(m.date_valeur) > '$date' and date(m.date_valeur) <= date(now())\";\n\t\t$result1 = $db->query($sql);\n\t if (DB :: isError($result1)) {\n\t $dbHandler->closeConnection(false);\n\t signalErreur(__FILE__, __LINE__, __FUNCTION__, $result1->getMessage());\n\t }\n\t $row = $result1->fetchrow();\n \t$mnt_debit = $row[0];\n\n \t//récupérer le solde du compte\n\t\t$sql = \"SELECT solde from ad_cpt_comptable m where num_cpte_comptable= '$key_compte'\";\n\t\t$result1 = $db->query($sql);\n\t if (DB :: isError($result1)) {\n\t $dbHandler->closeConnection(false);\n\t signalErreur(__FILE__, __LINE__, __FUNCTION__, $result1->getMessage());\n\t }\n\t $row = $result1->fetchrow();\n \t$solde = (-1)*$row[0];\n\t\t$solde = $solde - $mnt_debit;\n\t\t$solde = $solde + $mnt_credit;\n $newSitCoff[$key_compte][\"solde\"] = $solde;\n }\n\t$dbHandler->closeConnection(true);\n return $newSitCoff;\n\n}", "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 get_reg_id($character, $id_type) {\n\n $fields = array(\"*\");\n $whereArr = array(\"id_type\" => $id_type);\n $id_number = $this->db_model->getData($fields, 'id_numbers_m_tbl', $whereArr);\n\n $int = intval(preg_replace('/[^0-9]+/', '', $id_number[0]->id_number), 10);\n $id = \"$character\" . ($int + 1);\n return $id;\n\n}", "public function punti_utilizzari($conto_id, $prodotto_id = 222) {\n $sql = \"\n SELECT\n `conti`.`conto_id`,\n `conti`.`hotel_id`,\n `conti`.`foglio_id`,\n `conti`.`in_conto`,\n `conti`.`in_conto_time`,\n `conti`.`out_preno`,\n `conti`.`out_conto`,\n `conti`.`preno_id`,\n `conti`.`camera_id`,\n `conti`.`numero_camera`,\n `conti`.`trattamento_sog`,\n `conti`.`tipo_camera`,\n `conti`.`tipologia_id`,\n `conti`.`prezzo`,\n `conti`.`nome_cliente`,\n `conti`.`cognome_cliente`,\n `conti`.`preno_agenzia`,\n `conti`.`mercato`,\n `conti`.`conti_stato_camere`,\n `adebiti`.`adebito_id`,\n `adebiti`.`prodotto_id`,\n `adebiti`.`descrizione`,\n `adebiti`.`prezzo`,\n `adebiti`.`quantita`,\n `refer_clienti`.`clienti_id`,\n `refer_clienti`.`hotel_id`,\n `refer_clienti`.`ps_valore`,\n `refer_clienti`.`ref_clinti_data_record`,\n `refer_clienti`.`refer_clienti_utente_id`\n FROM\n `conti`\n INNER JOIN .`adebiti`\n ON `conti`.`conto_id` = .`adebiti`.`conto_id`\n INNER JOIN .`refer_clienti`\n ON `conti`.`conto_id` = .`refer_clienti`.`conto_id`\n WHERE\n `refer_clienti`.`clienti_id` = $clienti_id\n AND `adebiti`.`prodotto_id` = '$prodotto_id'\n \";\n $query = $this->db->query($sql);\n $return = $query->result();\n return $return;\n }", "public function getLesIdFrais(){\r\n\t\t$req = \"select fraisforfait.id as idfrais from fraisforfait order by fraisforfait.id\";\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$lesLignes = $res->fetchAll();\r\n\t\treturn $lesLignes;\r\n\t}", "public function getIdentificacao();", "function beneficiaire_account_id() {\n global $account_type;\n foreach ($account_type as $key => $accounts) {\n foreach ($accounts as $key => $account) {\n if ($account == test_input($_POST[\"compte_beneficiaire\"])) {\n return $accounts[\"id\"];\n }\n }\n }\n }", "public function getIdpersona()\n {\n return $this->idpersona;\n }", "public function getNit_empresa(){\n return $this->nit_empresa;\n }", "public function citas_tatalCitas(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idAgendaCita) as cantidadCitas from tb_agendaCitas \";\n\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['cantidadCitas'];\t\t\t\n\t\t\t\n\t\t\t\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 getidEstudiante()\n {\n return $this->id_est;\n }", "public function get_compte(){retrun($id_local_compte); }", "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 getIdNiche()\n {\n return $this->idNiche;\n }", "public static function mdlRecuperarIDVehiculo($tabla, $Matricula){\n $stmt = Conexion::conectar()->prepare(\"SELECT id_v FROM $tabla WHERE Matricula = '$Matricula'\");\n $stmt->execute();\n $respuesta = $stmt->fetch();\n //echo 'Respuesta: ',$respuesta[0];\n if ($respuesta!=null)\n return $respuesta[0];\n return null;\n // Array = {115}\n //Respuesta= 115\n }", "public function getIdUbicacion()\n {\n return $this->idUbicacion;\n }" ]
[ "0.63185626", "0.6189492", "0.6114586", "0.6114586", "0.61027193", "0.60682213", "0.6022981", "0.601698", "0.6016647", "0.6016647", "0.5983273", "0.5980345", "0.59797245", "0.59534144", "0.59474593", "0.59263945", "0.59200686", "0.5853078", "0.5848615", "0.5802443", "0.5786161", "0.5775896", "0.5760767", "0.57556915", "0.57482505", "0.57427424", "0.57345426", "0.57234824", "0.57161915", "0.5714869", "0.5714869", "0.5711663", "0.57094836", "0.57065713", "0.56920034", "0.5676978", "0.5673898", "0.5668912", "0.56677926", "0.5659205", "0.56337786", "0.563029", "0.56296563", "0.5619975", "0.5618458", "0.5606429", "0.5591162", "0.5584896", "0.55814314", "0.5574372", "0.55732065", "0.55682874", "0.5567839", "0.5567057", "0.5560427", "0.5558735", "0.5553637", "0.5549295", "0.55420506", "0.55354136", "0.55310374", "0.55257475", "0.55214065", "0.5517736", "0.5513123", "0.5511323", "0.5498269", "0.5496907", "0.549041", "0.548011", "0.5474785", "0.54737216", "0.5469618", "0.5467694", "0.5467694", "0.5464627", "0.54645807", "0.54628986", "0.54604644", "0.54593074", "0.54525673", "0.54522187", "0.5449441", "0.54489076", "0.54462856", "0.5445089", "0.544095", "0.54333335", "0.5432377", "0.5431673", "0.5429456", "0.54279065", "0.542236", "0.5419786", "0.5418692", "0.5418655", "0.5413557", "0.5406691", "0.5402716", "0.539812" ]
0.7821603
0
/ Cette PS bloque le compte $id_cpte
Этот PS блокирует счет $id_cpte
function blocageCompteInconditionnel ($id_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = "SELECT etat_cpte FROM ad_cpt WHERE id_ag = $global_id_agence AND id_cpte = $id_cpte;"; $result=$db->query($sql); if (DB::isError($result)){ $dbHandler->closeConnection(false); signalErreur(__FILE__,__LINE__,__FUNCTION__); } $tmprow = $result->fetchrow(); $etat = $tmprow[0]; if ($etat == 2){ // Le compte est fermé $dbHandler->closeConnection(false); signalErreur(__FILE__,__LINE__,__FUNCTION__); // "Impossible de bloquer le compte $id_cpte qui est fermé" } //on change l'état du compte à  bloqué $sql = "UPDATE ad_cpt SET etat_cpte = 3 WHERE id_ag=$global_id_agence AND id_cpte = $id_cpte;"; $result=$db->query($sql); if (DB::isError($result)){ $dbHandler->closeConnection(false); signalErreur(__FILE__,__LINE__,__FUNCTION__); } $dbHandler->closeConnection(true); return new ErrorObj(NO_ERR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlockForEdit($id)\n {\t\n \t$DB\t\t\t= Zend_Registry::get('front_db');\n\t\t$this->view->assign('form_action', '/skiner/block/edit/id/'.$id);\n\t\t//$sql\t= \"select * from `wbs_skin_block` where \".Application_Model_Pubcon::get(1000). \" and `id`='\".$id.\"'\";\n\t\t$sql\t= \"SELECT * FROM `wbs_skin_block` AS bc LEFT JOIN `wbs_skin_block_meta` AS bm ON `bm`.`bm_bc_id`=`bc`.`id` WHERE \"\n\t\t\t\t. Application_Model_Pubcon::get(1000). \" AND `bc`.`id`=\".addslashes($id);\n\t\t$result\t= $DB->fetchAll($sql);\n\t\tif (count($result)==1)\n\t\t{\n\t\t\t$this->view->assign('data', $this->arrayParams($result[0]) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg[]= $this->translate->_('j');\n\t\t\t$this->_helper->FlashMessenger($msg);\n\t\t\t$this->_redirect('/skiner/block/frmlist#fragment-4');\n\t\t}\n\t\t\t\n }", "function iptsr_internal_deb($debata_id) {\n\t$rocnik = cpdb_fetch_one_value(\"select rocnik from debata left join soutez using (soutez_ID) where debata_ID = :debata_id\", array(\":debata_id\"=>$debata_id));\n\t\n\t$status = true;\n\tcpdb_transaction();\n\t\n\t// vycistit\n\t$status &= cpdb_exec(\"delete from clovek_debata_ibody where debata_ID = :debata_id\", array(\":debata_id\"=>$debata_id));\n\t\n\t// --- debateri\n\t// (podle poharovych bodu)\n\t$status &= cpdb_exec(\"insert into clovek_debata_ibody (clovek_ID, debata_ID, rocnik, role, ibody) select clovek_debata.clovek_ID, clovek_debata.debata_ID, :rocnik, 'debater', debata_tym.body * 0.1 from clovek_debata left join debata_tym on clovek_debata.debata_ID = debata_tym.debata_ID and substring(clovek_debata.role,1,1) = elt(debata_tym.pozice + 1,'n','a') where clovek_debata.debata_ID = :debata_id and find_in_set(clovek_debata.role,'a1,a2,a3,n1,n2,n3')\", array(\":debata_id\"=>$debata_id, \":rocnik\"=>$rocnik));\n\t\t\n\t// --- rozhodci\n\t$status &= cpdb_exec(\"insert into clovek_debata_ibody (clovek_ID, debata_ID, rocnik, role, ibody) select clovek_ID, debata_ID, :rocnik, 'rozhodci', 1 from clovek_debata where debata_ID = :debata_id and role = 'r'\", array(\":debata_id\"=>$debata_id, \":rocnik\"=>$rocnik));\n\t\n\t// --- treneri\n\t$treneri_dostanou = array();\n\t\n\tif (cpdb_fetch_all(\"select clovek_ID, ibody from clovek_debata_ibody where debata_ID = :debata_id and role = 'debater'\", array(\":debata_id\"=>$debata_id), $debateri)) {\n\t\tforeach ($debateri as $debater) {\n\t\t\t$pocet_treneru = cpdb_fetch_all(\"\n\t\t\t\tselect\n\t\t\t\t\tdk.clovek_ID as clovek_ID\n\t\t\t\tfrom\n\t\t\t\t\tclovek d, clovek_klub dk\n\t\t\t\twhere\n\t\t\t\t\td.clovek_ID = :clovek_ID\n\t\t\t\t\tand d.klub_ID = dk.klub_ID\n\t\t\t\t\tand dk.role = 't'\n\t\t\t\t\tand dk.rocnik = :rocnik\n\t\t\t\t\", array(\":clovek_ID\"=>$debater[\"clovek_ID\"], \":rocnik\"=>$rocnik), $treneri);\n\t\t\t\n\t\t\tforeach ($treneri as $trener) {\n\t\t\t\t$treneri_dostanou[$trener[\"clovek_ID\"]] += 0.1 * $debater[\"ibody\"] / $pocet_treneru;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tforeach ($treneri_dostanou as $trener_cid => $trener_ib) {\n\t\t$status &= cpdb_exec(\"insert into clovek_debata_ibody (clovek_ID, debata_ID, rocnik, role, ibody) values (:clovek_id, :debata_id, :rocnik, 'trener', :ibody)\", array(\":clovek_id\"=>$trener_cid, \":debata_id\"=>$debata_id, \":rocnik\"=>$rocnik, \":ibody\"=>$trener_ib));\n\t}\n\t\n\t// --- organizatori\n\t$dostanou = 0.15; // kolik IB je z debaty\n\t$zasluhy_primych = 1; // defaultni zasluhy u primych ogranizatoru\n\t$celkem_zasluhy = 0;\n\t$zasluhy = array();\n\t\n\t// primi\n\tcpdb_fetch_all(\n\t\t\"select clovek_ID from clovek_debata where clovek_debata.role = 'o' and debata_ID = :debata_id\", array(\":debata_id\"=>$debata_id), $res_primi);\n\t\n\tforeach ($res_primi as $org) {\n\t\t$celkem_zasluhy += $zasluhy_primych;\n\t\t$zasluhy[$org[\"clovek_ID\"]] += $zasluhy_primych;\n\t}\n\t\n\t// neprimi\n\tcpdb_fetch_all(\"\n\t\tselect\n\t\t\tclovek_turnaj.clovek_ID,\n\t\t\tclovek_turnaj.mocnost\n\t\tfrom\n\t\t\tdebata, clovek_turnaj\n\t\twhere\n\t\t\tdebata.debata_ID = :debata_id\n\t\t\tand clovek_turnaj.turnaj_ID = debata.turnaj_ID\n\t\t\tand clovek_turnaj.role = 'o'\n\t\", array(\":debata_id\"=>$debata_id), $res_neprimi);\n\t\n\tforeach($res_neprimi as $org) {\n\t\t$celkem_zasluhy += $org[\"mocnost\"];\n\t\t$zasluhy[$org[\"clovek_ID\"]] += $org[\"mocnost\"];\n\t}\n\t\n\tforeach($zasluhy as $org_cid => $org_zasluhy) {\n\t\t$status &= cpdb_exec(\n\t\t\t\"insert into clovek_debata_ibody (clovek_ID, debata_ID, rocnik, role, ibody) values (:clovek_id, :debata_id, :rocnik, 'organizator', :ibody)\",\n\t\t\tarray(\n\t\t\t\t\":clovek_id\" => $org_cid,\n\t\t\t\t\":debata_id\" => $debata_id,\n\t\t\t\t\":rocnik\" => $rocnik,\n\t\t\t\t\":ibody\" => $dostanou * $org_zasluhy / $celkem_zasluhy\n\t\t\t)\n\t\t);\n\t}\n\t\n\t// zaver\n\tif ($status) {\n\t\tcpdb_commit();\n\t} else {\n\t\tcpdb_rollback();\n\t}\n}", "public function getbateauCordonner($id)\r\n {\r\n $idbateau = $this->_bdd->query(\"SELECT gps.`id`, gps.id_bateau, gps.latitude, gps.longitude, bateau.nom FROM gps, bateau WHERE gps.id_bateau = bateau.id AND gps.id = '$id'\");\r\n $data = $idbateau->fetch();\r\n $this->_idBateau = $data[\"id\"];\r\n $this->_nomBateau = $data[\"nom\"];\r\n $this->_latitude = $data[\"latitude\"];\r\n $this->_longitude = $data[\"longitude\"];\r\n $this->_id = $data['id'];\r\n }", "public function bloquear($id)\n {\n $unidad = Propiedad::find($id);\n $unidad->editable = 0;\n $unidad->save();\n return redirect('unidad/'.$unidad->id_des.'/edit');\n\n\n }", "public function action_reportePlantelCE($id) {\n $this->renderPartial('_reportePlantelCE', array('model' => $this->loadModel($id)));\n }", "public function setIdcotizacion($idcotizacion){\n $this->idcotizacion = $idcotizacion;\n }", "function aff_comm_post($id_post) {\n\n\t\t$req = $GLOBALS['bdd']->prepare('SELECT b.*, d.*\n\t\t\t\t\t\t\t\tFROM badin b\n\t\t\t\t\t\t\t\tINNER JOIN dactyle d\n\t\t\t\t\t\t\t\tON b.bigarade = d.dazibao\n\t\t\t\t\t\t\t\tWHERE b.balsamine = ? \n\t\t\t\t\t\t\t\tAND b.bouquetin = 2\n\t\t\t\t\t\t\t\tORDER BY b.brimade DESC');\n\t\t$req->execute(array($_POST['post_id']));\n\t\t\t\t\t\t\t\t\t\n\t\twhile ($donnees = $req->fetch())\n\t\t{\n\t\t?>\n\t\t\t<div id=\"<?php echo $donnees['baliverne'];?>\" >\n\t\t\t\t<div class=\"zone_comment\" id=\"zone_comment\">\n\t\t\t\t\t<div class=\"mini_profil_comment\">\n\t\t\t\t\t\t<img class=\"mini_profil_img\" src=\"/ressources/images/profil/<?php echo $donnees['dazibao'];?>/profil_<?php echo $donnees['dessication'];?>\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"auteur_et_date_comment\" >\n\t\t\t\t\t\t<a class=\"lien_nom_comment\" href=\"/<?php echo $donnees['diatribe'].'/'.$donnees['decapode'].'-'.$donnees['dazibao'].'/';?>\">\n\t\t\t\t\t\t\t<?php echo $donnees['decapode'];?>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t\t<div class=\"date_post\" >\n\t\t\t\t\t\t\tLe <?php echo $donnees['brimade'];?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"contenu_comment\">\n\t\t\t\t\t\t<?php echo $donnees['bryophite']; ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<?php\n\t\t}\n\t\t$req->closeCursor();\n\n\t}", "public function cloture()\n {\n // On prépare la modification pour enregistrer la fermeture de la mission\n $sql = 'UPDATE `mission`\n SET `mission_statut` = 0\n WHERE `mission_id` = :mission';\n $query = $this->_link->prepare($sql);\n $query->bindParam(':mission', $this->_data['mission_id'], PDO::PARAM_INT);\n\n // On effectue la modification\n $query->execute();\n }", "function Cuerpo($acceso,$desde,$hasta,$id_f)\n\t{\n\t\t\n\t\t$tipo=utf8_decode($tipo);\n\t\t$this->SetFont('Arial','B',9);\n\t\t\n\t\t$acceso1=conexion();\n\t\t\n\t\t\n\t\t//$acceso->objeto->ejecutarSql(\"SELECT *FROM parametros where id_param='2'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$por_iva=trim($row['valor_param']);\n\t\t}\n\t\t\n\t\t$this->SetDrawColor(0,0,0);\n\t\t$this->SetLineWidth(.2);\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetTextColor(0);\n\t\t\n\t$w=array(20,20,25);\t\n\t$col=5;\n\t$right=10;\n\t$alto=49;\t\n\t\t$this->SetX($right);\n\t\t\t\n\t\t$this->SetX($right);\n\t\t\t$this->SetFont('Arial','BIU',8);\n\t\t\t$this->Cell($right,6,strtoupper(_('ingresos cobrados por franquicia')),\"0\",0,\"L\");\n\t\t\t\n\t\t\t\n\t\t\t$this->SetX($right)\t;\n\t\t\t\n\t\t\t\t$this->Ln(12);\n\t\t\t\t$this->SetX($right);\n\t\t\t\t$this->SetFont('Arial','B',7);\n\t\t\t\t$this->Cell($w[0],7,\"\",\"LRB\",0,\"L\");\n\t\t\t\t$der=15;\n\t\t\t\t$this->RotatedText($der, $alto, \"FECHA\", 25);\n\t\t\t\t$der=$der+$w[1];\n\t\t\t\t$dato=lectura($acceso,\"SELECT *FROM franquicia order by nombre_franq\");\n\t\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t\t$nombre_franq=trim($dato[$j][\"nombre_franq\"]);\n\t\t\t\t\t$this->RotatedText($der, $alto, $nombre_franq, 25);\n\t\t\t\t\t$der=$der+$w[1];\n\t\t\t\t\t$this->Cell($w[1],7,\"\",\"LRB\",0,\"C\");\n\t\t\t\t}\n\t\t\t\t$der=$der+5;\n\t\t\t\t$this->RotatedText($der, $alto, \"TOTAL\", 25);\n\t\t\t\t$this->Cell($w[2],7,\"\".\" \",\"LRB\",0,\"C\");\n\t\t\n\t\t\t$this->Ln(7);\n\t\t\n\t\t\t$sum_total=array();\n\t\t\t$sum_t=0;\n\twhile(comparaFecha($desde,$hasta)<=0){\n\t\t//ECHO \"SELECT sum(monto_pago) as monto FROM pagos where fecha_pago='$desde' \";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT monto_pago as monto FROM pagos where fecha_pago='$desde' and pagos.id_caja_cob<>'EA00000001' limit 1 \");\n\t\t$row=row($acceso);\n\t\t$monto=trim($row[\"monto\"])+0;\n\t\t$cant=trim($row[\"cant\"])+0;\n\t\t\n\t\t\n\t if($monto>0){\n\t\t$wi=0;\n\t\t$j=0;\n\t\t$suma=0;\n\t\t$suma_m=0;\n\t\t$this->SetX(10);\n\t\t//list($ano,$mes,$dia)=explode(\"-\",$desde);\n\t\t$fecha=$desde;\n\t\t$dia=formatofecha($desde);\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->Cell($w[$wi],$col,$dia,\"LR\",0,\"C\",$fill);\n\t\t$wi++;\n\t\t\n\t\t\t\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$sum_t=0;\n\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t$id_franq=trim($dato[$j][\"id_franq\"]);\n\t\t\t\t\n\t\t\t\t$acceso->objeto->ejecutarSql(\"SELECT sum(monto_pago) as monto_pago FROM pagos ,caja_cobrador,caja where pagos.id_caja_cob=caja_cobrador.id_caja_cob and caja_cobrador.id_caja=caja.id_caja and fecha_pago='$fecha' and status_pago='PAGADO' and id_franq='$id_franq' and pagos.id_caja_cob<>'EA00000001' \");\n\t\t\t\t$row=row($acceso);\n\t\t\t\t$monto_pago=trim($row[\"monto_pago\"])+0;\n\t\t\t\t$sum_total[$j]+=$monto_pago;\n\t\t\t\t$sum_t+=$monto_pago;\n\t\t\t\t$this->Cell($w[$wi],$col,number_format($monto_pago+0, 2, ',', '.'),\"LR\",0,\"R\",$fill);\n\t\t\t\t\n\t\t\t}\n\t\t\t\t$sum_total[$j]+=$sum_t;\n\t\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\t$this->Cell($w[2],$col,number_format($sum_t+0, 2, ',', '.'),\"LR\",0,\"R\",$fill);\n\t\t\t\t$fill=!$fill;\n\t\t\t\n\t\t$this->Ln();\n\t\t\t\n\t\t}//if monto\t\n\t\t$desde=sumadia($desde);\n\t\t\t\n\t}\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t$this->SetX($right)\t;\n\t\t\t$this->Cell($w[0],7,\"TOTAL\",\"1\",0,\"R\",$fill);\n\t\t\t$sum_to=0;\n\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t$id_franq=trim($dato[$j][\"id_franq\"]);\n\t\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\t//$sum_to+=$sum_total[$j];\n\t\t\t\t$this->Cell($w[1],7,number_format($sum_total[$j]+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->SetFont('Arial','B',10);\n\t\t\t$this->Cell($w[2],7,number_format($sum_total[$j]+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\n\t}", "public function doComplaint($id)\n {\n return $this->where([\n \"id_pengaduan\" => $id,\n \"tipe\" => $this->type\n ])->update([\n \"dikerjakan_teknisi\" => 1\n ]);\n }", "function print_cbasis($id,$ID)\n//==========================================================================\n// Function : print_basis\n//--------------------------------------------------------------------------\n// Beschreibun : erezugt eine Tabelle mit den DAten der Char_basis\n// als Anzeige modul ohne Eingabe wie eine KOPf_Zeile\n//\n// Dateiname : char_basis (local)\n//\n//\n// Argumente : $ID = charakter_id\n//\n// Returns : --\n//==========================================================================\n{\n\tglobal $DB_HOST, $DB_USER, $DB_PASS, $DB_NAME;\n\tglobal $PHP_SELF;\n\tglobal $nsc_char;\n\n\t$TABLE = 'char_basis';\n\n\t$db = mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die(\"Fehler beim verbinden!\");\n\n\tmysql_select_db($DB_NAME);\n\n\t$q = \"select * from $TABLE where id=\\\"$id\\\"\";\n\t$result = mysql_query($q) or die(\"Query Fehler...\");\n\tmysql_close($db);\n\n\t$row = mysql_fetch_row($result);\n\t//Liste der Datensätze\n\tif ($row[9]<=' ') {\n\t\t$row[9] = 'feminist.gif';\n\t};\n\tif ($row[8]<=' ') {\n\t\t$row[8] = 'default.gif';\n\t};\n\n\tif ($row[7]=='J')\n\t{\n\t\t$isnsc='true';\n\t\t$row[9] = \"ork2.gif\";\n\t} else\n\t{\n\t\t$isnsc='false';\n\t};\n\n\t$style = $GLOBALS[\"style_header_1\"];\n\techo \" <div $style >\\n\";\n\t\n\techo \"<table border=1 width=950 BGCOLOR=\\\"\\\" bordercolor=\\\"silver\\\">\\n\";\n\techo \"<tr>\";\n\techo \"<td rowspan=2 width=90 >\";\n\techo \"\\t<IMG SRC=\\\"chars/thumb/$row[9]\\\" BORDER=\\\"0\\\" HEIGHT=\\\"100\\\" ALT=\\\"Bild des Charakters\\\" title=\\\"Bild $row[9]\\\" HSPACE=\\\"0\\\" VSPACE=\\\"0\\\" ALIGN=ABSMIDDLE>\\n\";\n\techo \"</td>\";\n\techo \"<td width=150 style=\\\"font-size:75%\\\"> \";\n\techo \"<b>Charakterame</b>\";\n\techo \"</td>\";\n\techo \"<td width=150 style=\\\"font-size:75%\\\">\";\n\techo \"<b>Beruf</b>\";\n\techo \"</td>\";\n\techo \"<td width=150 style=\\\"font-size:75%\\\">\";\n\techo \"<b>Rasse</b>\";\n\techo \"</td>\";\n\techo \"<td width=150 style=\\\"font-size:75%\\\">\";\n\techo \"<b>Gilde</b>\";\n\techo \"</td>\";\n\techo \"<td rowspan=2 width=90>\";\n\techo \"\\t<IMG SRC=\\\"chars/thumb/$row[8]\\\" BORDER=\\\"0\\\" HEIGHT=\\\"100\\\" ALT=\\\"Wappen des Charakters\\\" title=\\\"Wappen $row[8]\\\" HSPACE=\\\"0\\\" VSPACE=\\\"0\\\" ALIGN=ABSMIDDLE>\\n\";\n\techo \"</td>\";\n// \techo \"<td >\";\n// \techo \"</td>\";\n\techo \"</tr>\";\n\n\techo \"<tr>\";\n\techo \"<td style=\\\"font-size:105%\\\">\";\n\techo \"$row[2]\";\n\techo \"</td>\";\n\techo \"<td style=\\\"font-size:105%\\\" >\";\n\techo \"$row[3]\";\n\techo \"</td>\";\n\techo \"<td style=\\\"font-size:105%\\\" >\";\n\techo \"$row[4]\";\n\techo \"</td>\";\n\techo \"<td style=\\\"font-size:105%\\\" >\";\n\techo \"$row[5]<BR>\";\n\tif ($row[7]=='J')\n\t{\n\t\techo \"<B>NSC\";\n\t};\n\techo \"</td>\";\n\techo \"</tr>\";\n\techo \"</table>\";\n\techo \"</div>\\n\";\n\t\n\treturn $isnsc;\n}", "public function etatModifierUn($id,$etat)\n\t{\n\t\tGestion::modifier($etat);// votre code ici\n\t}", "function Cuerpo($acceso,$id_contrato)\n\t{\n\t\t//echo \"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT tarifa_ser FROM vista_tarifa where id_serv='BM00001'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$costo_inst=utf8_decode(trim($row['tarifa_ser']));\n\t\t}\n\t\t//echo \"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\");\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\");\n\t\tif($row=row($acceso)){\n\t\t\n\t\t\t$observacion=utf8_decode(trim($row['observacion']));\n\t\t\t$costo_contrato=utf8_decode(trim($row['costo_contrato']));\n\t\t\t$tipo_cliente=utf8_decode(trim($row['tipo_cliente']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']));\n\t\t\t$apellidocli=utf8_decode(trim($row['apellido']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombre']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedula']));\n\t\t\t\n\t\t\t$fecha=formatofecha(trim($row[\"fecha_contrato\"]));\n\t\t\t$fecha_nac=formatofecha(trim($row[\"fecha_nac\"]));\n\t\t\t\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t\n\t\t\t$puntos=utf8_decode(trim($row['puntos']));\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t\n\t\t\t$deuda=number_format($deuda, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$telf_adic=utf8_decode(trim($row['telf_adic']));\n\t\t\t$email=utf8_decode(trim($row['email']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t$id_persona=utf8_decode(trim($row['id_persona']));\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre,apellido FROM persona where id_persona='$id_persona' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$vendedor=utf8_decode(trim($row['nombre'])).\" \".utf8_decode(trim($row['apellido']));\n\t\t\t\n\t\t}\n\n\t\tif($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}\n\t\t\n\t\t\n\t\t$this->Ln();\t\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetXY(10,35);\t\t\n\t\t$this->Cell(195,10,\"Abonado: $nro_contrato\",\"0\",0,\"R\");\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetXY(40,50);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA JURIDICA.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Razón Social.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Actividad.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Telef.\",\"1\",0,\"J\");\n\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Representante Legal\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cargo en la Empresa.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA NATURAL.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: $nombrecli $apellidocli\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: $fecha_nac\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ingreso Mensual: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Deposito en Garantia: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Tipo Vivienda: Propia ___ Alquilado ___ Canon Mensual: ____\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(65,6,\"Vencimiento del Contrato: / / \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DATOS DEL CONYUGUE.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Ingreso Mensual.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DOMICILIO DEL SERVICIO\",\"1\",0,\"C\");\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Apellidos: $apellidocli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Vendedor: $vendedor\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Suscriptor Nº: $nro_contrato\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha: $fecha\",\"1\",0,\"J\");*/\n\t\t\t\t\n\t\n\t\t/*if($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}*/\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I. $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Ocupación: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Grupo Familiar Nº:\",\"1\",0,\"J\");\n\t\tif($fecha_nac=='11/11/1111'){\n\t\t\t$fecha_nac='';\n\t\t}\n\t\t$this->Cell(65,6,\"Fecha de Nacimiento : $fecha_nac\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"DOMICILIO DE SERVICIO\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb o Sector: $nombre_sector\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Calle n°: \",\"1\",0,\"J\");\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Avenida o Calle: $nombre_calle\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Vereda : \",\"1\",0,\"J\");\t\t\n\t\t\n\t\tif($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Piso:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"N° de Casa o Apto: $numero_casa $apto\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Referencia o Zona: $nombre_zona N°Poste:$postel\",\"1\",0,\"J\");\n\t\t//$this->Cell(65,6,\"N° de Poste: $postel\",\"0\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ruta Cuenta: \",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Zona: $nombre_zona\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Manzana: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb.: $nombre_sector\",\"1\",0,\"J\");*/\n\t\t\n\t\t/*if($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Cell(97,6,\"Apto.: $apto\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cod. Postal: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t//Rect( float x, float y, float w, float h [, string style])\n\t\t$this->Cell(98,6,\"Vivienda Alquilada: SI ____ NO ____\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha de Vencimineto de Alquiler: \",\"1\",0,\"J\");\n\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Proveedor de Internet: \",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\");\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"SERVICIOS \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,6,\"CANT.\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"P. UNITARIO \",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"P. TOTAL \",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Instalación Principal\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"1\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Tomas Adicionales\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Cable Coaxial\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Conectores\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Espliter\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\" \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(60,5,\"TOTAL A PAGAR BS\",\"1\",0,\"R\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"FECHA ESTIMADA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"HORA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"TOTAL A\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"$costo_contrato\",\"LRT\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"DE INSTALACION\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"SUGERIDA\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"PAGAR Bs.\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"\",\"LRB\",0,\"C\");*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PROGRAMACIÓN\",\"1\",0,\"C\");\t\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Descripción.\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Descripción\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Familiar Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Extendido Bs \",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Adulto Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Comercial I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Monto de Contrato: Bs. $costo_inst\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Firma del Abonado:_________________________ \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Puntos Adicionales:_________________________\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Costo Punto Adicional:_______________________\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Tiempo de Instalación:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Total a Cancelar Mensual:\",\"1\",0,\"J\");\n\t\t$this->Cell(30,6,\"Total:\",\"1\",0,\"J\");\n\t\t$this->Cell(35,6,\"Contrato:\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Observaciones.\",\"1\",0,\"J\");\n\t\t\t\t\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"$observacion\",\"1\",0,\"J\");*/\n\t\t\n\t/*\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"RECIBO DE PAGO\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"*EL PRECIO INCLUYE EL IMPUESTO DE LEY\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Efectivo\",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"Cheque\",\"1\",0,\"C\");\n\t\t$this->Cell(65,6,\"Cargo Cta. Cte.\",\"1\",0,\"C\");\n\t\t$this->Cell(60,6,\"Tarjeta de Credito:\",\"1\",0,\"C\");\n\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Bs. $costo_contrato\",\"1\",0,\"L\");\n\t\t$this->Cell(35,6,\"Nº.\",\"1\",0,\"L\");\n\t\t$this->Cell(65,6,\"Cta. Nº Bco.\",\"1\",0,\"L\");\n\t\t$this->Cell(60,6,\"Nombre:\",\"1\",0,\"L\");\n\t\t\n\t\n\t\t\n\t\t\n\t\t$this->Ln(15);\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Nota:\",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"En caso de que el televisor no acepte la señal de todos los canales del cable, es posible que amerite la instalación de un amplificador de sintonia, el cual deberá ser adquirido por el SUSCRIPTOR\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Atención: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"La Empresa. No autoriza el retiro de televisores y/o VHS por el personal de la empresa. El SUSCRIPTOR conoce y acepta las condiciones del contrato del servicio que apacen al dorso del presente\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Aviso: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"Se le informa a todos los suscriptores y publico en general de acuerdo a la Ley Orgánica de Telecomunicaciones, en el Artículo 189, Literal 2: será penado con prisión de uno (1) a cuatro (4) años, el que utilizando equipos o tecnologías de cualquier tipo, proporciones a un tercero el acceso o disfrute en forma fraudulenta o indebida de un serbicio o facilidad de telecomunicaciones \",\"0\",\"J\");\n\t\t\n\t\t\n\t\t\n\t\t$this->Ln(10);\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,5,\"________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"_________________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"__________________________\",\"0\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Firma del Vendedor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Nombre y Apellido del Suscriptor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Firma del Suscriptor\",\"0\",0,\"C\");*/\n\t\t\n\t\t/*$this->Ln(4);\n\t\t\n\t\t$this->SetDrawColor(76,136,206);\n\t\t$this->SetLineWidth(.4);\n\t\t$this->SetFont('times','I',12);\n\t\t$this->SetX(10);\n\t\t$this->MultiCell(195,5,'Av. Perimetral, Centro Comercial Residencial Central. P.B. Local Nº 07. Cúa, Edo. Miranda.\ncuatv@hotmail.com / cuatv@cantv.net',\"TB\",\"C\");*/\n\t\t\n\t\t//$this->clausulas();\n\t\t\n\t\treturn $cad;\n\t}", "function Alterar($id) {\n if($this->GetClienteCPF($this->getCli_cpf())>0 && $this->getCli_cpf() <> $_SESSION['CLI']['cli_cpf']):\n echo '<div class=\"alert alert-danger\" id=\"erro_mostra\">Este CPF já esta cadastrado ';\n Sistema::VoltarPagina();\n echo '</div>';\n exit();\n endif;\n \n //se o email for diferente da sessao----------------------\n if($this->GetClienteEmail($this->getCli_email())>0 && $this->getCli_email() <> $_SESSION['CLI']['cli_email']):\n echo '<div class=\"alert alert-danger\" id=\"erro_mostra\">Este Email já esta cadastrado ';\n Sistema::VoltarPagina();\n echo '</div>';\n exit();\n endif;\n \n \n \n //Caso passou na verificação os dados serão gravados no banco-------------------------\n $query = \"UPDATE \".$this->prefix.\"clientes SET cli_nome=:cli_nome,\n cli_sobrenome=:cli_sobrenome,\n cli_data_nasc=:cli_data_nasc,\n cli_rg=:cli_rg,\n cli_cpf=:cli_cpf,\n cli_ddd=:cli_ddd,\n cli_fone=:cli_fone,\n cli_celular=:cli_celular,\n cli_endereco=:cli_endereco,\n cli_numero=:cli_numero,\n cli_bairro=:cli_bairro,\n cli_cidade=:cli_cidade,\n cli_uf=:cli_uf,\n cli_cep=:cli_cep,\n cli_email=:cli_email,\n cli_data_cad=:cli_data_cad,\n cli_hora_cad=:cli_hora_cad,\n cli_pass=:cli_senha \n WHERE cli_id =:cli_id\";\n \n \n $params = array(\n ':cli_nome'=> $this->getCli_nome(),\n ':cli_sobrenome'=> $this->getCli_sobrenome(),\n ':cli_data_nasc'=> $this->getCli_data_nasc(),\n ':cli_rg'=> $this->getCli_rg(),\n ':cli_cpf'=> $this->getCli_cpf(),\n ':cli_ddd'=> $this->getCli_ddd(),\n ':cli_fone'=> $this->getCli_fone(),\n ':cli_celular'=> $this->getCli_celular(),\n ':cli_endereco'=> $this->getCli_endereco(),\n ':cli_numero'=> $this->getCli_numero(),\n ':cli_bairro'=> $this->getCli_bairro(),\n ':cli_cidade'=> $this->getCli_cidade(),\n ':cli_uf'=> $this->getCli_uf(),\n ':cli_cep'=> $this->getCli_cep(),\n ':cli_email'=> $this->getCli_email(),\n ':cli_data_cad'=> $this->getCli_data_cad(),\n ':cli_hora_cad'=> $this->getCli_hora_cad(),\n ':cli_senha'=> $this->getCli_senha(),\n ':cli_id' => (int)$id\n \n \n );\n \n //echo $query;\n \n \n if($this->ExecuteSQL($query, $params)):\n return true;\n else:\n return false;\n endif;\n \n \n }", "public function responsablesCda($id_cda_solicitud){\n \n }", "public function getMvtsCpteClientParNumero($id_cpte, $numero){\n\n global $global_remote_id_agence;\n $sql = \"SELECT \tA.id_his,A.infos,A.type_fonction,A.date,b.libel_ecriture,T .traduction AS libel_operation, b.type_operation, b.info_ecriture, C.sens, C.montant\n FROM\tad_his A INNER JOIN ad_ecriture b USING (id_ag, id_his) INNER JOIN ad_mouvement C USING (id_ag, id_ecriture)\n INNER JOIN ad_traductions T ON T .id_str = b.libel_ecriture\n INNER JOIN ad_agc ag on ag.id_ag = a.id_ag and ag.langue_systeme_dft = T.langue \";\n $sql .= \"WHERE (a.id_ag = $global_remote_id_agence) AND c.cpte_interne_cli = $id_cpte \";\n\n $sql .= \" ORDER BY b.id_ecriture DESC LIMIT $numero\";\n\n $result = $this->getDbConn()-> prepareFetchAll ($sql);\n\n if ($result === FALSE || count($result) == 0) {\n return new ErrorObj(ERR_DB_SQL, $result);\n }\n\n return $result;\n }", "public function block($id)\n {\n $block = $this->selectuser($id,'block');\n if($block[0]['block'] == 1)\n {\n $this->updateuser($id,'block',0);\n }\n else\n {\n $this->updateuser($id,'block',1);\n }\n }", "public function secteurModifierUn($id,$secteur)\n\t{\n\t\tGestion::modifier($secteur);// votre code ici\n\t}", "public function putCabecera($id,$idfiltro){ \n /* $hijos= registros que deen pintarse en la cabcera del reporte */\n $hijosCabecera=$this->getReportedetalle()->where(['and', \"esdetalle='0'\", ['or', \"visiblelabel='1'\", \"visiblecampo='1'\"]])->all();\n\t\t//var_dump($hijosCabecera);die();\n $HTML_cabecera=\"\";\n //var_dump($hijosCabecera);die();\n foreach( $hijosCabecera as $record) {\n // var_dump($this->modelToRepor($idfiltro));die();\n\t\t $HTML_cabecera.=$record->putStyleField($record->nombre_campo,$this->modelToRepor($idfiltro)->{$record->nombre_campo}); \n }\n unset($modeloToReport);unset($hijosCabecera);unset($clase);\n return $HTML_cabecera;\n }", "public function societeModifierUn($id,$societe)\n\t{\n\t\tGestion::modifier($societe);// votre code ici\n\t}", "function executeAttack_ctc($status){\n\tglobal $db;\n\n//\tsetStatus($status->id, 0);\n\t\n\t//lay danh sach thap canh cua chien truong nay:\n\t$sql = \"SELECT * FROM wg_ctc_diem_tap_ket WHERE cung!=0 AND cung!=6 AND ct_id=$status->object_id\";\n\t$db->setQuery($sql);\n\t$dtks = $db->loadObjectList();\n\tif($dtks){\n\t\tforeach($dtks as $dtk){\n\t\t\tattack_ctc($dtk, $status->order_);\n\t\t}\n\t}\n\t\n\t//Kiem tra va ket thuc cong thanh chien:\n\tif(checkEnd_ctc()){\n\t\t//end_ctc();\n\t}\n}", "public function view_com_rpt($id) {\n //permittedArea();\n $data['Dashbord'] = $this->db->get_where('commissions', ['id' => $id]);\n theme('view_com_rpt', $data);\n }", "function gera_pdf($id){\n\t\t$briefing= $this->getBriefing($id);\n\t\t$cronograma=$this->get_cronograma($id);\n\t\t$referencias = $this->get_referencias($id);\n\t\t$id_formated = str_pad($id, 4, \"0\", STR_PAD_LEFT);\n\t\t//var_dump($briefing); exit(0);\n\t\t$info_cliente = nl2br( $briefing['info_cliente']);\n\t\t//var_dump($id_formated , $briefing['titulo']); exit(0);\n\t\t$publico = nl2br($briefing['publico']);\n\t\t$demanda = nl2br($briefing['demanda']);\n\t\t$demanda_pecas=$briefing['demanda_pecas'];\n\t\t$demanda_formato=$briefing['demanda_formato'];\n\t\t$demanda_materiais=$briefing['demanda_materiais'];\n\t\t$demanda_finalizacao=$briefing['demanda_finalizacao'];\n\t\t$demanda_local=$briefing['demanda_local'];\n\t\t$objetivo = nl2br($briefing['objetivo']);\n\t\t$recomendacoes_ideia = nl2br($briefing['recomendacoes_ideia']);\n\t\t$recomendacoes_referencias = nl2br($briefing['recomendacoes_referencias']);\n\t\t$recomendacoes_objecoes = nl2br($briefing['recomendacoes_objecoes']);\n\t\t\n\t\t\n\t\t\n\t\trequire_once(\"../tcpdf/tcpdf.php\"); \n\t\t$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Daniel');\n\t\t$pdf->SetTitle('Teste');\n\t\t$pdf->SetSubject('Teste');\n\t\t$pdf->SetFont('helvetica', '', 14);\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\t\t\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->setPrintFooter(false);\n\t\t// add a page\n\t\t$pdf->AddPage();\n\t\t$pdf->Image('../img/logoVENTO.png', 10, 10, 50, 43, 'PNG', '#', '', true, 150, '', false, false, 0, false, false, false);\n\n\t\t$txt='<strong>Razão Social: Vento Comunicação Ltda.</strong>\n\t\t\t\t<br>\n\t\t\t\tCNPJ: 08.633.990/0001-07\n\t\t\t\t<br>\n\t\t\t\tInscrição Municipal: 50963627\n\t\t\t\t<br>\n\t\t\t\tEndereço: Rua Independência 1159/303\n\t\t\t\t<br>\n\t\t\t\tPorto Alegre/RS\n\t\t\t\t<br>\n\t\t\t\tCEP: 90035-073\n\t\t\t\t<br>\n\t\t\t\tFone: (51) 3013.3833';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='L', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t$pdf->MultiCell(60, 45, '', 0, 'C', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->MultiCell(130, 45, $txt, 0, 'L', 1, 1, '', '', true, 0, true, true, '12', 'M');\t\t\n\t\t$pdf->Ln(4);\n\t\t\t\t\n\t\t$txt=utf8_encode('BRIEFING Nº ').$id_formated.' - '.utf8_encode($briefing['titulo']);\n\t\t\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetTextColor(255, 255, 255);\n\t\t$pdf->SetFillColor(0, 170, 201);\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\n\t\t$txt='CLIENTE';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(2);\n\t\t$txt='Nome do cliente: ';\n\t\t//$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $briefing['nome_cliente'];\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt = utf8_encode('Informações do cliente:');\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $info_cliente;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'J', 1, 1, '', '', true, 0, true, true, '', 'M');\n\t\t$pdf->Ln(10);\n\t\t\n\t\t$txt = 'DEMANDA ';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Descrição e conceito:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda;\n\t\t//$txt = str_replace(array(\"<br/>\",\"<br>\") , \"\\n\" , $demanda );\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Objetivo de comunicação:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $objetivo;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t\n\t\t$txt='Público-alvo:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t$txt = $publico;\n\t/*\t$txt = str_replace(array(\"<br/>\",\"<br />\", \"<br>\") , \"\\r\" , $publico ); */\n\t\t\n\t\t//$txt = str_replace(array(\"<br/>\",\"<br>\") , \"\\n\" , $demanda );\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t$txt = 'DADOS TÉCNICOS DA DEMANDA';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$pecas = $this->get_peca($id);\n\t\t\n\t\t\n\t\t /*\n\t\t$txt='Peças (Quais/quantas): ';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_pecas;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(3);\n\t\t\n\t\t$txt='Formatos/tamanhos:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_formato;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t*/\t\n\t\tif($pecas){\n\t\t\t$txt='Peças:';\n\t\t\t$txt= utf8_encode($txt);\n\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\n\t\t\tforeach($pecas as $pc){\n\t\t\t\t$txt =\t'Descrição';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(25, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_descricao'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(165, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$txt = 'Qtd';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(15, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\t\t\t\t\n\t\t\t\t$txt = $pc['peca_qtd' ];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255,255 , 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(20, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t$txt = 'Formato';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(20, 12, $txt, 1, 'L', 1,0, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_formato'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(55, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t$txt = 'Data entrega:';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(30, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\t\t\t\t\n\t\t\t\t$txt = $pc['peca_data_entrega'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(50, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5);\n\t\t\t/*\t\n\t\t\t\t$txt = 'Prioridade';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5);\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_prioridade'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5); \n\t\t*/\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$txt='Materiais e acabamentos:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_materiais;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\n\t\t$txt='Modo de finalização:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_finalizacao;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Local do arquivo:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_local;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt = 'RECOMENDAÇÕES ';\n\t\t$txt= utf8_encode($txt);\n\t\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t \n\t\t \n\t\t/* \n\t\t$txt='Ideia inicial:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t//$pdf->Ln(5);\n\t\t\n\t\t$txt = $recomendacoes_ideia;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t//$pdf->Ln(5);\n\t\t\n\t\t*/\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t/*\t\t\n\t\t$txt = $recomendacoes_referencias;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t*/\n\t\t\n\t\t$txt='Referências:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\tif($referencias){\n\t\t\t$txt = '';\n\t\t\t$cont=0;\n\t\t\tforeach($referencias as $ref){\n\t\t\t\t$cont++;\n\t\t\t\t$txt =$ref['caminho'];\n\t\t\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\tif($cont%2==0){\n\t\t\t\t\t$pdf->SetFillColor(223, 239, 255);\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\t\n\t\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t}\n\t\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Objeçoes:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t$txt = $recomendacoes_objecoes;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t\n\t\t$txt = 'CRONOGRAMA ';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt ='';\n\t\tif($cronograma){\n\t\t\t$txt ='Atividade';\n\t\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t// set cell margins\n\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t$pdf->MultiCell(130, 10, $txt, 0, 'L', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$txt ='Início';\n\t\t\t$txt= utf8_encode($txt);\n\t\t\t$pdf->MultiCell(30, 10, $txt, 0, 'L', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$txt ='Fim';\n\t\t\t$pdf->MultiCell(30, 10, $txt, 0, 'L', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t//$pdf->Ln(5);\n\t\t\t$cont=0;\n\t\t\tforeach($cronograma as $etapa){\n\t\t\t\t$cont++;\n\t\t\t\t$txt =$etapa['atividade'];\n\t\t\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\tif($cont%2==0){\n\t\t\t\t\t$pdf->SetFillColor(223, 239, 255);\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\t\n\t\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t}\n\t\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(130, 8, $txt, 0, '', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t\t$txt =$this->convert_data_bd_to_human($etapa['inicio']);\n\t\t\t\t$pdf->MultiCell(30, 8, $txt, 0, '', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t\t$txt =$this->convert_data_bd_to_human($etapa['fim']);\n\t\t\t\t$pdf->MultiCell(30, 8, $txt, 0, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t}\n\t\t\t//$txt .= \"</table>\";\n\t\t} \n\t\telse{\n\t\t\n\t\t\t//$txt= utf8_encode($txt);\n\t\t\t//var_dump($txt); exit(0);\n\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t// set cell margins\n\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$pdf->Ln(5);\n\t\t}\n\n\t\t$pdf->lastPage();\n\t\t$pdf->Output('teste.pdf', 'I');\n\t}", "public function prijmoutClanek($id){\n try {\n $sql = \"UPDATE PRISPEVKY \n SET stav='schváleno'\n WHERE \n id_prispevku=:id;\";\n $sth = $this->db->prepare($sql);\n $sth->bindParam(':id', $id);\n $sth->execute();\n return \"ok\";\n\n } catch (Exception $e) {\n return \"Chyba při práci s databází.\"; //. $e->getMessage(); //chyba v pozadavku\n }\n }", "public static function cogeCajaChica($id){\n if(is_null(self::model()->find(\"hidcaja=:vhidcaja\",array(\":vhidcaja\"=>$id)))){\n $dcaja= Dcajachica::model()->findByPk($id);\n if(!is_null($dcaja)){\n $regcompra=New Registrocompras('ins_compralocal'); \n $regcompra->setAttributes(\n array(\n 'socio'=>$dcaja->cabecera->fondo->socio,\n 'femision'=>$dcaja->fecha,\n 'numerocomprobante'=>$dcaja->referencia,\n 'razpronombre'=>$dcaja->razon,\n 'hidperiodo'=>yii::app()->periodo->getperiodo(),\n 'tipodocid'=>$dcaja->tipodocid,\n 'numerodocid'=>$dcaja->numdocid,\n 'glosa'=>$dcaja->glosa,\n 'codmon'=>$dcaja->monedahaber,\n 'importe'=>$dcaja->haber,\n 'serie'=>$dcaja->serie,\n 'esservicio'=>$dcaja->esservicio,\n 'tipo'=>$dcaja->codocu,\n 'tipgrabado'=>'1',\n 'hidcaja'=>$dcaja->id,\n )\n );\n $grabo=$regcompra->save();\n //if(!$grabo)\n //print_r(yii::app()->mensajes->getErroresItem($regcompra->geterrors()));\n //die();\n return ($grabo)?$regcompra:null;\n }else{\n return null;\n }\n } \n }", "function commandes_trig_bank_reglement_en_echec($flux){\r\n\t// Si on est dans le bon cas d'un paiement de commande et qu'il y a un id_commande et que la commande existe toujours\r\n\tif ($id_transaction = $flux['args']['id_transaction']\r\n\t AND $transaction = sql_fetsel(\"*\",\"spip_transactions\",\"id_transaction=\".intval($id_transaction))\r\n\t\tAND $id_commande = $transaction['id_commande']\r\n\t\tAND $commande = sql_fetsel('id_commande, statut, id_auteur', 'spip_commandes', 'id_commande='.intval($id_commande))){\r\n\r\n\t\t$statut_commande = $commande['statut'];\r\n\t\t$transaction_mode = $transaction['mode'];\r\n\t\t$statut_nouveau = $statut_commande;\r\n\r\n\t\t// on ne passe la commande en erreur que si le reglement a effectivement echoue,\r\n\t\t// pas si c'est une simple annulation (retour en arriere depuis la page de paiement bancaire)\r\n\t\tif (strncmp($transaction['statut'],\"echec\",5)==0){\r\n\t\t\t$statut_nouveau = 'erreur';\r\n\t\t}\r\n\t\tif ($statut_nouveau !== $statut_commande){\r\n\t\t\tspip_log(\"commandes_trig_bank_reglement_en_attente marquer la commande #$id_commande statut=$statut_nouveau\",'commandes');\r\n\t\t\t//on met a jour la commande\r\n\t\t\tinclude_spip(\"action/editer_commande\");\r\n\t\t\tcommande_modifier($id_commande,array('statut'=>$statut_nouveau,'mode'=>$transaction_mode));\r\n\t\t}\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "public function get_compte(){retrun($id_local_compte); }", "function getLongFormatCongressBlockWithEditLink($congress)\n{\n $html = \"\n <div class='longCongressBlockDIV'\";\n \n if ($congress[\"imageURL\"] != \"\")\n {\n $html .= \" style='background-image: linear-gradient(to right, rgba(70, 99, 32, 0.7), rgba(60, 101, 124, 0.7)), url(\\\"\" . CONGRESS_IMAGES_PATH . $congress['imageURL'] . \"\\\");opacity:1;'\";\n }\n \n $html .= \">\n <div class='edit congressEdit fa'><a href='\" .HOME . \"?action=\" . POST_MODIFY_CONGRESS_DETAIL . \"&congress=\" . $congress['id'] . \"'>&#xf044;</a></div>\n <div class='longCongressShortName'>\" . $congress[\"shortName\"] . \"</div>\n <div class='longCongressName'>\" . $congress[\"name\"] . \"</div>\n <div class='longCongressShortDates'>\" . congressDatesForHtmlShortFormat($congress) . \"</div>\n <div class='caret congressCaret fa'>&#xf105;</div>\n <div class='longCongressVenueDetail' style='display:none;'>\n <div class='longCongressVenue'>Conference Venue :</div>\n <div>\" . $congress[\"venueName\"] . \"</div>\n <div>\" . $congress[\"venueAddress1\"] . \" \" . $congress[\"venueAddress2\"] . \"</div>\n <div>\" . $congress[\"venueCity\"] . \", \" . $congress['venueState'] . \" \" . $congress['venueZip'] . \"</div>\n <div>\" . $congress['venueCountry'] . \"</div>\n </div>\n </div>\n <script>\n $('.congressCaret').click(function()\n {\n if($('.longCongressVenueDetail').is(':visible'))\n {\n $('.longCongressVenueDetail').hide();\n $('.congressCaret').html('&#xf105;');\n }\n else\n {\n $('.longCongressVenueDetail').show();\n $('.congressCaret').html('&#xf107;');\n }\n });\n </script>\";\n return $html;\n}", "public function chapitre(int $idChapitre) : void\n { \n $episode = $this->chapitreManager->findChapitre($idChapitre);\n $chapitrePrecedent = $this->getMaxId->getMaxId($episode['numchapitre']);\n $chapitreSuivant = $this->getMinId->getMinId($episode['numchapitre']);\n $commentaires = $this->commentaireManager->findComments($idChapitre);\n $token = new Token($this->session);\n \n $this->view->render('chapitre', [\n 'episode'=>$episode, \n 'commentaires'=>$commentaires, \n 'session'=> $this->session,\n 'chapitreSuivant'=>$chapitreSuivant,\n 'chapitrePrecedent'=>$chapitrePrecedent,\n 'token'=>$token->genererToken()\n ]);\n }", "public function odmitnoutClanek($id){\n try {\n $sql = \"UPDATE PRISPEVKY \n SET stav='odmítnuto'\n WHERE \n id_prispevku=:id;\";\n $sth = $this->db->prepare($sql);\n $sth->bindParam(':id', $id);\n $sth->execute();\n return \"ok\";\n\n } catch (Exception $e) {\n return \"Chyba při práci s databází.\"; //. $e->getMessage(); //chyba v pozadavku\n }\n }", "function formulaires_editer_composition_objet_charger($type,$id){\n\t$valeurs = array();\n\t$table_objet_sql = table_objet_sql($type);\n\t$id_table_objet = id_table_objet($type);\n\t$valeurs[$id_table_objet] = intval($id);\n\n\t$row = sql_fetsel('composition,composition_lock',$table_objet_sql,\"$id_table_objet=\".intval($id));\n\tif (!autoriser('styliser',$type,$id,NULL,array('row'=>$row))){\n\t\t$valeurs['editable'] = false;\n\t}\n\telse {\n\n\t\tif ($type=='rubrique'){\n\t\t\t$config_accueil = true;\n\t\t\tif (isset($GLOBALS['meta']['compositions'])){\n\t\t\t\t$config = unserialize($GLOBALS['meta']['compositions']);\n\t\t\t\t$config_accueil = $config['utiliser_article_accueil'] != 'non';\n\t\t\t}\n\t\t\tif ($config_accueil){\n\t\t\t\t$valeurs['id_article_accueil'] = sql_getfetsel('id_article_accueil',$table_objet_sql,\"$id_table_objet=\".intval($id));\n\t\t\t\t$valeurs['id_article_accueil'] = $valeurs['id_article_accueil'] ? $valeurs['id_article_accueil'] : '0';\n\t\t\t}\n\t\t}\n\t\t$valeurs['composition'] = $row['composition'];\n\t\t$valeurs['composition_lock'] = $row['composition_lock'];\n\n\t\t$valeurs['compositions'] = compositions_lister_disponibles($type);\n\t\t$valeurs['compositions'] = reset($valeurs['compositions']); // on ne regarde qu'un seul type\n\t\tif (is_array($valeurs['compositions']) AND !isset($valeurs['compositions'][''])){\n\t\t\t$valeurs['compositions'] = array_merge(\n\t\t\t\tarray(''=>array('nom'=>_T('compositions:label_pas_de_composition'),'description'=>'','icon'=>'','configuration'=>'')),\n\t\t\t\t$valeurs['compositions']\n\t\t\t);\n\t\t}\n\t\t$valeurs['_hidden'] = \"<input type='hidden' name='$id_table_objet' value='$id' />\";\n\n\t\tif (!is_array($valeurs['compositions']) AND !isset($valeurs['id_article_accueil']))\n\t\t\t$valeurs['editable'] = false;\n\t}\n\n\treturn $valeurs;\n}", "protected function fermeBloc($html)\n\t{\n\t\t// Diminution du niveau d'indentation courant\n\t\t$this->niveauCourant = $this->niveauCourant - 1;\n\t\t// Ajout de l'indentation\n\t\t$this->contenuHTML .= $this->indente();\n\t\t// Affichage de la balise HTML\n\t\t$this->contenuHTML .= $html;\n\t\t// Ajout d'un saut de ligne\n\t\t$this->contenuHTML .= \"\\n\";\t\n\t}", "function proforma_cotizacion($id){\n\t$reg=imp_proforma::edit('S',$id);\n\t$comision=5;\n $utilidad=6;\n\t$cad='<table width=\"100%\">';\n $cad.='<tr><td>Nro. Cot.</td><td><input type=\"text\" name=\"cot_nro\" id=\"cot_nro\" value=\"'.$reg['imp_prof_nro'].'\" ></td></tr>';\n $cad.='<tr><td>Utilidad (%)</td><td><input type=\"text\" name=\"cot_utilidad\" id=\"cot_utilidad\" value=\"'.$utilidad.'\" ></td></tr>';\n $cad.='<tr><td>Comis. Vent (%)</td><td><input type=\"text\" name=\"cot_comision\" id=\"cot_comision\" value=\"'.$comision.'\" ></td></tr>';\n $cad.='</table>';\t\t\t\n\treturn $cad;\n}", "function track_cpost($id = null){\n\t\tApp::import('Helper', 'Session');\n\t\t$this->Session = new SessionHelper;\n\t\t\n\t\t// nactu si objednavku, protoze potrebuju vedet\n\t\t// cislo baliku v kterem byla objednavka expedovana\n\t\t$this->recursive = -1;\n\t\t$order = $this->read(null, $id);\n\t\t\n\t\t$this->Shipping->id = $order['Order']['shipping_id'];\n\t\t$this->Shipping->recursive = -1;\n\t\t$shipping = $this->Shipping->read();\n\t\t\n\t\t$tracker_url = $shipping['Shipping']['tracker_prefix'] . trim($order['Order']['shipping_number']) . $shipping['Shipping']['tracker_postfix'];\n\t\t// nactu si obsah trackovaci stranky\n\t\t$contents = download_url($tracker_url);\n\t\tif ($contents !== false){\n\t\t\t$contents = eregi_replace(\"\\r\\n\", \"\", $contents);\n\t\t\t$contents = eregi_replace(\"\\t\", \"\", $contents);\n\t\t\t\n\t\t\t// z obsahu vyseknu usek, ktery zminuje jednotlive stavy objednavky\n\t\t\t$pattern = '|<table class=\"datatable2\"> <tr> <th>Datum</th>.*</tr>(.*)</table>|U';\n\t\t\tpreg_match_all($pattern, $contents, $table_contents);\n\n\t\t\tif (!isset($table_contents[1][0])) {\n\t\t\t\t$pattern = '/<div class=\"infobox\">(.*)<\\/div>/';\n\t\t\t\tif (preg_match($pattern, $contents, $messages)) {\n\t\t\t\t\t$message = strip_tags($messages[1]);\n\t\t\t\t\treturn $id;\n\t\t\t\t}\n\t\t\t\treturn $id;\n\t\t\t\tdie('nesedi pattern pri zjisteni dorucenosti baliku u CP - tabulka');\n\t\t\t}\n\n\t\t\t// stavy si rozhodim do jednotlivych prvku pole\n\t\t\t$pattern = '|<tr>(.*)</tr>|U';\n\t\t\tpreg_match_all($pattern, $table_contents[1][0], $rows);\n\t\t\tif (!isset($rows[1])) {\n\t\t\t\treturn $id;\n\t\t\t\tdie('nesedi pattern pri zjisteni dorucenosti baliku u CP - radek tabulky');\n\t\t\t}\n\n\t\t\t// priznak, zda jsem narazil na status ktery meni objednavku\n\t\t\t// na dorucenou, ulozenou na poste apod.\n\t\t\t$found = false;\n\t\t\t\n\t\t\tforeach ($rows[1] as $os){\n\t\t\t\tif ( eregi('Dodání zásilky.', $os) ){\n\t\t\t\t\t// mam dorucenou objednavku, dal neprochazim\n\t\t\t\t\t$found = true;\n\n\t\t\t\t\t// pokud byla dorucena, najdu si datum doruceni\n\t\t\t\t\t$date = '';\n\t\t\t\t\t\n\t\t\t\t\t$pattern = '|([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{4})|';\n\t\t\t\t\tpreg_match_all($pattern, $os, $date);\n\t\t\t\t\tif (!isset($date[1][0])) {\n\t\t\t\t\t\treturn $id;\n\t\t\t\t\t\tdie('nesedi pattern pri zjisteni dorucenosti baliku u CP - datum');\n\t\t\t\t\t}\n\t\t\t\t\t$date = date('d.m.Y', strtotime($date[1][0]));\n\t\t\t\t\t// musim zmenit objednavku na doruceno a zapsat poznamku o tom, kdy byla dorucena\n\t\t\t\t\t$this->id = $id;\n\t\t\t\t\t$this->save(array('status_id' => '4'), false, array('status_id', 'modified'));\n\t\t\t\t\t\n\t\t\t\t\t// zapisu poznamku o tom, kdy byla dorucena\n\t\t\t\t\t$note = array('order_id' => $id,\n\t\t\t\t\t\t'status_id' => '4',\n\t\t\t\t\t\t'administrator_id' => $this->Session->read('Administrator.id'),\n\t\t\t\t\t\t'note' => 'Zásilka byla automaticky identifikována jako doručená zákazníkovi. Datum doručení: ' . $date\n\t\t\t\t\t);\n\t\t\t\t\tunset($this->Ordernote->id);\n\t\t\t\t\t$this->Ordernote->save($note);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// doruceno nemam, hledam, jestli se zasilka nevratila zpet odesilateli\n\t\t\tif ( !$found ){\n\t\t\t\tforeach ($rows[1] as $os){\n\t\t\t\t\tif ( eregi('Vrácení zásilky odesílateli', $os) ){\n\t\t\t\t\t\t$found = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// pokud byla vracena, najdu si datum vraceni\n\t\t\t\t\t\t$date = '';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$pattern = '|([0-9]{2}\\.[0-9]{2}\\.[0-9]{4})|';\n\t\t\t\t\t\tpreg_match_all($pattern, $os, $date);\n\t\t\t\t\t\tif (!isset($date[1][0])) {\n\t\t\t\t\t\t\treturn $id;\n\t\t\t\t\t\t\tdie('nesedi pattern pri zjisteni dorucenosti baliku u CP - datum');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$date = date('d.m.Y', strtotime($date[1][0]));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// musim zmenit objednavku na vraceno a zapsat poznamku o tom, kdy byla vracena\n\t\t\t\t\t\t$this->id = $id;\n\t\t\t\t\t\t$this->save(array('status_id' => '8'), false, array('status_id', 'modified'));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// zapisu poznamku o tom, kdy byla vracena\n\t\t\t\t\t\t$note = array('order_id' => $id,\n\t\t\t\t\t\t\t'status_id' => '8',\n\t\t\t\t\t\t\t'administrator_id' => $this->Session->read('Administrator.id'),\n\t\t\t\t\t\t\t'note' => 'Zásilka byla automaticky identifikována jako vrácená zpět. Datum návratu: ' . $date\n\t\t\t\t\t\t);\n\t\t\t\t\t\tunset($this->Ordernote->id);\n\t\t\t\t\t\t$this->Ordernote->save($note);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// stav doruceno ani vraceno nemam, hledam ulozeni na poste\n\t\t\tif ( !$found ){\n\t\t\t\tforeach ($rows[1] as $os){\n\t\t\t\t\t// objednavka je ulozena na poste a ceka na vyzvednuti\n\t\t\t\t\t// zaroven ale kontroluju, jestli uz clovek nebyl upozornen,\n\t\t\t\t\t// tzn ze objednavka uz ma status cislo 9\n\t\t\t\t\tif ( eregi('After unsuccessful attempt of delivery', $os) && $order['Order']['status_id'] != 9 ){\n\t\t\t\t\t\t// pokud byla ulozena, najdu si datum ulozeni\n\t\t\t\t\t\t$date = '';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$pattern = '|([0-9]{2}\\.[0-9]{2}\\.[0-9]{4})|';\n\t\t\t\t\t\tpreg_match_all($pattern, $os, $date);\n\t\t\t\t\t\tif (!isset($date[1][0])) {\n\t\t\t\t\t\t\treturn $id;\n\t\t\t\t\t\t\tdie('nesedi pattern pri zjisteni dorucenosti baliku u CP - datum');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$date = date('d.m.Y', strtotime($date[1][0]));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// musim zmenit objednavku na ulozeno a zapsat poznamku o tom, kdy byla ulozena\n\t\t\t\t\t\t$this->id = $id;\n\t\t\t\t\t\t$this->save(array('status_id' => '9'), false, array('status_id', 'modified'));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// zapisu poznamku o tom, kdy byla ulozena\n\t\t\t\t\t\t$note = array('order_id' => $id,\n\t\t\t\t\t\t\t'status_id' => '9',\n\t\t\t\t\t\t\t'administrator_id' => $this->Session->read('Administrator.id'),\n\t\t\t\t\t\t\t'note' => 'Zásilka byla automaticky identifikována jako uložená na poště. Zákazníkovi byl odeslan email o uložení. Datum uložení: ' . $date\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( !$this->Status->change_notification($id, 9) ){\n\t\t\t\t\t\t\t$note['note'] = 'Zásilka byla automaticky identifikována jako uložená na poště. ZÁKAZNÍKOVI NEBYL ODESLÁN MAIL! Datum uložení: ' . $date; \n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset($this->Ordernote->id);\n\t\t\t\t\t\t$this->Ordernote->save($note);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn $id;\n\t}", "public function editRegularContentFromId() {}", "function category_edit($id)\n\t{\n\t\tglobal $db;\n\t\t$ccnoprice = $_POST['ccnoprice'];\n\t\t$sSQL = \"UPDATE \".PREFIX.\"categories SET ccnoprice='\".$ccnoprice.\"', ccTemplate='\".mysql_real_escape_string($_POST['ccTemplate']).\"' WHERE id=\".$id;\n\t\t$db->query($sSQL);\n\t}", "function AfficherEDT($tab_data, $entetes, $creneaux, $type_edt, $login_edt, $period) \r\n{\r\n\tglobal $icone_deposer_alerte;\r\n\t$peut_poster_message=peut_poster_message($_SESSION['statut']);\r\n echo (\"<div class=\\\"fenetre\\\">\\n\");\r\n\r\n echo(\"<div class=\\\"contenu\\\">\r\n\r\n\t\t<div class=\\\"coingh\\\"></div>\r\n <div class=\\\"coindh\\\"></div>\r\n <div class=\\\"partiecentralehaut\\\"></div>\r\n <div class=\\\"droite\\\"></div>\r\n <div class=\\\"gauche\\\"></div>\r\n\t\t<div class=\\\"coingb\\\"></div>\r\n\t\t<div class=\\\"coindb\\\"></div>\r\n\t\t<div class=\\\"partiecentralebas\\\"></div>\r\n\r\n <div class=\\\"tableau\\\">\\n\");\r\n\r\n\r\n// ===== affichage des colonnes\r\n// ===== Les \"display:none\" sont utilisés pour l'accessibilité\r\n $jour = 0;\r\n $isIconeAddUsable = true;\r\n while (isset($entetes['entete'][$jour])) {\r\n\r\n echo(\"<div class=\\\"colonne\".$creneaux['nb_creneaux'].\"\\\">\\n\");\r\n $jour_sem = $entetes['entete'][$jour];\r\n echo(\"<h2 class=\\\"entete\\\"><div class=\\\"cadre\\\"><strong>\".$jour_sem.\"</strong></div></h2>\\n\");\r\n $index_box = 0;\r\n while (isset($tab_data[$jour]['type'][$index_box]))\r\n {\r\n if ($tab_data[$jour]['type'][$index_box] == \"vide\") {\r\n \r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo (\"<div class=\\\"\".$tab_data[$jour]['couleur'][$index_box].\"\\\">\\n\");\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n AfficheIconePlusNew($type_edt,$tab_data[$jour]['heuredeb_dec'][$index_box],$login_edt,$jour_sem,$tab_data[$jour]['id_creneau'][$index_box], $period);\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"erreur\")\r\n {\r\n \r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo(\"<div class=\\\"cadreRouge\\\">\\n\");\r\n echo $tab_data[$jour]['contenu'][$index_box];\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"conteneur\")\r\n {\r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\\n\");\r\n $isIconeAddUsable = false;\r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"cours\")\r\n {\r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo (\"<div class=\\\"\".$tab_data[$jour]['couleur'][$index_box].\"\\\">\");\r\n echo $tab_data[$jour]['contenu'][$index_box];\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n AfficheEffacerIcone($type_edt,$login_edt,$tab_data[$jour]['id_cours'][$index_box], $period);\r\n AfficheModifierIcone($type_edt,$login_edt,$tab_data[$jour]['id_cours'][$index_box], $period);\r\n if ($isIconeAddUsable)\r\n {\r\n AfficheIconePlusAdd($type_edt,0,$login_edt,$jour_sem,$tab_data[$jour]['id_creneau'][$index_box], $period);\r\n }\r\n\r\n\t\t\t\tif($peut_poster_message) {\r\n\t\t\t\t\tif((isset($_GET['appel_depuis_form_message']))&&($_GET['appel_depuis_form_message']==\"y\")) {\r\n\t\t\t\t\t\t$tmp_jour_suivant=get_next_tel_jour($jour+1);\r\n\t\t\t\t\t\tif(($tmp_jour_suivant!=\"\")&&(is_numeric($tmp_jour_suivant))) {\r\n\t\t\t\t\t\t\t$tmp_chaine_date=strftime(\"%d/%m/%Y\", time()+24*3600*$tmp_jour_suivant);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t$tmp_chaine_date=strftime(\"%d/%m/%Y\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$chaine_heure_visibilite=\"\";\r\n\t\t\t\t\t\tif((isset($tab_data[$jour]['heuredebut'][$index_box]))&&($tab_data[$jour]['heuredebut'][$index_box]!='')) {\r\n\t\t\t\t\t\t\t$chaine_heure_visibilite=\"document.getElementById('heure_visibilite').value='\".$tab_data[$jour]['heuredebut'][$index_box].\"';\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\techo \"<div style='float:right;width:10px'><a href='#' onclick=\\\"document.getElementById('date_visibilite').value='$tmp_chaine_date';\".$chaine_heure_visibilite.\"return false;\\\" target='_blank' title=\\\"Fixer la date et l'heure du message\\ndans le module Alertes/Informations de Gepi\\\"><img src='../images/icons/sound.png' width='10' height='10' /></a></div>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telseif(isset($tab_data[$jour]['login_prof'][$index_box])) {\r\n\t\t\t\t\t\t// Récupérer le jour suivant\r\n\t\t\t\t\t\techo \"<div style='float:right;width:10px'><a href='../mod_alerte/form_message.php?message_envoye=y&amp;login_dest=\".$tab_data[$jour]['login_prof'][$index_box];\r\n\t\t\t\t\t\t$tmp_jour_suivant=get_next_tel_jour($jour+1);\r\n\t\t\t\t\t\tif(($tmp_jour_suivant!=\"\")&&(is_numeric($tmp_jour_suivant))) {\r\n\t\t\t\t\t\t\techo \"&date_visibilite=\".strftime(\"%d/%m/%Y\", time()+24*3600*$tmp_jour_suivant);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\techo \"&date_visibilite=\".strftime(\"%d/%m/%Y\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif((isset($tab_data[$jour]['heuredebut'][$index_box]))&&($tab_data[$jour]['heuredebut'][$index_box]!='')) {\r\n\t\t\t\t\t\t\techo \"&amp;heure_visibilite=\".$tab_data[$jour]['heuredebut'][$index_box];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\techo add_token_in_url().\"' target='_blank' title=\\\"Déposer pour ce professeur un message\\ndans le module Alertes/Informations de Gepi\\\"><img src='../images/icons/$icone_deposer_alerte' width='10' height='10' /></a></div>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"fin_conteneur\")\r\n {\r\n echo(\"</div>\\n\");\r\n $isIconeAddUsable = true;\r\n }\r\n else \r\n {\r\n // ========= type de box non implémentée\r\n \r\n }\r\n\r\n $index_box++;\r\n }\r\n\r\n echo(\"</div>\\n\");\r\n\t\t/*\r\n\t\techo \"<hr /><pre>\";\r\n\t\tprint_r($tab_data[$jour]);\r\n\t\techo \"<pre>\";\r\n\t\t*/\r\n $jour++;\r\n }\r\n\r\n// ===== affichage de la colonne créneaux\r\n\r\n echo (\"<div class=\\\"creneaux\".$creneaux['nb_creneaux'].\"\\\">\\n\");\r\n echo (\"<div class=\\\"entete_creneaux\\\"></div>\\n\");\r\n for ($i = 0; $i < $creneaux['nb_creneaux']; $i++)\r\n {\r\n/*\r\n if(in_array($creneaux['creneaux'][$i], array('R0', 'R1', 'R2'))) {\r\n echo(\"<div class=\\\"demihoraires\\\"><div class=\\\"cadre\\\"><strong>\".$creneaux['creneaux'][$i].\"</strong></div></div>\\n\");\r\n }\r\n else {\r\n*/\r\n echo(\"<div class=\\\"horaires\\\"><div class=\\\"cadre\\\"><strong>\".$creneaux['creneaux'][$i].\"</strong></div></div>\\n\");\r\n// }\r\n }\r\n\r\n echo(\"</div></div><div class=\\\"spacer\\\"></div></div></div>\");\r\n\r\n/*\r\n//20141007\r\necho \"Tableau des créneaux<pre>\";\r\nprint_r($creneaux);\r\necho \"</pre>\";\r\n*/\r\n}", "public function regenerate_box($id_cierre, $id_venta) {\n \n $sql_venta = \"select * from venta where id = \".$id_venta;\n\n $result_venta = $this->connection->query($sql_venta)->result();\n\n $almacen_id = $result_venta[0]->almacen_id;\n $factura = $result_venta[0]->factura;\n $total_valor = $result_venta[0]->total_venta;\n\n // Movimiento cierre factura\n $sql_cierre = \"select * from movimientos_cierre_caja where numero = '\".$factura.\"'\";\n $result_cierre = $this->connection->query($sql_cierre)->result();\n $id_cierre_mov_anterior = $result_cierre[0]->Id_cierre;\n\n // Actualizamos el movimiento del cierre \n $this->connection->where('numero', $factura);\n $update = $this->connection->update('movimientos_cierre_caja', ['Id_cierre' => $id_cierre]);\n\n \n \n $this->connection->where('id', $id_cierre_mov_anterior);\n\n $cierre_anterior = $this->connection->get('cierres_caja')->row();\n\n if($cierre_anterior->fecha_fin_cierre != '') {\n $total_cierre_anterior = $cierre_anterior->total_cierre - $total_valor;\n $this->connection->where('id', $id_cierre_mov_anterior);\n $update = $this->connection->update('cierres_caja', ['total_cierre' => $total_cierre_anterior]);\n }\n\n // Actualizamos el nuevo cierre\n\n $this->connection->where('id', $id_cierre);\n\n $cierre_nuevo = $this->connection->get('cierres_caja')->row();\n\n $totoal_cierre_nuevo = $cierre_nuevo->total_cierre + $total_valor;\n\n $this->connection->where('id', $id_cierre);\n $update = $this->connection->update('cierres_caja', ['total_cierre' => $totoal_cierre_nuevo]);\n\n\n return true;\n\n\n\n \n\n\n\n\n }", "function getIdtitulaire($num_complete_cpte) {\n\n\tglobal $dbHandler,$global_id_agence;\n\t$db = $dbHandler->openConnection();\n\t$sql = \" SELECT id_cpte,id_titulaire,num_complet_cpte from ad_cpt where num_complet_cpte = '$num_complete_cpte' ; \";\n\t$result = $db->query($sql);\n\tif (DB::isError($result)) {\n\t\t$dbHandler->closeConnection(false);\n\t\tsignalErreur(__FILE__,__LINE__,__FUNCTION__); // \"DB: \".$result->getMessage()\n\t}\n\t$dbHandler->closeConnection(true);\n\tif ($result->numRows() == 0)\n\t\treturn NULL;\n\t$tmpRow = $result->fetchrow();\n\n\treturn $tmpRow;\n}", "public static function createBlockOfButtons($table='no_table_provided',$id=0){\n\t\tif(empty($id)) return \"<span>xBlocKx</span>\";\n\t\t\n\t\t$edSpan = \"<span class='btnEditBl'>\".self::createEdTablebutton($table,$id).\"</span>\";\n\t\t\n\t$btnDel = self::createDELTablebutton($table,$id);\n\t$btnSave = \"<button type='button' class='btn_save' onclick='btnSaveTableItem(\\\"{$table}\\\",{$id});'>save</button>\";\n\t$btnCancel = \"<button type='button' class='btn_cancel' onclick='btnCancelTableItem(\\\"{$table}\\\",{$id});'>cancel</button>\";\n\t\t$dscSpan = \"<span class='btnDSCBl hided'>{$btnDel}{$btnSave}{$btnCancel}</span>\";\n\t\treturn $edSpan.$dscSpan;\n\t}", "private function cancelaOtros($id,$lote){\n $cotizacion = Cotizacion_lotes::select('id')\n ->where('lotes_id','=',$lote)\n ->where('id','!=',$id)\n ->get();\n\n foreach ($cotizacion as $key => $cot) {\n $c = Cotizacion_lotes::findOrFail($cot->id);\n $c->estatus = 2;\n $c->save();\n }\n\n $lote = Lote::findOrFail($lote);\n $lote->contrato = 1;\n $lote->save();\n }", "function Cuerpo($acceso,$where)\n\t{\n\t\t$acceso->objeto->ejecutarSql(\"select id_persona from vista_orden order By id_orden desc LIMIT 1 offset 0\");\n\t\tif($row=row($acceso))\n\t\t{\n\t\t\t$tecnico=trim($row[\"id_persona\"]);\n\t\t}\n\t\telse{\n\t\t\t$acceso->objeto->ejecutarSql(\"select *from vista_tecnico LIMIT 1 offset 0\");\n\t\t\tif($row=row($acceso))\n\t\t\t{\n\t\t\t\t$tecnico=trim($row[\"id_persona\"]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\n\t\n\t\n\t\t$w=$this->TituloCampos();\n\t\t\n\t\t$dato=lectura($acceso,$where);\n\t\n\t\t$this->SetFont('Arial','',8);\n\t\t$cont=1;\n\t\t\n\t\t\n\t\t$salto=0;\n\t\t$f_act=date(\"d/m/Y\");\n\t\t$h_act=date(\"h:i:s A\");\n\t\t$nombre_zona=utf8_decode(trim($dato[0][\"nombre_zona\"]));\n\t\t$nombre_sector=utf8_decode(trim($dato[0][\"nombre_sector\"]));\n\t\t\n\t\t$cad=\"{\\\\rtf1\\\\ansi\\\\ansicpg1252\\\\deff0\\\\deflang11274{\\\\fonttbl{\\\\f0\\\\fswiss\\\\fcharset0 Arial;}}\n{\\\\*\\\\generator Msftedit 5.41.15.1512;}\\\\viewkind4\\\\uc1\\\\pard\\\\tx1988\\\\f0\\\\fs32 hola\\\\par\n\";\n\t\tfor($i=0;$i<count($dato);$i++){\n\t\t\t$this->SetTextColor(0);\n\t\t\t$this->SetFillColor(249,249,249);\n\t\t\t\n\t\t\t$id_contrato=trim($dato[$i][\"id_contrato\"]);\n\t\t//\tordenDeCorte($acceso,$id_contrato,$tecnico);\n\t\t\t\n\t\t\t$this->SetX(10);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->SetX(10);\n\t\t\t$this->Cell($w[0],5,$cont,\"1\",0,\"C\",$fill);\n\t\t\t$nro_contrato=trim($dato[$i][\"nro_contrato\"]);\n\t\t\t$cedula=trim($dato[$i][\"cedula\"]);\n\t\t\t$nombre=utf8_decode(trim($dato[$i][\"nombre\"]).\" \".trim($dato[$i][\"apellido\"]));\n\t\t\t$etiqueta=utf8_decode(trim($dato[$i][\"etiqueta\"]));\n\t\t\t$telefono=utf8_decode(trim($dato[$i][\"telefono\"]));\n\t\t\t$deuda=number_format(trim($dato[$i][\"deuda\"])+0, 2, ',', '.');\n\t\t\t\n\t\t\t$this->Ln();\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(12,5,strtoupper(_(\"zona\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(40,5,utf8_decode(trim($dato[$i][\"nombre_zona\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t$nombre_zona=utf8_decode(trim($dato[$i][\"nombre_zona\"]));\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(14,5,strtoupper(_(\"sector\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$nombre_sector=utf8_decode(trim($dato[$i][\"nombre_sector\"]));\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(12,5,strtoupper(_(\"calle\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$nombre_calle=utf8_decode(trim($dato[$i][\"nombre_calle\"]));\n\t\t\t\n\t\t\t\n\t\t\t$this->Ln();\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(17,5,strtoupper(_(\"nro casa\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$num_casa=utf8_decode(trim($dato[$i][\"numero_casa\"]));\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(10,5,strtoupper(_(\"edif\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$edificio=utf8_decode(trim($dato[$i][\"edificio\"]));\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(10,5,strtoupper(_(\"piso\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$n_p=utf8_decode(trim($dato[$i][\"numero_piso\"]));\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(8,5,strtoupper(_(\"ref\")).\": \",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$direc_adicional=utf8_decode(trim($dato[$i][\"direc_adicional\"]));\n\t\t\t//$this->MultiCell(81,5,utf8_decode(trim($dato[$i][\"direc_adicional\"])),'TR','J');\n\t\t\t$this->SetFont('Arial','',2);\n\t\t\t$this->Ln();\n\t\t\t$this->SetX(114);\n\t\t//\t$this->Cell(89,3,'',\"LR\",0,\"C\",$fill);\n\t\t\t//$this->Cell(array_sum($w),3,'',\"RL\",0,\"C\",$fill);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$this->Ln();\n\t\t\t$fill=!$fill;\n\t\t\t\n\t\t\t$salto++;\n\t\t\tif($salto==11 && $salto!=count($dato)){\n\t\t\t\t$this->AddPage();\n\t\t\t\t\n\t\t\t\t$w=$this->TituloCampos();\n\t\t\t\t$salto=0;\n\t\t\t}\n\t\t\t\n\t\t\t$cad.=\"$nro_contrato \\\\tab $nro_contrato \\\\tab\n\";\n\t\t$cont++;\n\t\t}\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(array_sum($w),5,'','T');\n\t\t$cad.=\"}\n\";\n\t\treturn $cad;\n\t}", "function bank_transaction_echec($id_transaction, $args = array()){\n\n\t$default = array(\n\t\t'mode' => 'defaut',\n\t\t'date_paiement' => date('Y-m-d H:i:s'),\n\t\t'code_erreur' => '',\n\t\t'erreur' => '',\n\t\t'log' => '',\n\t\t'send_mail' => false,\n\t\t'reglee' => 'non',\n\t\t'where' => 'call_response',\n\t);\n\t$args = array_merge($default, $args);\n\t$logname = str_replace(array('1', '2', '3', '4', '5', '6', '7', '8', '9'), array('un', 'deux', 'trois', 'quatre', 'cinq', 'six', 'sept', 'huit', 'neuf'), $args['mode']);\n\n\tspip_log($t = $args['where'] . \" : transaction $id_transaction refusee ou annulee pour : \" . $args['code_erreur'] . \" (\" . $args['erreur'] . \") \" . $args['log'], $logname . _LOG_ERREUR);\n\t$set = array(\n\t\t\"mode\" => $args['mode'] . (isset($args['config_id']) ? '/' . $args['config_id'] : ''),\n\t\t\"statut\" => 'echec' . ($args['code_erreur'] ? '[' . $args['code_erreur'] . ']' : ''),\n\t\t\"date_paiement\" => $args['date_paiement'],\n\t\t\"erreur\" => $args['erreur'],\n\t\t\"message\" => _T(\"bank:erreur_transaction_echec\", array(\"ref\" => \"#$id_transaction\")),\n\t);\n\n\tif (!empty($args['set'])) {\n\t\t$set = array_merge($args['set'], $set);\n\t}\n\n\t// verifier que le champ erreur existe pour ne pas risquer de planter l'enregistrement si l'up de base n'a pas encore ete fait\n\tif ($row = sql_fetsel(\"*\", \"spip_transactions\", \"id_transaction=\" . intval($id_transaction))\n\t\tAND !isset($row['erreur'])){\n\t\tunset($set['erreur']);\n\t}\n\n\tsql_updateq(\"spip_transactions\", $set, \"id_transaction=\" . intval($id_transaction));\n\n\tif ($args['send_mail']){\n\t\t// avertir le webmestre\n\t\t$envoyer_mail = charger_fonction('envoyer_mail', 'inc');\n\t\t$envoyer_mail($GLOBALS['meta']['email_webmaster'], \"[\" . $args['mode'] . \"] Transaction Impossible\", $t);\n\t}\n\treturn array($id_transaction, false);\n}", "public function hook_after_edit($id) {\n\t\t\t//Your code here \n\t\t\t$cek = DB::table('purchase_invoices')->where('id',$id)->first(['status']);\n\t\t\tif($cek->status == 'submited'){\n\t\t\t\t$this->sendEmail();\n\t\t\t}\n\t\t\t// pr($id);\n\t\t\t// pr('hook_after_edit',1);\n\n\t }", "public function achatModifierUn($id,$achat)\n\t{\n\t\tGestion::modifier($achat);// votre code ici\n\t}", "function template_bits_bit_overview( $group, $content, $add_button ) {\n\n$IPBHTML = \"\";\n//--starthtml--//\n\n$IPBHTML .= <<<EOF\n<div class='tablerow3'>\n <div style='float:right;padding-top:3px'><strong>{$group['easy_name']}</strong></div>\n <div>\n <a href='#' onclick=\"parent.template_close_bits(); return false;\" title='Закрыть блок'><img src='{$this->ipsclass->skin_acp_url}/images/skineditor_close.gif' border='0' alt='Закрыть' /></a>&nbsp;\n <!--<a href='#' onclick=\"toggleselectall(); return false;\" title='Пометить все/Снять отметку со всех'><img src='{$this->ipsclass->skin_acp_url}/images/skineditor_tick.gif' border='0' alt='Отметить/снять отметку' /></a>-->\n </div>\n</div>\n<div id='template-bits-container'>\n{$content}\n</div>\n <div style='background:#CCC'>\n <div align='left' style='padding:5px;margin-left:25px'>\n <div style='float:right'>$add_button</div>\n <div><input type='button' onclick='parent.template_load_bits_to_edit(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-edit-bit&id={$this->ipsclass->input['id']}&p={$this->ipsclass->input['p']}&group_name={$group['group_name']}&type=multiple\")' class='realbutton' value='Изменить выбранное' /></div>\n </div>\n</div>\n<script type=\"text/javascript\">\n//<![CDATA[\nparent.template_bits_onload();\n//]]>\n</script>\nEOF;\n\n//--endhtml--//\nreturn $IPBHTML;\n}", "function ler_id($id) {\n $x = (int)$id;\n if($x >= $this->bd[0][0] || $x <= 0) {return false;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\n return true;\n }", "function modifyComentario($id_evento,$id_comentario,$contenido){\n $mysqli = Conectar();\n strip_tags($contenido);\n $mysqli -> query(\"Update comentarios Set comentario='$contenido' Where id_evento=$id_evento and id_comentario=$id_comentario\");\n }", "function edit_content($r){\n global $arResult;\n global $Pages; //echo '<pre>';print_r($Pages);echo '</pre>';\n global $smarty;\n access();\n access_rights($r);\n $tab = NAVIGATOR;\n $GoTo = ADMIN_PANEL.'/pages';\n $pos1 = $row = '';\n if($arResult->POS1 !=''){\n $pos1 = $arResult->POS1;\n }\n else{\n header(\"Location: \".$GoTo);\n }\n\n foreach($Pages as $key => $arr){\n if($arr[\"link\"] == '') $arr['link'] = 'MainPage';\n if($arr[\"link\"] == $pos1){\n $row = $arr;\n }\n }\n /*....................................table_redact............................................*/\n $name_content = 'content';\n $helpbox = 'helpbox';\n $i = '1';\n $addbbcode20 = '<select name=\"addbbcode20\" onChange=\"bbfontstyle(\\'[color=\\' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + \\']\\', \\'[/color]\\', \\''.$i.'\\'); this.selectedIndex=0;\" onMouseOver=\"helpline(\\'s\\', \\''.$i.'\\')\" onMouseOut=\"helpline(\\'h\\', \\''.$i.'\\')\">';\n $smarty->assign('content', $row[\"content\"]);\n $smarty->assign('name_content', $name_content);\n $smarty->assign('helpbox', $helpbox);\n $smarty->assign('i', $i);\n $smarty->assign('addbbcode20', $addbbcode20);\n $table_redact = $smarty->fetch('inner-tpl/edit-product/tableRedact.tpl');\n ////.......................................................\n $zagolovok = htmlspecialchars ($row['zagolovok']);\n $title = '<a href=\"/'.$row['link'].'\">'.$row['title'].'</a>';\n $back = '<a href=\"'.ADMIN_PANEL.'/pages\" '.STYLE12.'>'.BACK_IMG.' назад</a>';\n\n $smarty->assign('back', $back);\n $smarty->assign('title', $title);\n $smarty->assign('zagolovok', $zagolovok);\n $smarty->assign('id', $row['id']);\n $smarty->assign('table_redact', $table_redact);\n $smarty->assign('table', $tab);\n $smarty->assign('link', $_SERVER['REQUEST_URI']);\n $html = $smarty->fetch('inner-tpl/content/editContent.tpl');\n\n return $html;\n}", "public function beheerderWijzigen($id) {\n if (!$this->authex->loggedIn()) {\n redirect('home/login');\n }\n\n $data['title'] = 'Hondenschool Bollie';\n $data['nobox'] = true; // geen extra rand rond hoofdmenu\n $data['user'] = $this->authex->getUserInfo();\n $data['auteur'] = 'Jarne Peeters, Bart Buyens';\n\n $this->load->model('persoon_model');\n $data['beheerder'] = $this->persoon_model->get($id);\n\n $partials = array('header' => 'main_header', 'content' => 'beheerderAanpassen', 'menu' => 'main_menu');\n $this->template->load('main_master', $partials, $data);\n }", "public function set_pengiriman($id){ // untuk membuat database langkah pengiriman\n\t\t$cek = $this->M_biodata->get_biodata($id)->result();\n\t\t$this->load->model('M_transaksi');\n\t\tif (count($cek)>0){\n\t\t\tforeach ($cek as $c){\n\t\t\t\t\n\t\t\t};\n\t\t\t$data = array(\n\t\t\t'nama' => $c->namaAlumni,\n\t\t\t'alamat' => $c->alamat,\n\t\t\t'noHp' => $c->noHp,\n\t\t\t'id_pemesan' => $c->id_alumni\n\t\t\t);\t\n\t\t\t$this->M_transaksi->set_pengiriman($data,'pengiriman');\n\t\t$this->set_pembayaran($id);\n\t\t}\n\t}", "public function Afficher_Panier($id_commande) {\n \n // requete sur la base de donnée\n $sql = \"SELECT tb_article.id_article,a_designation,a_pht,qte_cmde,url_image,t_taux, tb_ligne_commande.id_commande, a_pht*(1+tb_tva.t_taux) AS PRIX\n FROM tb_article,tb_commande,tb_ligne_commande, tb_tva \n WHERE tb_article.id_article = tb_ligne_commande.id_article \n AND tb_ligne_commande.id_commande = tb_commande.id_commande \n AND tb_article.id_tva = tb_tva.id_tva \n AND tb_commande.id_commande =$id_commande\";\n \n $req = $this->db->query($sql);\n\n $enteteTableau = '<table class=\"tableauPanier\">\n <caption>Contenu du panier</caption>\n <tr>\n <th>image</th>\n <th>Désignation</th>\n <th>Prix</th>\n <th>Quantité</th>\n <th></th>\n <th>modification</th>\n <th></th>\n </tr>';\n $contenuTableau =\"\"; \n while ($resultat =$req->fetch(PDO::FETCH_OBJ)) {\n\n $contenuTableau .= \"\n\n <tr>\n <td><img src= \\\"$resultat->url_image\\\"/> </td>\n <td>$resultat->a_designation</td>\n <td>$resultat->PRIX €</td>\n <td>$resultat->qte_cmde</td>\n <td><a href=\\\"?id_article=$resultat->id_article&action=add\\\"> Ajouter</a></td>\n// <td><a href=\\\"?id_article=$resultat->id_article&action=substract\\\">RETIRER</a> </td>\n <td><a href=\\\"?id_article=$resultat->id_article&action=del\\\"> Supprimer</a></td>\n </tr>\n \";\n }\n $finTableau = '</table>';\n \n $tableau = $enteteTableau\n .$contenuTableau\n .$finTableau;\n \n return $tableau;\n \n }", "public function iloscMinus($id)\n\t\t{\n\t\t\t$data = array();\n\t\t\t\tif($id === NULL || $id === \"\")\n\t\t\t\t\t$data['error'] = 'Nieokreślone ID!';\n\t\t\t\telse\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t$stmt2 = $this->pdo->prepare('SELECT IdTowar, ilosc FROM `koszyk` where IdTowar=:id');\n\t\t\t\t\t\t$stmt2 -> bindValue(':id',$id,PDO::PARAM_INT);\n\t\t\t\t\t\t$ilosc = $stmt2 -> execute();\n\t\t\t\t\t\t$data = $stmt2 -> fetchAll();\n\t\t\t\t\t\tforeach($data as $result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ilosc = $result['ilosc'];\n\t\t\t\t\t\t\t$idt = $result['IdTowar'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($ilosc>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo $id.'<br>towary: ';\n\t\t\t\t\t\t\tvar_dump($_COOKIE['idtowary']);\n\t\t\t\t\t\t\t$stmt = $this->pdo->prepare('UPDATE koszyk SET ilosc=ilosc-1 WHERE IdTowar=:id');\n\t\t\t\t\t\t\t$stmt -> bindValue(':id',$id,PDO::PARAM_INT);\n\t\t\t\t\t\t\t$wynik_zapytania = $stmt -> execute();\n\n\t\t\t\t\t\t\t$stmt2 = $this->pdo->prepare(\"update towar set towar.StanMagazynowyDysponowany = towar.StanMagazynowyDysponowany+1 where IdTowar = $idt\");\n\t\t\t\t\t\t\t$stmt2 -> execute();\n\n\t\t\t\t\t\t\t$cookie2 = $_COOKIE['idtowary'];\n\t\t\t\t\t\t\t$cookie2 = stripslashes($cookie2);\n\t\t\t\t\t\t\t$ids = json_decode($cookie2, true);\n\n\t\t\t\t\t\t\tif(($k = array_search($idt, $ids)) === false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// echo 'nie ma';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t //echo 'jest';\n\t\t\t\t\t\t\t $indeks = array_search($idt, $ids);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$cookie = $_COOKIE['ilosci'];\n\t\t\t\t\t\t\t$cookie = stripslashes($cookie);\n\t\t\t\t\t\t\t$quantity = json_decode($cookie, true);\n\t\t\t\t\t\t\techo '<br>';\n\t\t\t\t\t\t\tif(($k = array_search($idt, $ids)) === false){}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\techo '<br>ilosci ';\n\t\t\t\t\t\t\t\tvar_dump($_COOKIE['ilosci']);\n\t\t\t\t\t\t\t\t$ilosc=$ilosc-1;\n\t\t\t\t\t\t\t $quantity[$indeks]=$ilosc;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$dane = json_encode($quantity);\n\t\t\t\t\t\t\tsetcookie('ilosci', $dane,time()+60*60*24*30,'/');\n\t\t\t\t\t\t\t$_COOKIE['ilosci'] = $dane;\n\t\t\t\t\t\t\techo '<br>';\n\t\t\t\t\t\t\tvar_dump($_COOKIE['ilosci']);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(\\PDOException $e)\n\t\t\t\t\t{\n\t\t\t\t\t\t$data['error'] =$data['error'].'<br> Błąd wykonywania operacji usunięcia';\n\t\t\t\t\t}\n\t\t\t\t\t/*var_dump($_COOKIE['idtowary']);\n\t\t\t\t\techo '<br>';\n\t\t\t\t\tvar_dump($_COOKIE['ilosci']);\n\t\t\t\t\techo '<br>';*/\n\t\t\t\treturn $data;\n\n\t\t}", "function buscar_cuenta_por_id($id) {\n $sql = \"SELECT cuenta_plan_contable,descripcion_plan_contable FROM prosic_plan_contable WHERE id_plan_contable = \" . $id;\n $result = $this->Consulta_Mysql($sql);\n $row = mysql_fetch_array($result);\n return $row;\n }", "function erstelleSeite($charid, $pdf)\n{\n\t$sql = 'SELECT node_id FROM drowcon_nodedata WHERE name=\\'Charakter_id\\' AND value=\\''.$charid.'\\'';\n\t$query = mysql_query($sql);\n\tif ( $row = mysql_fetch_row($query))\n\t{\n\t\t$id = $row[0];\n\t}\n\telse\n\t{\n\t\tthrow new error(\"Keine Charakterseite für diesen Charakter gefunden!\");\n\t}\n\tmysql_free_result($query);\n\t$charakter = get_charakter($charid);\n\t$pdf->AddPage();\n\t$pdf->SetFont('Arial', 'B', 16);\n\t$pdf->Cell(100, 7, $charakter['Name']);\n\t$pdf->Cell(80, 7, $charakter['Hausname'],0,0,'R');\n\t$bbasedir = get_dir_name('files',$id).'/published/';\n\tif ( file_exists($bbasedir.'Spielerbild.jpg') ) {\n\t\t$pdf->Image($bbasedir.'Spielerbild.jpg', 180, 38, 20, 30, 'JPG');\n\t}\n\t// Rahmen für das Bild\n\t$pdf->Rect(180, 38, 20, 30);\n\t$pdf->SetFont('Arial', '', 10);\n\t$pdf->Ln();\n\tif ( $charakter['Charstatus'] != '') \n\t{\n\t\t$pdf->Write(10, $charakter['Charstatus']);\n\t\t$pdf->Ln();\n\t}\n\t$pdf->Cell(25, 5, 'Realname:');\n\t$pdf->Cell(60, 5, $charakter['Spielername']);\n\t$pdf->Cell(35, 5, 'EP aus Contagen:');\n\t$pdf->Cell(40, 5, $charakter['Contage'].' ('.number_format($charakter['Contage']/30,1).' Spieltage)');\n\t$pdf->Ln();\n\t$pdf->Cell(25, 5, 'Position:');\n\t$pdf->Cell(60, 5, $charakter['Position']);\n\t$pdf->Cell(35, 5, 'EP gesamt:');\n\t$pdf->Cell(10, 5, bestimmeEP($charakter['Charakter_id']));\n\t$pdf->Ln();\n\t$pdf->Cell(25, 5, 'Klasse:');\n\t$pdf->Cell(60, 5, $charakter['Klasse']);\n\t$pdf->Cell(35, 5, 'EP frei:');\n\t$pdf->Cell(10, 5, $charakter['EP']);\n\t$pdf->Ln();\n\t$pdf->Cell(25, 5, 'Gunststufe:');\n\t$pdf->Cell(60, 5, $charakter['Gunststufe']);\n\t$pdf->Cell(35, 5, 'Gunstpunkte:');\n\t$s = $charakter['Gunstpunkte'];\n\tif ( $charakter['Gunstpunkte_Temp'] != 0)\n\t{\n\t\t$s .= ' (zzgl.'.$charakter['Gunstpunkte_Temp'].' tmp)';\n\t}\n\t$pdf->Cell(10, 5, $s);\n\t$pdf->Ln();\n\t$pdf->Cell(25, 5, 'Rasse:');\n\t$pdf->Cell(60, 5, $charakter['Rasse']);\n\t$pdf->Cell(35, 5, 'Gunstpunkte Status:');\n\t$Gunst = bestimmeCharGunst($charakter['Charakter_id']);\n\t$pdf->Cell(10, 5, abs($Gunst-$charakter['Gunstpunkte']-$charakter['Gunstpunkte_Temp']));\n\t$pdf->Ln();\n\t$pdf->Cell(25, 5, 'Adlig/Gemein:');\n\tif ( $charakter['Adlig'])\n\t{\n\t\t$pdf->Cell(60, 5, 'Adlig');\n\t}\n\telse\n\t{\n\t\t$pdf->Cell(60, 5, 'Gemein');\n\t}\n\t$pdf->Cell(35, 5, 'Gunstpunkte Gesamt:');\n\t$pdf->Cell(10, 5, $Gunst);\n\t$pdf->Ln();\n\t$sql = 'SELECT * FROM T_Eigenschaften INNER JOIN T_Charakter_Eigenschaften ON F_Eigenschaft_id=Eigenschaft_id '.\n\t'WHERE F_Charakter_id='.$charakter['Charakter_id'].' ORDER BY Art, Eigenschaftsname';\n\t$query = mysql_query($sql);\n\t$summe = 0;\n\t$Art = '';\n\t$Nr = 0;\n\t$Anz = 0;\n\t$Punkte = 0;\n\t$Eigenschaft = '';\n\twhile ( $row = mysql_fetch_array($query))\n\t{\n\t\tif ( $Art != $row['Art'])\n\t\t{\n\t\t\t// prüfen ob stapel \n\t\t\tif ( $Eigenschaft != '' )\n\t\t\t{\n\t\t\t\t$pdf->Cell(10, 5, $Anz,1 );\n\t\t\t\t$pdf->Cell(70, 5, $Eigenschaft,1);\n\t\t\t\t$pdf->Cell(10, 5, $Punkte,1);\n\t\t\t\t$Nr++;\n\t\t\t\tif ( $Nr % 2 == 0)\n\t\t\t\t{\n\t\t\t\t\t$pdf->Ln();\n\t\t\t\t}\n\t\t\t\t$Eigenschaft = '';\n\t\t\t}\t\n\t\t\t$Art = $row['Art'];\n\t\t\tif ( $Nr % 2 != 0)\n\t\t\t{\n\t\t\t\t$pdf->Ln();\n\t\t\t}\n\t\t\t$Nr = 0;\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial', 'B', 10);\n\t\t\t$pdf->Cell(60,5, $Art);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial', '', 10);\n\t\t}\n\t\tif ( $Eigenschaft != $row['Eigenschaftsname'] && $row['Stapelbar'] == 1)\n\t\t{\n\t\t\tif ( $Eigenschaft != '' )\n\t\t\t{\n\t\t\t\t$pdf->Cell(10, 5, $Anz,1);\n\t\t\t\t$pdf->Cell(70, 5, $Eigenschaft,1);\n\t\t\t\t$pdf->Cell(10, 5, $Punkte,1);\n\t\t\t\t$Nr++;\n\t\t\t\tif ( $Nr % 2 == 0)\n\t\t\t\t{\n\t\t\t\t\t$pdf->Ln();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$Eigenschaft = $row['Eigenschaftsname'];\n\t\t\t$Anz = 1;\n\t\t\tif ( $row['Erfahungspunkte'] != 0)\n\t\t\t{\n\t\t\t\t$Punkte = $row['Erfahrungspunkte'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Punkte = '';\n\t\t\t}\n\t\t}\n\t\telseif ( $row['Stapelbar'] == 1 )\n\t\t{\n\t\t\t$Anz++;\n\t\t\tif ( $Punkte != '' ) $Punkte += $row['Erfahrungspunkte'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// prüfen Stapel \n\t\t\tif ( $Eigenschaft != '' )\n\t\t\t{\n\t\t\t\t$pdf->Cell(10, 5, $Anz,1);\n\t\t\t\t$pdf->Cell(70, 5, $Eigenschaft,1);\n\t\t\t\t$pdf->Cell(10, 5, $Punkte,1);\n\t\t\t\t$Nr++;\n\t\t\t\tif ( $Nr % 2 == 0)\n\t\t\t\t{\n\t\t\t\t\t$pdf->Ln();\n\t\t\t\t}\n\t\t\t\t$Eigenschaft = '';\n\t\t\t}\n\t\t\tif ( $row['Erfahrungspunkte'] != 0 )\n\t\t\t{\n\t\t\t\t$pdf->Cell(10, 5, '',1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pdf->Cell(10, 5, date('m/y',strtotime($row['Erstellt'])),1);\n\t\t\t}\n\t\t\t$pdf->Cell(70, 5, $row['Eigenschaftsname'],1);\n\t\t\t$pdf->Cell(10, 5, $row['Erfahrungspunkte'],1);\n\t\t\t$Nr++;\n\t\t\tif ( $Nr % 2 == 0)\n\t\t\t{\n\t\t\t\t$pdf->Ln();\n\t\t\t}\n\t\t}\n\t}\n\tif ( $Eigenschaft != '' )\n\t{\n\t\t$pdf->Cell(10, 5, $Anz,1);\n\t\t$pdf->Cell(70, 5, $Eigenschaft,1);\n\t\t$pdf->Cell(10, 5, $Punkte,1);\n\t\t$Nr++;\n\t\tif ( $Nr % 2 == 0)\n\t\t{\n\t\t\t$pdf->Ln();\n\t\t}\n\t}\n\tmysql_free_result($query);\n\t\n\t// Con-Teilnahmen\n\t$pdf->Ln();\n\t$pdf->Ln();\n\t$pdf->SetFont('Arial', 'B', 10);\n\t$pdf->Cell(60,5, 'Kampagnenteilnahmen');\n\t$pdf->SetFont('Arial', '', 10);\n\t$pdf->Ln();\n\t$daten = get_profile($charakter['F_Spieler_id'], false);\n\tforeach ( $daten as $key => $value)\n\t{\n\t\tif ( $value == $id )\n\t\t{\n\t\t\t$veranstaltung = substr($key, 4);\n\t\t\tif ( is_numeric($veranstaltung))\n\t\t\t{\n\t\t\t\t// Achtung: Flavour = 1 - > Standardsprache, ggf. ändern wenn andere genutzt\n\t\t\t\t$node = get_nodedata($veranstaltung, 1);\n\t\t\t\t$pdf->Cell(80, 5, $node['title']);\n\t\t\t\t$pdf->Ln();\n\t\t\t}\n\t\t}\n\t}\n\treturn $pdf;\n}", "function getSoldeCpte($id_cpte)\n{\n global $dbHandler;\n global $global_id_agence;\n\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT solde \";\n $sql .= \"FROM ad_cpt \";\n $sql .= \"WHERE id_ag = $global_id_agence AND id_cpte = $id_cpte \";\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\n $solde = $row[0];\n\n $dbHandler->closeConnection(true);\n return $solde;\n}", "public function edit( $dossierpcg66_id ) {\n\t\t\t// Initialisation\n\t\t\t$foyer_id = $this->Dossierpcg66->field( 'foyer_id', array( 'id' => $dossierpcg66_id ) );\n\t\t\t$this->_init_add_edit($foyer_id);\n\n\t\t\t// Récupération de données\n\t\t\t$dossierpcg66 = $this->WebrsaDossierpcg66->findDossierpcg($dossierpcg66_id);\n\t\t\t$this->assert( !empty( $dossierpcg66 ), 'invalidParameter' );\n\t\t\t$personnespcgs66 = $this->WebrsaDossierpcg66->findPersonnepcg($dossierpcg66_id);\n\n\t\t\t$paramsAccess = $this->WebrsaDecisiondossierpcg66->getParamsForAccess(\n\t\t\t\t$dossierpcg66_id, WebrsaAccessDecisionsdossierspcgs66::getParamsList()\n\t\t\t);\n\t\t\t$this->set('ajoutDecisionPossible', Hash::get($paramsAccess, 'ajoutPossible') !== false);\n\n\t\t\t$query = $this->WebrsaDecisiondossierpcg66->completeVirtualFieldsForAccess(\n\t\t\t\t$this->WebrsaDecisiondossierpcg66->queryIndex($dossierpcg66_id)\n\t\t\t);\n\n\t\t\t$decisionsdossierspcgs66 = WebrsaAccessDecisionsdossierspcgs66::accesses(\n\t\t\t\t$this->Dossierpcg66->Decisiondossierpcg66->find('all', $query)\n\t\t\t);\n\n\t\t\t$fichiersEnBase = Hash::extract( $this->WebrsaDossierpcg66->findFichiers($dossierpcg66_id), '{n}.Fichiermodule' );\n\n\t\t\t// Variables pour la vue\n\t\t\t$etatdossierpcg = Hash::get($dossierpcg66, 'Dossierpcg66.etatdossierpcg');\n\t\t\t$lastDecisionId = Hash::get($decisionsdossierspcgs66, '0.Decisiondossierpcg66.id');\n\t\t\t$ajoutDecision = Hash::get($decisionsdossierspcgs66, '0.Decisiondossierpcg66.validationproposition') !== null;\n\t\t\t$this->set(\n\t\t\t\tcompact(\n\t\t\t\t\t'ajoutDecision',\n\t\t\t\t\t'lastDecisionId',\n\t\t\t\t\t'decisionsdossierspcgs66',\n\t\t\t\t\t'personnespcgs66',\n\t\t\t\t\t'dossierpcg66_id',\n\t\t\t\t\t'etatdossierpcg',\n\t\t\t\t\t'fichiersEnBase',\n\t\t\t\t\t'dossierpcg66'\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// Sauvegarde du formulaire\n\t\t\tif( !empty( $this->request->data ) ) {\n\t\t\t\t$this->_save_add_edit();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->request->data = $dossierpcg66;\n\t\t\t}\n\n\t\t\t// Modification du request data uniquement à la fin\n\t\t\t$this->set( 'personnedecisionmodifiable', $this->_isDecisionModifiable( $foyer_id, $etatdossierpcg ) );\n\t\t\t$this->request->data['Dossierpcg66']['user_id'] = $dossierpcg66['Dossierpcg66']['poledossierpcg66_id'].'_'.$dossierpcg66['Dossierpcg66']['user_id'];\n\t\t}", "private function _getContentBlockById($id, $wantContent)\r\n {\r\n foreach ($this->_bagBody->objects as $obj)\r\n if ($obj['key'] == $id)\r\n if ($wantContent)\r\n return $obj['contents'];\r\n else\r\n return $obj['dictionary'];\r\n return \"\";\r\n }", "function buscarPorId($id) {\r\n \r\n }", "public function actionCertificadoVarios($id) {\n $idTmp = explode(',', $id);\n $recordBeneTemp = BeneficiarioTemporal::model()->findAllByAttributes(array('id_beneficiario_temporal' => $idTmp));\n\n $this->render('certificadoVarios', array('recordBeneTemp' => $recordBeneTemp));\n }", "private function lstComChap($idchap){\n\t\t\t$commentaires = $this->com->getLastCom($idchap);\n\t\t\t\t\n\t\t\techo $commentaires;\n\t\t}", "public function edit($id)\n\t{\n\t/*$data['bmt'] = $this->m_bmt->jenisBmt('bmt')->result();*/\n\t$data['bahan']=$this->m_bahan->getBmtWhereId($id);\n\t$data['jenisbmt']=$this->m_bahan->jenisBmt();\n\t$this->load->view('admin/bahan/edit_bahan',$data);\n\t}", "public function cash($id) {\n// $cash = array_shift($cash);\n $this->checked = 0;\n $this->dispatchBrowserEvent('cash-detail', $id);\n }", "public function criarBloco_1_Vazio()\n {\n $this->Sped->criarLinha('1', '1001', \"|1001|0|\");\n $this->Sped->criarLinha('1', '1010', \"|1010|N|N|N|N|N|N|N|N|N|N|N|N|N|\");\n $this->Sped->criarEncerramentoBloco('1', '1990', \"1990\");\n }", "public function commissionPartenaire()\n {\n $data['liste_part'] = $this->partenaireModels->getPartenaire();\n $this->views->setData($data);\n\n $this->views->getTemplate('reporting/commissionPartenaire');\n }", "function CK12()\n {\n global $template;\n global $id,$top_url;\n\n $val_item = array ( \"supply_code\"=>\"공급처 코드\" );\n $this->validate ( $val_item );\n\n // 상세 정보 가져온다\n $data = $this->get_detail( $id );\n\n $master_code = substr( $template, 0,1);\n include \"template/\" . $master_code .\"/\" . $template . \".htm\";\n }", "public function bikecateditAction(){\n\t\tinclude_once(System_Properties::ADMIN_MOD_PATH.'/models/system/db_selVCat.php');\n\t\tinclude_once(System_Properties::ADMIN_MOD_PATH.'/models/bike/db_selBikeCat.php');\n\t\t\n\t\t$lang = $this -> lang;\n\t\t$p = $this -> getRequest() -> getParams();\n\t\t\n\t\t//determine bike vehicle cat id\n\t\t$bikeVcatID = null;\n\t\tif (isset($p['bcid'])){\n\t\t\t$bikeVcatID = $p['bcid'];\n\t\t}\n\t\t\n\t\tif ($bikeVcatID != null){\n\t\t\t$bikeVcat = db_selBikeCat(array('bikeCatID' => $bikeVcatID));\n\t\t\tif (($bikeVcat != false) && is_array($bikeVcat)){\n\t\t\t\t\t$bikeVcat = $bikeVcat[0];\n\t\t\t\n\t\t\t\t\t//Edit bike category\n\t\t\t\t\tif (isset($p['bikeCatEdit'])){\n\t\t\t\t\t\t$p['bikeCatID'] = $bikeVcatID;\n\t\t\t\t\t\t$p['bikeCat'] = $bikeVcat;\n\t\t\t\t\t\t$this ->editbikecatAction($p);\n\t\t\t\t\t\t$bikeVcatH = db_selBikeCat(array('bikeCatID' => $bikeVcatID));\n\t\t\t\t\t\tif (($bikeVcatH != false) && is_array($bikeVcatH) && (count($bikeVcatH) > 0)){\n\t\t\t\t\t\t\t$bikeVcat = $bikeVcatH[0];\n\t\t\t\t\t\t\t$this -> view -> info = $lang['AINFO_15'];\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$this -> view -> bikeVcat = $bikeVcat;\n\t\t\t\t\tif ($bikeVcat['level']-1 > 0){\n\t\t\t\t\t\t$bikeVcatParent = db_selBikeCat(array('level' => ($bikeVcat['level']-1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, 'lftLEq' => $bikeVcat['lft']\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, 'rgtBEq' => $bikeVcat['rgt']\n\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\t);\n\t\t\t\t\t\tif (($bikeVcatParent != false) && is_array($bikeVcatParent) && (count($bikeVcatParent) > 0)){\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this -> view -> bikeVcatParent = $bikeVcatParent[0];\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$bikeVcatAll = db_selBikeCat();\n\t\t\t\t\t$this -> view -> bikeVcatAll = $bikeVcatAll;\n\t\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$this -> view -> error = $lang['AERR_36'];\n\t\t\t\t$this -> _forward('bikecat');\n\t\t\t}\n\t\t}else{\n\t\t\t$this -> view -> error = $lang['AERR_36'];\n\t\t\t$this -> _forward('bikecat');\n\t\t}\n\t}", "function setIdComentaire($idCommentaire) {\n $this->idCommentaire = $idCommentaire;\n }", "function TablaTicketCreditos()\n {\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$ve = new Login();\n $ve = $ve->CreditosPorId();\n\t\n\t$this->SetFont('courier','B',14);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetXY(13, 6);\n $this->Cell(13, 5, \"TICKET DE ABONO\", 0 , 0);\n\t$this->Ln(5);\n\t\n\t$this->SetFont('courier','B',6);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetXY(4, 13);\n\t$this->CellFitSpace(65,3,utf8_decode($con[0]['direcempresa']),0,1,'C');\n\t$this->SetXY(4, 15);\n\t$this->CellFitSpace(65,3,\"RIF:\".utf8_decode($con[0]['rifempresa']),0,1,'C');\n\t$this->SetXY(4, 17);\n\t$this->CellFitSpace(65,3,utf8_decode($con[0]['nomempresa']),0,1,'C');\n\t$this->SetXY(4, 19);\n\t$this->CellFitSpace(65,3,\"TLF:\".utf8_decode($con[0]['tlfempresa']),0,1,'C');\n\t\t\n\t$this->SetFont('courier','B',7);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n\t$this->SetXY(3, 25);\n $this->Cell(3, 5, \"N° VENTA: \".utf8_decode($ve[0]['codventa']), 0 , 0);\n\t$this->SetXY(3, 28);\n $this->Cell(3, 5, \"N° SERIE: \".utf8_decode($ve[0]['codserieve']), 0 , 0);\n\t$this->SetXY(3, 31);\n $this->Cell(3, 5, \"N° AUTORIZACIÓN: \".utf8_decode($ve[0]['codautorizacionve']), 0 , 0);\n\t$this->SetXY(3, 34);\n $this->Cell(3, 5, \"FECHA VENTA: \".utf8_decode($ve[0]['fechaventa']), 0 , 0);\n\t$this->SetXY(3, 37);\n $this->Cell(3, 5, \"FECHA IMPRESIÓN: \".date(\"Y-m-d h:i:s A \",time()+1800), 0 , 0);\n\t\n\t$this->Ln(6);\n\t$this->SetXY(3, 44);\n $tra = new Login();\n $reg = $tra->VerDetallesVentas();\n\t$cantidad=0;\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t\n\t $this->SetX(3);\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.2);\n\t $this->SetFont('courier','',6); \n\t $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n\t $this->CellFitSpace(5,3,utf8_decode($reg[$i][\"cantventa\"]),0,0,'C');\n $this->CellFitSpace(45,3,utf8_decode($reg[$i][\"producto\"]),0,0,'L');\n\t $this->CellFitSpace(17,3,utf8_decode(number_format($reg[$i][\"precioventa\"], 2, '.', ',')),0,0,'R');\n $this->Ln();\t \n }\n \n $this->Ln();\n\t$this->SetFont('courier','',6);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"SUBTOTAL IVA \".$ve[0][\"ivave\"].'% : '.utf8_decode(number_format($ve[0][\"subtotalivasive\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"SUBTOTAL IVA 0%: \".utf8_decode(number_format($ve[0][\"subtotalivanove\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"IVA \".$ve[0][\"ivave\"].'% : '.utf8_decode(number_format($ve[0][\"totalivave\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->SetFont('courier','',6);\n\t$this->CellFitSpace(60,3,\"DESCUENTO \".$ve[0][\"descuentove\"].'% : '.utf8_decode(number_format($ve[0][\"totaldescuentove\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->SetFont('courier','B',6);\n\t$this->CellFitSpace(60,3,\"PRECIO FINAL: \".utf8_decode(number_format($ve[0][\"totalpago\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"TIPO PAGO: \".utf8_decode($ve[0]['tipopagove'].\" - \".$ve[0]['formapagove']),0,1,'L');\n\t\n\tif($ve[0]['fechavencecredito']== '0000-00-00') { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"VENTA \".utf8_decode($ve[0]['statusventa']),0,1,'L');\n\t} elseif($ve[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"VENTA \".utf8_decode($ve[0]['statusventa']),0,1,'L');\n\t} elseif($ve[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"VENTA \".utf8_decode(\"VENCIDA\"),0,1,'L');\n\t}\t\n\t\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"FECHA DE VENCIMIENTO \".utf8_decode($vence = ( $ve[0]['fechavencecredito'] == '0000-00-00' ? \"0\" : date(\"d-m-Y\",strtotime($ve[0]['fechavencecredito'])))),0,1,'L');\n\t\n\tif($ve[0]['fechavencecredito']== '0000-00-00') { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"DIAS VENCIDOS \".utf8_decode($ve[0]['statusventa']),0,1,'L');\n\t} elseif($ve[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"DIAS VENCIDOS \".utf8_decode($ve[0]['statusventa']),0,1,'L');\n\t} elseif($ve[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->SetX(4);\n\t$this->CellFitSpace(60, 3,\"DIAS VENCIDOS \".utf8_decode(Dias_Transcurridos(date(\"Y-m-d\"),$ve[0]['fechavencecredito'])),0,1,'L');\n\t}\n\n\t\n\tif($ve[0]['tipopagove']==\"CREDITO\"){\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"TOTAL ABONO: \".utf8_decode(number_format($ve[0][\"abonototal\"], 2, '.', ',')),0,1,'L');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"TOTAL DEBE: \".utf8_decode(number_format($ve[0][\"totalpago\"]-$ve[0][\"abonototal\"], 2, '.', ',')),0,1,'L');\n\t}\n\t$this->SetX(4);\n $this->CellFitSpace(60, 3, \"C.I/DNI CLIENTE: \".utf8_decode($ve[0]['cedcliente']),0,1,'L');\n\t$this->SetX(4);\n $this->CellFitSpace(60, 3, \"NOMBRE DE CLIENTE: \".utf8_decode($ve[0]['nomcliente']),0,1,'L');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"EMPLEADO: \".utf8_decode($ve[0]['nombres']),0,1,'L');\t\n\t\n\t$this->Ln(12);\n\t$logo = \"./assets/img/barcode.png\";\n\t$this->Cell(4,10,$this->Image($logo, $this->GetX()-4, $this->GetY()-7, 62),5,0,'C');\n\t\n\t$this->Ln(5);\n\t$this->SetFont('courier','B',5);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetX(4);\n\t$this->CellFitSpace(65,2,\"NOTA: DEBERÁ DE PRESENTAR ESTE TOCKET EN CASO \",0,1,'C');\n\t$this->SetX(4);\n\t$this->CellFitSpace(65,2,\"DE RECLAMO SOBRE ALGÚN PRODUCTO DEFECTUOSO \",0,1,'C');\n\t\n\t\n\t$this->SetX(4);\n\t$this->Cell(60,3,\"\",0,1,'C');\n\t$this->SetX(4);\n\t$this->CellFitSpace(60,3,\"CONFORME EL CLIENTE ______________________________________\",0,1,'C');\n $this->Ln(8);\n\t\n\t$this->SetFont('Arial','B',14);\n\t$this->SetFillColor(2,157,116);\n\t$this->SetX(4);\n\t$this->CellFitSpace(65,3,\"GRACIAS POR SU COMPRA\",0,1,'C');\n\t\n\t//$this->SetXY(4, 94);\n\t$this->Codabar(6,-90,utf8_decode(\"111111222222333333444444555555666666777777888888999999\"));\n\n }", "function suppr_tache($id_tache)\r\n{\r\n\tglobal $objet;\r\n\tif(droit_acces($objet[\"tache\"],$id_tache)>=2){\r\n\t\tsuppr_objet($objet[\"tache\"],$id_tache);\r\n\t\tdb_query(\"DELETE FROM gt_tache_responsable WHERE id_tache=\".db_format($id_tache));\r\n\t}\r\n}", "public function UpdateCOCs($eid){\n\t\t$result=$this->MySQLi->sqlQuery(\"SELECT * FROM `tblempcocs` WHERE `tblempcocs`.`EmpID` = '$eid' AND `COCStatus`='4' AND `tblempcocs`.`COCExpireDate` < NOW();\");\n\t\twhile($records=mysqli_fetch_array($result, MYSQLI_BOTH)){\n\t\t\t$this->MySQLi->sqlQuery(\"UPDATE `tblempcocs` SET `COCStatus`='-2', `COCApprovedRemarks`='System Auto-update.', `RECORD_TIME` = NOW() WHERE `COCID` = '\".$records['COCID'].\"';\");\n\t\t\t$LivCredID=LeaveFunctions::GetNewLivCredID($eid);\n\t\t\t$AvailableCOCs=$this->AvailableCOCs($eid);\n\t\t\t$this->MySQLi->sqlQuery(\"INSERT INTO `tblempleavecredits` (`LivCredID`, `EmpID`, `LeaveTypeID`, `LivCredDateFrom`, `LivCredDateTo`, `LivCredAddTo`, `LivCredDeductTo`, `LivCredBalance`, `LivCredReference`, `LivCredRemarks`, `RECORD_TIME`) VALUES ('\".$LivCredID.\"', '\".$eid.\"', 'LT08', '\".$records['COCExpireDate'].\"', '\".$records['COCExpireDate'].\"', '0', '\".$records['COCRemainingHours'].\"', '\".$AvailableCOCs.\"', '\".$records['COCID'].\"', 'Expired COC', NOW());\");\n\t\t}\n\t}", "public function lancer($id) {\n\n // récupération du devis associé à la commande\n $q = $this->db->where('cmd_id',$id)\n ->get('t_commandes');\n if ($q->num_rows() > 0) {\n $devis = $q->row()->cmd_devis;\n\n // récupération des articles du devis\n $q = $this->db->select(\"ard_id,art_code,art_prod,art_data,cat_famille,vfm_production,ard_description,ard_prix,ard_quantite\")\n ->join('t_articles','art_id=ard_article','left')\n ->join('t_catalogues','cat_id=art_catalogue','left')\n ->join('v_familles','vfm_id=cat_famille','left')\n ->where('ard_devis',$devis)\n ->where('ard_inactif is null')\n ->get('t_articles_devis');\n if ($q->num_rows() > 0) {\n\n // création des tâches à partir des articles du devis\n foreach ($q->result() as $article) {\n if ($article->vfm_production == 0) continue;\n if ($article->art_prod == '') continue;\n $data = array(\n 'opr_code_article' => $article->art_code,\n 'opr_code_prod' => $article->art_prod,\n 'opr_description' => $article->ard_description,\n 'opr_prix' => $article->ard_prix,\n 'opr_quantite' => $article->ard_quantite,\n 'opr_famille' => $article->cat_famille,\n 'opr_commande' => $id,\n 'opr_article_devis' => $article->ard_id,\n 'opr_data' => $article->art_data,\n 'opr_etat' => 1\n );\n $this->_insert('t_ordres_production',$data);\n }\n }\n\n // marquage de la commande à l'état lancée\n $data = array('cmd_etat'=>2);\n return $this->_update('t_commandes',$data,$id,'cmd_id');\n }\n return false;\n }", "function afficherRecette($_idRecette){\n $connexion= my_connect();\n // Récupération des recettes \n $requette_recette=\"SELECT Idrecette,Nomrecette,Imagepath,Etapes,Nombrepersonne,Cout,Nomcategorie FROM Recettes where Idrecette = $_idRecette\"; \n $table_recette_resultat = mysqli_query($connexion,$requette_recette);\n // affichage chaque recettes\n if($table_recette_resultat){\n $ligne_recette=mysqli_fetch_object($table_recette_resultat);\n echo (\"<div class=\\\"recette\\\" id=\\\"\".$_idRecette.\"\\\">\");\n afficherControlRecetteAdmin($_idRecette);\n echo(\"<h1>\".$ligne_recette->Nomcategorie.\":\".$ligne_recette->Nomrecette.\"</h1><img class =\\\"center\\\" src=\".$ligne_recette->Imagepath.\"><br><h4> pour \".$ligne_recette->Nombrepersonne.\" Personne, Coût:\".$ligne_recette->Cout.\"€</h4>\");\n // affichage chaque Ingrediens \n afficherIngredients($_idRecette); \n // affichage des Etapes recettes \n echo \"<p>\".$ligne_recette->Etapes.\"</p>\";\n //affichage chaque Commentaires \n afficherCommentaires($_idRecette); \n afficherAjoutCommentaire($_idRecette);\n echo \"</div>\"; \n }\n else{\n echo \"<p>Erreur dans l'exécution de la requette</p>\";\n echo\"message de mysqli:\".mysqli_error($connexion);\n }\n mysqli_close($connexion);\n }", "public function edit($id)\n\t{\n\t\t$comunicaciones = Comunicaciones::find($id);\n\t\t$tc = TipoComunicacion::all();\n $this->layout->nest(\n 'content',\n 'comunicaciones.edit',\n array(\n \t'tc' => $tc,\n 'comunicaciones' => $comunicaciones\n )\n );\n\t}", "public function possederModifierUn($id,$posseder)\n\t{\n\t\tGestion::modifier($posseder);// votre code ici\n\t}", "function fProcesaBanco(){\n global $db, $cla, $agPar, $igNumChq, $igSecue, $ogDet;\n $alDet = fIniDetalle();\n $alDet[\"det_codcuenta\"]\t= $cla->cla_ctaorigen; \n $alDet[\"det_glosa\"] \t= substr($agPar[\"com_Concepto\"],0, 50) . ' ' . substr($agPar[\"slBenef\"],0,20);\n $alDet['det_idauxiliar']= $agPar[\"com_Emisor\"];\n $alDet[\"det_numcheque\"]\t= $igNumChq;\t\t\t// es el numero de cheque\n $alDet[\"det_feccheque\"]\t= $agPar[\"com_FechCheq\"];\n $alDet['det_valdebito']\t= $agPar[\"flValor\"] * $cla->cla_indicador; // segun el signo del indicador, se aplica como DB/CR al grabar;\n $alDet['det_valcredito']\t= 0;\n $alDet['det_secuencia']\t= $igSecue;\n\tif(fGetParam(\"pAppDbg\",0)){\n\t\tprint_r($alDet);\n\t}\n\tfInsdetalleCont($db, $alDet);\n}", "function aff_cont_post($id_post, $texte_post, $image_post, $id_post_relai, $id_auteur, $cas){\n ?>\n <div class=\"contenu_post_<?php echo $id_post; ?>\">\n <?php\n\t\tif($cas == 2) {\n\t\t\tif(strlen($texte_post) > 600) {\n\t\t\t\t$texte_post = substr($texte_post, 0, 600).' ...';\n\t\t\t}\n\t\t}\n\t\techo $texte_post;\n\t\t\t\n\t\tif( !empty($image_post)) {\n\t\t?>\n\t\t\t<div class=\"cadre_image_post\" >\n\t\t\t\t<img class=\"image_posts\" width=\"100%\" src=\"/ressources/images/posts/<?php echo $id_auteur.'/'.$image_post; ?>\" />\n\t\t\t</div>\n\t\t<?php\n\t\t}\n\t\telse {\n\t\t}\n\t\t?>\n\t\t</div>\n <?php \n\t\tif(!empty($id_post_relai))\n\t\t{\n\t\t\t//$include('controleur-relai.php');\n\t\t}\n\t\telse\n\t\t{\n\t\t}\n }", "public function blockStart() {\n\n $this->outputEditmode('<div class=\"pimcore_block_entry ' . $this->getName() . '\" key=\"' . $this->indices[$this->current] . '\">');\n $this->outputEditmode('<div class=\"pimcore_block_buttons_' . $this->getName() . ' pimcore_block_buttons\">');\n $this->outputEditmode('<div class=\"pimcore_block_amount_' . $this->getName() . ' pimcore_block_amount\"></div>');\n $this->outputEditmode('<div class=\"pimcore_block_plus_' . $this->getName() . ' pimcore_block_plus\"></div>');\n $this->outputEditmode('<div class=\"pimcore_block_minus_' . $this->getName() . ' pimcore_block_minus\"></div>');\n $this->outputEditmode('<div class=\"pimcore_block_up_' . $this->getName() . ' pimcore_block_up\"></div>');\n $this->outputEditmode('<div class=\"pimcore_block_down_' . $this->getName() . ' pimcore_block_down\"></div>');\n $this->outputEditmode('<div class=\"pimcore_block_clear\"></div>');\n $this->outputEditmode('</div>');\n\n $this->current++;\n }", "function getId_carrera(){\n\t\treturn $this->id_carrera;\n\t}", "function ciniki_web_processBlockPriceTable(&$ciniki, $settings, $tnid, $block) {\n\n $content = '';\n\n //\n // Get tenant/user settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $tnid);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n $intl_currency_fmt = numfmt_create($rc['settings']['intl-default-locale'], NumberFormatter::CURRENCY);\n $intl_currency = $rc['settings']['intl-default-currency'];\n\n //\n // Make sure there is content to edit\n //\n if( $block['prices'] != '' ) {\n //\n // Process the price list\n //\n if( isset($block['title']) && $block['title'] != '' ) {\n $content .= \"<h2 class='wide'>\" . $block['title'] . \"</h2>\";\n }\n $content .= \"<div class='cart-pricetable\" . ((isset($block['size'])&&$block['size']!='')?' cart-pricetable-'.$block['size']:'') . \"'>\";\n $content .= \"<table class='cart-pricetable'>\";\n if( isset($block['headers']) && count($block['headers']) > 0 ) {\n $content .= \"<thead><tr>\";\n foreach($block['headers'] as $header) {\n $content .= \"<th>\" . $header . \"</th>\";\n }\n $content .= \"</tr></thead>\";\n }\n $content .= \"<body>\"; \n foreach($block['prices'] as $rid => $row) {\n //\n // Calculate final price\n //\n $final_price = $row['unit_amount'];\n $discount = '';\n if( isset($row['unit_discount_amount']) && $row['unit_discount_amount'] > 0 ) {\n $discount .= \" - \" . numfmt_format_currency($intl_currency_fmt,\n $row['unit_discount_amount'], $intl_currency);\n $final_price = bcsub($row['unit_amount'], $row['unit_discount_amount'], 4);\n }\n if( isset($row['unit_discount_percentage']) && $row['unit_discount_percentage'] > 0 ) {\n $percentage = bcdiv($row['unit_discount_percentage'], 100, 4);\n $discount .= \" - \" . $row['unit_discount_amount'] . \"%\";\n $final_price = bcsub($final_price, bcmul($final_price, $percentage, 4), 4);\n }\n\n $content .= \"<tr>\";\n foreach($block['fields'] as $field) {\n if( $field == 'price' ) {\n $content .= \"<td>\"\n . numfmt_format_currency($intl_currency_fmt, $final_price, $intl_currency)\n . (isset($block['price_info']) && $block['price_info'] != '' ? $block['price_info'] : '')\n . \"</td>\";\n } else {\n $content .= \"<td>\"\n . $row[$field]\n . \"</td>\";\n }\n }\n $content .= \"</tr>\";\n }\n $content .= \"</tbody>\";\n $content .= \"</table>\";\n $content .= \"</div>\";\n }\n \n return array('stat'=>'ok', 'content'=>$content);\n}", "public function getCicloCotable(){\n\t\t\t// creamos el array $retorna con los datos de la tabla lcompras\n\t\t\t$result = $this->_db->query(\"SELECT * FROM ciclocontable WHERE show_by = '1' ORDER BY idCicloContable DESC\");\n\t\t\t$retorna = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\treturn $retorna;\n\t\t}", "public function getCicloCotable(){\n\t\t\t// creamos el array $retorna con los datos de la tabla lcompras\n\t\t\t$result = $this->_db->query(\"SELECT * FROM ciclocontable WHERE show_by = '1' ORDER BY idCicloContable DESC\");\n\t\t\t$retorna = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\treturn $retorna;\n\t\t}", "public function edit($id)\n {\n echo \"Day la trang edit co id = \".$id;\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_historico_atleta_cameponato\n\t\t$fbf_historico_atleta_cameponato = FbfHistoricoAtletaCameponato::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_historico_atleta_cameponato\n\t\t$this->layout->content = View::make('fbf_historico_atleta_cameponato.edit')\n->with('fbf_historico_atleta_cameponato', $fbf_historico_atleta_cameponato);\n\t}", "public function commissions_view($id){\n\t\t//restricted this area, only for admin\n\t\tpermittedArea();\n\t\t$data['commissions'] = singleDbTableRow($id,'commissions');\n\t\n\t\ttheme('commissions_view', $data);\n\t}", "public function equipementachatModifierUn($id,$equipementachat)\n\t{\n\t\tGestion::modifier($equipementachat);// votre code ici\n\t}", "public function getRecenzeClanku($id){\n $sth = $this->db->prepare(\"SELECT * FROM RECENZE\n WHERE PRISPEVKY_id_prispevku = :id\");\n $sth->bindParam(':id', $id);\n $sth->execute();\n $data = $sth->fetchAll();\n return $data;\n }", "public function actionCskh($id = 0) {\n $theTour = Product::find()\n ->where(['id'=>$id, 'op_status'=>'op', 'op_finish'=>''])\n ->one();\n\n if (!$theTour) {\n throw new HttpException(404, 'Tour not found.');\n }\n\n if (!in_array(USER_ID, [1, 27388, 29296])) {\n throw new HttpException(403, 'Access denied.');\n }\n\n $theTourOld = Tour::find()\n ->where(['ct_id'=>$id, 'status'=>'on'])\n ->asArray()\n ->one();\n\n if (!$theTourOld) {\n throw new HttpException(404, 'Tour not found.');\n }\n\n $sql = 'select u.id, u.fname, u.lname, u.email, CONCAT(u.name, \" \", u.email) AS name from contacts u WHERE id IN (1351, 12952, 29296, 30554, 33415) AND u.status=\"on\" AND u.is_member=\"yes\" ORDER BY lname, fname';\n $cssList = Yii::$app->db->createCommand($sql)->queryAll();\n\n $theForm = new TourAssignCsForm;\n\n $sql = 'select user_id FROM at_tour_user WHERE tour_id=:tour_id AND role=\"cservice\"';\n $oldCssList = Yii::$app->db->createCommand($sql, [':tour_id'=>$theTourOld['id']])->queryAll();\n \n $oldCssIdList = [];\n foreach ($oldCssList as $cs) {\n $oldCssIdList[] = $cs['user_id'];\n }\n $theForm['css'] = $oldCssIdList;\n\n if ($theForm->load(Yii::$app->request->post()) && $theForm->validate()) {\n // Remove old\n foreach ($oldCssIdList as $oldId) {\n if (!in_array($oldId, $theForm['css'])) {\n Yii::$app->db->createCommand()->delete('at_tour_user', ['tour_id'=>$theTourOld['id'], 'user_id'=>$oldId, 'role'=>'cservice'])->execute();\n }\n }\n // Email new\n foreach ($theForm['css'] as $newId) {\n if (!in_array($newId, $oldCssIdList)) {\n // Save tour op\n Yii::$app->db->createCommand()->insert('at_tour_user', [\n 'tour_id'=>$theTourOld['id'],\n 'user_id'=>$newId,\n 'role'=>'cservice',\n ])->execute();\n // Email\n foreach ($cssList as $user) {\n if ($user['id'] == $newId && $newId != USER_ID) {\n $this->mgIt(\n 'ims | Tour \"'.$theTour['op_code'].' - '.$theTour['op_name'].'\" has been assigned to you',\n '//mg/tour_assign',\n [\n 'theTour'=>$theTour,\n 'theTourOld'=>$theTourOld,\n ],\n [\n ['from', 'noreply-ims@amicatravel.com', 'Amica Travel', 'IMS'],\n ['to', $user['email'], $user['lname'], $user['fname']],\n ['bcc', 'hn.huan@gmail.com', 'Huân', 'H.'],\n ]\n );\n }\n }\n }\n }\n // Redir\n return $this->redirect('@web/tours/r/'.$theTourOld['id']);\n }\n\n return $this->render('tours_cskh', [\n 'theTour'=>$theTour,\n 'theTourOld'=>$theTourOld,\n 'theForm'=>$theForm,\n 'cssList'=>$cssList,\n ]);\n }", "function cinotif_trouver_objet_courrier_et_destinataire($id_courrier, $id_auteur=0, $id_abonne=0) {\n\t$return = array('objet'=>'','id_objet'=>0);\n\t$id_courrier = intval($id_courrier);\n\t$id_auteur = intval($id_auteur);\n\t$id_abonne = intval($id_abonne);\n\t$evenement_recherche = 0;\n\n\tif ($id_courrier>0 AND ($id_auteur OR $id_abonne)) {\n\t\t\n\t\t// contenu notifie\n\t\t$quoi = '';\n\t\t$objet = '';\n\t\t$id_objet = 0;\n\t\t$row = sql_fetsel('*', 'spip_cinotif_courriers', 'id_courrier='.$id_courrier);\n\t\tif ($row) {\n\t\t\t$quoi = $row['quoi'];\n\t\t\t$objet = $row['objet'];\n\t\t\t$id_objet = intval($row['id_objet']);\n\t\t\t$parent = $row['parent'];\n\t\t\t$id_parent = intval($row['id_parent']);\n\t\t}\n\n\t\t// article\n\t\tif ($parent=='article'){\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$parent,array($id_parent));\n\t\t\t\n\t\t\tif (!$evenement_recherche) {\n\t\t\t\t$t = sql_fetsel(\"id_rubrique\", \"spip_articles\", \"id_article=\".$id_parent);\n\t\t\t\t$id_parent = $t['id_rubrique'];\n\t\t\t\t$parent = 'rubrique';\n\t\t\t}\n\t\t}\t\t\t\n\n\t\t// rubrique\n\t\tif ($parent=='rubrique'){\n\t\t\t$ascendance = cinotif_ascendance($id_parent);\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$parent,$ascendance);\n\t\t\t\n\t\t\t// cas particulier ou on s'abonne a un article a l'evenement modification d'article\n\t\t\tif (!$evenement_recherche AND $quoi=='articlemodifie')\n\t\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$objet,array($id_objet));\n\t\t}\n\t\t\n\t\t// site\n\t\tif (!$evenement_recherche) {\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,'site',array());\n\t\t}\n\t\tif ($evenement_recherche) {\n\t\t\t$row = sql_fetsel('*', 'spip_cinotif_evenements', \"id_evenement=\".$evenement_recherche);\n\t\t\t$return = array('objet'=>$row['objet'],'id_objet'=>$row['id_objet']);\n\t\t}\n\t}\n\t\n\treturn $return;\n}", "public function signalerCom($idCom, $idBillet)\n {\n $this->commentaire->updateCommentaire('FALSE', $idCom);\n $_SESSION['info'] = 'Le commentaire a été signalé à l\\'auteur, merci. ';\n header('Location: index.php?action=billet&id='.$idBillet.'&page=1#postCom');\n }", "function imprimir_cabecera_comprobante($id) {\n $sql = \"SELECT\n\t\t\t\t prosic_comprobante.id_comprobante\n\t\t\t\t , prosic_comprobante.codigo_comprobante\n\t\t\t\t , prosic_comprobante.emision_comprobante\n\t\t\t\t , prosic_comprobante.serie_comprobante\n\t\t\t\t , prosic_comprobante.nro_comprobante\n\t\t\t\t , prosic_comprobante.total_comprobante\n\t\t\t\t , prosic_comprobante.glosa_comprobante\n\t\t\t\t\t, prosic_comprobante.tipo_cambio_comprobante\n\t\t\t\t , prosic_anexo.descripcion_anexo\n\t\t\t\t , prosic_anexo.codigo_anexo\n\t\t\t\t\t, prosic_comprobante.id_moneda\n\t\t\t\t , prosic_moneda.nombre_moneda\n\t\t\t\t , prosic_tipo_comprobante.nombre_tipo_comprobante\n\t\t\t\t\t, prosic_tipo_comprobante.codigo_tipo_comprobante\n\t\t\t\t , prosic_local.id_empresa\n\t\t\t\t , prosic_empresa.nombre_empresa\n\t\t\t\t , prosic_empresa.ruc_empresa\n\t\t\t\t , prosic_local.direccion_local\n\t\t\t\t\t, prosic_comprobante.id_subdiario\n\t\t\t\t\t, prosic_subdiario.nombre_subdiario\n\t\t\t\t\t, prosic_banco.nombre_banco\n\t\t\t\t\t, prosic_banco.nro_cuenta_banco\n\t\t\tFROM prosic_comprobante\n\t\t\tINNER JOIN prosic_anexo \t\t\tON (prosic_comprobante.id_anexo = prosic_anexo.id_anexo)\n\t\t\tINNER JOIN prosic_moneda \t\t\tON (prosic_comprobante.id_moneda = prosic_moneda.id_moneda)\n\t\t\tINNER JOIN prosic_tipo_comprobante \tON (prosic_comprobante.id_tipo_comprobante = prosic_tipo_comprobante.id_tipo_comprobante)\n\t\t\tINNER JOIN prosic_local \t\t\tON (prosic_comprobante.id_local = prosic_local.id_local)\n\t\t\tINNER JOIN prosic_empresa \t\t\tON (prosic_local.id_empresa = prosic_empresa.id_empresa)\n\t\t\tINNER JOIN prosic_subdiario\t\t\tON (prosic_comprobante.id_subdiario = prosic_subdiario.id_subdiario)\n\t\t\tLEFT JOIN prosic_banco ON (prosic_comprobante.cuenta_banco = prosic_banco.id_plan_contable)\n\t\t\tWHERE prosic_comprobante.id_comprobante=\" . $id;\n $result = $this->Consulta_Mysql($sql);\n $row = mysql_fetch_assoc($result);\n return $row;\n }", "public function demandeModifierUn($id,$demande)\n\t{\n\t\tGestion::modifier($demande);// votre code ici\n\t}", "public function renderContent( $data, $block, $edit ){\n\t\t\n\t\t$providers\t\t\t= ZbrochureContentContacts::getProviders();\n\t\t$contacts\t\t\t= ZbrochureContentContacts::getContacts();\n\t\n\t\t$randomid\t\t\t= rand();\n\t\n\t\t$this->_output\t\t= '';\n\t\t$this->_edit_output\t= '';\n\t\t\n\t\t$selected\t\t\t= json_decode( $data->data );\n\t\t\n\t\t$this->_output .= '<div id=\"textblock-'.$randomid.'\" class=\"editable-content\">'.PHP_EOL;\n\t\t\n\t\t$this->_output .= '<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"package-table\">'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_output .= '<thead>'.PHP_EOL;\n\t\t\t$this->_output .= '<tr class=\"package-header\">'.PHP_EOL;\n\t\t\t\t$this->_output .= '<th>'.JText::_( 'CONTACTS_ADMINISTRATOR' ).'</th>'.PHP_EOL;\n\t\t\t\t$this->_output .= '<th>'.JText::_( 'CONTACTS_BENEFIT' ).'</th>'.PHP_EOL;\n\t\t\t\t$this->_output .= '<th>'.JText::_( 'CONTACTS_PHONE' ).'</th>'.PHP_EOL;\n\t\t\t\t$this->_output .= '<th>'.JText::_( 'CONTACTS_WEBSITE' ).'</th>'.PHP_EOL;\n\t\t\t$this->_output .= '</tr>'.PHP_EOL;\n\t\t\t$this->_output .= '</thead>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_output .= '<tbody>'.PHP_EOL;\n\t\t\t\n\t\t\tforeach( $selected as $c ){\n\t\t\t\n\t\t\t\t$i = 0;\n\t\t\t\n\t\t\t\tforeach( $contacts as $active ){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif( $active->contact_id === $c ){\n\t\t\t\t\t\t\n\t\t\t\t\t\t$alt = ($i % 2) ? 'alternative-row-0' : 'alternative-row-1';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->_output .= '<tr class=\"package-plan-row '.$alt.'\">'.PHP_EOL;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->_output .= '<td>'.$active->provider_name.'</td>'.PHP_EOL;\n\t\t\t\t\t\t\t$this->_output .= '<td>'.$active->contact_name.'</td>'.PHP_EOL;\n\t\t\t\t\t\t\t$this->_output .= '<td>'.$active->contact_phone.'</td>'.PHP_EOL;\n\t\t\t\t\t\t\t$this->_output .= '<td>'.$active->contact_email.'</td>'.PHP_EOL;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->_output .= '</tr>'.PHP_EOL;\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$i++;\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$this->_output .= '</tbody>'.PHP_EOL;\t\n\t\t\n\t\t$this->_output .= '</table>'.PHP_EOL;\n\t\t\n\t\t$this->_output .= '</div>'.PHP_EOL;\n\t\t\n\t\tif( $edit == 1 ){\n\t\t\n\t\t\t//**************** Start Dialog\t****************//\n\t\t\t$this->_edit_output .= '<div id=\"edittext-'.$randomid.'\" title=\"Edit Contact Block\">'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<form action=\"index.php?option=com_zbrochure&task=saveBlock\" method=\"post\">'.PHP_EOL;\n\t\t\t\n\t\t\t$alphabet = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"letter-picker-container\"><div class=\"letter-picker\"><ul>'.PHP_EOL;\n\t\t\t\n\t\t\tforeach( $alphabet as $letter ){\n\t\t\t\t\n\t\t\t\t$this->_edit_output .= '<li><a onclick=\"$(\\'.auto-scroll\\').scrollTo($(\\'#'.$letter.'\\'), 400);\" id=\"letter-'.$letter.'\" href=\"javascript:void(0);\">'.$letter.'</a></li>'.PHP_EOL;\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->_edit_output .= '</ul></div></div>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"auto-scroll\">'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row text-container\">'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row package-container-header\">'.PHP_EOL;\n\t\t\t\n\t\t\t\n\t\t\t//$this->_edit_output .= '<input type=\"text\" name=\"data['.$block->content_type_folder.']['.$data->id.']\" class=\"inputbox\" value=\"'.$data->data.'\" style=\"width:97%\" />';\n\t\t\t\n\t\t\t$lettersort = '';\n\t\t\t$lettersused = array();\n\t\t\t\n\t\t\tforeach( $providers as $provider ){\n\t\t\t\t\n\t\t\t\t//Give the containing div of a provider an ID if it's the first with this letter\n\t\t\t\tif( !$lettersort ){\n\t\t\t\t\t$lettersort = substr($provider->provider_name, 0,1);\n\t\t\t\t\t$lettersused[] = $lettersort;\n\t\t\t\t\t$this->_edit_output .= '<div id=\"'.$lettersort.'\" class=\"contact-item\">'.PHP_EOL;\n\t\t\t\t}else{\n\t\t\t\t\t$newletter = substr($provider->provider_name, 0,1);\n\t\t\t\t\tif( ucfirst($lettersort) != ucfirst($newletter) ){\n\t\t\t\t\t\t$lettersort = ucfirst($newletter);\n\t\t\t\t\t\t$lettersused[] = $lettersort;\n\t\t\t\t\t\t$this->_edit_output .= '<div id=\"'.$lettersort.'\" class=\"contact-item\">';\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->_edit_output .= '<div class=\"contact-item\">'.PHP_EOL;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t$this->_edit_output .= '<h3>'.$provider->provider_name.'</h3>'.PHP_EOL;\n\t\t\t\t\n\t\t\t\tif( !empty($contacts) ){\n\t\t\t\t\n\t\t\t\t\tforeach( $contacts as $contact ){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( $provider->provider_id === $contact->provider_id ){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach( $selected as $nd ){\n\t\t\t\t\t\t\t\tif( $nd === $contact->contact_id ){\n\t\t\t\t\t\t\t\t\t$checked = 'checked';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( $checked ){\n\t\t\t\t\t\t\t\t$this->_edit_output .= '<label><input checked=\"'.$checked.'\" type=\"checkbox\" name=\"content[data][]\" value=\"'.$contact->contact_id.'\" /> '.$contact->contact_name.'</label><br />'.PHP_EOL;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->_edit_output .= '<label><input type=\"checkbox\" name=\"content[data][]\" value=\"'.$contact->contact_id.'\" /> '.$contact->contact_name.'</label><br />'.PHP_EOL;\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\t\n\t\t\t\t\t\t\tunset($checked);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t$this->_edit_output .= 'There are no contacts for this provider.'.PHP_EOL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->_edit_output .= '</div>'.PHP_EOL;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row btn-container add-padding\" style=\"margin:10px 0\">\n\t\t\t\t\t\t\t\t\t\t<button class=\"btn save-btn fr\" type=\"submit\"><span>Save</span></button>\n\t\t\t\t\t\t\t\t\t\t<button class=\"btn cancel-btn fr\" onclick=\"location.reload(); return false;\"><span>Cancel</span></button>\n\t\t\t\t\t\t\t\t\t</div>'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output\t.= '<input type=\"hidden\" name=\"content[id]\" value=\"'.$data->id.'\" />'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<input name=\"content_block_id\" value=\"'.$block->content_block_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"content_block_type\" value=\"'.$block->content_block_type.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"content_bro_id\" value=\"'.$block->content_bro_id.'\" type=\"hidden\" />'.PHP_EOL;\t\t\n\t\t\t$this->_edit_output .= '<input name=\"view\" value=\"'.JRequest::getVar('view').'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"bro_id\" value=\"'.$block->bro_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"bro_page_id\" value=\"'.$block->bro_page_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"bro_page_order\" value=\"'.$block->bro_page_order.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t\n\t\t\t\n\t\t\t$this->_edit_output .= '</form>'.PHP_EOL;\n\t\t\t$this->_edit_output .= '</div>'.PHP_EOL;\n\t\t\t//**************** End Dialog ****************//\n\t\t\t\n\t\t\t\n\t\t\t$this->_edit_output .= '<script type=\"text/javascript\">\n\t\t\t\n\t\t\t\t\t\t\t\t\t$(document).ready(function(){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$( \"#textblock-'.$randomid.'\" ).click(function(){\n\t\t\t\t\t\t\t\t\t\t\t$(\"#edittext-'.$randomid.'\").dialog(\\'open\\');\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$( \"#edittext-'.$randomid.'\" ).dialog({\n\t\t\t\t\t\t\t\t\t\t\tautoOpen: false,\n\t\t\t\t\t\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\t\t\t\t\t\theight:420,\n\t\t\t\t\t\t\t\t\t\t\twidth:700,\n\t\t\t\t\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\t\t\t\t\tclose: function(){}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\n\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\t\t</script>'.PHP_EOL;\n\t\t\t\t\n\t\t\t\t$this->_edit_output .= '<script type=\"text/javascript\">'.PHP_EOL;\n\t\t\t\t\n\t\t\t\tforeach( $lettersused as $letterused ){\n\t\t\t\t\n\t\t\t\t\t$this->_edit_output .= '$(document).ready(function(){$(\"#letter-'.$letterused.'\").addClass(\"available\")});'.PHP_EOL;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->_edit_output .= '</script>'.PHP_EOL;\n\n\t\t\t\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\t$output->render = $this->_output;\n\t\t$output->edit\t= $this->_edit_output;\n\t\t\t\t\n\t\treturn $output;\n\t\n\t}", "function gestiondegats($idvaisseauquisefaittirerdessus, $pvvaisseau, $degatdutir, $idarme, $idvaisseauquitire, $idflotteattaquant, $idflottedefenseur, $sensbataille)\r\n {\r\n require __DIR__ . '/../include/bddconnection.php';\r\n $reqdiminuernbtir = $bd->prepare(\"UPDATE c_composantvaisseau SET tirrestant = tirrestant-1 WHERE idtable = ?\");\r\n $reqdiminuernbtir->execute(array($idarme));\r\n\r\n $nvpv = $pvvaisseau - $degatdutir;\r\n $Commentairestour = 'Le vaisseau '.$idvaisseauquisefaittirerdessus.' se fait tirer dessus par le vaisesau '.$idvaisseauquitire.', il perd '.$degatdutir.' PV.<br>';\r\n \r\n $texte1 = '<br>Votre vaisseau ('.$idvaisseauquitire.') vient de tirer sur un vaisseau ennemi ('.$idvaisseauquisefaittirerdessus.'). '.$degatdutir.' dégâts infligés.';\r\n $texte2 = '<br>Votre vaisseau ('.$idvaisseauquisefaittirerdessus.') se fait tirer dessus par un vaisseau ennemi ('.$idvaisseauquitire.'). '.$degatdutir.' dégâts recus.';\r\n\r\n if ($nvpv < 0)\r\n {\r\n $texte1 .= ' Vaisseau détruit.';\r\n $texte2 .= ' Vaisseau détruit.';\r\n\r\n $Commentairestour .= 'Le vaisseau '.$idvaisseauquisefaittirerdessus.' vient de se faire détruire.<br>';\r\n $reqinfopvvaisseau = $bd->prepare(' SELECT p.idjoueurplanete, v.nomvaisseau, f.xflotte, f.yflotte, f.universflotte, v.biensvaisseau, v.titanevaisseau, f.idplaneteflotte\r\n FROM c_vaisseau v\r\n INNER JOIN c_flotte f ON f.idflotte = v.idflottevaisseau\r\n LEFT JOIN c_planete p ON p.idplanete = f.idplaneteflotte\r\n WHERE v.idvaisseau = ?');\r\n $reqinfopvvaisseau->execute(array($idvaisseauquisefaittirerdessus));\r\n $repinfopvvaisseau = $reqinfopvvaisseau->fetch();\r\n\r\n $reqcreerasteroides = $bd->prepare('INSERT INTO c_champsasteroides (xaste , yaste , uniaste, typeitemsaste, quantite) VALUES (?, ?, ?, ?, ?)');\r\n\r\n if ($repinfopvvaisseau['idjoueurplanete'] != 0)\r\n { // On envoit ce message uniquement aux joueurs.\r\n $textemessage = 'Nous avons perdu le vaisseau ' . $repinfopvvaisseau['nomvaisseau'] . ' en ' . $repinfopvvaisseau['xflotte'] . '-' . $repinfopvvaisseau['yflotte'] . ' lors d\\'une bataille spatiale.' ; \r\n $reqmessageinterne = $bd->prepare('INSERT INTO c_messagerieinterne (expediteur , destinataire , lu , titre , texte) VALUES (?, ?, ?, ?, ?)');\r\n $reqmessageinterne->execute(array('Amirauté', $repinfopvvaisseau['idjoueurplanete'], 0, 'Perte d\\'un vaisseau', $textemessage));\r\n }\r\n \r\n // Créer champs d'astéroides : Reprendre le prix du vaisseau\r\n $nbchampsastebien = floor(($repinfopvvaisseau['biensvaisseau'] / 150));\r\n $nbchampsastetitane = floor(($repinfopvvaisseau['titanevaisseau'] / 30));\r\n\r\n if ($nbchampsastebien > 0)\r\n {\r\n $reqcreerasteroides->execute(array($repinfopvvaisseau['xflotte'], $repinfopvvaisseau['yflotte'], $repinfopvvaisseau['universflotte'], 6, $nbchampsastebien));\r\n }\r\n if ($nbchampsastetitane > 0)\r\n {\r\n $reqcreerasteroides->execute(array($repinfopvvaisseau['xflotte'], $repinfopvvaisseau['yflotte'], $repinfopvvaisseau['universflotte'], 8, $nbchampsastetitane));\r\n }\r\n\r\n $reqinfocargo = $bd->prepare(\"SELECT typeitems, quantiteitems FROM c_cargovaisseau WHERE idvaisseaucargo = ?\");\r\n $reqinfocargo->execute(array($idvaisseauquisefaittirerdessus));\r\n while ($repinfocargo = $reqinfocargo->fetch())\r\n { // Cas d'un vaisseau trouvé dans le 1er univers\r\n $reqcreerasteroides->execute(array($repinfopvvaisseau['xflotte'], $repinfopvvaisseau['yflotte'], $repinfopvvaisseau['universflotte'], $repinfocargo['typeitems'], $repinfocargo['quantiteitems']));\r\n }\r\n\r\n // cargovaisseau\r\n $reqdeletecargo = $bd->prepare(\"DELETE FROM c_cargovaisseau WHERE idvaisseaucargo = ?\");\r\n $reqdeletecargo->execute(array($idvaisseauquisefaittirerdessus));\r\n\r\n // composantvaisseau\r\n $reqdeletecomposant = $bd->prepare(\"DELETE FROM c_composantvaisseau WHERE idvaisseaucompo = ?\");\r\n $reqdeletecomposant->execute(array($idvaisseauquisefaittirerdessus));\r\n\r\n // vaisseau\r\n $reqdeletevaisseau = $bd->prepare(\"DELETE FROM c_vaisseau WHERE idvaisseau = ?\");\r\n $reqdeletevaisseau->execute(array($idvaisseauquisefaittirerdessus));\r\n }\r\n else\r\n {\r\n $reqdiminuerpvvaisseau = $bd->prepare('UPDATE c_vaisseau SET HPvaisseau = ? WHERE idvaisseau = ?');\r\n $reqdiminuerpvvaisseau->execute(array($nvpv, $idvaisseauquisefaittirerdessus));\r\n }\r\n\r\n $reqtrouverrapportdecombat = $bd->prepare('SELECT idrapportcombat FROM c_rapportcombat WHERE idflotteattaquant = ? AND idflottedefenseur = ?');\r\n $reqtrouverrapportdecombat->execute(array($idflotteattaquant, $idflottedefenseur));\r\n $reptrouverrapportdecombat = $reqtrouverrapportdecombat->fetch();\r\n\r\n // Vérifier si le rapport existe. Si ce n'est pas le cas, le créer.\r\n if (!isset($reptrouverrapportdecombat['idrapportcombat']))\r\n {\r\n $reqcreerrapportcombat = $bd->prepare('INSERT INTO c_rapportcombat(idflotteattaquant, idflottedefenseur, texteattaquant, textedefenseur) VALUES(?, ?, ?, ?)');\r\n $texteattaquant = 'Début du rapport de combat. Vous attaquez une flotte ('.$idflottedefenseur.').';\r\n $textedefenseur = 'Début du rapport de combat. Vous êtes attaqués par une flotte ('.$idflotteattaquant.').';\r\n $reqcreerrapportcombat->execute(array($idflotteattaquant, $idflottedefenseur, $texteattaquant, $textedefenseur));\r\n }\r\n\r\n if($sensbataille == 1)\r\n {\r\n $textesupplementaireattaquant = $texte1;\r\n $textesupplementairedefenseur = $texte2;\r\n }\r\n elseif($sensbataille == 2)\r\n {\r\n $textesupplementaireattaquant = $texte2;\r\n $textesupplementairedefenseur = $texte1;\r\n }\r\n\r\n // Le compléter.\r\n $requpdaterapportcombat = $bd->prepare('UPDATE c_rapportcombat\r\n SET texteattaquant = concat(texteattaquant, ?), textedefenseur = concat(textedefenseur, ?)\r\n WHERE idflotteattaquant = ? AND idflottedefenseur = ?');\r\n $requpdaterapportcombat->execute(array($textesupplementaireattaquant, $textesupplementairedefenseur, $idflotteattaquant, $idflottedefenseur));\r\n\r\n return $Commentairestour;\r\n }", "function obtenirPeriodeEnCours($id_periode)\n\t{\n\t\tif ($id_periode != \"\")\n\t\t{\n\t\t\treturn $id_periode;\n\t\t}\n\n\t\t// Sinon definir la periode en cours\n\t\t$date_debut=$this->periodeDebutFin ('debut');\n\t\t$date_fin=$this->periodeDebutFin ('fin');\n\t\t$result=$this->obtenirListPeriode($date_debut,$date_fin);\n\n\t\tif ($result)\n\t\t{\n\t\t\treturn $result[0]['id'];\n\t\t}\n\t\telse\t\t\t\t// ajout d'une nouvelle periode\n\t\t{\n\t\t\t$result=$this->ajouterListPeriode();\n\t\t\treturn $result[0]['id'];\n\t\t}\n\t}", "public function renderContent( $data, $block, $edit ){\n\t\n\t\t$randomid = rand();\n\t\t\n\t\t$toc_object = json_decode( $data->data );\n\t\t$toc_title \t= $toc_object->toc_title;\n\t\tunset($toc_object->toc_title);\n\t\t\n\t\t$this->_output = '';\n\t\n\t\t$this->_output .= '<div id=\"tocblock-'.$randomid.'\" class=\"editable-content\">';\n\t\t\n\t\tif( !empty($toc_title) ){\n\t\t\t$this->_output .= '<div class=\"toc-title\">'.$toc_title.'</div>';\n\t\t}\n\t\t\n\t\t$this->_output .= '<table class=\"toc-table\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">';\n\t\tforeach( $toc_object as $entry){\n\t\t\t\n\t\t\t$this->_output .= '<tr><td align=\"middle\" class=\"toc-page\" nowrap=\"nowrap\">'.$entry->toc_page.'</td><td>'.$entry->toc_text.'</td></tr>';\n\t\t\n\t\t}\n\t\t$this->_output .= '</table>';\n\t\t\n\t\t$this->_output .= '</div>';\n\t\t\n\t\tif( $edit == 1 ){\n\t\t\n\t\t\t//**************** Start Dialog\t****************//\n\t\t\t$this->_edit_output = '<div id=\"edittoc-'.$randomid.'\" title=\"Edit Table of Contents Block\">';\n\t\t\t$this->_edit_output .= '<form action=\"index.php?option=com_zbrochure&task=saveBlock\" method=\"post\">';\n\t\t\t\n\t\t\t$this->_edit_output .= '';\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row text-container\">';\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row add-padding package-container-header\">';\n\t\t\t\n\t\t\t$this->_edit_output .= '<label>Table of Contents Title:</label>';\n\t\t\t$this->_edit_output .= '<input type=\"text\" name=\"content[data][toc_title]\" class=\"inputbox\" value=\"'.$toc_title.'\" style=\"width:350px\" />';\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>';\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row add-padding\" style=\"max-height:200px\">';\n\t\t\t\n\t\t\t$this->_edit_output .= '<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">';\n\t\t\t\n\t\t\t$this->_edit_output .= '<thead><th>&nbsp;</th><th>Page</th><th>Title</th><th>&nbsp;</th><th>&nbsp;</th></thead>';\n\t\t\t\n\t\t\t$this->_edit_output .= '<tbody id=\"sortable-'.$randomid.'\" class=\"ui-sortable\">';\n\t\t\t\n\t\t\t$i = 0;\n\t\t\tforeach( $toc_object as $entry){\n\t\t\t\t\n\t\t\t\t$this->_edit_output .= '<tr id=\"row-'.$i.'\" class=\"package-row toc-row\"><td style=\"padding:3px 0\" class=\"handle-td\"><span class=\"handle\">drag</span></td>';\n\t\t\t\t$this->_edit_output .= '<td style=\"padding:3px 0\"><input type=\"text\" name=\"content[data]['.$i.'][toc_page]\" class=\"inputbox toc_page\" value=\"'.$entry->toc_page.'\" style=\"width:50px\" /></td>';\n\t\t\t\t$this->_edit_output .= '<td style=\"padding:3px 0\"><input type=\"text\" name=\"content[data]['.$i.'][toc_text]\" class=\"inputbox toc_text\" value=\"'.$entry->toc_text.'\" style=\"width:280px\" /></td>';\n\t\t\t\t$this->_edit_output .= '<td style=\"padding:3px 0\" align=\"middle\"><button class=\"btn plus-icon-btn icon-only-btn\" onclick=\"duplicateRow(this); return false;\"><span>+</span></button></td>';\n\t\t\t\t$this->_edit_output .= '<td style=\"padding:3px 0\" align=\"middle\"><button class=\"btn minus-icon-btn icon-only-btn remove-toc-row\" onclick=\"deleteRow(this, \\''.$randomid.'\\'); return false;\"><span>-</span></button></td>';\n\t\t\t\t$this->_edit_output .= '</tr>';\n\t\t\t\t$i++;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$this->_edit_output .= '</tbody></table>';\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>';\n\t\t\t\n\t\t\t$this->_edit_output .= '</div>';\n\t\t\t\n\t\t\t$this->_edit_output .= '<div class=\"form-row btn-container add-padding\">\n\t\t\t\t\t\t\t\t\t<button class=\"btn save-btn fr\" type=\"submit\"><span>Save</span></button>\n\t\t\t\t\t\t\t\t\t<button class=\"btn cancel-btn fr\" onclick=\"location.reload(); return false;\"><span>Cancel</span></button>\n\t\t\t\t\t\t\t\t</div>';\n\t\t\t\n\t\t\t\n\t\t\t$this->_edit_output .= '<input name=\"content[id]\" value=\"'.$data->id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<input name=\"content_block_id\" value=\"'.$block->content_block_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"content_block_type\" value=\"'.$block->content_block_type.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"content_bro_id\" value=\"'.$block->content_bro_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<input name=\"view\" value=\"'.JRequest::getVar('view').'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"bro_id\" value=\"'.$block->bro_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t\n\t\t\t$this->_edit_output .= '<input name=\"bro_page_id\" value=\"'.$block->bro_page_id.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t$this->_edit_output .= '<input name=\"bro_page_order\" value=\"'.$block->bro_page_order.'\" type=\"hidden\" />'.PHP_EOL;\n\t\t\t\n\t\t\t\n\t\t\t$this->_edit_output .= '</form>';\n\t\t\t$this->_edit_output .= '</div>';\n\t\t\t//**************** End Dialog ****************//\n\t\t\t\n\t\t\t\n\t\t\t$this->_edit_output .= '\t\t<script type=\"text/javascript\">\n\t\t\t\n\t\t\t\t\t\t\t\t\t$(document).ready(function(){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$( \"#tocblock-'.$randomid.'\" ).click(function(){\n\t\t\t\t\t\t\t\t\t\t\t$(\"#edittoc-'.$randomid.'\").dialog(\\'open\\');\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$( \"#edittoc-'.$randomid.'\" ).dialog({\n\t\t\t\t\t\t\t\t\t\t\tautoOpen: false,\n\t\t\t\t\t\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\t\t\t\t\t\theight:400,\n\t\t\t\t\t\t\t\t\t\t\twidth:570,\n\t\t\t\t\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\t\t\t\t\tclose: function(){\n\t\t\t\t\t\t\t\t\t\t\t\t$( \\'#vars-dialog\\' ).dialog(\\'close\\');\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$( \"#sortable-'.$randomid.'\" ).sortable({\n\t\t\t\t\t\t\t\t\t\t\tplaceholder: \"ui-state-highlight\",\n\t\t\t\t\t\t\t\t\t\t\tcancel: \"nosort\",\n\t\t\t\t\t\t\t\t\t\t\thelper: fixHelper,\n\t\t\t\t\t\t\t\t\t\t\thandle: \\'.handle\\',\n\t\t\t\t\t\t\t\t\t\t\t\\'start\\': function (event, ui) {\n\t\t\t\t\t\t\t\t\t \tui.placeholder.html(\\'<td colspan=\"4\">&nbsp;</td>\\');\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\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Return a helper with preserved width of cells\n\t\t\t\t\t\t\t\t\tvar fixHelper = function(e, ui) {\n\t\t\t\t\t\t\t\t\t ui.children().each(function() {\n\t\t\t\t\t\t\t\t\t $(this).width($(this).width());\n\t\t\t\t\t\t\t\t\t });\n\t\t\t\t\t\t\t\t\t return ui;\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfunction duplicateRow( elem ){\n\t\t\t\t\t\t\t\t\t\tvar myrow = $(elem).parent().parent();\n\t\t\t\t\t\t\t\t\t\tvar count = $(\".toc-row\").length;\n\t\t\t\t\t\t\t\t\t\t$(\".remove-toc-row\").css(\"opacity\",\"1\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$(elem).parent().parent().clone(true).addClass(\"added\").insertAfter(myrow);\n\t\t\t\t\t\t\t\t\t\t$(\".added .inputbox\").val(\"\");\n\t\t\t\t\t\t\t\t\t\t$(\".added\").attr(\"id\", \"row-\"+(count+1) );\n\t\t\t\t\t\t\t\t\t\t$(\".added .toc_page\").attr(\"name\", \"content[data][\"+(count+1)+\"][toc_page]\");\n\t\t\t\t\t\t\t\t\t\t$(\".added .toc_text\").attr(\"name\", \"content[data][\"+(count+1)+\"][toc_text]\");\n\t\t\t\t\t\t\t\t\t\t$(\".added\").removeClass(\"added\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfunction deleteRow( elem, id ){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tvar myrow = $(elem).parent().parent();\n\t\t\t\t\t\t\t\t\t\tvar count = $( \"#sortable-\"+id+\" .toc-row\" ).length;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif( count > 1 ){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$(elem).parent().parent().remove();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvar newcount = $( \"#sortable-\"+id+\" .toc-row\").length;\n\t\t\t\t\t\t\t\t\t\t\tif( newcount == 1 ){\n\t\t\t\t\t\t\t\t\t\t\t\t$( \"#sortable-\"+id+\" .remove-toc-row\").css(\"opacity\",\".3\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\talert(\"You must have at least one row.\");\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}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\t$output->render = $this->_output;\n\t\t$output->edit\t= $this->_edit_output;\n\t\t\t\t\n\t\treturn $output;\n\t\n\t}", "function print_ckopf($id,$ID)\n//==========================================================================\n// Function : print_ckopf\n//--------------------------------------------------------------------------\n// Beschreibun : erezugt eine Tabelle mit den DAten der Char_basis\n// als Anzeige modul ohne Eingabe wie eine KOPf_Zeile\n//\n// Dateiname : char_basis (local)\n//\n//\n// Argumente : $ID = charakter_id\n//\n// Returns : --\n//==========================================================================\n{\n\tglobal $DB_HOST, $DB_USER, $DB_PASS, $DB_NAME;\n\tglobal $PHP_SELF;\n\n\t$TABLE = 'char_kopf';\n\t$TABLE1 = 'char_basis';\n\n\t$db = mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die(\"Fehler beim verbinden!\");\n\n\tmysql_select_db($DB_NAME);\n\n\t$q = \"select * from $TABLE where char_id=\\\"$id\\\"\";\n\t$result = mysql_query($q) or die(\"Query Fehler...\");\n\n\t$q1 = \"select * from $TABLE1 where id=\\\"$id\\\"\";\n\t$result1 = mysql_query($q1) or die(\"Query Fehler...\");\n\n\tmysql_close($db);\n\n\t//Liste der Datensätze\n\t$row = mysql_fetch_row($result);\n\t$row1 = mysql_fetch_row($result1);\n\n\t$style = $GLOBALS[\"style_header_1\"];\n\techo \" <div $style >\\n\";\n\t\n\techo \"<table width=950 border=1 BGCOLOR=\\\"\\\">\\n\";\n\techo \"<tr>\";\n\techo \"<td rowspan=2 Width=90>\";\n\tif ($row[3]==\"MUK\")\n\t{\n\t\techo \"\\t<IMG SRC=\\\"images/muk.gif\\\" BORDER=\\\"0\\\" HEIGHT=\\\"80\\\" ALT=\\\"MUK Wappen\\\" TITLE=\\\"MUK Wappen\\\" HSPACE=\\\"0\\\" VSPACE=\\\"0\\\" ALIGN=ABSMIDDLE>\\n\";\n\t} else\n\t{\n\t\techo \"\\t<IMG SRC=\\\"images/mk.gif\\\" BORDER=\\\"0\\\" HEIGHT=\\\"80\\\" ALT=\\\"MK Wappen\\\" TITLE=\\\"MK Wappen\\\" HSPACE=\\\"0\\\" VSPACE=\\\"0\\\" ALIGN=ABSMIDDLE>\\n\";\n\t};\n\techo \"</td>\";\n\techo \"<td width=20>\";\n\techo \" \";\n\techo \"</td>\";\n\techo \"<td width=20>\";\n\techo \"<B>Notority\";\n\techo \"</td>\";\n\techo \"<td width=20>\";\n\techo \"<B>Klasse\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"<B>LP\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"<B>KS\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"<B>MP\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"<B>AP\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \" \";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"EP Start\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"EP Con \";\n\techo \"</td>\";\n\techo \"<td width=40>\";\n\techo \"EP Vorteil\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"EP Nachteil\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"EP Fert\";\n\techo \"</td>\";\n\techo \"<td width=50>\";\n\techo \"EP Waf\";\n\techo \"</td>\";\n\techo \"<td width=40>\";\n\techo \"EP Mag\";\n\techo \"</td>\";\n\techo \"<td width=40>\";\n\techo \"EP Alch\";\n\techo \"</td>\";\n\techo \"<td width=40>\";\n\techo \"EP Rest\";\n\techo \"</td>\";\n// \techo \"<td width=\\\"10%\\\" >\";\n// \techo \"</td>\";\n\techo \"</tr>\";\n\n\techo \"<tr>\";\n\techo \"<td width=20>\";\n\techo \" \";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \"$row[2]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \"<B>$row[3]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \"$row[4]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \"$row[8]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \"$row[5]\";\n\techo \" / $row[6]\";\n\techo \"</td> \";\n\techo \"<td>\";\n\techo \"$row[7]\";\n\techo \"</td>\";\n\techo \"<td> \";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[9]\";\n\techo \"</td>\";\n\techo \"<td>\";\n\techo \" $row[10]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[11]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[12]\";\n\techo \"</td> \";\n\techo \"<td > \";\n\techo \" $row[13]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[14]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[15]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[16]\";\n\techo \"</td>\";\n\techo \"<td >\";\n\techo \" $row[17]\";\n\techo \"</td>\";\n\techo \"</tr>\";\n\techo \"</table>\";\n\n\techo \"</div>\\n\";\n\t\n}", "function cinotif_creer_cle() {\n\t$form = 'cinotif';\n\t$time = date('Y-m-d-H');\n\tif (isset($GLOBALS['visiteur_session']['id_auteur']) AND intval($GLOBALS['visiteur_session']['id_auteur']))\n\t\t$qui = \":\".$GLOBALS['visiteur_session']['id_auteur'].\":\".$GLOBALS['visiteur_session']['nom'];\n\telse {\n\t\tinclude_spip('inc/session');\n\t\t$qui = cinotif_hash_env();\n\t}\n\t\t\n\tinclude_spip('inc/securiser_action');\n\t// la cle prend en compte l'heure et l'identite de l'internaute\n\treturn calculer_cle_action(\"cle$form$time$qui\");\n}", "function consultarCitas($idEspecie) { // consulta la lista de citas bibliográficas por $idEspecie\n\t// se busca en la tabla principal referencias\n\t$listaCitas = \"\";\n\t$query = \"SELECT citas_bibliograficas \n\t\t\t\t\t FROM especies \n\t\t\t\t\t WHERE id= $idEspecie\"; \n\t$res = ejecutarQuerySQL($query);\t\n\t$total = getNumFilas($res);\n\t\t\n\tif ($total == 0)\n\t $citas = \"No hay referencias registradas para esta especie.\";\n\telse {\t\t\t\t\n\t\t\t$actual = getFila($res);\n\t\t\t$listaCitas = $actual['citas_bibliograficas'];\n\t}\t\t\n\treturn $listaCitas;\n}", "function verifica_caja_virtual($acceso,$id_pd=''){\n\t$ini_u = 'AA';\n\t$fecha= date(\"Y-m-d\");\n\t$id_caja='BB001';\n\t$id_persona='BB00000001';\n\t$id_est='BB001';\n\t$apertura_caja=date(\"H:i:s\");\n\t$status_caja='ABIRTA';\n\t$acceso->objeto->ejecutarSql(\" select id_caja_cob from caja_cobrador where fecha_caja='$fecha' and id_caja='$id_caja' and id_persona='$id_persona' and id_est='$id_est'\");\n\tif($row=row($acceso)){\n\t\t$id_caja_cob=trim($row[\"id_caja_cob\"]);\n\t}else{\n\t\t$acceso->objeto->ejecutarSql(\"select * from caja_cobrador where (id_caja_cob ILIKE '$ini_u%') ORDER BY id_caja_cob desc\"); \n\t\t$id_caja_cob = $ini_u.verCodLong($acceso,\"id_caja_cob\");\n\n\t\t$acceso->objeto->ejecutarSql(\"insert into caja_cobrador(id_caja_cob,id_caja,id_persona,fecha_caja,apertura_caja,status_caja,id_est,fecha_sugerida) values ('$id_caja_cob','$id_caja','$id_persona','$fecha','$apertura_caja','$status_caja','$id_est','$fecha')\");\n\t\t$acceso->objeto->ejecutarSql(\"Update caja Set status_caja='Abierta' Where id_caja='$id_caja'\");\n\t}\n\treturn $id_caja_cob;\n}" ]
[ "0.6159074", "0.5798624", "0.57816863", "0.5773856", "0.5746534", "0.5709933", "0.5669744", "0.5667635", "0.56286716", "0.5545264", "0.55301195", "0.5518028", "0.5515942", "0.5489696", "0.5471519", "0.54623055", "0.545624", "0.54374224", "0.54228544", "0.5398787", "0.53611594", "0.5348866", "0.5343304", "0.5337201", "0.53291845", "0.53287864", "0.5313547", "0.53041804", "0.5299648", "0.52917236", "0.5288248", "0.52810746", "0.52802217", "0.526912", "0.5262114", "0.5249608", "0.5243054", "0.52134836", "0.5210019", "0.52039117", "0.518238", "0.5179561", "0.5173382", "0.5173308", "0.51674503", "0.5163637", "0.51553047", "0.5151387", "0.5145252", "0.51451695", "0.51426136", "0.5135417", "0.51300055", "0.5129603", "0.51271677", "0.512455", "0.5119035", "0.5104092", "0.50985706", "0.50980335", "0.509259", "0.5091273", "0.50716233", "0.50689", "0.50675166", "0.506486", "0.5062472", "0.50618744", "0.5060747", "0.50551504", "0.50546336", "0.5054331", "0.50537837", "0.5051122", "0.5037604", "0.50371", "0.50350934", "0.5033019", "0.5026041", "0.50256145", "0.50250304", "0.50250304", "0.5021998", "0.5020166", "0.5011812", "0.50109607", "0.5006001", "0.5001646", "0.4998453", "0.49971887", "0.49952623", "0.4989096", "0.49890086", "0.4984762", "0.498263", "0.49824217", "0.49804768", "0.49781787", "0.49769607", "0.4975456" ]
0.72676164
0
Fonction pour verifier si un montant est des decimaux ex. 100.15 ... PARAM : mnt RETURN : BOOLEAN $hasDecimal
Функция для проверки, является ли сумма десятичной, например, 100.15 ... ПАРАМЕТР: mnt ВОЗВРАЩАЕТ: ЛОГИЧЕСКОЕ $hasDecimal
function hasDecimalMontant($mnt) { $hasDecimal = false; $mntIAP_Arrondie = ROUND($mnt); $diff = abs($mnt - $mntIAP_Arrondie); if ($diff > 0){ $hasDecimal = true; } return $hasDecimal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_decimal( $val )\n {\n return is_numeric( $val ) && floor( $val ) != $val;\n }", "public static function _decimal($value, $field, $min_decimal = 1, $max_decimal=null) {\n\t\t$regex = '/^-?[0-9]+\\.[0-9]{' . $min_decimal . ',' . $max_decimal . '}$/';\n\t\treturn (bool)preg_match($regex, $value);\n\t}", "public function getIsDecimal()\n {\n return $this->isDecimal;\n }", "function _fourD_analysis_validate_decimal( $d ) {\n \n if( is_numeric($d) ){\n \n $rounded = _fourD_analysis_round_decimal($d);\n\n $min = 0.0;\n $max = 1.0;\n $epsilon = 1e-11; // extra bit to satisfy validation check at a 1e-10 decimal precision\n \n // fourD_analysis_debug('_fourD_analysis_validate_decimal('.$d.'); $rounded: '.$rounded.'; $min: '.$min.'; $max: '.$max.'; $epsilon: '.$epsilon );\n\n if( $rounded <= $min + $epsilon ){\n return $min;\n }\n elseif( $rounded >= $max - $epsilon ){\n return $max;\n }\n \n if( $rounded > $min + $epsilon && $rounded < $max - $epsilon ){\n return $rounded;\n }\n }\n return false;\n}", "function _fourD_analysis_validate_decimal_old( $d ) {\n \n if( is_numeric($d) ){\n \n $min = 0.0;\n $max = 1.0;\n $epsilon = 1e-11; // extra bit to satisfy equality check of a 1e-10 decimal precision\n \n if( $d > $min + $epsilon && $d < $max - $epsilon ){\n return true;\n }\n }\n return false;\n}", "public function decimalNumber($decimal) {\n\t\t$error = 'The %s is not a valid price.';\n\t\t// check if there is a period\n\t\tif(!strstr($decimal, '.')) {$error .= 1;\n\t\t\t$this->form_validation->set_message('decimalNumber', $error);\n\t\t\treturn false;\n\t\t}\n\t\t// split apart the price by decimal\n\t\t$parts = explode('.', $decimal);\n\t\t// check that there is only one decimal\n\t\tif(count($parts) != 2) {$error .= 2;\n\t\t\t$this->form_validation->set_message('decimalNumber', $error);\n\t\t\treturn false;\n\t\t}\n\t\t// check that before and after the decimal is numeric\n\t\tfor($i = 0; $i < count($parts); $i++) {\n\t\t\tif(!is_numeric($parts[$i])) {$error .= 3;\n\t\t\t\t$this->form_validation->set_message('decimalNumber', $error);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// check that there are two digits after the decimal\n\t\t\tif($i == 1 && strlen($parts[$i]) != 2) {$error .= 4;\n\t\t\t\t$this->form_validation->set_message('decimalNumber', $error);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// make it here, the value is fine\n\t\treturn true;\n\t}", "public static function decimal() {}", "public function hasAmountsDec()\n {\n return $this->AmountsDec !== null;\n }", "static function decimal($value){\n\t\t$v = strpos($value, \",\");\n\t\t$p = strpos($value, \".\");\n\t\tif($v === false && $p === false){ // Valor inteiro sem separador de decimal e milhar (nao precisa de tratamento)\n\t\t}elseif($v !== false && $p === false){ // Virgula no separador decimal e sem separador de milhar\n\t\t\t$value = str_replace(\",\", \".\", $value);\n\t\t}elseif($v === false && $p !== false){ // Ponto no separador de decimal e sem separador de milhar (nao precisa de tratamento)\n\t\t}elseif($v > $p){ // Virgula no separador de decimal e ponto no separador de milhar\n\t\t\t$value = str_replace(\".\", \"\", $value);\n\t\t\t$value = str_replace(\",\", \".\", $value);\n\t\t}elseif($p > $v){ // Ponto no separador de decimal e virgula no separador de milhar\n\t\t\t$value = str_replace(\",\", \"\", $value);\n\t\t}\n\t\tif(is_numeric($value)){\n\t\t\treturn $value;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "private function isDecimalCast($cast)\n {\n return 0 === strncmp($cast, 'decimal:', 8);\n }", "public function testGetDataTableDecimalDataType() {\r\n\t\t// Insert border values into database\r\n\t\t$minvalue = '-9999999999999999999.9999999999';\r\n\t\t$maxvalue = '9999999999999999999.9999999999';\r\n\t\t$this->executeQuery('insert into POTEST (UUID, DECIMAL_VALUE) values (\\'testuuid0\\','.$minvalue.')');\r\n\t\t$this->executeQuery('insert into POTEST (UUID, DECIMAL_VALUE) values (\\'testuuid1\\','.$maxvalue.')');\r\n\t\t// Extract datatable\r\n\t\t$datatable = $this->getPersistenceAdapter()->getDataTable('select DECIMAL_VALUE from POTEST order by UUID');\r\n\t\t$datamatrix = $datatable->getDataMatrix();\r\n\t\t// Check strings for correct conversion\r\n\t\t$this->assertEquals($minvalue, $datamatrix[0][0], 'Minimum decimal value is not converted to string as expected.');\r\n\t\t$this->assertEquals($maxvalue, $datamatrix[1][0], 'Maximum decimal value is not converted to string as expected.');\r\n\t}", "public function buyDecimalAmount()\n\t{\n\t\treturn false;\n\t}", "protected function isDecimalCast($cast)\n {\n return strncmp($cast, 'decimal:', 8) === 0;\n }", "private function hasNumFormat() {\n\t\treturn isset($this->options['num_decimals']);\n\t}", "protected function validateFloat($value) {\n if (preg_match(\"/^\\-?[0-9]+\\.?[0-9]*$/\", $value))\n return true;\n $this->setError(t(\"Invalid decimal number\"));\n return false;\n }", "function decimal($number) : float\n{\n\n // return $tmp->trim();\n\n if (0 < \\strlen((string) $number)) {\n $parts = \\explode('.', $number);\n $result = $parts[0];\n\n if (true === isset($parts[1])) {\n if ($r = \\rtrim($parts[1], '0')) {\n $result .= '.' . $r;\n }\n }\n\n return (float) $result;\n }\n\n return 0;\n}", "public function isAmount($data) {\n\t\t$values = array_values($data);\n\t\tif (!isset($values)) {\n\t\t\treturn false;\n\t\t}\n\t\t$value = $values[0];\n\t\tif (preg_match('/^[0-9]{0,23}+(\\.[0-9]{0,' . Configure::read('Account.decimal_places') . '})?$/', $value)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function isAmount($data) {\n\t\t$values = array_values($data);\n\t\tif (!isset($values)) {\n\t\t\treturn false;\n\t\t}\n\t\t$value = $values[0];\n\t\tif (preg_match('/^[0-9]{0,23}+(\\.[0-9]{0,' . Configure::read('Account.decimal_places') . '})?$/', $value)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static function decimal($str, $format = NULL)\r\n {\r\n // Create the pattern\r\n $pattern = '/^[0-9]%s\\.[0-9]%s$/';\r\n\r\n if ( ! empty($format))\r\n {\r\n if (count($format) > 1)\r\n {\r\n // Use the format for number and decimal length\r\n $pattern = sprintf($pattern, '{'.$format[0].'}', '{'.$format[1].'}');\r\n }\r\n elseif (count($format) > 0)\r\n {\r\n // Use the format as decimal length\r\n $pattern = sprintf($pattern, '+', '{'.$format[0].'}');\r\n }\r\n }\r\n else\r\n {\r\n // No format\r\n $pattern = sprintf($pattern, '+', '+');\r\n }\r\n\r\n return (bool) preg_match($pattern, (string) $str);\r\n }", "public function hasDecSpeeddf(){\r\n return $this->_has(28);\r\n }", "public function hasDecSpeeddf(){\r\n return $this->_has(25);\r\n }", "public function validFloats() {}", "public function testShouldReturnAmountDecimal(): void\n {\n $transaction = new Transaction(['amount' => '0000000050028']);\n\n self::assertSame('500.28', $transaction->getAmountDecimal());\n }", "function getDecimals(): ?int;", "public function testSaveDataTableDecimalDataType() {\r\n\t\t$minvalue = '-9999999999999999999.9999999999';\r\n\t\t$maxvalue = '9999999999999999999.9999999999';\r\n\t\t// Store datatable\r\n\t\t$datatable = new avorium_core_data_DataTable(2, 2);\r\n\t\t$datatable->setHeader(0, 'UUID');\r\n\t\t$datatable->setHeader(1, 'DECIMAL_VALUE');\r\n\t\t$datatable->setCellValue(0, 0, 'testuuid0');\r\n\t\t$datatable->setCellValue(0, 1, $minvalue);\r\n\t\t$datatable->setCellValue(1, 0, 'testuuid1');\r\n\t\t$datatable->setCellValue(1, 1, $maxvalue);\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t\t// Read database via SQL\r\n\t\t$results = $this->executeQuery('select DECIMAL_VALUE from POTEST order by UUID');\r\n\t\t// Compare values\r\n\t\t$this->assertEquals($minvalue, $results[0][0], 'Minimum decimal value is not converted from string as expected.');\r\n\t\t$this->assertEquals($maxvalue, $results[1][0], 'Maximum decimal value is not converted from string as expected.');\r\n\t}", "public function is_money($price) {\n return preg_match('/^[0-9]+(\\.[0-9]{0,2})?$/', $price);\n }", "public static function validate_numeric_integer_or_decimal_values($val) { // {{{SYNC-DETECT-PURE-NUMERIC-INT-OR-DECIMAL-VALUES}}}\n\t//--\n\t$val = (string) $val; // do not use TRIM as it may strip out null or weird characters that may inject security issues if not trimmed outside (MUST VALIDATE THE REAL STRING !!!)\n\t//--\n\t$regex_decimal = (string) self::regex_stringvalidation_expression('number-decimal', 'full');\n\t//--\n\tif(((string)$val != '') AND (is_numeric($val)) AND (preg_match((string)$regex_decimal, (string)$val))) { // detect numbers: 0..9 - .\n\t\treturn true; // VALID\n\t} else {\n\t\treturn false; // NOT VALID\n\t} //end if else\n\t//--\n}", "function validarFlotante ($Cad) {\n// prueba si la entrada es un numero de punto flotante, con un signo opcional\nreturn preg_match(\"/^-?([0-9])+([\\.|,]([0-9])*)?$/\", $Cad );\n}", "protected function validateUfloat($value) {\n if (preg_match(\"/^[0-9]+\\.?[0-9]*$/\", $value))\n return true;\n $this->setError(t(\"Invalid positive decimal number\"));\n return false;\n }", "function check_approx_equal_to($num1, $num2, $tolerance=0.1){\r\n //Wide default tolerance due to possible user-side rounding choices\r\n \r\n \r\n $equal = FALSE;\r\n \r\n //echo \"check_approx_equal_to values: $num1 and $num2 <br />\";\r\n \r\n //Ensure that we have floating point numbers\r\n $float1 = floatval($num1);\r\n $float2 = floatval($num2);\r\n \r\n $diff = abs($float1 - $float2);\r\n $avg_mag = abs(($float1 + $float2) / 2.0);\r\n \r\n \r\n \r\n if($diff > (.1 * $avg_mag)){\r\n $equal = FALSE;\r\n }\r\n else{\r\n $equal = TRUE;\r\n }\r\n \r\n return $equal;\r\n }", "function decimales($str, $parms)\n\t{\t\t\n\t\tlist($enteros, $decimales) = explode(\".\", $parms, 2);\n\t\t$this->CI->form_validation->set_message('decimales', \"El campo %s debe contener un valor num&eacute;rico con un m&aacute;ximo de {$enteros} enteros y {$decimales} decimales.\");\n\t\treturn (bool) preg_match( \"/(^\\d{1,$enteros}(\\.\\d{1,$decimales})?$)|^$/\", $str);\n\t}", "public static function validarFlotante($flotante){\n \n $separador = array('options' => array('decimal' => ','));\n \n // si se quiere usar un numero con miles y punto flotante (1.238,32) se usa esta condicion\n // (!filter_var($flotante, FILTER_VALIDATE_FLOAT, array('options' => array('decimal' => ','), 'flags' => FILTER_FLAG_ALLOW_THOUSAND)))\n filter_var($flotante, FILTER_VALIDATE_FLOAT, $separador) ? $resultado = TRUE : $resultado = FALSE;\n return $resultado;\n }", "function is_currency( $v,$round=0 )\r\n{\r\n$v = preg_replace(\"/[^0-9.]+/\",\"\",$v);\r\nreturn round($v,$round);\r\n}", "public function decimalsNotSet()\n {\n $floatFilter = new stubFloatFilter();\n $this->assertEquals(1.564, $floatFilter->execute('1.564'));\n }", "function is_money($field){\n\t\tif(preg_match('/valor/',$field)){\n\t\t\treturn(true);\n\t\t}else{\n\t\t\treturn(false);\n\t\t}\n\t}", "private function numberOfDecimals($value)\n {\n if (!is_string($value)) {\n $value = (string)$value;\n }\n if ((int)$value === $value) {\n return 0;\n } else if (!is_numeric($value)) {\n return false;\n }\n\n if (strrpos($value, '.') === false) {\n return 0;\n }\n return strlen($value) - strrpos($value, '.') - 1;\n }", "public function testGettingCurrencyAsDecimalWithVariousMinorUnits(): void\n {\n self::assertSame('12345', (new Formatter('12345.062', 'JPY'))->decimal());\n self::assertSame('12345.07', (new Formatter('12345.0686', 'AUD'))->decimal());\n self::assertSame('12345.01234569', (new Formatter('12345.012345686', 'XBT'))->decimal());\n\n self::assertSame('-12345.07', (new Formatter('-12345.0686', 'AUD'))->decimal());\n }", "public function hasMoneytype(){\n return $this->_has(15);\n }", "public static function isValueValid($value) : bool\n {\n if (! is_float($value)) {\n return false;\n }\n \n if ($value < -90. || $value > 90.) {\n return false;\n }\n \n // $digits = explode(\".\", (string)(float)$value);\n // var_dump($digits[1] ?? '');\n \n return true;\n }", "function decimal($value) {\n return preg_replace('/\\.0+$/', '', $value);\n }", "function forDecimal($num){\n global $ones,$tens;\n $str=\"\";\n $len = strlen($num);\n if($len==1){\n $num=$num*10;\n }\n $x= $num%100;\n if($x>0){\n if($x<20){\n $str = $ones[$x].' Paise';\n }else{\n $str = $ones[$x/10].$ones[$x%10].' Paise';\n }\n }\n return $str;\n }", "function isNumber ($value)\r\n{\r\n\treturn is_double ($value);\r\n}", "public function hasFixedValue();", "protected function typeDecimal(Magic $column)\n {\n return 'FLOAT';\n }", "public function getIsQtyDecimal() {\n return $this->item->getIsQtyDecimal();\n }", "function est_entier($valeur): bool {\n return is_numeric($valeur);\n}", "public function validarSoloNumeroFloat($var){\n return (preg_match('/^-?(?:\\d+|\\d*\\.\\d+)$/', $var) xor preg_match('/^[0-9]+$', $var));\n }", "static public function is_num($value) {\n\t\treturn preg_match(\"/^-?[0-9]+\\.?[0-9]*$/\",$value);\n\t}", "static public function Decimal($var, $flags = null) {\r\n\t\t\r\n\t\t$cleaned = filter_var($var, FILTER_SANITIZE_NUMBER_FLOAT, $flags | FILTER_FLAG_ALLOW_FRACTION);\r\n\t\treturn $cleaned == \"\" ? false : (float)$cleaned;\r\n\t\t\r\n\t}", "private function test_number($value)\r\n {\r\n $value = str_replace(',', '.', $value);\r\n return is_numeric($value);\r\n }", "protected function type_decimal(Magic $column)\n {\n return 'FLOAT';\n }", "function mDECIMAL_POSITIVE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DECIMAL_POSITIVE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n $n=null;\n\n // Tokenizer11.g:376:3: ( PLUS n= DECIMAL ) \n // Tokenizer11.g:377:3: PLUS n= DECIMAL \n {\n $this->mPLUS(); \n $nStart1303 = $this->getCharIndex();\n $this->mDECIMAL(); \n $n = new CommonToken($this->input, TokenConst::$INVALID_TOKEN_TYPE, TokenConst::$DEFAULT_CHANNEL, $nStart1303, $this->getCharIndex()-1);\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function setIsDecimal($isDecimal)\n {\n $this->isDecimal = $isDecimal;\n return $this;\n }", "protected function type_decimal(Magic $column)\n {\n return 'DECIMAL(' . $column->precision . ', ' . $column->scale . ')';\n }", "public function precio_valido($precio, $precio_minimo) {\n $mensajeAlerta = \"- El precio minimo es \" . $precio_minimo . \".\";\n return $precio < $precio_minimo ? $mensajeAlerta : '';\n }", "public static function validateFloat(TextBase $control)\r\n\t{\r\n\t\tforeach ($control->getValue() as $tag) {\r\n\t\t\tif (!Strings::match($tag, '/^-?[0-9]*[.,]?[0-9]+$/')) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn TRUE;\r\n\t}", "function is_float_problem() {\n $num1 = 2009010200.01;\n $num2 = 2009010200.02;\n\n return ((string)$num1 === (string)$num2 or $num1 === $num2 or $num2 <= (string)$num1);\n}", "protected function valueContainsPercentage()\n {\n return (preg_match('/%/', $this->condition->value) == 1);\n }", "public static function isFloatingPoint($type) {\n\t\treturn ($type == 'float' || $type == 'double' || $type == 'decimal');\n\t}", "function calc_incentivo($pl, $pma, $pmi, $pj, $pv){\n $pt = $_POST[$pl] + $_POST[$pma] + $_POST[$pmi] + $_POST[$pj] + $_POST[$pv];\n $pp = $pt / 5;\n if($pp >= 100){\n $msg = \"Recibir&aacute; incentivos\";\n }else{\n $msg = \"No recibir&aacute; incentivos\";\n }\n echo $msg;\n }", "private function assertIsValidAmount(float $value)\n {\n return 0 <= $value;\n }", "public function testAmountValidator()\n {\n $this->assertTrue(Validators\\AmountValidator::validateAmount(452.36));\n $this->assertTrue(Validators\\AmountValidator::validateAmount(0.36, 0.1));\n $this->assertFalse(Validators\\AmountValidator::validateAmount(-23.5));\n }", "public function isNum(): bool\n {\n return \\wasm_valtype_is_num($this->inner);\n }", "public function isCatalogBackendIsQtyDecimalVisible()\n {\n return Mage::getStoreConfigFlag(self::XML_PATH_CATALOG_DISPLAY_BACKEND_IS_QTY_DECIMAL);\n }", "function mDECIMAL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DECIMAL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:352:3: ( ( '0' .. '9' )+ DOT ( '0' .. '9' )* | DOT ( '0' .. '9' )+ ) \n $alt10=2;\n $LA10_0 = $this->input->LA(1);\n\n if ( (($LA10_0>=$this->getToken('48') && $LA10_0<=$this->getToken('57'))) ) {\n $alt10=1;\n }\n else if ( ($LA10_0==$this->getToken('46')) ) {\n $alt10=2;\n }\n else {\n $nvae = new NoViableAltException(\"\", 10, 0, $this->input);\n\n throw $nvae;\n }\n switch ($alt10) {\n case 1 :\n // Tokenizer11.g:353:3: ( '0' .. '9' )+ DOT ( '0' .. '9' )* \n {\n // Tokenizer11.g:353:3: ( '0' .. '9' )+ \n $cnt7=0;\n //loop7:\n do {\n $alt7=2;\n $LA7_0 = $this->input->LA(1);\n\n if ( (($LA7_0>=$this->getToken('48') && $LA7_0<=$this->getToken('57'))) ) {\n $alt7=1;\n }\n\n\n switch ($alt7) {\n \tcase 1 :\n \t // Tokenizer11.g:353:4: '0' .. '9' \n \t {\n \t $this->matchRange(48,57); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( $cnt7 >= 1 ) break 2;//loop7;\n $eee =\n new EarlyExitException(7, $this->input);\n throw $eee;\n }\n $cnt7++;\n } while (true);\n\n $this->mDOT(); \n // Tokenizer11.g:353:19: ( '0' .. '9' )* \n //loop8:\n do {\n $alt8=2;\n $LA8_0 = $this->input->LA(1);\n\n if ( (($LA8_0>=$this->getToken('48') && $LA8_0<=$this->getToken('57'))) ) {\n $alt8=1;\n }\n\n\n switch ($alt8) {\n \tcase 1 :\n \t // Tokenizer11.g:353:20: '0' .. '9' \n \t {\n \t $this->matchRange(48,57); \n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop8;\n }\n } while (true);\n\n\n }\n break;\n case 2 :\n // Tokenizer11.g:354:5: DOT ( '0' .. '9' )+ \n {\n $this->mDOT(); \n // Tokenizer11.g:354:9: ( '0' .. '9' )+ \n $cnt9=0;\n //loop9:\n do {\n $alt9=2;\n $LA9_0 = $this->input->LA(1);\n\n if ( (($LA9_0>=$this->getToken('48') && $LA9_0<=$this->getToken('57'))) ) {\n $alt9=1;\n }\n\n\n switch ($alt9) {\n \tcase 1 :\n \t // Tokenizer11.g:354:10: '0' .. '9' \n \t {\n \t $this->matchRange(48,57); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( $cnt9 >= 1 ) break 2;//loop9;\n $eee =\n new EarlyExitException(9, $this->input);\n throw $eee;\n }\n $cnt9++;\n } while (true);\n\n\n }\n break;\n\n }\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function store_parse_decimal($value)\n {\n $point = config_item('store_currency_dec_point');\n $cleaned_value = preg_replace('/[^0-9\\-'.preg_quote($point, '/').']+/', '', $value);\n\n return str_replace($point, '.', $cleaned_value);\n }", "public function testPrecioSmsPorMes() {\n $this->assertEqual( $this->ConteoSms->buscarPrecioSms( 0 ), 0.0, \"No corresponde la cantida devuelta cuando el mes es incorrecto\" );\n $this->assertEqual( $this->ConteoSms->buscarPrecioSms(), 0.0, \"No corresponde la cantida devuelta cuando el mes es nulo\" );\n $this->assertLessThanOrEqual( 1.4, $this->ConteoSms->buscarPrecioSms( date( 'n' ) ), \"No corresponde el precio pasado en este mes\" );\n $this->assertLessThanOrEqual( 10.1, $this->ConteoSms->buscarPrecioSms( date( 'n' )-1 ), \"No corresponde el precio respecto al mes anterior\" );\n $this->assertLessThanOrEqual( 0.0, $this->ConteoSms->buscarPrecioSms( date( 'n' )-2 ), \"No corresponde el precio respecto al 2 meses antes\" );\n }", "public static function numeric($str)\r\n {\r\n // Use localeconv to set the decimal_point value: Usually a comma or period.\r\n $locale = localeconv();\r\n return (bool) preg_match('/^-?[0-9'.$locale['decimal_point'].']++$/D', (string) $str);\r\n }", "public function showPricePerMonth() {\n $prijsPerMaand = Mage::getStoreConfig('santander/general/prijs_maand');\n if($prijsPerMaand) {\n return true;\n } else {\n return false;\n }\n }", "function isValidMachineUsePrice($machineUsePrice) {\n\tif(is_numeric($machineUsePrice) && $machineUsePrice > 0)\n\t\treturn true;\n\treturn false;\n}", "public function hasPrice(){\n return $this->_has(12);\n }", "public function hasPrice()\n {\n return $this->amount_month || $this->amount_year;\n }", "function convertir($devisefrom, $montant)\n\n//verifie sie le montant est numerique sinon il me faut un nombre\n\n{\n\n if(!is_numeric(($montant))) return 'il me faut un nombre';\n if($devisefrom = \"EUR\"){\n $total=$montant*1.15023; //1 EUR =1,15023USD\n }\n else {\n $total=$montant*0.869310; //1 USD = 0,869310 EUR\n }\n return ($total);\n}", "protected static function isValidValue($value, $decimal_separator = NULL) {\n if (!empty($value) && is_numeric($value)) {\n return TRUE;\n }\n\n return FALSE;\n }", "protected function hasExponent() {}", "function value_numeric($value){\r\n\t$value = trim($value);\r\n\t$v = strpos($value, \",\");\r\n\t$p = strpos($value, \".\");\r\n\tif($v === FALSE && $p === FALSE){ // Valor inteiro sem separador de decimal e milhar (nao precisa de tratamento)\r\n\t}elseif($v !== FALSE && $p === FALSE){ // Virgula no separador decimal e sem separador de milhar\r\n\t\t$value = str_replace(\",\", \".\", $value);\r\n\t}elseif($v === FALSE && $p !== FALSE){ // Ponto no separador de decimal e sem separador de milhar (nao precisa de tratamento)\r\n\t}elseif($v > $p){ // Virgula no separador de decimal e ponto no separador de milhar\r\n\t\t$value = str_replace(\".\", \"\", $value);\r\n\t\t$value = str_replace(\",\", \".\", $value);\r\n\t}elseif($p > $v){ // Ponto no separador de decimal e virgula no separador de milhar\r\n\t\t$value = str_replace(\",\", \"\", $value);\r\n\t}\r\n//\tif((string)(float) $value == $value){\r\n\tif(is_numeric($value)){\r\n\t\tif(strcmp($value, round($value)) == 0 && $value < 2147483647){\r\n\t\t\t$value = (int) $value;\r\n\t\t}else{\r\n\t\t\t$value = (float) $value;\r\n\t\t}\r\n\t\treturn $value;\r\n\t}else{\r\n\t\treturn NULL;\r\n\t}\r\n}", "public function testLinearInterpolation1DecimalPoint()\n {\n $calculator = new FeeCalculator();\n\n $application = new LoanApplication(24, 2750.4);\n\n $fee = $calculator->calculate($application);\n\n // Fee = 119.6, Amount = 2750.4, Total = 2870\n $this->assertEquals(119.6, $fee);\n }", "public function invalidFloats() {}", "public function hasRealPrice(){\n return $this->_has(21);\n }", "public function testCustomPrecision()\n {\n $cases = [\n '0.01' => '1%',\n '0.1' => '10%',\n '1' => '100%',\n '1.5' => '150%',\n '1.05' => '105%',\n '1.0500' => '105%'\n ];\n\n foreach ($cases as $original => $expected) {\n $percentage = new DBPercentage('Probability', 2);\n $percentage->setValue($original);\n $this->assertEquals($expected, $percentage->Nice());\n }\n }", "function numdecim($stringa) {\n$arr_stringa = explode(\".\",$stringa);\n$parte_int = $arr_stringa[0];\n$parte_decim = $arr_stringa[1];\n$num_fin = $parte_int.\",\".$parte_decim;\nreturn $num_fin;\n}", "function covertirNumLetras()\r\n{\r\n\r\n\t$number = $this->monto;\r\n\r\n\t//number = number_format (number, 2);\r\n $number1=$number;\r\n\r\n\r\n //settype (number, \"integer\");\r\n $cent = strpos($number1,\".\");\r\n\r\n if($cent > 0){\r\n\t\r\n\t$centavos = substr($number1,$cent+1,2);\r\n\t\r\n }else{\r\n\r\n \t$centavos = \"00\";\r\n\t\r\n\t}\r\n\t/* \r\n\t $cent = split(\".\",$number1,7); \r\n\r\n\t\techo $cent[4];\r\n\t\texit();\r\n\r\n\t $centavos = $cent[1];\r\n\r\n\t if ($centavos == 0 || empty($centavos)){\r\n\t \t$centavos = \"00\";\r\n\t }\r\n\t*/\r\n\t/*\r\n\t \r\n\t if (number == 0 || number == \"\") \r\n\t { // if amount = 0, then forget all about conversions, \r\n\t centenas_final_string=\" cero \"; // amount is zero (cero). handle it externally, to \r\n\t // function breakdown \r\n\t } \r\n\t else \r\n\t { \r\n \r\n \r\n\r\n\t \r\n millions = ObtenerParteEntDiv(number, 1000000); // first, send the millions to the string \r\n number = mod(number, 1000000); // conversion function \r\n \r\n\t alert(millions);\r\n\t \r\n if (millions != 0)\r\n { \r\n // This condition handles the plural case \r\n if (millions == 1) \r\n { // if only 1, use 'millon' (million). if \r\n descriptor= \" millon \"; // > than 1, use 'millones' (millions) as \r\n } \r\n else \r\n { // a descriptor for this triad. \r\n descriptor = \" millones \"; \r\n } \r\n } \r\n else \r\n { \r\n descriptor = \" \"; // if 0 million then use no descriptor. \r\n } \r\n millions_final_string = string_literal_conversion(millions)+descriptor; \r\n */ \r\n\r\n\r\n $thousands = $this->ObtenerParteEntDiv($number, 1000); // now, send the thousands to the string \r\n $number = fmod($number, 1000); // conversion function. \r\n //print \"Th:\".thousands;\r\n if ($thousands != 1) \r\n { // This condition eliminates the descriptor \r\n $thousands_final_string = $this->string_literal_conversion($thousands) . \" mil \"; \r\n // descriptor = \" mil \"; // if there are no thousands on the amount \r\n } \r\n if ($thousands == 1)\r\n {\r\n $thousands_final_string = \" mil \"; \r\n }\r\n if ($thousands < 1) \r\n { \r\n $thousands_final_string = \" \"; \r\n } \r\n \r\n // this will handle numbers between 1 and 999 which \r\n // need no descriptor whatsoever. \r\n\r\n\r\n $centenas = $number; \r\n $centenas_final_string = $this->string_literal_conversion($centenas) ; \r\n \r\n\t// } //end if (number ==0) \r\n\r\n /*if (ereg(\"un\",centenas_final_string))\r\n {\r\n centenas_final_string = ereg_replace(\"\",\"o\",centenas_final_string); \r\n }*/\r\n //finally, print the output. \r\n\r\n /* Concatena los millones, miles y cientos*/\r\n\r\n\r\n $cad = $thousands_final_string.$centenas_final_string; \r\n \r\n /* Convierte la cadena a Mayúsculas*/\r\n $cad = strtoupper($cad); \r\n\r\n\r\n\r\n\t/*\r\n\t if (strlen($centavos) > 2)\r\n\t { \r\n\t if(substr($centavos.substring,2,3) >= 5){\r\n\t $centavos = substr($centavos,0,1).(parseInt(centavos.substring(1,2)).1).toString();\r\n\t }else{\r\n\t centavos = centavos.substring(0,2);\r\n\t }\r\n\t }\r\n\r\n\t*/\r\n\r\n\r\n if (strlen($centavos) == 1)\r\n {\r\n $centavos = $centavos.\"0\";\r\n }\r\n $centavos = $centavos. \"/100\"; \r\n\r\n\r\n if ($number == 1)\r\n {\r\n $moneda = \" PESO \"; \r\n }\r\n else\r\n {\r\n $moneda = \" PESOS \"; \r\n }\r\n \r\n /* Regresa el número en cadena entre paréntesis y con tipo de moneda y la fase M.N.*/\r\n\r\n return $cad.$moneda.\" \".$centavos.\" M.N.\";\r\n \r\n}", "function valor_extenso($valor=0, $maiusculas=false)\n{\n if (strpos($valor,\",\") > 0)\n {\n // retira o ponto de milhar, se tiver\n $valor = str_replace(\".\",\"\",$valor);\n \n // troca a virgula decimal por ponto decimal\n $valor = str_replace(\",\",\".\",$valor);\n }\n$singular = array(\"centavo\", \"real\", \"mil\", \"milhao\", \"bilhao\", \"trilhao\", \"quatrilhao\");\n$plural = array(\"centavos\", \"reais\", \"mil\", \"milhoes\", \"bilhoes\", \"trilhoes\",\n\"quatrilhões\");\n \n$c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\",\n\"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\n$d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\",\n\"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\n$d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\",\n\"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\n$u = array(\"\", \"um\", \"dois\", \"tres\", \"quatro\", \"cinco\", \"seis\",\n\"sete\", \"oito\", \"nove\");\n \n $z=0;\n \n $valor = number_format($valor, 2, \".\", \".\");\n $inteiro = explode(\".\", $valor);\n\t\t$cont=count($inteiro);\n\t\t for($i=0;$i<$cont;$i++)\n for($ii=strlen($inteiro[$i]);$ii<3;$ii++)\n $inteiro[$i] = \"0\".$inteiro[$i];\n \n $fim = $cont - ($inteiro[$cont-1] > 0 ? 1 : 2);\n for ($i=0;$i<$cont;$i++) {\n $valor = $inteiro[$i];\n $rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\n $rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\n $ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\n \n $r = $rc.(($rc && ($rd || $ru)) ? \" e \" : \"\").$rd.(($rd &&\n$ru) ? \" e \" : \"\").$ru;\n $t = $cont-1-$i;\n $r .= $r ? \" \".($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\n if ($valor == \"000\")$z++; elseif ($z > 0) $z--;\n if (($t==1) && ($z>0) && ($inteiro[0] > 0)) $r .= (($z>1) ? \" de \" : \"\").$plural[$t];\n if ($r) $rt = $rt . ((($i > 0) && ($i <= $fim) &&\n($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\n }\n \n if(!$maiusculas)\n\t\t {\n return($rt ? $rt : \"zero\");\n } elseif($maiusculas == \"2\") {\n return (strtoupper($rt) ? strtoupper($rt) : \"Zero\");\n } else {\n return (ucwords($rt) ? ucwords($rt) : \"Zero\");\n }\n \n}", "public function validarSumaPorcentajes($dataEspacios)\n {\n $suma = 0;\n foreach ($dataEspacios as $key => $value) {\n $suma += $value['valor'];\n }\n\n if ($suma === 100) {\n return true;\n }else{\n return false;\n }\n }", "function real($num, $ponto = null) {\n\t\t\t\tif ($ponto) {\n\t\t\t\t\t$ponto = \".\";\n\t\t\t\t\t$ponto2 = \",\";\n\t\t\t\t} else {\n\t\t\t\t\t$ponto = \",\";\n\t\t\t\t\t$ponto2 = \".\";\n\t\t\t\t}\n\t\t\t\t$stringAtnes = explode($ponto2, $num);\n\t\t\t\t$stringAntes = strlen($stringAtnes[0]);\n\t\t\t\t$num = substr($num, 0, $stringAntes + 3);\n\t\t\t\t//$num= round($num,2);\n\t\t\t\tif ($num) {\n\t\t\t\t\t$num = str_replace(\".\", $ponto, $num);\n\t\t\t\t\tif (strstr($num, $ponto) == false) {\n\t\t\t\t\t\t$num .= $ponto . \"00\";\n\t\t\t\t\t}\n\t\t\t\t\t$check = explode($ponto, $num);\n\t\t\t\t\tif (strstr($num, $ponto) == true and strlen($check[1]) < 2) {\n\t\t\t\t\t\t$num .= \"0\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$num = \"00\" . $ponto . \"00\";\n\t\t\t\t}\n\n\t\t\t\treturn $num;\n\t\t\t}", "private static function validateAmount($amount): bool\n {\n $floatAmount = (float) $amount;\n\n return $floatAmount > 0;\n }", "public function isFixedPointNumber(): bool;", "private function to_zruth_decimal($dec) {\n return str_replace('.', ',', $dec);\n }", "protected function isValidDotNotation($value) {\n\t\treturn preg_match('/^-?(\\.\\d+|\\d+\\.)$/', $value);\n\t}", "private function assertIsValidPercentage(float $value)\n {\n return 0 <= $value && Reduction::MAX_ALLOWED_PERCENTAGE >= $value;\n }", "function Cantidades_sd($valor){\t\n\n return number_format($valor,0,',','.');\n\n}", "public function setPrecioCompra ($precio_compra)\n\t{\n\t\tif (is_numeric($precio_compra))\n\t\t{\n\t\t\t$this->precio_compra = $precio_compra;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function _checkCDV($number) \n {\n $cdv = intval(substr($number, -1));\n $digits = strlen($number)-1;\n $weights = array(9, 7, 3, 1);\n $sum = 0;\n for ($i = 0; $i < $digits; $i++) {\n $sum += $weights[$i % 4] * intval(substr($number, $i, 1));\n }\n return (((10 - ($sum % 10)) % 10) == $cdv); \n }", "public function isFree()\n {\n return ((float) $this->price <= 0.00);\n }", "public function calculateValuation(): bool\n {\n return 0;\n }", "public function testDecimalPort()\n {\n $this->client->configure(array(\n 'port' => 1.24,\n ));\n }", "function test_entier($valeur){\r\n return ($valeur>0 || $valeur==\"0\");\r\n}", "public function checkFloat($value)\n {\n return $this->checkHasType($value, 'double');\n }", "public function test_validate_deposit()\n {\n $amount = 5000;\n $deposit = $this->obj->validate_deposit($amount);\n $this->assertLessThanOrEqual(40000,$amount);\n $this->assertTrue($deposit);\n }", "function isFloat($field, $msg, $inner=FALSE){\n\t\t$value = $this->_getValue($field);\n\t\tif(!is_float($value)){\n\t\tif($inner==FALSE){\n $this->_errorList[] = array(\"field\" => $field,\n\t\t\"value\" => $value, \"msg\" => $msg);\n\t\treturn false;\n }else{\n return false;\n }\n\t\t\n\t\t}else{\n\t\treturn true;\n\t\t}\n\t}" ]
[ "0.72571033", "0.66567105", "0.66440564", "0.65958655", "0.65188366", "0.64843667", "0.6460818", "0.6015678", "0.6007987", "0.59609187", "0.59336364", "0.586818", "0.5811101", "0.58083457", "0.57474077", "0.5738632", "0.56050223", "0.56050223", "0.5595157", "0.5590398", "0.5576523", "0.5563798", "0.55434716", "0.5524178", "0.55012745", "0.5489579", "0.546808", "0.54596937", "0.54541796", "0.539793", "0.53927046", "0.5382101", "0.53446", "0.5344315", "0.53127915", "0.5309388", "0.5249137", "0.5232855", "0.5230049", "0.52105224", "0.5184415", "0.5176339", "0.5170496", "0.51670045", "0.5161633", "0.5160435", "0.5152807", "0.51396537", "0.513921", "0.5138481", "0.5138097", "0.51363605", "0.51247144", "0.50914246", "0.50912297", "0.5077872", "0.5037897", "0.5008245", "0.5003806", "0.49775422", "0.49700618", "0.49696237", "0.49470666", "0.4935817", "0.49328575", "0.4911214", "0.49105445", "0.49105442", "0.49100888", "0.49042708", "0.48923823", "0.48746347", "0.4863383", "0.4861567", "0.48555058", "0.48465624", "0.4845916", "0.48283225", "0.4819839", "0.48194164", "0.48153916", "0.48096153", "0.48011196", "0.47985473", "0.4796902", "0.4796655", "0.4791658", "0.47873", "0.47792634", "0.47698116", "0.476562", "0.4761295", "0.47602874", "0.4756869", "0.47565886", "0.47562093", "0.47561827", "0.4755438", "0.47543418", "0.47528547" ]
0.83072335
0
passing negative even number
передача отрицательного чётного числа
public function testIsEvenPassNegativeEVEN() { $this->assertTrue(isEven(-4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeODD()\n {\n \t$this->assertFalse(isEven(-5));\n }", "public function clipEvenOdd() {}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "public function testisEvenNumberFail()\n {\n $result = $this->calculator->isEvenNumber(3);\n $this->assertFalse($result);\n }", "public function testIsEvenPassZERO()\n {\n \t$this->assertTrue(isEven(0));\n }", "function odd_even($n) {\n $odd_even = fmod($n, 2);\n if($odd_even == 1) {\n return '_';\n } else {\n return 'true';\n }\n }", "function neparan($b)\n{\n if($b%2==0)\n {\n return false;\n }\n else\n {\n return true;\n }\n}", "function is_even (int $value) : bool\n{\n return $value % 2 === 0;\n}", "function is_even($val) {\n\t\treturn ($val / 2 == floor($val / 2)) ? true : false;\n\t}", "private static function makeOddEven() {\n\n\t\tif (JudgeView::$even > 0)\n\t\t{\n\t\t\tJudgeView::$even = 0;\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJudgeView::$even = 1;\n\t\t\treturn 1;\n\t\t}\n\n\t}", "public function testIsEvenNumber()\n\t{\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(2));\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(10));\n\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(7));\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(21));\n\t}", "function evenOrOdd($number){\n\n\tif($number % 2 == 0){\n\t $number = $number + 10;\n\n\t}else{\n\t $number = $number + 11;\n\t}\n\n\treturn $number;\n\n}", "function is_odd (int $value) : bool\n{\n return $value % 2 !== 0;\n}", "function isEven ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return true;\n }\n else { return false; }\n}", "function isNegative () {\n return (($this->num < 0) xor ($this->denom < 0));\n }", "function checkEvenOrOdd($value) {\n\t\tif($value % 2 == 0) {\n\t\t\techo 'Even';\n\t\t} else {\n\t\t\techo 'Odd';\n\t\t}\n\t}", "public function testisEvenNumber()\n {\n $result = $this->calculator->isEvenNumber(2);\n $this->assertTrue($result);\n }", "public function testIsEvenPassTwo()\n {\n \t$this->assertTrue(isEven(2));\n }", "function numParImpar($num){\n $bool = true;\n if($num % 2 == 0){\n return true;\n }else{\n return false;\n }\n}", "public function fillEvenOdd() {}", "function oddEven($number)\n{\n\t$lastDigit = substr($number, -1, 1);\n\tif($lastDigit == 1 or $lastDigit == 3 or $lastDigit == 5 or $lastDigit == 7 or $lastDigit == 9) { $oddEven = 'odd'; } else { $oddEven = 'even'; }\n\treturn ($oddEven);\n}", "function isOdd($num){\r\n\treturn (is_numeric($num)&($num&1));\r\n}", "function isPowerOfTwo($num2)\n {\n if ($num2 === 0) {\n $return = 0;\n }\n while ($num2 != 1) {\n if ($num2 % 2 != 0)\n $return = 0;\n $num2 = $num2 / 2;\n }\n $return = 1;\n }", "function isOdd ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return false;\n }\n else { return true; }\n}", "public function even($value): bool\n {\n return is_numeric($value) && (int) $value % 2 === 0;\n }", "function is_entier($n) {\nreturn ($n>0 || $n=='0');\n}", "function fpb($a,$b){\n\t\treturn ($b == 0) ? ($a):( fpb($b, $a % $b) );\n\t}", "function isOddOrEven ($number) {\n $isEven = ($number % 2 == 0);\n echo '<p>Number is ' . ($isEven ? 'even' : 'odd') . '<p>';\n }", "public function isNegative(): bool;", "static function powerOfTwo($n)\n { \n if ($n >= 0 && $n < 31) {\n $pow = 2**$n;\n $all = 0; $count = 1;\n while($all != $pow)\n {\n $all = 2** $count;\n echo $all.\"\\n\";\n $count++;\n }\n } else {\n echo \"enter value between 0 to 31\".\"\\n\";\n Utility::powerOfTwo();\n }\n \n }", "public function testIsEvenPassString()\n {\n \t$this->assertFalse(isEven(\"fail\"));\n }", "#[@test]\n public function selectNegativeInteger() {\n $this->assertEquals(-6100, $this->db()->query('select -6100 as value')->next('value'));\n }", "public function implicar($x, $y){\n $b = 1-$x+$y;\n if ($b<=1)\n return $b;\n else \n return 1;\n }", "public function methodNumberTwo()\r\n\t{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static function clipEvenOdd()\n {\n return new FlagQualifier(self::CLIP_EVEN_ODD);\n }", "function calEventNum(int $num){\n\n $result = 0 ;\n\n for ($i=1 ,$ii = $num ; $i <= $ii ; $i++){\n if ($i%2 == 0){\n $result++;\n }\n }\n return $result;\n}", "function convertEvenToOdd($number)\n{\n $n = $number;\n if ($n % 2 === 0) {\n $n += 1;\n return $number . \" odd number\";\n }\n return $n . \" odd number\";\n}", "public function odd($value): bool\n {\n return is_numeric($value) && (int) $value % 2 !== 0;\n }", "private function __isNumberEven($num)\n {\n return (bool) (((int) $num % 2) === 0);\n }", "function _cb_negate($aVal) {\n return round(-$aVal);\n}", "function Even($K){\n if($K %2 == 0){\n\n return 'true';\n }else{\n\n return 'false';\n }\n}", "function is_not_zero($num){\n\tif($num <= 0){\n\t\treturn 1;\n\t}\n\t\n\treturn $num;\t\n}", "function change_negative_numeric($numeric) {\n\t\treturn $numeric * (-1);\n\t}", "function minus($a = 20, $b =10) {\n\n\treturn (int)$a - (int)$b;\n\n}", "public static function strictlyNegInts()\n {\n return self::ints()->fmap(function ($x) {\n return -abs($x)-1;\n });\n }", "function evenNumbers(array $array): array\n{\n $resultArray = [];\n\n if (count($array) !== 0) {\n foreach ($array as $elementArray) {\n if (($elementArray % 2) === 0) {\n $resultArray[] = $elementArray;\n }\n }\n }\n return $resultArray;\n}", "function negate() { # :: Num -> Num\n return -$this->value;\n }", "function class_odd_or_even( $num ) {\n echo ($num%2) ? ' item-odd' : ' item-even';\n}", "function resta($a,$b)\n {\n return $a-$b;\n }", "function oddArray(array $array): int\n {\n $odd = 0;\n\n foreach($array as $number)\n {\n if($number & 1)\n {\n $odd++;\n }\n }\n\n return $odd;\n }", "function evenFibonacciNumbers($n){\n $sum = 0;\n $seq[] = maxFibonacciValue($n);\n foreach($seq[0] as $value){\n if($value % 2 == 0){ $sum += $value; }\n }\n return $sum;\n }", "function mod($n, $m) {\n return (($n % $m) + $m) % $m;\n}", "public function testSubZero()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->boolean(\n $number->sub($zero)->equals($number)\n )->isTrue()\n ->boolean(\n $zero->sub($number)->isNegative()\n )->isTrue()\n ;\n }", "function secondRightmostZeroBit($n) {\n return ((($n | $n+1) ^ (($n | $n + 1) + 1)) + 1) >> 1;\n}", "public static function negInts()\n {\n return self::ints()->fmap(function ($x) {\n return -abs($x);\n });\n }", "public function test_bool_variable_and_even_or_odd_method()\n {\n $parameter_one = 'first';\n $parameter_two = 'second';\n \n for ($i=0; $i<10; $i++)\n {\n $string = math::even_or_odd($parameter_one, $parameter_two);\n \n $this->assertInternalType('string', $string);\n $this->assertNotEmpty($string);\n \n if ($i % 2 == 0)\n {\n $this->assertEquals($string, $parameter_one);\n $this->assertNotEquals($string, $parameter_two);\n }\n else\n {\n $this->assertNotEquals($string, $parameter_one);\n $this->assertEquals($string, $parameter_two);\n }\n }\n }", "public function oddMask()\n {\n $low = (-($this->low & 1)) & 0xFFFFFFFF;\n $high = $low;\n return UInt64::newValue($high, $low);\n }", "function minus() {\n static $minus = false;\n $minus = $minus ?: curry(function($x, $y){\n return $x - $y;\n });\n return _apply($minus, func_get_args());\n}", "public function uneven( $numeral) {\n\t\t$booleanUneven = ($numeral/2) != 0;\n\t\tswitch ($booleanUneven) {\n\t\t\tcase true:\n\t\t\t\t$this->log($numeral . \" is odd!\");\n\t\t\t\treturn true;\n\t\t\tcase false: \n\t\t\t\t$this->log($numeral . \" is not odd!\");\n\t\t\t\treturn false;\n\t\t}\n\t}", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "function variant_neg($variant) {}", "function test_entier($valeur){\r\n return ($valeur>0 || $valeur==\"0\");\r\n}", "function absint($maybeint)\n {\n }", "public function subtract($number): ArbitraryInteger\n {\n }", "function modulo($val, $param) {\n\t\treturn $val - (floor($val / $param) * $param);\n\t}", "function x($i) {\n if ($i < 0)\n return 4294967296 - $i;\n else\n return $i;\n }", "private function luhnOddDigit($n){\n\t\treturn ($n >= 5) ? 2 * $n - 9 : 2 * $n;\n\t}", "function evenFibonacci($limit) {\n $x = 0;\n $y = 1;\n $sum = 0;\n while ($x <= $limit) {\n //printf($x . \"\\n\"); //prints the fibonacci sequence\n $x = $y - $x;\n $y = $x + $y;\n if ($x % 2 == 0) {\n $sum += $x;\n }\n }\n return $sum;\n}", "function reminder($a = NULL, $b = NULL){\n \treturn $a % $b;\n }", "public function testFilterWithNegative()\n {\n $this->expectException(FilterException::class);\n $this->expectExceptionMessage('Invalid integer: -1');\n $this->expectExceptionCode(FilterException::INVALID_INTEGER);\n\n $this->filter->filter(-1);\n }", "function Prime($n)\n{\n for($i=2; $i<$n; $i++)\n {\n if($n %$i ==0)\n\t {\n\t\t return 0;\n\t\t }\n }\n return 1;\n }", "function UglyNumber($number)\n{\n while ($number%2 == 0){\n $number = $number/2;\n }\n while ($number%3 == 0){\n $number = $number/3;\n }\n while ($number%5 == 0){\n $number = $number/5;\n }\n if($number == 1){\n return 1;\n }else{\n return 0;\n }\n}", "function checkNum($red, $stupac, $mjesto) {\n\tif($red%2 == 0){\n\t\t$broj=0;\n\t\tif($stupac == 1){\n\t\t\t$broj= $mjesto-9;\n\t\t\techo $broj;\n\t\t} else {\n\t\t\t$broj = $mjesto / 10;\n\t\t\t$broj = floor($broj);\n\t\t\t$broj *= 10;\n\t\t\t$broj += $stupac;\n\t\t\techo $broj . \" i \" . $red ;\n\t\t}\n\n\t} else {\n\t\techo $mjesto;\n\t}\n\n}", "public function setNegative($var)\n {\n GPBUtil::checkUint32($var);\n $this->negative = $var;\n\n return $this;\n }", "function getSomme( int $a , int $b )\n{\n return $a+$b;\n}", "function negate() {\n static $negate = false;\n $negate = $negate ?: curry(function($x){\n return -$x;\n });\n return _apply($negate, func_get_args());\n}", "function ganjilGenap($angka)\n{\n if ($angka % 2 === 0) {\n echo $angka . \". Bilangan Genap \";\n } else {\n echo $angka . \". Bilangan Ganjil \";\n }\n}", "function findeAllNegativeValue($array){\n $negativeValue = [];\n $i=0;\n for ($x = 0; $x < count($array); $x++){\n if ($array[$x] < 0){\n $negativeValue[$i] = $array[$x];\n $i++;\n };\n }\n return ['count'=>$i, 'negativArray'=>$negativeValue];\n}", "public function testGetOutOfBoundsNegative()\n {\n (new Dom())->get(-1);\n }", "function superSubtraction($r, $s, $t, $u, $v = 2, $w = 1) {\n\n\treturn (int)$r - (int)$s - (int)$t - (int)$u - (int)$v - (int)$w;\n\n}", "function provera($broj) {\r\n if ($broj <= 1) {\r\n throw new Exception(\"Broj mora biti veci od 1\");\r\n }\r\n}", "public function testConstructWithNegativeValues()\n {\n static::setExpectedExceptionRegExp('LogicException');\n new Box(-10, -10);\n }", "function array_pass($array)\r\n{\r\n $array[0] *= 2;\r\n $array[1] *= 2;\r\n}", "function verteilung2($n) {\n return (powInt($n, 7/4));\n}", "function primeCheck($number){ \n if ($number == 1) \n return 0; \n for ($i = 2; $i <= $number/2; $i++){ \n if ($number % $i == 0) \n return 0; \n } \n return 1; \n}", "#[@test]\n public function selectNegativeFloat() {\n $this->assertEquals(-6.1, $this->db()->query('select -6.1 as value')->next('value'));\n }", "function nomside2($id){\nif (($id) == 1 || ($id) == 3 || ($id) == 4 || ($id) == 7 || ($id) == 11) \n{ \necho \"0\";\n}\nelse \n{ \necho \"1\";\n}\n}", "public function testWidenWithNegative()\n {\n static::setExpectedExceptionRegExp('LogicException');\n $this->box->widen(-10);\n }", "function zeroise($number, $threshold)\n {\n }", "function int_int_divide($x, $y) {\n if ($x == 0) return 0;\n if ($y == 0) return FALSE;\n return ($x % $y >= $y / 2) ?\n (($x - ($x % $y)) / $y) + 1 : ($x - ($x % $y)) / $y;\n}", "function fib($c)\r\n{\r\n return psquare(5 * $c * $c + 4) || psquare(5 * $c * $c - 4);\r\n\r\n}", "private static function isOdd($number)\n {\n return ($number%2) ? true : false;\n }", "function xuLyThuatToan1B($from, $to, $flag) {\r\n for ($i = $from; $i <= $to; $i++) {\r\n if ($flag != 0 && $flag != 1) {\r\n echo \"Flag chi duoc nhan 2 gia tri 0 hoac 1\";\r\n return;\r\n }\r\n //if (is_integer($from)== false || is_integer($to) == false) {\r\n if (!is_integer($from) || !is_integer($to)) { \r\n echo '$from & $to khong duoc la so thuc';\r\n return;\r\n }\r\n if ($flag == 0 && $i%2 == 0) {\r\n echo \"$i: la so chan <br/>\";\r\n }\r\n if ($flag == 1 && $i%2 == 1) {\r\n echo \"$i: la so le <br/>\";\r\n }\r\n }\r\n }", "function getLinhaModulo($modulo, $limite) {\n $linha = ($modulo == 0) ? $limite : $modulo;\n return $linha;\n}", "function variant_abs($val) {}", "function oddRange($min, $max)\n{\n $range = [];\n while ($min <= $max) {\n if ($min % 2 == 1) {\n $range[] = $min;\n }\n $min += 1;\n }\n return $range;\n}", "function modulus($a = 0, $b = 0) {\n\tif(is_numeric($a) && is_numeric($b)) {\n\t\treturn $a % $b;\n\t} else {\n\t\treturn throwErrorMessage(\"get modulus\");\n\t}\t\n}", "function p3_ex4() {\n for ($i = 1; $i <= 10; $i = $i += ($i/2))\n $return .= $i.\" - \";\n\n return $return;\n}", "public function subtract($value);" ]
[ "0.75627023", "0.67464066", "0.65400076", "0.6495227", "0.64641285", "0.6453166", "0.6413785", "0.6397312", "0.63316053", "0.6183513", "0.6163191", "0.6133107", "0.612251", "0.6113515", "0.6083003", "0.5966133", "0.5951523", "0.5935128", "0.5880874", "0.5804344", "0.5792571", "0.5765458", "0.56889665", "0.56807727", "0.5680599", "0.5675805", "0.5652743", "0.56431824", "0.5640335", "0.5623891", "0.5585088", "0.55781573", "0.5576032", "0.5549329", "0.55312365", "0.5523691", "0.55187285", "0.5503165", "0.54482925", "0.5430971", "0.5421352", "0.5401763", "0.5360465", "0.53447485", "0.5341701", "0.52970153", "0.52946633", "0.52840936", "0.52623445", "0.5244244", "0.52336615", "0.5224716", "0.5204316", "0.51964843", "0.5189063", "0.5159819", "0.51588196", "0.51565266", "0.5149851", "0.513157", "0.51096267", "0.5109527", "0.50929207", "0.5077236", "0.50762486", "0.50613344", "0.50578636", "0.5055685", "0.50545555", "0.50511026", "0.5050462", "0.50431395", "0.5040418", "0.5032957", "0.5031413", "0.50230336", "0.5017157", "0.4967165", "0.49652195", "0.49424183", "0.48893794", "0.48849776", "0.48812634", "0.48725456", "0.48701382", "0.48571646", "0.48472235", "0.48394677", "0.4839447", "0.48392022", "0.48354608", "0.4831805", "0.4830511", "0.4822523", "0.4819552", "0.48189744", "0.48118433", "0.48059085", "0.48024786", "0.4802391" ]
0.75731874
0
passing negative odd number
передача отрицательного нечетного числа
public function testIsEvenPassNegativeODD() { $this->assertFalse(isEven(-5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeEVEN()\n {\n \t$this->assertTrue(isEven(-4));\n }", "public function clipEvenOdd() {}", "function is_odd (int $value) : bool\n{\n return $value % 2 !== 0;\n}", "function odd_even($n) {\n $odd_even = fmod($n, 2);\n if($odd_even == 1) {\n return '_';\n } else {\n return 'true';\n }\n }", "function isOdd($num){\r\n\treturn (is_numeric($num)&($num&1));\r\n}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "private static function makeOddEven() {\n\n\t\tif (JudgeView::$even > 0)\n\t\t{\n\t\t\tJudgeView::$even = 0;\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJudgeView::$even = 1;\n\t\t\treturn 1;\n\t\t}\n\n\t}", "function evenOrOdd($number){\n\n\tif($number % 2 == 0){\n\t $number = $number + 10;\n\n\t}else{\n\t $number = $number + 11;\n\t}\n\n\treturn $number;\n\n}", "function neparan($b)\n{\n if($b%2==0)\n {\n return false;\n }\n else\n {\n return true;\n }\n}", "function isOdd ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return false;\n }\n else { return true; }\n}", "function checkEvenOrOdd($value) {\n\t\tif($value % 2 == 0) {\n\t\t\techo 'Even';\n\t\t} else {\n\t\t\techo 'Odd';\n\t\t}\n\t}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "function isOddOrEven ($number) {\n $isEven = ($number % 2 == 0);\n echo '<p>Number is ' . ($isEven ? 'even' : 'odd') . '<p>';\n }", "public function testisEvenNumberFail()\n {\n $result = $this->calculator->isEvenNumber(3);\n $this->assertFalse($result);\n }", "public function odd($value): bool\n {\n return is_numeric($value) && (int) $value % 2 !== 0;\n }", "public function fillEvenOdd() {}", "function oddEven($number)\n{\n\t$lastDigit = substr($number, -1, 1);\n\tif($lastDigit == 1 or $lastDigit == 3 or $lastDigit == 5 or $lastDigit == 7 or $lastDigit == 9) { $oddEven = 'odd'; } else { $oddEven = 'even'; }\n\treturn ($oddEven);\n}", "function is_even (int $value) : bool\n{\n return $value % 2 === 0;\n}", "function numParImpar($num){\n $bool = true;\n if($num % 2 == 0){\n return true;\n }else{\n return false;\n }\n}", "public static function clipEvenOdd()\n {\n return new FlagQualifier(self::CLIP_EVEN_ODD);\n }", "function oddArray(array $array): int\n {\n $odd = 0;\n\n foreach($array as $number)\n {\n if($number & 1)\n {\n $odd++;\n }\n }\n\n return $odd;\n }", "function isNegative () {\n return (($this->num < 0) xor ($this->denom < 0));\n }", "function is_even($val) {\n\t\treturn ($val / 2 == floor($val / 2)) ? true : false;\n\t}", "public function testIsEvenNumber()\n\t{\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(2));\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(10));\n\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(7));\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(21));\n\t}", "public function testIsEvenPassZERO()\n {\n \t$this->assertTrue(isEven(0));\n }", "function isEven ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return true;\n }\n else { return false; }\n}", "function convertEvenToOdd($number)\n{\n $n = $number;\n if ($n % 2 === 0) {\n $n += 1;\n return $number . \" odd number\";\n }\n return $n . \" odd number\";\n}", "public function oddMask()\n {\n $low = (-($this->low & 1)) & 0xFFFFFFFF;\n $high = $low;\n return UInt64::newValue($high, $low);\n }", "private static function isOdd($number)\n {\n return ($number%2) ? true : false;\n }", "public function uneven( $numeral) {\n\t\t$booleanUneven = ($numeral/2) != 0;\n\t\tswitch ($booleanUneven) {\n\t\t\tcase true:\n\t\t\t\t$this->log($numeral . \" is odd!\");\n\t\t\t\treturn true;\n\t\t\tcase false: \n\t\t\t\t$this->log($numeral . \" is not odd!\");\n\t\t\t\treturn false;\n\t\t}\n\t}", "function class_odd_or_even( $num ) {\n echo ($num%2) ? ' item-odd' : ' item-even';\n}", "public function testIsEvenPassTwo()\n {\n \t$this->assertTrue(isEven(2));\n }", "function calEventNum(int $num){\n\n $result = 0 ;\n\n for ($i=1 ,$ii = $num ; $i <= $ii ; $i++){\n if ($i%2 == 0){\n $result++;\n }\n }\n return $result;\n}", "public function even($value): bool\n {\n return is_numeric($value) && (int) $value % 2 === 0;\n }", "public function test_bool_variable_and_even_or_odd_method()\n {\n $parameter_one = 'first';\n $parameter_two = 'second';\n \n for ($i=0; $i<10; $i++)\n {\n $string = math::even_or_odd($parameter_one, $parameter_two);\n \n $this->assertInternalType('string', $string);\n $this->assertNotEmpty($string);\n \n if ($i % 2 == 0)\n {\n $this->assertEquals($string, $parameter_one);\n $this->assertNotEquals($string, $parameter_two);\n }\n else\n {\n $this->assertNotEquals($string, $parameter_one);\n $this->assertEquals($string, $parameter_two);\n }\n }\n }", "public function testisEvenNumber()\n {\n $result = $this->calculator->isEvenNumber(2);\n $this->assertTrue($result);\n }", "function evenNumbers(array $array): array\n{\n $resultArray = [];\n\n if (count($array) !== 0) {\n foreach ($array as $elementArray) {\n if (($elementArray % 2) === 0) {\n $resultArray[] = $elementArray;\n }\n }\n }\n return $resultArray;\n}", "function isPowerOfTwo($num2)\n {\n if ($num2 === 0) {\n $return = 0;\n }\n while ($num2 != 1) {\n if ($num2 % 2 != 0)\n $return = 0;\n $num2 = $num2 / 2;\n }\n $return = 1;\n }", "public function implicar($x, $y){\n $b = 1-$x+$y;\n if ($b<=1)\n return $b;\n else \n return 1;\n }", "public function printOddNums()\n {\n for ($i = 1; $i <= 99; $i += 2) {\n printf(\"%3d\", $i);\n if (($i / 2 + 1) % 15 == 0) {\n echo \"\\n\";\n }\n }\n echo \"\\n\";\n }", "private function __isNumberEven($num)\n {\n return (bool) (((int) $num % 2) === 0);\n }", "function is_entier($n) {\nreturn ($n>0 || $n=='0');\n}", "function fpb($a,$b){\n\t\treturn ($b == 0) ? ($a):( fpb($b, $a % $b) );\n\t}", "function UglyNumber($number)\n{\n while ($number%2 == 0){\n $number = $number/2;\n }\n while ($number%3 == 0){\n $number = $number/3;\n }\n while ($number%5 == 0){\n $number = $number/5;\n }\n if($number == 1){\n return 1;\n }else{\n return 0;\n }\n}", "public function isNegative(): bool;", "function is_not_zero($num){\n\tif($num <= 0){\n\t\treturn 1;\n\t}\n\t\n\treturn $num;\t\n}", "function oddRange($min, $max)\n{\n $range = [];\n while ($min <= $max) {\n if ($min % 2 == 1) {\n $range[] = $min;\n }\n $min += 1;\n }\n return $range;\n}", "public function testIsEvenPassString()\n {\n \t$this->assertFalse(isEven(\"fail\"));\n }", "public static function isOdd(IInt32\\Type $x) : IBool\\Type {\n\t\t\treturn IBool\\Type::box(($x->unbox() % 2) != 0);\n\t\t}", "public static function strictlyNegInts()\n {\n return self::ints()->fmap(function ($x) {\n return -abs($x)-1;\n });\n }", "function _cb_negate($aVal) {\n return round(-$aVal);\n}", "function is_ugly($num)\n {\n $z = $num;\n if ($num == 0)\n {\n return \"$num is not an Ugly number\";\n }\n \n $x = array(2, 3, 5);\n foreach ($x as $i)\n {\n while ($num % $i == 0)\n {\n $num /= $i;\n }\n } \n if ($num==1)\n {\n return \"$z is an Ugly number\";\n }\n else\n {\n return \"$z is not an Ugly number\";\n }\n\n }", "public function getOddAndReverse($n){\n\t\t$result = array();\n\t\t$data = 0;\n\t\tfor($i = 0; $i < $n; $i++){\n\t\t\t//collect to result array\n\t\t\t$result[$i] = $data;\n\t\t\t\n\t\t\tif($i <= ($n-1)/2-1){\n\t\t\t\t$data = $data + 2;\n\t\t\t} else {\n\t\t\t\t$data = $data - 2;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function Even($K){\n if($K %2 == 0){\n\n return 'true';\n }else{\n\n return 'false';\n }\n}", "function isSpecialArray($arr)\n{\n for ($i = 0; $i < count($arr); $i++) {\n if ($i % 2 == 0) {\n if ($arr[$i] % 2 != 0) {\n return false;\n }\n } else {\n if ($arr[$i] % 2 == 0) {\n return false;\n }\n }\n }\n return true;\n}", "private function luhnOddDigit($n){\n\t\treturn ($n >= 5) ? 2 * $n - 9 : 2 * $n;\n\t}", "function negate() { # :: Num -> Num\n return -$this->value;\n }", "function change_negative_numeric($numeric) {\n\t\treturn $numeric * (-1);\n\t}", "#[@test]\n public function selectNegativeInteger() {\n $this->assertEquals(-6100, $this->db()->query('select -6100 as value')->next('value'));\n }", "public function methodNumberTwo()\r\n\t{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "function mod($n, $m) {\n return (($n % $m) + $m) % $m;\n}", "function isPrime ($n) {\n if ($n % 2 == 0) return false; //Check if is divisible by 2\n for ($i = 3; $i <= $n/2; $i += 2) { //Check only odd numbers\n if ($n % $i == 0) return false;\n }\n return true;\n}", "static function powerOfTwo($n)\n { \n if ($n >= 0 && $n < 31) {\n $pow = 2**$n;\n $all = 0; $count = 1;\n while($all != $pow)\n {\n $all = 2** $count;\n echo $all.\"\\n\";\n $count++;\n }\n } else {\n echo \"enter value between 0 to 31\".\"\\n\";\n Utility::powerOfTwo();\n }\n \n }", "function Prime($n)\n{\n for($i=2; $i<$n; $i++)\n {\n if($n %$i ==0)\n\t {\n\t\t return 0;\n\t\t }\n }\n return 1;\n }", "function getOddNumber(array $arrValues): int\n\t{\n\t\t$valueCounts = array_count_values($arrValues);\n\t\t$oddOccurredNumber = array_filter($valueCounts, function ($count) { return $count % 2 != 0; });\n\t\treturn array_keys($oddOccurredNumber)[0];\n\t}", "function negate() {\n static $negate = false;\n $negate = $negate ?: curry(function($x){\n return -$x;\n });\n return _apply($negate, func_get_args());\n}", "function primo($num) {\n if ($num == 2 || $num == 3 || $num == 5 || $num == 7) {\n return True;\n } else {\n if ($num % 2 != 0) {\n for ($i = 3; $i <= sqrt($num); $i += 2) {\n if ($num % $i == 0) {\n return false;\n }\n }\n return true;\n }\n }\n return false;\n }", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "public static function negInts()\n {\n return self::ints()->fmap(function ($x) {\n return -abs($x);\n });\n }", "function checkNum($red, $stupac, $mjesto) {\n\tif($red%2 == 0){\n\t\t$broj=0;\n\t\tif($stupac == 1){\n\t\t\t$broj= $mjesto-9;\n\t\t\techo $broj;\n\t\t} else {\n\t\t\t$broj = $mjesto / 10;\n\t\t\t$broj = floor($broj);\n\t\t\t$broj *= 10;\n\t\t\t$broj += $stupac;\n\t\t\techo $broj . \" i \" . $red ;\n\t\t}\n\n\t} else {\n\t\techo $mjesto;\n\t}\n\n}", "function primeCheck($number){ \n if ($number == 1) \n return 0; \n for ($i = 2; $i <= $number/2; $i++){ \n if ($number % $i == 0) \n return 0; \n } \n return 1; \n}", "function _primeNumber($num)\n{\n if ($num <= 1) return false;\n if ($num % 2 === 0 && $num > 2) return false;\n $n = floor(sqrt($num));\n for ($i = 3; $i <= $n; $i++) {\n if ($num % $i === 0) {\n return false;\n }\n }\n echo \"{$num} is prime number\";\n}", "public function testFilterWithNegative()\n {\n $this->expectException(FilterException::class);\n $this->expectExceptionMessage('Invalid integer: -1');\n $this->expectExceptionCode(FilterException::INVALID_INTEGER);\n\n $this->filter->filter(-1);\n }", "function divmod($dividend, $divisor, &$modulus)\n{\n\tif ($divisor == 0) {\n\t\t// option 1\n\t\techo 'Not possible to divide by zero!!!';\n\t\treturn false;\n\t\t\n\t\t// option 2\n\t\tdie('Not possible to divide by zero!!!');\n\t\t\n\t\t// option 3\n\t\tthrow new Exception('Not possible to divide by zero!!!');\n\t}\n\t\n\t$modulus = $dividend % $divisor;\n\t\n\treturn $dividend / $divisor;\n}", "function int_int_divide($x, $y) {\n if ($x == 0) return 0;\n if ($y == 0) return FALSE;\n return ($x % $y >= $y / 2) ?\n (($x - ($x % $y)) / $y) + 1 : ($x - ($x % $y)) / $y;\n}", "function nprimo($n)\n {\n $primo=true;\n \n $i=2;\n while (($i< $n) & ($primo)){\n \n if($n%$i==0) {\n $primo=false;\n }\n $i++;\n }\n return $primo;\n }", "public static function isEven(IInt32\\Type $x) : IBool\\Type {\n\t\t\treturn IBool\\Type::box(($x->unbox() % 2) == 0);\n\t\t}", "function ganjilGenap($angka)\n{\n if ($angka % 2 === 0) {\n echo $angka . \". Bilangan Genap \";\n } else {\n echo $angka . \". Bilangan Ganjil \";\n }\n}", "function minus($a = 20, $b =10) {\n\n\treturn (int)$a - (int)$b;\n\n}", "function modulo( $value, $modulus ){\n return ( $value % $modulus + $modulus ) % $modulus;\n}", "function checkprime($x){\n \n $sqrt = sqrt($x);\n $counter = 2;\n \n while ($counter <= $sqrt){\n if ($x % $counter == 0){\n break;\n }\n else{\n $counter++;\n }\n }\n if ($x % $counter != 0){\n return $x;\n }\n}", "function reminder($a = NULL, $b = NULL){\n \treturn $a % $b;\n }", "public static function isOdd(int $number): bool\n {\n return (bool) ($number & 1);\n }", "function get_class_odd_or_even( $num ) {\n $output = ($num%2) ? ' item-odd' : ' item-even';\n return $output;\n}", "public function HexDecodeStringOdd($s){\n if (count($s)%2 != 0) {\n $s = \"0\" + $s;\n }\n return $this->DecodeString($s);\n }", "function calculateOdds($entry_pool,$total_pool,$odds_type,$max_odds)\n{\n// $odds_type 0 american, 1 decimal, 2 fraction\nif (($odds_type > 2) || ($odds_type < 0))\n{\n\t$odds_type = 0;\n}\nif ($entry_pool == 0.0)\n\t$ret_odds = $max_odds;\nelse\n\t$ret_odds = ($total_pool - $entry_pool) / $entry_pool;\n\nif ($odds_type == 0)\n{\n\tif ($ret_odds <= 1.0)\n\t{\n\t\t$ret_odds = -(1.0 / $ret_odds);\n\t\t$ret_string = strval(round(100 * $ret_odds,0));\n\t}\n\telse\n\t{\n\t\t$ret_string = \"+\" . strval(round(100*$ret_odds,0));\n\t}\n}\nelse if ($odds_type == 2) // fraction stuff here\n{\n\t$ret_string = \"catsbigolevaggy\";\n}\nelse\n{\n\t$ret_string = strval(round($ret_odds,2));\n}\nreturn $ret_string;\n}", "function findIt(array $seq): int\n{\n foreach ($seq as $number) {\n $arrNumeros = array_keys($seq, $number);\n if (count($arrNumeros) % 2 === 1) {\n return $number;\n }\n }\n}", "function minus() {\n static $minus = false;\n $minus = $minus ?: curry(function($x, $y){\n return $x - $y;\n });\n return _apply($minus, func_get_args());\n}", "function modulo($val, $param) {\n\t\treturn $val - (floor($val / $param) * $param);\n\t}", "function secondRightmostZeroBit($n) {\n return ((($n | $n+1) ^ (($n | $n + 1) + 1)) + 1) >> 1;\n}", "function isLeap($year)\n{\n if ($year % 400 == 0) {\n echo \"{$year} is a leap year.\";\n } elseif ($year % 4 == 0 && $year % 100 !== 0) {\n echo \"{$year} is a leap year.\";\n }\n}", "function nomside2($id){\nif (($id) == 1 || ($id) == 3 || ($id) == 4 || ($id) == 7 || ($id) == 11) \n{ \necho \"0\";\n}\nelse \n{ \necho \"1\";\n}\n}", "function array_pass($array)\r\n{\r\n $array[0] *= 2;\r\n $array[1] *= 2;\r\n}", "function getEvenYears( $years ) {\n\t\t$years = array_flip( $years );\n\t\tforeach( $years as $year => $id ) {\n\t\t\t$years[$year] = \"5\";\n\t\t\tif( $year % 2 == 0 ) unset( $years[$year] );\n\t\t}\n\t\treturn $years;\n\t}", "function resta($a,$b)\n {\n return $a-$b;\n }", "function deelbaarDoor3($invoer)\r\n{\r\n if ($invoer % 3 == 0) {\r\n $invoer = true;\r\n\r\n } else {\r\n $invoer = false;\r\n }\r\n return \"invoer = \" . $invoer;\r\n}", "function modulus($a = 0, $b = 0) {\n\tif(is_numeric($a) && is_numeric($b)) {\n\t\treturn $a % $b;\n\t} else {\n\t\treturn throwErrorMessage(\"get modulus\");\n\t}\t\n}", "function my_sort($a,$b){\n\tif($a%2==0 && $b%2==0)\n\t\treturn 0;\n\n\tif($a%2==0 && $b%2==1)\n\t\treturn -1;\n\telse\n\t\treturn 1;\n}", "function absint($maybeint)\n {\n }", "function p3_ex4() {\n for ($i = 1; $i <= 10; $i = $i += ($i/2))\n $return .= $i.\" - \";\n\n return $return;\n}" ]
[ "0.7302539", "0.72618663", "0.68092835", "0.6776312", "0.6746858", "0.6690784", "0.6590767", "0.65474516", "0.654103", "0.6454552", "0.6357149", "0.6341215", "0.62869585", "0.6266048", "0.6253534", "0.6225314", "0.6204725", "0.6190281", "0.6145267", "0.61184764", "0.611672", "0.60635746", "0.60579705", "0.6054306", "0.5989178", "0.59559363", "0.5936511", "0.5813849", "0.5812929", "0.57674414", "0.5686416", "0.5644616", "0.5602168", "0.56001896", "0.5599252", "0.5588209", "0.5560603", "0.55282766", "0.54895544", "0.5464394", "0.54495126", "0.54467446", "0.5435776", "0.5431693", "0.54304194", "0.5415461", "0.53890616", "0.53859895", "0.53739405", "0.53716123", "0.53553146", "0.5326723", "0.53039336", "0.5282718", "0.5274727", "0.52672017", "0.52654946", "0.5229341", "0.5219887", "0.5215872", "0.5197896", "0.5197497", "0.51706856", "0.51486224", "0.51398796", "0.5122829", "0.51056963", "0.5097357", "0.50795555", "0.5065435", "0.50464123", "0.5025277", "0.5019304", "0.50056654", "0.49866676", "0.49764013", "0.49708983", "0.4963955", "0.49579215", "0.49427953", "0.4941367", "0.49370828", "0.49319965", "0.4926405", "0.49214202", "0.49157512", "0.49070087", "0.48992738", "0.48973793", "0.48937142", "0.4890074", "0.4886925", "0.488272", "0.48677033", "0.4860228", "0.4852643", "0.4851494", "0.48481995", "0.48455095", "0.4844856" ]
0.7691487
0
passing zero, assuming that 0 is even number
передача нуля, предполагая, что 0 — чётное число
public function testIsEvenPassZERO() { $this->assertTrue(isEven(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function makeOddEven() {\n\n\t\tif (JudgeView::$even > 0)\n\t\t{\n\t\t\tJudgeView::$even = 0;\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJudgeView::$even = 1;\n\t\t\treturn 1;\n\t\t}\n\n\t}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "public function testIsEvenPassNegativeEVEN()\n {\n \t$this->assertTrue(isEven(-4));\n }", "public function testIsEvenPassNegativeODD()\n {\n \t$this->assertFalse(isEven(-5));\n }", "function is_even (int $value) : bool\n{\n return $value % 2 === 0;\n}", "public function testIsEvenNumber()\n\t{\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(2));\n\t\t$this->assertTrue(ParityGame\\isEvenNumber(10));\n\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(7));\n\t\t$this->assertFalse(ParityGame\\isEvenNumber(21));\n\t}", "public function fillEvenOdd() {}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "function is_even($val) {\n\t\treturn ($val / 2 == floor($val / 2)) ? true : false;\n\t}", "function is_odd (int $value) : bool\n{\n return $value % 2 !== 0;\n}", "function isEven ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return true;\n }\n else { return false; }\n}", "function evenOrOdd($number){\n\n\tif($number % 2 == 0){\n\t $number = $number + 10;\n\n\t}else{\n\t $number = $number + 11;\n\t}\n\n\treturn $number;\n\n}", "function checkEvenOrOdd($value) {\n\t\tif($value % 2 == 0) {\n\t\t\techo 'Even';\n\t\t} else {\n\t\t\techo 'Odd';\n\t\t}\n\t}", "public function clipEvenOdd() {}", "public function testisEvenNumber()\n {\n $result = $this->calculator->isEvenNumber(2);\n $this->assertTrue($result);\n }", "public function testisEvenNumberFail()\n {\n $result = $this->calculator->isEvenNumber(3);\n $this->assertFalse($result);\n }", "function odd_even($n) {\n $odd_even = fmod($n, 2);\n if($odd_even == 1) {\n return '_';\n } else {\n return 'true';\n }\n }", "public function even($value): bool\n {\n return is_numeric($value) && (int) $value % 2 === 0;\n }", "function neparan($b)\n{\n if($b%2==0)\n {\n return false;\n }\n else\n {\n return true;\n }\n}", "public function testIsEvenPassTwo()\n {\n \t$this->assertTrue(isEven(2));\n }", "function isOdd ($input_number) {\n if (round($input_number/2) == ($input_number/2)) {\n return false;\n }\n else { return true; }\n}", "function is_not_zero($num){\n\tif($num <= 0){\n\t\treturn 1;\n\t}\n\t\n\treturn $num;\t\n}", "function isOddOrEven ($number) {\n $isEven = ($number % 2 == 0);\n echo '<p>Number is ' . ($isEven ? 'even' : 'odd') . '<p>';\n }", "function numParImpar($num){\n $bool = true;\n if($num % 2 == 0){\n return true;\n }else{\n return false;\n }\n}", "function isOdd($num){\r\n\treturn (is_numeric($num)&($num&1));\r\n}", "function is_entier($n) {\nreturn ($n>0 || $n=='0');\n}", "function calEventNum(int $num){\n\n $result = 0 ;\n\n for ($i=1 ,$ii = $num ; $i <= $ii ; $i++){\n if ($i%2 == 0){\n $result++;\n }\n }\n return $result;\n}", "public function odd($value): bool\n {\n return is_numeric($value) && (int) $value % 2 !== 0;\n }", "function __return_zero()\n {\n }", "function oddEven($number)\n{\n\t$lastDigit = substr($number, -1, 1);\n\tif($lastDigit == 1 or $lastDigit == 3 or $lastDigit == 5 or $lastDigit == 7 or $lastDigit == 9) { $oddEven = 'odd'; } else { $oddEven = 'even'; }\n\treturn ($oddEven);\n}", "function evenNumbers(array $array): array\n{\n $resultArray = [];\n\n if (count($array) !== 0) {\n foreach ($array as $elementArray) {\n if (($elementArray % 2) === 0) {\n $resultArray[] = $elementArray;\n }\n }\n }\n return $resultArray;\n}", "function convertEvenToOdd($number)\n{\n $n = $number;\n if ($n % 2 === 0) {\n $n += 1;\n return $number . \" odd number\";\n }\n return $n . \" odd number\";\n}", "function oddArray(array $array): int\n {\n $odd = 0;\n\n foreach($array as $number)\n {\n if($number & 1)\n {\n $odd++;\n }\n }\n\n return $odd;\n }", "function Even($K){\n if($K %2 == 0){\n\n return 'true';\n }else{\n\n return 'false';\n }\n}", "function secondRightmostZeroBit($n) {\n return ((($n | $n+1) ^ (($n | $n + 1) + 1)) + 1) >> 1;\n}", "function fpb($a,$b){\n\t\treturn ($b == 0) ? ($a):( fpb($b, $a % $b) );\n\t}", "function GpsData_Walk_Replace_Zero(&$value, $key, $newValueForZeros) {\n\tif ($value <= 0)\n\t\t$value = $newValueForZeros;\n}", "function isPowerOfTwo($num2)\n {\n if ($num2 === 0) {\n $return = 0;\n }\n while ($num2 != 1) {\n if ($num2 % 2 != 0)\n $return = 0;\n $num2 = $num2 / 2;\n }\n $return = 1;\n }", "private function __isNumberEven($num)\n {\n return (bool) (((int) $num % 2) === 0);\n }", "function evenFibonacciNumbers($n){\n $sum = 0;\n $seq[] = maxFibonacciValue($n);\n foreach($seq[0] as $value){\n if($value % 2 == 0){ $sum += $value; }\n }\n return $sum;\n }", "public function testAddZero()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->boolean(\n $number->add($zero)->equals($number)\n )->isTrue()\n ->boolean(\n $zero->add($number)->equals($number)\n )->isTrue()\n ;\n }", "function class_odd_or_even( $num ) {\n echo ($num%2) ? ' item-odd' : ' item-even';\n}", "public function testSubZero()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->boolean(\n $number->sub($zero)->equals($number)\n )->isTrue()\n ->boolean(\n $zero->sub($number)->isNegative()\n )->isTrue()\n ;\n }", "function zeroise($number, $threshold)\n {\n }", "function pilih($data){\n if($data === 0){\n return true;\n }\n return false;\n }", "function evenFibonacci($limit) {\n $x = 0;\n $y = 1;\n $sum = 0;\n while ($x <= $limit) {\n //printf($x . \"\\n\"); //prints the fibonacci sequence\n $x = $y - $x;\n $y = $x + $y;\n if ($x % 2 == 0) {\n $sum += $x;\n }\n }\n return $sum;\n}", "function nomside2($id){\nif (($id) == 1 || ($id) == 3 || ($id) == 4 || ($id) == 7 || ($id) == 11) \n{ \necho \"0\";\n}\nelse \n{ \necho \"1\";\n}\n}", "function UglyNumber($number)\n{\n while ($number%2 == 0){\n $number = $number/2;\n }\n while ($number%3 == 0){\n $number = $number/3;\n }\n while ($number%5 == 0){\n $number = $number/5;\n }\n if($number == 1){\n return 1;\n }else{\n return 0;\n }\n}", "public function isZero(): bool;", "public static function isEven(IInt32\\Type $x) : IBool\\Type {\n\t\t\treturn IBool\\Type::box(($x->unbox() % 2) == 0);\n\t\t}", "static function powerOfTwo($n)\n { \n if ($n >= 0 && $n < 31) {\n $pow = 2**$n;\n $all = 0; $count = 1;\n while($all != $pow)\n {\n $all = 2** $count;\n echo $all.\"\\n\";\n $count++;\n }\n } else {\n echo \"enter value between 0 to 31\".\"\\n\";\n Utility::powerOfTwo();\n }\n \n }", "function Prime($n)\n{\n for($i=2; $i<$n; $i++)\n {\n if($n %$i ==0)\n\t {\n\t\t return 0;\n\t\t }\n }\n return 1;\n }", "function num1BitsSecondSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n for ($c = 0; $number; $number >>= 1) {\n $c += $number & 1;\n }\n\n return $c;\n}", "public function zeroFill($a, $b){\n return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> ($b - 1));\n }", "function findIt(array $seq): int\n{\n foreach ($seq as $number) {\n $arrNumeros = array_keys($seq, $number);\n if (count($arrNumeros) % 2 === 1) {\n return $number;\n }\n }\n}", "function primeCheck($number){ \n if ($number == 1) \n return 0; \n for ($i = 2; $i <= $number/2; $i++){ \n if ($number % $i == 0) \n return 0; \n } \n return 1; \n}", "function int_int_divide($x, $y) {\n if ($x == 0) return 0;\n if ($y == 0) return FALSE;\n return ($x % $y >= $y / 2) ?\n (($x - ($x % $y)) / $y) + 1 : ($x - ($x % $y)) / $y;\n}", "public function testDoubleIfZero(){\n\t\t$this->assertEquals(0, \\Grafikart\\Math::double(0));\n\t}", "public function testMultZero()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->boolean(\n $number->mult($zero)->equals($zero)\n )->isTrue()\n ->boolean(\n $zero->mult($number)->equals($zero)\n )->isTrue()\n ;\n }", "public function printOddNums()\n {\n for ($i = 1; $i <= 99; $i += 2) {\n printf(\"%3d\", $i);\n if (($i / 2 + 1) % 15 == 0) {\n echo \"\\n\";\n }\n }\n echo \"\\n\";\n }", "public static function getDefaultDivisor(): int;", "public function testDivByZero()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->exception(function () use ($number, $zero) {\n $number->div($zero);\n })\n ->isInstanceOf(\\DomainException::class)\n ;\n }", "private static function isOdd($number)\n {\n return ($number%2) ? true : false;\n }", "function fib($c)\r\n{\r\n return psquare(5 * $c * $c + 4) || psquare(5 * $c * $c - 4);\r\n\r\n}", "public function methodNumberTwo()\r\n\t{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "public function oddMask()\n {\n $low = (-($this->low & 1)) & 0xFFFFFFFF;\n $high = $low;\n return UInt64::newValue($high, $low);\n }", "#[@test]\n public function selectIntegerZero() {\n $this->assertEquals(0, $this->db()->query('select 0 as value')->next('value'));\n }", "function test_entier($valeur){\r\n return ($valeur>0 || $valeur==\"0\");\r\n}", "public function implicar($x, $y){\n $b = 1-$x+$y;\n if ($b<=1)\n return $b;\n else \n return 1;\n }", "function solution($A)\n{\n $pairs = $zeros = 0;\n\n foreach ($A as $k => $v) {\n $zeros += ($v === 0);\n\n if ($v===1) {\n $pairs += $zeros;\n }\n\n if ($pairs>1000000000) {\n $pairs = -1;\n break;\n }\n }\n\n return $pairs;\n}", "public function testValidateZeroNumber(): void\n {\n $this->assertTrue($this->validate(0));\n }", "public function test_bool_variable_and_even_or_odd_method()\n {\n $parameter_one = 'first';\n $parameter_two = 'second';\n \n for ($i=0; $i<10; $i++)\n {\n $string = math::even_or_odd($parameter_one, $parameter_two);\n \n $this->assertInternalType('string', $string);\n $this->assertNotEmpty($string);\n \n if ($i % 2 == 0)\n {\n $this->assertEquals($string, $parameter_one);\n $this->assertNotEquals($string, $parameter_two);\n }\n else\n {\n $this->assertNotEquals($string, $parameter_one);\n $this->assertEquals($string, $parameter_two);\n }\n }\n }", "function mod($n, $m) {\n return (($n % $m) + $m) % $m;\n}", "public function equalsZero(): bool\r\n {\r\n return $this->getValue() == 0;\r\n }", "function ganjilGenap($angka)\n{\n if ($angka % 2 === 0) {\n echo $angka . \". Bilangan Genap \";\n } else {\n echo $angka . \". Bilangan Ganjil \";\n }\n}", "public function is_zero($number){\n\t\tif(($number == 0)){ \n\t\t\treturn true;\n\t\t}\n }", "public function is_zero($number){\n\t\tif(($number == 0)){ \n\t\t\treturn true;\n\t\t}\n }", "public function isZeroFill();", "function is_schinteger($number) {\n return is_zero($number->imaginary);\n}", "protected function parse_zero_fun()\n {\n $this->check_param_num(0);\n\n $this->generate_instruction();\n\n $this->xml->endElement();\n\n }", "function p3_ex4() {\n for ($i = 1; $i <= 10; $i = $i += ($i/2))\n $return .= $i.\" - \";\n\n return $return;\n}", "function addZero( $value )\r\n {\r\n $ret = $value;\r\n if ( $ret < 10 )\r\n {\r\n $ret = \"0\". $ret;\r\n }\r\n\r\n return $ret;\r\n }", "function addZero( $value )\r\n {\r\n $ret = $value;\r\n if ( $ret < 10 )\r\n {\r\n $ret = \"0\". $ret;\r\n }\r\n\r\n return $ret;\r\n }", "function GpsData_Filter_Zero($value) {\n\treturn $value > 0;\n}", "public function testDivSpecialCases()\n {\n $this\n ->given(\n $zero = $this->fromNative(0),\n $number = $this->fromNative($this->randomNativeNumber())\n )\n ->then\n ->boolean(\n $zero->div($number)->equals($zero)\n )->isTrue()\n ;\n }", "function checkNum($red, $stupac, $mjesto) {\n\tif($red%2 == 0){\n\t\t$broj=0;\n\t\tif($stupac == 1){\n\t\t\t$broj= $mjesto-9;\n\t\t\techo $broj;\n\t\t} else {\n\t\t\t$broj = $mjesto / 10;\n\t\t\t$broj = floor($broj);\n\t\t\t$broj *= 10;\n\t\t\t$broj += $stupac;\n\t\t\techo $broj . \" i \" . $red ;\n\t\t}\n\n\t} else {\n\t\techo $mjesto;\n\t}\n\n}", "function primeCheck($number){\n\t\t\tif ($number == 1)\n\t\t\treturn 0;\n\n\t\t\tfor ($i = 2; $i <= $number/2; $i++){\n\t\t\t\tif ($number % $i == 0)\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn 1;\n\t\t}", "function add_zero($num){\n if((int)$num<10){\n return \"0\".(String)$num;\n }\n else\n return $num;\n }", "function retornarSiEsCero ($numeroingresado)\n{\n \n if($numeroingresado == 0)\n {\n return true;\n }\n\n else\n {\n return false;\n }\n echo \"<br>El numeros es: \" .retornarSiEsCero(0);//coloco un numero\n\n}", "public function testIsEvenPassString()\n {\n \t$this->assertFalse(isEven(\"fail\"));\n }", "function divmod($dividend, $divisor, &$modulus)\n{\n\tif ($divisor == 0) {\n\t\t// option 1\n\t\techo 'Not possible to divide by zero!!!';\n\t\treturn false;\n\t\t\n\t\t// option 2\n\t\tdie('Not possible to divide by zero!!!');\n\t\t\n\t\t// option 3\n\t\tthrow new Exception('Not possible to divide by zero!!!');\n\t}\n\t\n\t$modulus = $dividend % $divisor;\n\t\n\treturn $dividend / $divisor;\n}", "public function testBrokeSecondArgumentZero()\n {\n $game = new Game21();\n\n $game->broke(10, 0);\n\n $data = $game->getData();\n\n $expBroke = \"Player broke - please reset bitcoins\";\n\n $broke = $data[\"broke\"];\n\n $this->assertEquals($expBroke, $broke);\n }", "public static function clipEvenOdd()\n {\n return new FlagQualifier(self::CLIP_EVEN_ODD);\n }", "function solution($arr, $int) {\n //\n}", "function sumate2(array $n,int $r) {\r\n if ($r < 0) {\r\n return 0;\r\n } else {\r\n print($n[$r]);\r\n print \"<br> \";\r\n return ($n[$r]) + sumate2($n, $r-1);\r\n }\r\n}", "function getSomme( int $a , int $b )\n{\n return $a+$b;\n}", "public function uneven( $numeral) {\n\t\t$booleanUneven = ($numeral/2) != 0;\n\t\tswitch ($booleanUneven) {\n\t\t\tcase true:\n\t\t\t\t$this->log($numeral . \" is odd!\");\n\t\t\t\treturn true;\n\t\t\tcase false: \n\t\t\t\t$this->log($numeral . \" is not odd!\");\n\t\t\t\treturn false;\n\t\t}\n\t}", "function fac($n)\n{\n if($n == 0)\n {\n return 1;\n }\n else\n {\n return $n * fac($n - 1); \n }\n}", "public static function isOdd(IInt32\\Type $x) : IBool\\Type {\n\t\t\treturn IBool\\Type::box(($x->unbox() % 2) != 0);\n\t\t}", "private function cover_zeros(){\n\t\t$this->numLines = 0;\n\t\t$this->lines = array();\n\t\t\n\t\t\n\t\t\n\t\tforeach ($this->clonedGrid as $row => $cols)\n\t\t{\n\t\t\tforeach ( $cols as $col => $value){\n\t\t\t\t$this->lines[$row][$col] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ($this->clonedGrid as $row => $cols)\n\t\t{\n\t\t\tforeach ( $cols as $col => $value){\n\t\t\t\t\n\t\t\t\tif($value == 0) {\n\t\t\t\t\t\n\t\t\t\t\t$this->strike_nieghbors($row, $col, $this->max_vh($row, $col));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.682325", "0.6682445", "0.6615996", "0.66006154", "0.659337", "0.6520555", "0.65199983", "0.64399946", "0.64177495", "0.63619536", "0.6321866", "0.6252898", "0.6220042", "0.61459035", "0.6125508", "0.61061996", "0.6103357", "0.59718966", "0.5924956", "0.5893173", "0.58754516", "0.5850596", "0.58027995", "0.5800596", "0.5800409", "0.5794604", "0.5747118", "0.5744126", "0.57399815", "0.5738241", "0.5723508", "0.5698778", "0.5685872", "0.5685441", "0.5671858", "0.5647795", "0.56396455", "0.55851865", "0.55621564", "0.55568373", "0.5510912", "0.5493513", "0.547613", "0.5447698", "0.5422855", "0.5395281", "0.53813064", "0.53523034", "0.53388864", "0.53353477", "0.53251284", "0.5323848", "0.52848935", "0.5277101", "0.5265476", "0.524412", "0.52363867", "0.52346635", "0.52205324", "0.5203314", "0.5188747", "0.5133431", "0.5129917", "0.5115479", "0.51118934", "0.51104474", "0.51021266", "0.5094246", "0.5090505", "0.50898063", "0.50869596", "0.50312054", "0.50293064", "0.5024847", "0.5015704", "0.5005723", "0.5005723", "0.49998987", "0.49867263", "0.4981086", "0.49712917", "0.49709937", "0.49709937", "0.49680912", "0.49614838", "0.4949947", "0.49447876", "0.49368614", "0.49252754", "0.48993978", "0.48942652", "0.48803157", "0.4876785", "0.48507014", "0.48503208", "0.4850115", "0.48465243", "0.48391792", "0.48361275", "0.4834018" ]
0.75614387
0
end of testAutoSubmit() FUNCTION: CREATE FROM ARRAY / This function creates a set of radio buttons from a hash array. This can be used to generate quick radio buttons, but there are some specialty sets below that are commonly used using those specialty sets should be even faster for common tasks. Autosubmit doesn't work yet, so only feed two arguments for now.
конец функции testAutoSubmit() : СОЗДАНИЕ ИЗ МАССИВА / Эта функция создает набор радио кнопок из хеш-массива. Это можно использовать для быстрого создания радио кнопок, но ниже приведены некоторые специализированные наборы, которые часто используются. Использование этих специализированных наборов даже быстрее для распространенных задач. Autosubmit пока не работает, поэтому сейчас передавайте только два аргумента.
public static function createFromArray() { $args = func_get_args(); switch (count($args)) { case 2: $buttonset = $args[0]; $array = $args[1]; $auto = 0; // don't auto-submit break; case 3: $buttonset = $args[0]; $array = $args[1]; $atuo = DropDownList::testAutoSubmit($args[2]); break; } // Check to see if a choice has been made previously or is a session variable $choice = RadioButton::getChoice($buttonset); // Create the radio button set... if ($choice == -1) { // No choice made -- user prompted to select while (list($key, $value) = each ($array)) { echo "<INPUT type=\"radio\" name=\"$buttonset\" value=\"$key\"> $value<BR>"; } // end of while loop } else { // prior choice made -- select that value while (list($key, $value) = each ($array)) { if ($key == $choice) { echo "<INPUT type=\"radio\" name=\"$buttonset\" value=\"$key\" checked> $value<BR>"; } else { echo "<INPUT type=\"radio\" name=\"$buttonset\" value=\"$key\"> $value<BR>"; } } // end of while loop } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRadios($hiddenName, $outerIndex)\n{\n\t// Loop through and generate all radio buttons, giving unique names \n\tfor($i = 1; $i <= 4; $i++)\n\t{\n\t\t$id = \"radio\" . $outerIndex . $i;\n\t\t$name = \"radio\" . $outerIndex;\n\t\t\n\t\tif(isset($_REQUEST[$name]))\n\t\t\t$currentSelected = $_REQUEST[$name];\n\t\telse\n\t\t\t$currentSelected = \"\";\n\t\t\n\t\techo \"<p>\\n\";\n\t\t$checked = (strcmp($currentSelected, $id) == 0) ? \"checked\" : \"\";\n\t\techo \"<input type=\\\"radio\\\" id=\\\"$id\\\" name=\\\"$name\\\" value=\\\"$id\\\" $checked>\\n\";\n\t\t\n\t\tif($i == 1)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/egypt.jpg\\\"/>\\n\";\n\t\telse if($i == 2)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/disney.jpg\\\"/>\\n\";\n\t\telse if($i == 3)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/theater_masks.jpg\\\"/>\\n\";\n\t\telse\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/wookie.jpg\\\"/>\\n\";\n\t\t\n\t\techo \"</p>\\n\";\n\t}\n}", "function create_radio($values = array('16', '24'), $name = 'pace') {\n\n\t// Start the element:\n\tforeach ($values as $value) {\n\t\techo '<input type=\"radio\" name=\"' . $name .'\" value=\"' . $value . '\"';\n\n\t\t// Check for stickiness:\n\t\tif (isset($_POST[$name]) && ($_POST[$name] == $value)) {\n\t\t\techo ' checked=\"checked\"';\n\t\t}\n\n\t// Complete the element:\n\techo \"> $value hrs/week \";\n\t} // End of foreach loop.\n\n}", "function isubmit_multi($array, $label, $confirm = false, $class = false, $id = false)\r\n{\r\n $name = 'multi_var';\r\n $value = ret_multivar($array);\r\n\r\n isubmit($name, $value, $label, $confirm, $class, $id);\r\n}", "private function _output_options_radios($arr, $name) {\n\t\t$output = '';\n\t\tforeach ($arr as $val => $opt) :\n\t\t\t$slug = $this->_make_slug($opt);\n\t\t\t$output .= '\n\t\t\t\t\t\t<input type=\"radio\" name=\"' . $name . '[]\" value=\"' . $val . '\" id=\"' . $slug . '\"';\n\t\t\t$output .= $this->form['markup'] === 'xhtml' ? ' />' : '>';\n\t\t\t$output .= '\n\t\t\t\t\t\t<label for=\"' . $slug . '\">' . $opt . '</label>';\n\t\tendforeach;\n\t\treturn $output;\n\t}", "function form_radio_yn($name, $array='', $yes='0', $empty='0', $extra='', $value_y = 1, $value_n = 0) {\n\n\tif ($array) {\n\t\t$name = $array . \"[\" . $name . \"]\";\n\t}\n\n\t$id = 'radio_yn' . $name . $array;\n\n\t$html = \"<div style=\\\"white-space: nowrap;\\\">\";\n\n\tif ($empty) {\n\t\tif ($yes == \"1\") {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t} elseif ($yes == \"0\") {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t} else {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" checked=\\\"checked\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t}\n\t} else {\n\t\tif ($yes) {\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t} else {\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t}\n\t}\n\n\t$html .= \"</div>\";\n\n\treturn $html;\n}", "function option_radiobutton($label, $name, $value='', $keys, $comment='') {\r\n\t\techo \"<tr valign='top'><th scope='row'>\" . $label . \"</th>\";\r\n\t\techo \"<td>\";\r\n\r\n\t\tforeach ((array)$keys as $key => $description) {\r\n\t\t\tif ($key == $value)\r\n\t\t\t\t$checked = \"checked\";\r\n\t\t\telse\r\n\t\t\t\t$checked = \"\";\r\n\t\t\techo \"<input type='radio' id='$name' name='$name' value='\" . htmlentities($key, ENT_QUOTES, 'UTF-8') . \"' $checked />\" . $description . \"<br>\";\r\n\t\t}\r\n\t\techo $comment . \"<br>\";\r\n\t\techo \"</td></tr>\";\r\n\t}", "function mk_radio( $myTitle, $myName, $myValue, $myChek1, $myChek2, $myDesc1, $myDesc2 ){\n\t#initialize needed variables\n\t$str = $chekd1 = $chekd2 = '';\n\n\tif ($myValue == $myChek1) { $chekd1 = \"checked='checked'\"; }else{$chekd2 = \"checked='checked'\";}\n\n\t$str .= '<div class=\"row hoverHighlight\">\n\t\t\t<div class=\"col-sm-3 text-right text-muted\">\n\t\t\t\t<p class=\"text-right\">\n\t\t\t\t\t<strong>' . ucwords($myTitle) . ': </strong>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class=\"col-sm-9\">\n\t\t\t\t<p>';\n\t\t\t\t$str .= \"<label>\n\t\t\t\t\t<input type='radio' value='{$myChek1}' name='{$myName}' {$chekd1}> &nbsp; {$myDesc1} &nbsp; &nbsp; </label>\n\t\t\t\t\t<input type='radio' value='{$myChek2}' name='{$myName}' {$chekd2}> &nbsp; {$myDesc2} </label>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\";\n\n\treturn $str;\n}", "function ipal_make_instructor_form(){\r\nglobal $ipal;\r\n$myform=\"<form action=\\\"?\".$_SERVER['QUERY_STRING'].\"\\\" method=\\\"post\\\">\\n\";\r\n\t$myform .= \"\\n\";\r\n\t\tforeach(ipal_get_questions() as $items){\r\n$myform .= \"<input type=\\\"radio\\\" name=\\\"question\\\" value=\\\"\".$items['id'].\"\\\" />\";\r\n\r\n$myform .=\"<a href=\\\"show_question.php?qid=\".$items['id'].\"&id=\".$ipal->id.\"\\\" target=\\\"_blank\\\">[question]</a>\";\r\n$myform .= \"<a href=\\\"standalone_graph.php?id=\".$items['id'].\"&ipalid=\".$ipal->id.\"\\\" target=\\\"_blank\\\">[graph]</a>\".$items['question'].\"<br /><br />\\n\";\r\n\t\t}\r\nif(ipal_check_active_question()){\r\n\t$myform .= \"<input type=\\\"submit\\\" value=\\\"Send Question\\\" />\\n</form>\\n\";\r\n}else{\r\n$myform .= \"<input type=\\\"submit\\\" value=\\\"Start Polling\\\" />\\n</form>\\n\";}\r\n\r\n\treturn($myform);\r\n}", "function form_radio($name, $value, $start='', $extra='', $array='', $id='') {\n\n\t$value = html_form_escape($value, $override);\n\n\tif ($array != \"\") {\n\t\t$name = $array . \"[\" . $name . \"]\";\n\t}\n\n\tif (!$id) {\n\t\t$id = $name;\n\t}\n\n\tif ($start) {\n\t\treturn \"<input type=\\\"radio\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" checked=\\\"checked\\\" $extra />\";\n\t} else {\n\t\treturn \"<input type=\\\"radio\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" $extra />\";\n\t}\n}", "public function create()\n {\n $buttons = [\n [\n \"name\" => \"舍得茶馆\",\n \"sub_button\" => [\n [\n \"type\" => \"view\",\n \"name\" => \"节目预告\",\n \"url\" => \"http://www.soso.com/\"\n ],\n [\n \"type\" => \"view\",\n \"name\" => \"在线购票\",\n \"url\" => \"http://ming.cure4.net/getseats/1\"\n ],\n [\n \"type\" => \"view\",\n \"name\" => \"往期集锦\",\n \"url\" => \"http://v.qq.com/\"\n ],\n ],\n ],\n ];\n// $buttons = [\n// [\n// \"type\" => \"click\",\n// \"name\" => \"茶文雅集\",\n// \"key\" => \"CHA_WEN_YA_JI\",\n// \"sub_button\" => [\n// [\n// \"type\" => \"view\",\n// \"name\" => \"敬请期待\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n// [\n// \"type\" => \"view\",\n// \"name\" => \"敬请期待\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n//// [\n//// \"type\" => \"view\",\n//// \"name\" => \"微杂志\",\n//// \"url\" => \"http://www.soso.com/\"\n//// ],\n//// [\n//// \"type\" => \"view\",\n//// \"name\" => \"掌柜说\",\n//// \"url\" => \"http://v.qq.com/\"\n//// ],\n//// [\n//// \"type\" => \"click\",\n//// \"name\" => \"文章搜索\",\n//// \"key\" => \"V1001_GOOD\"\n//// ],\n// ],\n//\n// ],\n// [\n// \"type\" => \"click\",\n// \"name\" => \"舍得茶馆\",\n// \"key\" => \"SHE_DE_CHA_GUAN\",\n// \"sub_button\" => [\n// [\n// \"type\" => \"view\",\n// \"name\" => \"节目预告\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n// [\n// \"type\" => \"view\",\n// \"name\" => \"在线购票\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n// [\n// \"type\" => \"view\",\n// \"name\" => \"往期集锦\",\n// \"key\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n// ],\n// ],\n// [\n// \"type\" => \"click\",\n// \"name\" => \"茗品荟萃\",\n// \"key\" => \"MING_PIN_HUI_CUI\",\n// \"sub_button\" => [\n// [\n// \"type\" => \"view\",\n// \"name\" => \"敬请期待\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n// [\n// \"type\" => \"view\",\n// \"name\" => \"敬请期待\",\n// \"url\" => \"http://ming.cure4.net/getseats/1\"\n// ],\n//// [\n//// \"type\" => \"view\",\n//// \"name\" => \"在线商城\",\n//// \"url\" => \"http://www.soso.com/\"\n//// ],\n//// [\n//// \"type\" => \"view\",\n//// \"name\" => \"本月推荐\",\n//// \"url\" => \"http://v.qq.com/\"\n//// ],\n//// [\n//// \"type\" => \"click\",\n//// \"name\" => \"寻茶记\",\n//// \"key\" => \"V1001_GOOD\"\n//// ],\n// ],\n// ],\n// ];\n $this->menu->add($buttons);\n }", "function buildQuiz() {\n for ($i = 0; $i <= 9; $i++) {\n $randomNumbers = getRandomNumbers();\n $correctAnswer = getCorrectAnswer($randomNumbers);\n $answers = getRandomAnswers($correctAnswer);\n $quiz[] = [\n \"leftAdder\" => $randomNumbers[0],\n \"rightAdder\" => $randomNumbers[1],\n \"correctAnswer\" => $correctAnswer,\n \"firstIncorrectAnswer\" => $answers[0],\n \"secondIncorrectAnswer\" => $answers[1],\n ];\n }\n return $quiz;\n}", "function radio_button($object, $field, $tag_value, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_radio_button_tag($tag_value, $options);\n}", "function tep_mod_select_option($select_array, $key_name, $key_value) {\n reset($select_array);\n while (list($key, $value) = each($select_array)) {\n if (is_int($key)) $key = $value;\n $string .= '<br><input type=\"radio\" name=\"configuration[' . $key_name . ']\" value=\"' . $key . '\"';\n if ($key_value == $key) $string .= ' CHECKED';\n $string .= '> ' . $value;\n }\n\n return $string;\n}", "protected function generateButtons() {}", "function acf_get_radio_input($attrs = array())\n{\n}", "public function testRadioGroup()\n {\n $form = new class extends Formulaic\\Post {};\n $form[] = (new Formulaic\\Radio\\Group(\n 'test',\n [1 => 'foo', 2 => 'bar']\n ))->isRequired();\n yield assert($form->valid() != true);\n $_POST['test'] = 1;\n $form = new class extends Formulaic\\Post {};\n $form[] = (new Formulaic\\Radio\\Group(\n 'test',\n [1 => 'foo', 2 => 'bar']\n ))->isRequired();\n yield assert($form->valid());\n yield assert(\"$form\" == <<<EOT\n<form action=\"\" method=\"post\">\n<div>\n<label for=\"test-1\"><input checked id=\"test-1\" name=\"test\" required=\"1\" type=\"radio\" value=\"1\"> foo</label>\n<label for=\"test-2\"><input id=\"test-2\" name=\"test\" required=\"1\" type=\"radio\" value=\"2\"> bar</label>\n</div>\n</form>\nEOT\n );\n }", "public function generate($name, $value, $attributes = array()) {\r\n\t\t$this->init($name, $value, $attributes);\r\n\t\t\r\n\t\t$vmode = false;\r\n\t\tif(isset($this->attributes['vmode'])){\r\n\t\t\t$vmode = $this->attributes['vmode'];\r\n\t\t\tunset($this->attributes['vmode']);\r\n\t\t}\r\n\r\n\t\t$attTmp = array();\r\n\t\t$attTmp['name'] = $name;\r\n\t\t$attTmp['type'] = 'radio';\r\n\t\t\r\n\t\tif(isset($this->attributes['disabled']) && $this->attributes['disabled']){\r\n\t\t\t$attTmp['disabled'] = 'disabled';\t\r\n\t\t}\r\n\t\t// @TODO this not work corectlly in IE\r\n\t\tif(isset($this->attributes['readonly']) && $this->attributes['readonly']){\r\n\t\t\t$attTmp['onclick'] = 'return false';\r\n\t\t}\r\n\r\n\t\t$tmp = '';\r\n\t\t$check = false;\r\n\t\tforeach ($this->data as $val => $txt){\r\n\t\t $attTmp['id'] = uniqid();\r\n\t\t\t$attTmp['value'] = $val;\r\n\t\t\t\r\n\t\t\tif($value == $val || (!$value && !$check)){\r\n\t\t\t\t$attTmp['checked'] = 'checked';\r\n\t\t\t\t$check = true;\r\n\t\t\t}\r\n\t\t\t$tmp .= BASIC_GENERATOR::init()->element('div', 'style='.(!$vmode ? '' : '').'|class=radioBox_Item',//float:left|\r\n\t\t\t\tBASIC_GENERATOR::init()->createCloseTag('input', $attTmp).' <label for=\"'.$attTmp['id'].'\" class=\"radioBox_label\">'.$txt.'</label>'\r\n\t\t\t);\r\n\t\t\tunset($attTmp['checked']);\r\n\t\t}\r\n\t\t$this->attributes = BASIC_GENERATOR::init()->convertStringAtt($this->attributes);\r\n\t\tif(isset($this->attributes['id'])){\r\n\t\t\t$name = $this->attributes['id'];\r\n\t\t}\r\n\t\tif(isset($this->attributes['class'])){\r\n\t\t\t$this->attributes['class'] .= ' radioBox '.$name;\r\n\t\t}else{\r\n\t\t\t$this->attributes['class'] = 'radioBox '.$name;\r\n\t\t}\r\n\t\treturn BASIC_GENERATOR::init()->element('div', $this->attributes, $tmp);\r\n\t}", "function radioButtonList($name,$values,$labels,$selected=\"\",$ids)\n\t{\n\t\t$name = $name;\n\n\t\t$str = '<div class=\"radioButton-list\" >';\n\n\t\tfor($i = 0; $i < sizeof($values); $i++){\n\t\t\tif($values[$i] == $selected){\n\t\t\t\t$str .= FormComponent::radioButton($name, $values[$i], $values[$i], $ids[$i], $labels[$i]);\n\t\t\t}else{\n\t\t\t\t$str .= FormComponent::radioButton($name, $values[$i], \"\", $ids[$i], $labels[$i]);\n\t\t\t}\n\t\t}\n\n\t\t$str .= '</div>';\n\n\t\treturn $str;\n\t}", "function create_mcq($question_set, $question_text, $answer_list, $answer_key) {\n $question = array();\n $question['type'] = '1';\n $question['answer_list'] = $answer_list;\n $question['answer_key'] = $answer_key;\n $question_set['el_set'][] = $question;\n return $question_set;\n}", "public function callback_radio( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $html = '<fieldset>';\n\n foreach ( $args['options'] as $key => $label ) {\n $html .= sprintf( '<label for=\"wpuf-%1$s[%2$s]\">', $name_id, $key );\n $html .= sprintf( '<input type=\"radio\" class=\"radio\" id=\"wpuf-%1$s[%2$s]\" name=\"%1$s\" value=\"%2$s\" %3$s %4$s/>', $name_id, $key, checked( $value, $key, false ), $disable );\n $html .= sprintf( '%1$s</label><br>', $label );\n }\n\n $html .= $this->get_field_description( $args );\n $html .= '</fieldset>';\n\n echo $html;\n }", "function displayTheQuestions($questions) {\n\tif (count($questions) > 0) {\n\t\tforeach ($questions as $key => $value) {\n\t\t\techo \"<b>$value[0]</b><br/><br/>\";\n\t\t\t\n\t\t\t// Break the choices appart into a choice array\n\t\t\t$choices = explode(\",\",$value[1]);\n\t\t\t\n\t\t\t// For each choice, create a radio button as part of that questions radio button group\n\t\t\t// Each radio will be the same group name (in this case the question number) and have\n\t\t\t// a value that is the first letter of the choice.\n\t\t\t\n\t\t\tforeach($choices as $value) {\n\t\t\t\t$letter = substr(trim($value),0,1);\n\t\t\t\techo \"<input type=\\\"radio\\\" name=\\\"$key\\\" value=\\\"$letter\\\">$value<br/>\";\n\t\t\t}\n\t\t\t\n\t\t\techo \"<br/>\";\n\t\t}\n\t}\n\telse { echo \"No questions to display.\"; }\n}", "function drawMultiRadioBoxes($baseName,$selectedItem, $items, $valueColumnName, $titleColumnName, $options=null) {\n\n\t\t$sortBy = $options['sortBy'];\n\t\tif (!$sortBy)\n\t\t\t$sortBy = 'value';\n\t\t\n\t\t$optionType = $options['type'];\n\t\tif ($optionType=='radio' or empty($optionType)) {\n\t\t\t$optionType = 'radio';\n\t\t} else {\n\t\t\t$baseName.='[]';\n\t\t}\n\t\t\n\t\t//echo $optionType;\n\t\t\n\t\tif (!is_array($selectedItem))\n\t\t\t$selectedItems[] = $selectedItem;\n\t\telse\n\t\t\t$selectedItems = $selectedItem;\n\t\t\n\t\t$displayMode = $options['displayMode'];\n\t\tif (!$displayMode)\n\t\t\t$displayMode = 'table';\n\t\t\n\t\t$template['table'] = array(\n\t\t\t'mainWrapper' => '<table %wrapperAttributes%>%contents%</table>',\n\t\t\t'contents' => '<tr>%fields%</tr>',\n\t\t\t'fields' => '<td>%field%</td>',\n\t\t\t'defaultAttributes' => array(\n\t\t\t\t'border' => 0,\n\t\t\t),\n\t\t);\n\t\t$template['normal'] = array(\n\t\t\t'mainWrapper' => '<p>%contents%</p>',\n\t\t\t'contents' => '%fields%',\n\t\t\t'fields' => '%field%<br />',\n\t\t\t'defaultAttributes' => array(\n\t\t\t\t'border' => 0,\n\t\t\t),\n\t\t);\n\t\t\n\t\tif (is_array($options[$displayMode])){\n\t\t\t$attributes = array_merge($template[$displayMode]['defaultAttributes'], $options[$displayMode]);\n\t\t\t$wrapperAttributes = cmfcHtml::attributesToHtml($attributes);\n\t\t}\n\t\telseif (is_string($options[$displayMode]))\n\t\t\t$wrapperAttributes = $options[$displayMode];\n\t\t\n\t\tif (is_array($options['inputAttributes']))\n\t\t\t$inputAttributes = cmfcHtml::attributesToHtml($options['inputAttributes']);\n\t\telseif (is_string($options['inputAttributes']))\n\t\t\t$inputAttributes = $options['inputAttributes'];\n\t\t\n\t\t$numColumns = $options['columns'];\n\t\tif (!$numColumns)\n\t\t\t$numColumns = 5;\n\t\t\n\t\tif (is_string($items)){\n\t\t\t$items = cmfcMySql::getRowsCustom($items);\n\t\t}\n\t\t\n\t\t$counter = 0;\n\t\t$contents = '';\n\t\tif (is_array($items)){\n\t\t\t//cmfcHtml::printr($items);\n\t\t\tswitch ($sortBy){\n\t\t\tcase 'title':\n\t\t\t\t$items = cmfcArray::sortItems($items, $titleColumnName, 'asc');\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'value':\n\t\t\t\t$items = cmfcArray::sortItems($items, $valueColumnName, 'asc');\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t$items = cmfcArray::sortItems($items, $valueColumnName, 'asc');\n\t\t\t}\n\t\t\t//cmfcHtml::printr($items);\n\t\t\t//cmfcHtml::printr( $options);\n\t\t\tforeach ($items as $item) {\n\t\t\t\t//cmfcHtml::printr($item);\n\t\t\t\t//echo $numColumns;\n\t\t\t\t$counter ++;\n\t\t\t\t\n\t\t\t\tif (in_array($item[$valueColumnName], $selectedItems) )\n\t\t\t\t\t$checked='checked=\"checked\"';\n\t\t\t\telse \n\t\t\t\t\t$checked='';\n\t\t\t\t\n\t\t\t\tif (in_array($optionType, array('checkbox', 'radio')) ){\n\t\t\t\t\t$value = $item[$valueColumnName];\n\t\t\t\t\t$field = '<input '.$inputAttributes.\n\t\t\t\t\t\t'name=\"'.$baseName.'\" id=\"'.$baseName.$counter.'\" type=\"'.$optionType.'\" value=\"'.$value.'\" '.$checked.'>&nbsp;<label for=\"'.$baseName.$counter.'\">';\n\t\t\t\t\t\n\t\t\t\t\tif(is_array($options['strongItems']))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(in_array($value, $options['strongItems'])) {\n\t\t\t\t\t\t\t$itemTitleColumnName = \"<b>\".$item[$titleColumnName].\"</b>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$itemTitleColumnName = $item[$titleColumnName];\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$itemTitleColumnName = $item[$titleColumnName];\n\t\t\t\t\t}\n\t\t\t\t\t$field .= $itemTitleColumnName;\n\t\t\t\t\t$field .= '</label>';\n\t\t\t\t}\n\t\t\t\telseif ($optionType == 'custom'){\n\t\t\t\t\tif ($checked)\n\t\t\t\t\t\t$tag = $options['tag']['selected'];\n\t\t\t\t\telse\n\t\t\t\t\t\t$tag = $options['tag']['notSelected'];\n\t\t\t\t\t\n\t\t\t\t\t$value = $item[$titleColumnName];\n\t\t\t\t\t$tag = str_replace('%value%', $value, $tag);\n\t\t\t\t\t$tag = str_replace('%inputAttributes%', $inputAttributes, $tag);\n\t\t\t\t\t\n\t\t\t\t\t$field = $tag;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$html .= str_replace('%field%', $field, $template[$displayMode]['fields']);\n\t\t\t\t\n\t\t\t\tif ($counter % $numColumns == 0) {\n\t\t\t\t\t$contents .= str_replace('%fields%', $html, $template[$displayMode]['contents']);\n\t\t\t\t\t$html = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($html){\n\t\t\t\t$contents .= str_replace('%fields%', $html, $template[$displayMode]['contents']);\n\t\t\t}\n\t\t\t$result = str_replace('%contents%', $contents, $template[$displayMode]['mainWrapper']);\n\t\t}\n\t\telse{\n\t\t\t$result = 'no valid items';\n\t\t}\n\t\treturn $result;\n\t}", "private function build_radio_field($_meta, $_ptype = \"wccpf\", $_class = \"\", $_index, $_show_as_value = \"no\", $_readonly = \"\", $_cloneable = \"\", $_wrapper = true, $_has_pricing_rules = \"no\") {\r\n $html = ''; \r\n $has_field_rules = isset( $_meta[\"field_rules\"] ) && is_array( $_meta[\"field_rules\"] ) && count( $_meta[\"field_rules\"] ) != 0 ? \"yes\" : \"no\";\r\n if ($_show_as_value == \"no\") {\r\n /* For admin field, we don't need <ul> wrapper */\r\n if ($_ptype != \"wccaf\") {\r\n $html = '<ul class=\"' . ((isset($_meta['layout']) && $_meta['layout'] == \"horizontal\") ? \"wccpf-field-layout-horizontal\" : \"wccpf-field-layout-vertical\") . '\" ' . $_cloneable . '>';\r\n }\r\n $choices = explode(\";\", ((isset($_meta[\"choices\"]) && ! empty($_meta[\"choices\"])) ? $_meta[\"choices\"] : \"\"));\r\n $_meta[\"default_value\"] = (isset($_meta[\"default_value\"]) && ! empty($_meta[\"default_value\"])) ? trim($_meta[\"default_value\"]) : \"\";\r\n foreach ($choices as $choice) {\r\n $attr = '';\r\n $key_val = explode(\"|\", $choice);\r\n /* It has to be two items ( Value => Label ), otherwise don't proceed */\r\n if (count($key_val) == 2) {\r\n if ($_ptype != \"wccaf\") {\r\n /* Since version 2.0.0 - Default value will be absolute value not as key|val pair */\r\n if (strpos($_meta[\"default_value\"], \"|\") !== false) {\r\n /* Compatibility for <= V 1.4.0 */\r\n if ($choice == $_meta[\"default_value\"]) {\r\n $attr = 'checked=\"checked\"';\r\n }\r\n } else {\r\n /*\r\n * For product fields from V 2.0.0\r\n * For admin fields, which will be displyed as Product Fields\r\n */\r\n if ($key_val[0] == $_meta[\"default_value\"]) {\r\n $attr = 'checked=\"checked\"';\r\n }\r\n }\r\n } else {\r\n if ($key_val[0] == $_meta[\"value\"]) {\r\n $attr = 'checked=\"checked\"';\r\n }\r\n }\r\n /* For admin field, we don't need <li></li> wrapper */\r\n $html .= (($_ptype != \"wccaf\") ? '<li>' : '') . '<label class=\"wcff-option-wrapper-label\"><input type=\"radio\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" value=\"' . esc_attr(trim($key_val[0])) . '\" ' . $attr . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_readonly . ' /> ' . esc_html(trim($key_val[1])) . '</label>' . (($_ptype != \"wccaf\") ? '</li>' : '');\r\n }\r\n }\r\n /* For admin field, we don't need <ul> wrapper */\r\n $html .= ($_ptype != \"wccaf\") ? '</ul>' : '';\r\n } else {\r\n /*\r\n * Show the raw value instead of as a field\r\n * Used for the Admin Field showing on product page\r\n */\r\n $html = '<p class=\"wcff-wccaf-value-para-tag\">' . $_meta[\"default_value\"] . '</p>';\r\n }\r\n /* Add wrapper around the field, based on the user options */\r\n if ($_wrapper) {\r\n $html = $this->built_field_wrapper($html, $_meta, $_ptype, $_index);\r\n }\r\n return $html;\r\n }", "function acf_radio_input($attrs = array())\n{\n}", "public static function init($arr)\n {\n //print_r($arr);\n //exit;\n self::makeFormString($arr);\n }", "function buildQuickForm( ) {\n // and the grades\n require_once 'School/Utils/Conference.php';\n $details = School_Utils_Conference::getReminderDetails( );\n $string = array();\n foreach ( $details as $name => $grade ) {\n $string[] = \"{$name} (Grade: {$grade})\";\n }\n $this->assign( 'conferenceTeachers',\n implode( ', ', $string ) );\n\n $this->addButtons(array( \n array ( 'type' => 'refresh', \n 'name' => ts( 'Send Reminder' ),\n 'spacing' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', \n 'isDefault' => true ), \n array ( 'type' => 'cancel', \n 'name' => ts('Cancel') ), \n )\n );\n }", "function createQuickReplies ($title, $arr) {\n $i = 0;\n $qrs = array ();\n foreach ($arr as $key => $value) {\n $i = $i + 1;\n if ($i > 10) {\n break;\n }\n array_push($qrs, array (\n \"content_type\" => \"text\",\n \"title\" => (strlen($key) > 19) ? substr($key,0,16).'...' : $key,\n \"payload\" => $value\n ));\n }\n\n $bot_resp = array ();\n $bot_resp['text'] = $title;\n $bot_resp['quick_replies'] = $qrs;\n return $bot_resp;\n }", "protected function buildRadio($row) {\n\t\tif (!$this->filled) $$row['Default'] = \" checked='checked'\";\n\t\t$vals = explode (',',$row['values']);\n\t\tforeach ($vals as $value) {\n\t\t\tif ($pos = strpos($value,\"=ON\")) {\n\t\t\t\t$value = substr($value,0,$pos);\n\t\t\t\t$$value = \" checked='checked'\";\n\t\t\t}\n\t\t\t$elem .= sprintf(\"<input type='radio' name='%s' value='%s'%s />%s<br />\\n\",$row['Field'],$value,$$value,$value);\n\t\t}\n\t\treturn $elem;\n\t}", "function FormAsseretion(){\r\n $creat = new UIMAP_createFormPage();\r\n \r\n $this->assertElementPresent($creat->formName());\r\n $this->assertElementPresent($creat->formLanguige());\r\n for($i = 1; $i < 4; $i++){\r\n $this->assertElementPresent($creat->formRespuniqtype($i));\r\n }\r\n $this->assertElementPresent($creat->submitButton());\r\n }", "private function quiz_generate($data_quiz_src) {\n // extract all possible answer\n $all_possible_answer = array();\n foreach ($data_quiz_src as $single_quiz) {\n $all_correct_answer = explode('|', $single_quiz['correct_answer']);\n $all_possible_answer[] = $all_correct_answer[0];\n }\n\n $out = array();\n $index = 0;\n foreach ($data_quiz_src as $single_quiz) {\n shuffle($all_possible_answer);\n\n $single_quiz['all_correct_answer'] = explode('|', $single_quiz['correct_answer']);\n\n $single_quiz['possible_answer'] = array($single_quiz['all_correct_answer'][0]);\n\n $single_quiz['response_type'] = !empty($single_quiz['response_type']) ? $single_quiz['response_type'] : $this->configuration['default_response_type'];\n\n // add wrong answer to $possible_answer from input data\n if (isset($single_quiz[\"wrong_answer\"])) {\n $possible_wrong_answer = explode('|', $single_quiz[\"wrong_answer\"]);\n\n //remove eventually emtpy element\n $single_quiz['possible_answer'] = array_filter($single_quiz['possible_answer']);\n\n\n $single_quiz['possible_answer'] = array_merge($single_quiz['possible_answer'], $possible_wrong_answer);\n }\n\n // add random wrong answer to $possible_answer\n $single_quiz['possible_answer'] = array_merge($single_quiz['possible_answer'], $all_possible_answer);\n\n // eliminate duplicates\n $single_quiz['possible_answer'] = array_unique($single_quiz['possible_answer']);\n\n //remove eventually emtpy element\n $single_quiz['possible_answer'] = array_filter($single_quiz['possible_answer']);\n\n //get only the correct number of elements:\n $single_quiz['response_type'] = strtolower($single_quiz['response_type']);\n $option_array = explode('_', $single_quiz['response_type']);\n if (isset($option_array[1])) {\n $max_option = $option_array[1];\n $single_quiz['response_type'] = $option_array[0];\n } else {\n $max_option = $this->configuration['num_options'];\n }\n\n $single_quiz['possible_answer'] = array_slice($single_quiz['possible_answer'], 0, $max_option);\n\n // shuffle all data:\n shuffle($single_quiz['possible_answer']);\n\n $single_quiz['all_question'] = explode('|', $single_quiz['question']);\n\n // remove all empty values \n $single_quiz['all_question'] = array_filter($single_quiz['all_question']);\n\n shuffle($single_quiz['all_question']);\n\n $single_quiz['question'] = $single_quiz['all_question'][0];\n\n\n // add id of the correct_answer to correct answer if the answer_type is 'options' \n if ($single_quiz['response_type'] == \"options\") {\n $key = array_search($single_quiz['all_correct_answer'][0], $single_quiz['possible_answer']);\n $single_quiz['all_correct_answer'][] = $key;\n }\n\n\n $output_keys = array(\n 'id',\n 'question',\n 'all_correct_answer',\n 'possible_answer',\n 'response_type',\n 'if_correct',\n 'if_wrong'\n );\n\n\n $out[$index] = array();\n foreach ($output_keys as $single_key) {\n\n $out[$index][$single_key] = isset($single_quiz[$single_key]) ? $single_quiz[$single_key] : \"\";\n }\n\n $index ++;\n }\n return $out;\n }", "function radio($name='',$value='',$id='',$attrib='',$rows=''){\n\t\t$n = ''; \n\t\t$brekz = 0;\n\t\t$fldname = str_replace(' ', '_', $name);\n\t\t$radio = '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>';\n\t\tif(isset($_SESSION[$fldname])) $n = $_SESSION[$fldname];\n\t\tif(isset($_POST[$fldname])) $n = $_POST[$fldname]; \n\t\tif(empty($rows)){\n\t\t\t$rows = 4;\n\t\t}\n\t\tforeach($value as $radVal){\n\t\t\t$cndtn = ($n == $radVal)? 'checked=\"checked\"' : '';\n\t\t\tif($brekz == $rows) {\n\t\t\t\t$radio .= '</tr><tr>';\n\t\t\t\t$brekz = 0; \n\t\t\t}\n\t\t\t$radio .= '<td><input type=\"radio\" name=\"'.$fldname.'\" value=\"'.$radVal.'\" '.$cndtn.' id=\"'.$id.'\" '.$attrib.'>'.'<span style=\"font-weight:normal; color:#000;\">'.$radVal.'</span></td>'.\"\\n\";\n\t\t\t$brekz++;\n\t\t}\n\t\t$radio .= \"</tr></table>\";\n\t\techo $radio;\n\t}", "function ffw_port_radio_callback( $args ) {\n global $ffw_port_settings;\n\n foreach ( $args['options'] as $key => $option ) :\n $checked = false;\n\n if ( isset( $ffw_port_settings[ $args['id'] ] ) && $ffw_port_settings[ $args['id'] ] == $key )\n $checked = true;\n elseif( isset( $args['std'] ) && $args['std'] == $key && ! isset( $ffw_port_settings[ $args['id'] ] ) )\n $checked = true;\n\n echo '<input name=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\"\" id=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . '][' . $key . ']\" type=\"radio\" value=\"' . $key . '\" ' . checked(true, $checked, false) . '/>&nbsp;';\n echo '<label for=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . '][' . $key . ']\">' . $option . '</label><br/>';\n endforeach;\n\n echo '<p class=\"description\">' . $args['desc'] . '</p>';\n}", "function miradio($name, $opts, $form = array()) {\n\t$output = \"\";\n\tforeach ($opts as $key => $content) {\n\t\tif (isset($form[$name]) && $form[$name] == $key) {\n\t\t\t// this is the default\n\t\t\t$checked = \"checked=\\\"checked\\\" \";\n\t\t} else {\n\t\t\t$checked = \"\";\n\t\t}\n\t\tif (empty($output)) { // first row\n\t\t\t$output .= \"<input type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$key\\\" $checked/>$content [{\" . $name . \"_MOD}]<br />\";\n\t\t} else {\n\t\t\t$output .= \"<input type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$key\\\" $checked/>$content<br />\";\n\t\t}\n\t}\n\n\treturn $output;\n}", "private function radioCustomField(): string\n {\n $value = $this->getValue($this->index);\n foreach($this->options as &$option) {\n if($option['key'] == $value) {\n $option['checked'] = true;\n break;\n }\n }\n\n return Template::build($this->getTemplatePath('radio.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'options' => $this->options,\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "function tep_mod_select_option($select_array, $key_name, $key_value) {\n foreach ( $select_array as $key => $value ) {\n if (is_int($key)) $key = $value;\n $string .= '<br /><input type=\"radio\" name=\"configuration[' . $key_name . ']\" value=\"' . $key . '\"';\n if ($key_value == $key) $string .= ' checked=\"checked\"';\n $string .= ' /> ' . $value;\n }\n\n return $string;\n }", "protected function generateButtons()\n {\n $arrButtons = array();\n\n // Add \"update cart\" button\n $arrButtons['update'] = array(\n 'type' => 'submit',\n 'name' => 'button_update',\n 'label' => $GLOBALS['TL_LANG']['MSC']['updateCartBT'],\n );\n\n // Add button to cart button (usually if not on the cart page)\n if ($this->iso_cart_jumpTo > 0) {\n $objJumpToCart = \\PageModel::findByPk($this->iso_cart_jumpTo);\n\n if (null !== $objJumpToCart) {\n $arrButtons['cart'] = array(\n 'type' => 'submit',\n 'name' => 'button_cart',\n 'label' => $GLOBALS['TL_LANG']['MSC']['cartBT'],\n 'href' => \\Controller::generateFrontendUrl($objJumpToCart->row()),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_cart') != '') {\n $this->jumpToOrReload($this->iso_cart_jumpTo);\n }\n }\n }\n\n // Add button to checkout page\n if ($this->iso_checkout_jumpTo > 0 && !Isotope::getCart()->hasErrors()) {\n $objJumpToCheckout = \\PageModel::findByPk($this->iso_checkout_jumpTo);\n\n if (null !== $objJumpToCheckout) {\n $arrButtons['checkout'] = array(\n 'type' => 'submit',\n 'name' => 'button_checkout',\n 'label' => $GLOBALS['TL_LANG']['MSC']['checkoutBT'],\n 'href' => \\Controller::generateFrontendUrl($objJumpToCheckout->row()),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_checkout') != '') {\n $this->jumpToOrReload($this->iso_checkout_jumpTo);\n }\n }\n }\n\n if ($this->iso_continueShopping && $this->Input->get('continue') != '') {\n $arrButtons['continue'] = array(\n 'type' => 'submit',\n 'name' => 'button_continue',\n 'label' => $GLOBALS['TL_LANG']['MSC']['continueShoppingBT'],\n 'href' => ampersand(base64_decode($this->Input->get('continue', true))),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_continue') != '') {\n \\Controller::redirect($arrButtons['continue']['href']);\n }\n }\n\n return $arrButtons;\n }", "function payroll_combo_cell($name, $selected_id, $array, $submit_on_change = false) {\n echo \"<td>\";\n //echo payroll_combobox($name, $selected_id, $array);\n echo array_selector($name, $selected_id, $array, array(\n 'select_submit' => $submit_on_change\n ));\n echo \"</td>\\n\";\n}", "public function fillQuestion(array $question)\n\t{\n\t\t[$inputMode, $inputExpectation, $notUseful, $from] = explode('_', $question['type']);\n\n\t\tvar_dump($inputMode, $inputExpectation, $notUseful, $from);\n\t\t//var_dump($question['function']['name']);\n\n\t\tif($inputMode == 'type')\n\t\t{\n\t\t\t$question['text'] .= $question['function'][$from] . ' ?';\n\t\t\t$question['answer_text'] = $question['function'][$inputExpectation];\n\t\t}\n\n\t\telseif($inputMode == 'choose')\n\t\t{\n\t\t\t$question['answer_text'] = $question['function'][$inputExpectation];\n\n\t\t\tif($from == 'name')\n\t\t\t{\n\t\t\t\t$question['text'] .= $question['function']['name'] . '() ?';\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\t$question['text'] .= $question['function'][$from] . ' ?';\n\t\t\t}\n\n\t\t\t$question['choices'] = $this->generateChoices($question);\n\n\t\t\t//put correct answer in (by clobbering one of generated choices)\n\t\t\t$randomChoice = array_rand($question['choices']);\n\n\t\t\t$question['choices'][$randomChoice] = $question['answer_text'];\n\t\t\t$question['answer_index'] = $randomChoice;\n\t\t}\n\n\t\t\n\n\t\treturn $question;\n\t}", "protected function buildCheckboxes(array $options)\n {\n return new Checkbox\\RadioGroup($options);\n }", "function display_cynetic($attributes=[]) {\n\n $attributes = array_change_key_case((array)$attributes, CASE_LOWER);\n $lang = $attributes['lang'];\n\n\n $token = oauth2::determineToken();\n $tube_number = oauth2::getData($token, 'tube_number');\n $specimen_collection_number = oauth2::getData($token, 'specimen_collection_number');\n $specimen_collection = [];\n foreach($specimen_collection_number->data as $specimen) {\n $specimen_collection[$specimen->VISIT_TYPE_NAME] = $specimen->SPECIMEN_COLLECTION_NUMBER;\n }\n // Sorting specimens\n $specimen_order = ['D0', 'R0', 'a1', 'a2', 'c1', 'c2', 's1', 's2', 's3'];\n uksort($specimen_collection, function($key1, $key2) use ($specimen_order) {\n return (array_search($key1, $specimen_order) > array_search($key2, $specimen_order));\n });\n\n\n $content = '<hr /><h3>' . __( 'VEUILLEZ SÉLECTIONNER UN TYPE DE GREFFE', 'cynetique-labels' ) . '</h3><br />';\n $content .= '<form id=\"type_selector_form\" autocomplete=\"off\">';\n $content .= '<label id=\"graft1_label\"><input name=\"type_greffe\" id=\"graft1\" data-id=\"1\" checked type=\"radio\"> '. __( 'Donneur non apparenté (DV)', 'cynetique-labels' ) .'</label>';\n $content .= '<label id=\"graft2_label\"><input name=\"type_greffe\" id=\"graft2\" data-id=\"2\" type=\"radio\"> '. __( 'Géno-identique', 'cynetique-labels' ) .'</label>';\n $content .= '<label id=\"graft3_label\"><input name=\"type_greffe\" id=\"graft3\" data-id=\"3\" type=\"radio\"> '. __( 'Haplo-identique', 'cynetique-labels' ) .'</label>';\n $content .= '<label id=\"graft4_label\"><input name=\"type_greffe\" id=\"graft4\" data-id=\"4\" type=\"radio\"> '. __( 'Unité de sang placentaire (USP)', 'cynetique-labels' ) .'</label>';\n $content .= '</form>';\n $content .= '<br />';\n\n $svg_path = plugin_dir_path( __FILE__) . 'svg/cynetique_'.$lang.'.svg';\n $svg_legend_path = plugin_dir_path( __FILE__) . 'svg/cynetique_legend_'.$lang.'.svg';\n $svg_content = file_get_contents($svg_path);\n $svg_content .= file_get_contents($svg_legend_path);\n $content .= $svg_content;\n $content .= '<script>var restData={};</script>';\n $content .= '<div id=\"dataContainer\"></div>';\n\n $current_date = $lang =='fr' ? date('d/m/Y') : date('m/d/Y');\n\n //BILAN DES PRÉLÈVEMENTS\n $content .= '<br /><br />';\n $content .= '<h3>' . __( 'BILAN DES PRÉLÈVEMENTS', 'cynetique-labels' ) . '</h3>';\n $content .= '<table>';\n $content .= '<tr>';\n $content .= '<td>' . __( 'Au', 'cynetique-labels' ) . ' ' . $current_date . '</td>';\n\n foreach($specimen_collection as $key=>$value) {\n $content .= '<td>' . $key . '</td>';\n }\n $content .= '<td>' . __( 'TOTAL', 'cynetique-labels' ) . '</td>';\n $content .= '</tr>';\n $content .= '<tr>';\n $content .= '<td>' . __( 'Nombre de prélèvements', 'cynetique-labels' ) . '</td>';\n $total = 0;\n foreach($specimen_collection as $value) {\n $total += $value;\n $content .= '<td>' . $value . '</td>';\n }\n $content .= '<td>' . $total . '</td>';\n $content .= '</tr>';\n $content .= '</tbody>';\n $content .= '</table>';\n\n\n //BILAN DES RESSOURCES DISPONIBLES\n $content .= '<br /><br />';\n $content .= '<h3>' . __( 'BILAN DES RESSOURCES DISPONIBLES', 'cynetique-labels' ) . '</h3>';\n $content .= '<table>';\n $content .= '<tbody>';\n $content .= '<tr>';\n $content .= '<td>' . __( 'Au', 'cynetique-labels' ) . ' ' . $current_date . '</td>';\n foreach($tube_number->data as $tube) {\n $content .= '<td>' . __( $tube->SA_TY_NA_1210592326, 'cynetique-labels' ) . '</td>';\n }\n $content .= '<td>' . __( 'TOTAL', 'cynetique-labels' ) . '</td>';\n $content .= '</tr>';\n $content .= '<tr>';\n $content .= '<td>' . __( 'Nombre d\\'aliquots', 'cynetique-labels' ) . '</td>';\n $total = 0;\n foreach($tube_number->data as $tube) {\n $nb_tube = $tube->TUBE_NUMBER;\n $total += $nb_tube;\n $content .= '<td>' . $nb_tube . '</td>';\n }\n $content .= '<td>' . $total . '</td>';\n $content .= '</tr>';\n $content .= '</tbody>';\n $content .= '</table>';\n\n //$content .= '<hr /><pre>' . print_r($specimen_collection_number->data, true) . '</pre>';\n\n/*\n $other_label1 = __( 'Plasma', 'cynetique-labels' ) ;\n $other_label2 = __( 'Culot cellulaire', 'cynetique-labels' ) ;\n $other_label3 = __( 'Cellules DMSO', 'cynetique-labels' );\n $other_label4 = __( 'ADN', 'cynetique-labels' );\n*/\n\n return $content;\n}", "function minorite_radio($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = 'radio';\n element_set_attributes($element, array('id', 'name', '#return_value' => 'value'));\n\n if (isset($element['#return_value']) && $element['#value'] !== FALSE && $element['#value'] == $element['#return_value']) {\n $element['#attributes']['checked'] = 'checked';\n }\n _form_set_class($element, array('form-custom-radio'));\n\n drupal_add_js(\"\n jQuery('.form-custom-radio').iCheck({\n checkboxClass: 'icheckbox_square-blue',\n radioClass: 'iradio_square-blue',\n increaseArea: '20%' // optional\n });\", array('type' => 'inline', 'scope' => 'footer', 'group' => JS_THEME));\n\n return '<label for=\"' . $element['#id'] . '\"><input' . drupal_attributes($element['#attributes']) . '><span>' . $element['#title'] . '</span></label>';\n}", "function getGeneratedQuestions() {\n $generatedQuestions = [];\n\n // for the generated questions, let's make the total 12\n for ($i = 0; $i < 12; $i++) {\n\n // create the queston attributes\n $leftAdder = mt_rand(0 , 100);\n\n $rightAdder;\n do {\n $rightAdder = mt_rand(0 , 100);\n } while ($rightAdder === $leftAdder);\n\n $correctAnswer = $leftAdder + $rightAdder;\n\n $firstIncorrectAnswer;\n do {\n $firstIncorrectAnswer = mt_rand($correctAnswer - 10, $correctAnswer + 10);\n } while ($firstIncorrectAnswer === $correctAnswer);\n\n $secondIncorrectAnswer;\n do {\n $secondIncorrectAnswer = mt_rand($correctAnswer - 10, $correctAnswer + 10);\n } while (\n $secondIncorrectAnswer === $correctAnswer || \n $secondIncorrectAnswer === $firstIncorrectAnswer\n );\n\n // cast to object to mimic json file\n $generatedQuestions[] = (object)[\n \"leftAdder\" => $leftAdder,\n \"rightAdder\" => $rightAdder,\n \"correctAnswer\" => $correctAnswer,\n \"firstIncorrectAnswer\" => $firstIncorrectAnswer,\n \"secondIncorrectAnswer\" => $secondIncorrectAnswer \n ];\n }\n\n return $generatedQuestions;\n}", "function genSubmitRow(){\n\t\t$row = array();\n\t\tarray_pad($row, sizeof($this->table[0]), '');\n\n\t\tif($this->state->isNewEntry()){\n\t\t\t$textField = 'text';\n\t\t\t$row[0] = $this->translator->markupAttributes('input', '',array('type'=>'text', 'name'=>'user'));\n\t\t\t$row[1] = $this->translator->markupAttributes('input','',array('type'=>'submit', 'name'=>'submit', 'value'=>'Submit'));\n\n\n\t\t\tfor($count = 2; $count < sizeof($this->table[0]); $count++) $row[$count] = $this->translator->markupAttributes('input', '',array('type'=>'checkbox', 'name'=>$count));\n\t\t\n\t\t}\n\t\telse{\n\t\t\t$row[0] = '';\n\t\t\t$row[1] = $this->translator->markupAttributes('input','',array('type'=>'submit', 'name'=>'new', 'value'=>'New'));\n\n\t\t\tfor($count = 2; $count < sizeof($this->table[0]); $count++) $row[$count] = '';\n\t\t}\n\n\t\treturn $row;\n\t}", "function tep_cfg_select_option($select_array, $key_value, $key = '') {\n $string = '';\n for ($i = 0, $n = sizeof($select_array); $i < $n; $i++) {\n $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');\n $string .= '<br><input type=\"radio\" name=\"' . $name . '\" value=\"' . $select_array[$i] . '\"';\n if ($key_value == $select_array[$i]) $string .= ' CHECKED';\n $string .= '> ' . $select_array[$i];\n }\n\n return $string;\n}", "function definition_inner(&$mform) {\n $mform->addElement('advcheckbox', 'shuffleanswers', get_string('shuffle', 'quiz'), null, null, array(0,1));\n $mform->setHelpButton('shuffleanswers', array('matchshuffle', get_string('shuffle','quiz'), 'quiz'));\n $mform->setDefault('shuffleanswers', 1);\n\n $mform->addElement('static', 'answersinstruct', get_string('choices', 'quiz'), get_string('filloutthreequestions', 'quiz'));\n $mform->closeHeaderBefore('answersinstruct');\n\n $repeated = array();\n $repeated[] =& $mform->createElement('header', 'choicehdr', get_string('questionno', 'quiz', '{no}'));\n // change elements to support htmleditor (nadavkav)\n $repeated[] =& $mform->createElement('htmleditor', 'subquestions', get_string('question', 'quiz'), array('cols'=>40, 'rows'=>13));\n $repeated[] =& $mform->createElement('htmleditor', 'subanswers', get_string('answer', 'quiz'), array('cols'=>40, 'rows'=>13));\n\n if (isset($this->question->options)){\n $countsubquestions = count($this->question->options->subquestions);\n } else {\n $countsubquestions = 0;\n }\n $repeatsatstart = (QUESTION_NUMANS_START > ($countsubquestions + QUESTION_NUMANS_ADD))?\n QUESTION_NUMANS_START : ($countsubquestions + QUESTION_NUMANS_ADD);\n $mform->setType('subanswer', PARAM_TEXT);\n $mform->setType('subquestion', PARAM_TEXT);\n\n $this->repeat_elements($repeated, $repeatsatstart, array(), 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmoreqblanks', 'qtype_match'));\n\n }", "function RadioBox($name,$data) {\n\n $content .= \"<table cellspacing=0 cellpadding=0 width=100%>\\n\";\n\n foreach($data as $k => $v) {\n\n if (($k % 2) == 0) {\n\t$content .= my_comma(checkboxlist,\"</td></tr>\").\"<tr><td width=1%>\\n\";\n } else {\n\t$content .= \"</td><td width=1%>\\n\";\n }\n\n if ($v[checked]) {\n\t$content .= \"<input type=radio name=\\\"$name\\\" value=\\\"*\\\" checked></td><td width=49%>$v[text]\\n\";\n } else {\n\t$content .= \"<input type=radio name=\\\"$name\\\" value=\\\"*\\\"></td><td width=49%>$v[text]\\n\";\n }\n }\n\n# echo count($data);\n\n $contemt .= \"</td></tr>\\n\";\n $content .= \"</table>\\n\";\n\n return $content;\n }", "public function radioButtonGroup($items, $options = [])\n {\n return $this->getToggleFieldList(self::TYPE_RADIO, $items, $options, true);\n }", "function social_build_buttons()\n{\n $icon_classes = array(\n 'facebook' => 'fa fa-facebook',\n 'linkedin' => 'fa fa-linkedin',\n 'gplus' => 'fa fa-google-plus',\n 'twitter' => 'fa fa-twitter',\n 'whatsapp' => 'fa fa-whatsapp',\n 'email' => 'fa fa-envelope',\n );\n $link_classes = array(\n 'facebook' => 'vsac-social-facebook',\n 'linkedin' => 'vsac-social-linkedin',\n 'gplus' => 'vsac-social-google',\n 'twitter' => 'vsac-social-twitter',\n 'whatsapp' => 'vsac-social-whatsapp hidden-lg hidden-md',\n 'email' => 'vsac-social-email',\n );\n $labels = array(\n 'facebook' => 'Facebook',\n 'linkedin' => 'LinkedIn',\n 'gplus' => 'Google +',\n 'twitter' => 'Twitter',\n 'whatsapp' => 'WhatsApp',\n 'email' => 'Email',\n );\n $buttons = array();\n foreach (array_keys($icon_classes) as $service) {\n $buttons[$service] = array(\n 'link' => $link_classes[$service],\n 'icon' => $icon_classes[$service],\n 'label' => $labels[$service],\n );\n }\n return $buttons;\n}", "function setTypeAsRadioButtons($itemList) {\n\t\t$this->type = \"radio\";\n\t\t$this->seleu_itemlist = $itemList;\n\t}", "function radio( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_RADIO,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "function _generateSelection()\n {\n $i = 0;\n foreach ($_POST as $key=>$value) {\n echo \"<input type='hidden' name=$key value=$value required>\";\n echo \"<div class='form-group'>\";\n if (isset($value) && $this->\n _childexists($value, $this->_getRubriekFromDb())) {\n echo $this->_generateRubriekVerkoopList($value, $this->_getRubriekFromDb(), \"subrubriek\" . $i);\n echo \"<script type='text/javascript'>\n document.getElementById('$key').disabled = true;\n </script>\";\n }\n echo \"</div>\";\n echo \"<script type='text/javascript'>\n document.getElementById('$key').value= $value \n </script>\";\n $i++;\n }\n }", "function 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 funkyfactory($buttons) {\r\n\t\tmyGovHTML :: funkyTableStart();\r\n\t\tforeach ($buttons as $button) {\r\n\t\t\tmyGovHTML :: funkyButton($button['text'], $button['link'], $button['image'], $button['js']);\r\n\t\t}\r\n\t\tmyGovHTML :: funkyTableEnd();\r\n\t}", "function make_action_html() {\n $grading_id = 'grading_' . rand(1,1000000);\n\n // html for actions\n $html = '';\n $html .= '<td class=\"actions hidden-sm hidden-xs no-select\">';\n $html .= '<div class=\"btn-group grading-actions\">';\n $html .= '<label class=\"btn btn-sm btn-default\"><input type=\"radio\" class=\"js-grading-pass\" name=\"' . $grading_id . '\" value=\"1\" autocomplete=\"off\">Attended</label>';\n $html .= '<label class=\"btn btn-sm btn-default\"><input type=\"radio\" class=\"js-grading-fail\" name=\"' . $grading_id . '\" value=\"0\" autocomplete=\"off\">No Show</label>';\n\n $html .= '</div>';\n $html .= '</td>';\n\n return $html;\n}", "public function createAuto($array)\n {\n }", "public function get_submission_buttons() {\n return array(\n 'save',\n 'savecont',\n 'savenew',\n 'savecontnew',\n 'savenewcont',\n 'cancel'\n );\n }", "static public function radio($name = '', $options = array(), $checked = '', $attrib = '')\n {\n $options = (array)($options);\n if(!is_array($options) or empty($options)) return false;\n\n $string = '';\n foreach($options as $key => $value)\n {\n $string .= \"<input type='radio' name='$name' value='$key' \";\n $string .= ($key == $checked) ? \" checked ='checked'\" : \"\";\n $string .= $attrib;\n $string .= \" /> $value\\n\";\n }\n return $string;\n }", "function createObject($objectType,$array,$type){\r\n\t$object=\"\";\r\n\tif($objectType==\"select\"){\r\n\t\t\t$object.=\"<select class='form-control makeofcar' name='info[\".$type.\"]' id='\".$type.\"'>\";\r\n\t\t\t$object.=\"<option value=''>Select \".ucwords($type).\"</option>\";\r\n\t\t\tif($array){\r\n\t\t\t\tforeach($array as $data){\r\n\t\t\t\t\t\t$object.=\"<option value='\".trim($data).\"'>\".$data.\"</option>\";\r\n\t\t\t\t} \r\n\t\t\t\t $object.=\"</select>\";\r\n\t\t\t }\r\n\t}\r\n\t\r\n\tif($objectType==\"text\"){\r\n\t\t\t$object.=\"<input type='text' class='form-control' name='info[\".$type.\"]' id='\".$type.\"'>\";\r\n\t}\r\n\t\r\n\tif($objectType==\"checkbox\"){\r\n\t if($array){\r\n\t foreach($array as $options){\r\n\t\t\t $object.=\"<label class='checkbox-inline'>\";\r\n\t\t\t\t$object.=\"<input type='checkbox' value='\".$options.\"' id='\".$type.\"' class='advcheckbox' name='info[\".$type.\"]'>\".$options;\r\n\t\t\t\t$object.=\"</label>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\tif($objectType==\"radio\"){\r\n\t if($array){\r\n\t foreach($array as $options){\r\n\t\t\t $object.=\"<label class='checkbox-inline'>\";\r\n\t\t\t\t$object.=\"<input type='radio' value='\".$options.\"' id='\".$type.\"' class='advcheckbox' name='info[\".$type.\"]'>\".\"&nbsp;&nbsp;&nbsp;\".$options;\r\n\t\t\t\t$object.=\"</label>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\techo $object;\r\n}", "function teligence_surveys_prerender($form)\r\n{\r\n\tforeach((array)element_children($form) as $key)\r\n\t{\r\n\t\t$form[$key]['#description'] .= \" Variable Name: <strong>variable_get('\" . $key . \"', '' )</strong>\";\r\n\t\t\r\n\t\tif(substr($key, -8) == '_subject')\r\n\t\t{\r\n\t\t\t$subjectsibling = substr($key, 0, -8);\r\n\t\t\t$form['group_'.$subjectsibling] = array(\r\n\t\t\t\t'#title' => \"COMBO - \" . $subjectsibling,\r\n\t\t\t\t'#type' => 'fieldset',\r\n\t\t\t\t'#collapsible' => true,\r\n\t\t\t\t'#collapsed' => true,\r\n\t\t\t\t'#weight' => -100,\r\n\t\t\t);\r\n\t\t\t$form['group_'.$subjectsibling][$key] = $form[$key];\r\n\t\t\tunset($form[$key]);\r\n\t\t}\r\n\t\tif($key == $subjectsibling)\r\n\t\t{\r\n\t\t\t$form['group_'.$subjectsibling][$key] = $form[$key];\r\n\t\t\tunset($form[$key]);\r\n\t\t\tunset($subjectsibling);\r\n\t\t}\r\n\t}\t\r\n\t\r\n\treturn $form;\r\n}", "public function form_field_radio ( $args ) {\n\t\t$options = $this->get_settings();\n\t\t\n\t\tif ( isset( $args['data']['options'] ) && ( count( (array)$args['data']['options'] ) > 0 ) ) {\n\t\t\t$html = '';\n\t\t\tforeach ( $args['data']['options'] as $k => $v ) {\n\t\t\t\t$html .= '<input type=\"radio\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" value=\"' . esc_attr( $k ) . '\"' . checked( esc_attr( $options[$args['key']] ), $k, false ) . ' /> ' . $v . '<br />' . \"\\n\";\n\t\t\t}\n\t\t\techo $html;\n\t\t\t\n\t\t\tif ( isset( $args['data']['description'] ) ) {\n\t\t\t\techo '<span class=\"description\">' . $args['data']['description'] . '</span>' . \"\\n\";\n\t\t\t}\n\t\t}\n\t}", "function echoCreate($spec, $extra_data=[]) {\n\techo('<form class=\"tr\" method=\"POST\">');\n\tforeach($extra_data as $key => $value) {\n\t\techo('<input name=\"' . htmlspecialchars($key) . '\" type=\"hidden\" value=\"' . htmlspecialchars($value) . '\"></input>');\n\t}\n\tforeach($spec as $col) {\n\t\techo('<div class=\"td\"><input name=\"' . htmlspecialchars($col) . '\"></input></div>');\n\t}\n\techo('<div class=\"td\"><input type=\"submit\" name=\"action\" value=\"create\"></input></div>');\n\techo('</form>');\n}", "function radio( $element )\n\t\t{\t\n\t\t\t$output = \"\";\n\t\t\t$counter = 1;\n\t\t\tforeach($element['buttons'] as $radiobutton)\n\t\t\t{\t\n\t\t\t\t$checked = \"\";\n\t\t\t\tif( $element['std'] == $counter ) { $checked = 'checked = \"checked\"'; }\n\t\t\t\t\n\t\t\t\t$output .= '<span class=\"ace_radio_wrap\">';\n\t\t\t\t$output .= '<input '.$checked.' type=\"radio\" class=\"'.$element['class'].'\" ';\n\t\t\t\t$output .= 'value=\"'.$counter.'\" id=\"'.$element['id'].$counter.'\" name=\"'.$element['id'].'\"/>';\n\t\t\t\t\n\t\t\t\t$output .= '<label for=\"'.$element['id'].$counter.'\">'.$radiobutton.'</label>';\n\t\t\t\t$output .= '</span>';\n\t\t\t\t\n\t\t\t\t$counter++;\n\t\t\t}\t\n\t\t\t\t\n\t\t\treturn $output;\n\t\t}", "function form_radio_group($field, $options) {\n\n}", "function minorite_radios($variables) {\n $element = $variables['element'];\n $attributes = array();\n if (isset($element['#id'])) {\n $attributes['id'] = $element['#id'];\n }\n\n return '<span class=\"form-frame form-input-group\">' . $element['#children'] . '</span>';\n}", "private function generateQuestion(){\n\t\t\t$questions = array(\n\t\t\t\t\tarray('name' => 'chevrolet', 'logo' => 'chevrolet.png'),\n\t\t\t\t\tarray('name' => 'playboy', 'logo' => 'playboy.png'),\n\t\t\t\t\tarray('name' => 'shell', 'logo' => 'shell.png'),\n\t\t\t\t\tarray('name' => 'java', 'logo' => 'java.png'),\n\t\t\t\t\tarray('name' => 'mysql', 'logo' => 'mysql.png'),\n\t\t\t\t\tarray('name' => 'postgresql', 'logo' => 'postgresql.png'),\n\t\t\t\t\tarray('name' => 'chrome', 'logo' => 'chrome.png'),\n\t\t\t\t\tarray('name' => 'firefox', 'logo' => 'firefox.png'),\n\t\t\t\t\tarray('name' => 'bluetooth', 'logo' => 'bluetooth.png'),\n\t\t\t\t\tarray('name' => 'twitter', 'logo' => 'twitter.png')\n\t\t\t\t);\n\t\t\t\t\n\t\t\t$index = rand(0, count($questions) - 1);\n\t\t\t\n\t\t\t$this->session->set('gl_answer', $questions[$index]['name']);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t\t\t\t'type' => 'image',\n\t\t\t\t\t\t\t'originalContentUrl' => $this->image_url . $questions[$index]['logo'],\n\t\t\t\t\t\t\t'previewImageUrl' => $this->image_url . $questions[$index]['logo']\n\t\t\t\t\t\t);\n\t\t}", "public function make_multianswer_question_multiple() {\n question_bank::load_question_definition_classes('multianswer');\n $q = new qtype_multianswer_question();\n test_question_maker::initialise_a_question($q);\n $q->name = 'Multichoice multiple';\n $q->questiontext = 'Please select the fruits {#1} and vegetables {#2}';\n $q->generalfeedback = 'You should know which foods are fruits or vegetables.';\n $q->qtype = question_bank::get_qtype('multianswer');\n\n $q->textfragments = array(\n 'Please select the fruits ',\n ' and vegetables ',\n ''\n );\n $q->places = array('1' => '1', '2' => '2');\n\n // Multiple-choice subquestion.\n question_bank::load_question_definition_classes('multichoice');\n $mc = new qtype_multichoice_multi_question();\n test_question_maker::initialise_a_question($mc);\n $mc->name = 'Multianswer 1';\n $mc->questiontext = '{1:MULTIRESPONSE:=Apple#Good~%-50%Burger~%-50%Hot dog#Not a fruit~%-50%Pizza' .\n '~=Orange#Correct~=Banana}';\n $mc->questiontextformat = FORMAT_HTML;\n $mc->generalfeedback = '';\n $mc->generalfeedbackformat = FORMAT_HTML;\n\n $mc->shuffleanswers = 0;\n $mc->answernumbering = 'none';\n $mc->layout = qtype_multichoice_base::LAYOUT_VERTICAL;\n $mc->single = 0;\n\n $mc->answers = array(\n 16 => new question_answer(16, 'Apple', 0.3333333,\n 'Good', FORMAT_HTML),\n 17 => new question_answer(17, 'Burger', -0.5,\n '', FORMAT_HTML),\n 18 => new question_answer(18, 'Hot dog', -0.5,\n 'Not a fruit', FORMAT_HTML),\n 19 => new question_answer(19, 'Pizza', -0.5,\n '', FORMAT_HTML),\n 20 => new question_answer(20, 'Orange', 0.3333333,\n 'Correct', FORMAT_HTML),\n 21 => new question_answer(21, 'Banana', 0.3333333,\n '', FORMAT_HTML),\n );\n $mc->qtype = question_bank::get_qtype('multichoice');\n $mc->maxmark = 1;\n\n // Multiple-choice subquestion.\n question_bank::load_question_definition_classes('multichoice');\n $mc2 = new qtype_multichoice_multi_question();\n test_question_maker::initialise_a_question($mc2);\n $mc2->name = 'Multichoice 2';\n $mc2->questiontext = '{1:MULTIRESPONSE:=Raddish#Good~%-50%Chocolate~%-50%Biscuit#Not a vegetable~%-50%Cheese' .\n '~=Carrot#Correct}';\n $mc2->questiontextformat = FORMAT_HTML;\n $mc2->generalfeedback = '';\n $mc2->generalfeedbackformat = FORMAT_HTML;\n\n $mc2->shuffleanswers = 0;\n $mc2->answernumbering = 'none';\n $mc2->layout = qtype_multichoice_base::LAYOUT_VERTICAL;\n $mc2->single = 0;\n\n $mc2->answers = array(\n 22 => new question_answer(22, 'Raddish', 0.5,\n 'Good', FORMAT_HTML),\n 23 => new question_answer(23, 'Chocolate', -0.5,\n '', FORMAT_HTML),\n 24 => new question_answer(24, 'Biscuit', -0.5,\n 'Not a vegetable', FORMAT_HTML),\n 25 => new question_answer(25, 'Cheese', -0.5,\n '', FORMAT_HTML),\n 26 => new question_answer(26, 'Carrot', 0.5,\n 'Correct', FORMAT_HTML),\n );\n $mc2->qtype = question_bank::get_qtype('multichoice');\n $mc2->maxmark = 1;\n\n $q->subquestions = array(\n 1 => $mc,\n 2 => $mc2,\n );\n\n return $q;\n }", "function callback_radio(array $args)\n {\n }", "function _recommends_req_steps() {\n return array(\n 1 => array(\n 'form' => 'recommends_req_wizard_student_info',\n ),\n 2 => array(\n 'form' => 'recommends_req_wizard_schools_info',\n ),\n 3 => array(\n 'form' => 'recommends_req_wizard_courses_info',\n ),\n 4 => array(\n 'form' => 'recommends_req_wizard_verification',\n ),\n );\n}", "public function run()\n {\n $data = [\n [\n 'id' => 1,\n 'name' => '选择题1',\n 'type' => 'radio',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A',\n 'description' => '没什么好说的',\n 'created_at' => \\Carbon\\Carbon::now(),\n 'user_id' => 1\n ],\n [\n 'id' => 2,\n 'name' => '选择题2',\n 'type' => 'radio',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'B',\n 'description' => '没什么好说的',\n 'created_at' => \\Carbon\\Carbon::now(),\n 'user_id' => 1,\n\n ],\n [\n 'id' => 3,\n 'name' => '选择题3',\n 'type' => 'radio',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'C',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 4,\n 'name' => '选择题4',\n 'type' => 'multiselect',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'B,D',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 5,\n 'name' => '选择题5',\n 'type' => 'multiselect',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A,B',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 6,\n 'name' => '选择题6',\n 'type' => 'multiselect',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A,D',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 7,\n 'name' => '选择题7',\n 'type' => 'select',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A,C',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 8,\n 'name' => '选择题8',\n 'type' => 'select',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A,D,B',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n [\n 'id' => 9,\n 'name' => '选择题9',\n 'type' => 'select',\n 'level' => rand(0,2),\n 'value' => rand(1,5),\n 'answer' => 'A',\n 'description' => '没什么好说的',\n 'user_id' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ],\n ];\n\n DB::table('topics')->insert($data);\n\n $data1 = [];\n for($i=1;$i<10;$i++) {\n $data1[] = [\n 'topic_id' => $i,\n 'name' => '0',\n 'description' => '选项1',\n ];\n $data1[] = [\n 'topic_id' => $i,\n 'name' => '1',\n 'description' => '选项2',\n ];\n $data1[] = [\n 'topic_id' => $i,\n 'name' => '2',\n 'description' => '选项3',\n ];\n $data1[] = [\n 'topic_id' => $i,\n 'name' => '3',\n 'description' => '选项4',\n ];\n }\n\n DB::table('stopics')->insert($data1);\n }", "function radio( $args ) {\n $current = Premium_Posts::get_settings( $args['key'] ) ? Premium_Posts::get_settings( $args['key'] ) : $args['default'];\n foreach( $args['options'] as $value => $label ) {\n printf(\n '<input type=\"radio\" name=\"%1$s\" value=\"%2$s\" %3$s /> %4$s<br />',\n esc_attr( $args['id'] ),\n esc_attr( $value ),\n $checked = checked( $current, $value, $echo = false ),\n esc_attr( $label )\n );\n }\n }", "public function get_multianswer_question_form_data_twosubq() {\n $formdata = new stdClass();\n $formdata->name = 'Simple multianswer';\n $formdata->questiontext = array('text' => 'Complete this opening line of verse: \"The ' .\n '{1:SHORTANSWER:Dog#Wrong, silly!~=Owl#Well done!~*#Wrong answer} ' .\n 'and the {1:MULTICHOICE:Bow-wow#You seem to have a dog obsessions!' .\n '~Wiggly worm#Now you are just being ridiculous!~=Pussy-cat#Well done!}' .\n ' went to sea\".', 'format' => FORMAT_HTML);\n $formdata->generalfeedback = array('text' => 'General feedback: It\\'s from \"The Owl and the Pussy-cat\" ' .\n 'by Lear: \"The owl and the pussycat went to sea', 'format' => FORMAT_HTML);\n\n $formdata->hint = array(\n 0 => array('text' => 'Hint 1', 'format' => FORMAT_HTML, 'itemid' => 0),\n 1 => array('text' => 'Hint 2', 'format' => FORMAT_HTML, 'itemid' => 0),\n );\n\n return $formdata;\n }", "function testCheck($testcase, $testmethod)\n{\n return \"<input type=\\\"checkbox\\\" name=\\\"testmethods[$testcase][$testmethod]\\\" value=\\\"1\\\">$testmethod <br>\\n\";\n}", "function getForm($title, $arr)\n{\n\t$ret = '<form method=\"post\" action=\"index.php\">' . $title;\n\n\twhile(list(,$array) = each($arr))\n\t\t$ret .= $array[0] . getFormField($array[1]);\n\n\t$ret .= '</form>';\n\n\treturn $ret;\n}", "public function generateChoices(array $question)\n\t{\n\t\t[$inputMode, $inputExpectation, $notUseful, $from] = explode('_', $question['type']);\n\n\t\tif($this->config['cross_sections_for_possible_answers'])\n\t\t{\n\t\t\t//TODO\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//leave space for the correct answer to be slotted in!\n\t\t\t//(not done in this method BTW)\n\t\t\t//UPDATE: actually, no, we'll just clobber one to put the correct answer in\n\t\t\t//$count = $this->config['choices_per_question'] - 1;\n\t\t\t$count = $this->config['choices_per_question'];\n\n\t\t\t$randomKeys = array_rand($this->functionData[$question['section']], $count);\n\n\t\t\t$choices = [];\n\n\t\t\tforeach($randomKeys as $key)\n\t\t\t{\n\t\t\t\t$choices[] = $this->functionData[$question['section']][$key][$inputExpectation];\n\t\t\t}\n\n\t\t\treturn $choices;\n\n\t\t}\n\t}", "protected function getFormButtons() : array\n {\n $result = parent::getFormButtons();\n\n $result['submit'] = new Submit(\n [\n AButton::PARAM_LABEL => 'Sign up',\n AButton::PARAM_BTN_TYPE => 'btn regular-main-button submit',\n ]\n );\n\n return $result;\n }", "public function radios()\n {\n $this->items(func_get_args());\n }", "public static function answer_question(array $question);", "function makeForm($request, $formOpts){\n\t\t#print_r ($request);\n\t\t$formDescriptor = array(\n\t\t\t'radioForm' => array(\n \t\t\t\t'type' => 'radio',\n \t\t\t\t'label' => 'Select a search type:',\n \t\t\t\t'options' => array( # The options available within the checkboxes (displayed => value)\n\t\t\t\t\t\t\t\t\t\t\t\t'Radio button label 0' => 0,\n\t\t\t\t\t\t\t\t\t\t\t\t'Radio button label 1' => 1,\n\t\t\t\t\t\t\t\t\t\t\t\t'Radio button label 2' => 2,\n\t\t\t\t\t\t\t\t\t\t\t),\n \t\t\t\t'default' => 0 # The option selected by default (identified by value)\n \t\t\t),\n 'textfield1' => array(\n\t\t\t\t\t\t\t\t'label' => 'textfield 1 label', # What's the label of the field\n\t\t\t\t\t\t\t\t'class' => 'HTMLTextField' # What's the input type\n\t\t\t\t\t\t\t\t),\n\t\t\t'textfield2' => array(\n\t\t\t\t\t'label' => 'textfield 2 label', # What's the label of the field\n\t\t\t\t\t'class' => 'HTMLTextField' # What's the input type\n\t\t\t\t\t), \t\t\t\t\n \t\t);\n\t\t\n\t\tswitch($formOpts){\n\t\t\tcase '1':\n\t\t\t\t$formDescriptor['textfield1']['label'] = 'textfield 1 label'; # What's the label of the field\n\t\t\t\t$formDescriptor['textfield2']['label'] = 'textfield 2 label'; # What's the label of the field\t\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\t#same as case 1\n\t\t\tdefault:\n\t\t}\n\n\t\t#Submit button structure and page callback. \n $htmlForm = new HTMLForm( $formDescriptor, $this->getContext(), 'myform'); # We build the HTMLForm object, calling the form 'myform'\n $htmlForm->setSubmitText( 'Submit button text' ); # What text does the submit button display\n\t\t\n\t\t/* We set a callback function */ \n\t\t#This code has no function to the special page. It used to produce red wiki text callback such as \"Try Again\" commented-out below under processInput function. \n\t\t$htmlForm->setSubmitCallback( array( 'specialpagetemplate', 'processInput' ) ); # Call processInput() in specialpagetemplate on submit\n $htmlForm->show(); # Displaying the form\n\t}", "function create_user_registration_form($data) {\n foreach($data as $key => $val) {\n echo '<div class=\"form-group\">\n <label for=\"'.$val.'\" class=\"pl-1\">'.$key.':';\n if ($val != \"mobile\") echo '*'; echo '</label>\n <input type=\"'.USERS_FORM_TYPES[$key].'\" class=\"form-control\"\n name=\"'.$val.'\" placeholder=\"'.$key.'\" maxlength=\"40\"';\n if (isset($_POST[$val])) echo ' value=\"'.$_POST[$val].'\"';\n echo '></div>';\n }\n }", "function getFormData($array) {\r\n $data = array();\r\n foreach($array as $key=>$dataname){\r\n $data[$dataname] = xtc_db_input($_POST[$dataname]);\r\n }\r\n return $data;\r\n }", "function guifi_radio_add_radio_form($edit) {\n $cr = 0; $tr = 0; $firewall=FALSE;\n $maxradios = db_fetch_object(db_query('SELECT radiodev_max FROM {guifi_model_specs} WHERE mid=%d',$edit[variable][model_id]));\n\n if (isset($edit[radios]))\n foreach ($edit[radios] as $k => $radio) {\n $tr++;\n if (!$radio['deleted'])\n $cr++;\n if ($radio['mode'] == 'client')\n $firewall = TRUE;\n } // foreach $radio\n\n // print \"Max radios: \".$maxradios->radiodev_max.\" Current: $cr Total: $tr Firewall: $firewall Edit details: $edit[edit_details]\\n<br />\";\n $modes_arr = guifi_types('mode');\n // print_r($modes_arr);\n\n if ($cr>0)\n\t if (!$firewall)\n\t\t $modes_arr = array_diff_key($modes_arr,array('client' => 0));\n\t else\n\t\t $modes_arr = array_intersect_key($modes_arr,array('client' => 0));\n\n $form['newradio_mode'] = array(\n '#type' => 'select',\n '#parents' => array('newradio_mode'),\n '#required' => FALSE,\n '#default_value' => 'client',\n '#options' => $modes_arr,\n '#prefix' => '<table style=\"width: 100%\"><th colspan=\"0\">'.t('New radio (mode)').'</th><tr><td style=\"width: 0\" align=\"right\">',\n '#suffix' => '</td>',\n// '#weight' => 20\n );\n $form['AddRadio'] = array(\n '#type' => 'button',\n '#parents' => array('AddRadio'),\n '#default_value' => t('Add new radio'),\n '#executes_submit_callback' => TRUE,\n '#submit' => array(guifi_radio_add_radio_submit),\n '#prefix' => '<td style=\"width: 10em\" align=\"left\">',\n '#suffix' => '</td><td style=\"width: 100%\" align=\"right\">&nbsp</td></tr>',\n// '#weight' => 21,\n );\n $form['help_addradio'] = array(\n '#type' => 'item',\n '#description' => t('Usage:<br />Choose <strong>wireless client</strong> mode for a normal station with full access to the network. That\\'s the right choice in general.<br />Use the other available options only for the appropiate cases and being sure of what you are doing and what does it means. Note that you might require to be authorized by networks administrators for doing this.<br />Youwill not be able to define you link and get connected to the network until you add at least one radio.'),\n '#prefix' => '<tr><td colspan=\"3\">',\n '#suffix' => '</td></tr></table>',\n// '#weight' => 22,\n );\n return $form;\n}", "public static function FormRadioSelect( $name, $data = null, $dataKey = null, $dataTitle = null, $value = null, $class = null, $nullValue = true, $callback = null , $params = [] ) {\n $xhtml = '';\n if ( $data ) {\n $i = 0;\n foreach ( $data as $index => $element ) {\n $i ++;\n\n if ( is_object( $element ) ) {\n $title = $element->$dataTitle;\n $key = $element->$dataKey;\n } else if ( is_array( $element ) ) {\n $title = $element[$dataTitle];\n $key = $element[$dataKey];\n } else {\n $title = $element;\n $key = $index;\n }\n\n if ( $callback ) {\n $title = call_user_func_array( $callback, [ $title, $element ] );\n }\n\n $classes = $class ? [ $class ] : [];\n if ( $i != count( $data ) ) {\n $classes[] = 'marginRightBase';\n }\n\n $xhtml .= sprintf( '<label%s>%s %s</label>', $classes ? ' class=\"' . implode( $classes, ' ' ) . '\"' : '',\n FormHelper::FormRadioButton( $name, $key, null, $class, ($value && $value == $key) || (!$nullValue && $i == 1), $params ),\n $title\n );\n }\n }\n\n return $xhtml;\n }", "public function test_export_multichoice_1() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'multichoice';\n $qdata->name = 'Multiple choice question';\n $qdata->questiontext = 'Questiontext of muliple choice question.';\n $qdata->questiontextformat = FORMAT_HTML;\n $qdata->generalfeedback = 'General feedback';\n $qdata->generalfeedbackformat = FORMAT_HTML;\n $qdata->defaultmark = 23;\n $qdata->length = 1;\n $qdata->penalty = 0.3333333;\n $qdata->hidden = 0;\n \n $qdata->options = new stdClass();\n $qdata->options->single = 0;\n $qdata->options->shuffleanswers = 0;\n $qdata->options->answernumbering = 'abc';\n $qdata->options->correctfeedback = '<p>Your answer is correct.</p>';\n $qdata->options->correctfeedbackformat = FORMAT_HTML;\n $qdata->options->partiallycorrectfeedback = '<p>Your answer is partially correct.</p>';\n $qdata->options->partiallycorrectfeedbackformat = FORMAT_HTML;\n $qdata->options->shownumcorrect = 1;\n $qdata->options->incorrectfeedback = '<p>Your answer is incorrect.</p>';\n $qdata->options->incorrectfeedbackformat = FORMAT_HTML;\n \n $qdata->options->answers = array(\n 13 => new question_answer(13, 'answer 1', 0, '', FORMAT_HTML),\n 14 => new question_answer(14, 'answer 2', 1, '', FORMAT_HTML),\n 15 => new question_answer(15, 'answer 3', 0, '', FORMAT_HTML),\n 16 => new question_answer(16, 'answer 4', 0, '', FORMAT_HTML),\n );\n \n $qdata->hints = array(\n new question_hint_with_parts(0, 'Hint 1.', FORMAT_HTML, false, false),\n new question_hint_with_parts(0, 'Hint 2.', FORMAT_HTML, false, false),\n );\n \n \n // Export the question.\n $exporter = new qformat_smart();\n $questions = array($qdata);\n $zipcontent = $exporter->export_questions($questions);\n \n // Open exported question as import_data.\n $import_data = $this->zip_to_import_data($zipcontent);\n \n /*\n * Test content of imsmanifest.xml\n */\n \n $imsmanifest = $import_data->imsmanifest;\n \n $expected = '<resource identifier=\"group0_pages\" href=\"page0.svg\" type=\"webcontent\" adlcp:scormType=\"asset\"><file href=\"page0.svg\"/></resource>';\n $actual = $imsmanifest->resources->resource[0]->asXML();\n $this->assert_same_xml($expected, $actual);\n \n $expected = '<resource identifier=\"pages\" href=\"page0.svg\" type=\"webcontent\" adlcp:scormType=\"asset\"><file href=\"page0.svg\"/></resource>';\n $actual = $imsmanifest->resources->resource[1]->asXML();\n $this->assert_same_xml($expected, $actual);\n \n /*\n * Test content of page.\n */\n \n // Test number of pages.\n $this->assertCount(1, $import_data->pages);\n \n $page = $import_data->pages[0];\n \n // Test the number of question elements.\n $questions = $page->xpath('//g[@class=\"question\"]');\n $this->assertCount(1, $questions);\n \n // Test the question element.\n $question = $questions[0];\n $expectedvotemetadata = '<votemetadata><questiontext format=\"choice\" labelstyle=\"upper-alpha\" correct=\"2\" points=\"23\" tags=\"\" explanation=\"General feedback\" mathgradingoption=\"\" likert=\"false\"/></votemetadata>';\n $votemetadata = $question->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the question number.\n $expectedquestionnumber = '1';\n $questionnumber = strip_tags($question->text[0]->asXML());\n $this->assertEquals($expectedquestionnumber, $questionnumber);\n \n // Test the question text without formattings.\n $expectedquestiontext = 'Questiontext of muliple choice question.';\n $questiontext = strip_tags($question->text[1]->asXML());\n $this->assertEquals($expectedquestiontext, $questiontext);\n \n // Test the number of choices.\n $choices = $page->xpath('//g[@class=\"questionchoice\"]');\n $this->assertCount(4, $choices);\n \n // Test the 1. choice element.\n $choice = $choices[0];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"1\" format=\"choice\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'A';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 1';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 2. choice element.\n $choice = $choices[1];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"2\" format=\"choice\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'B';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 2';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 3. choice element.\n $choice = $choices[2];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"3\" format=\"choice\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'C';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 3';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 4. choice element.\n $choice = $choices[3];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"4\" format=\"choice\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'D';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 4';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n }", "function HTMLSubmit ($params) {\n if (!isset($params['name'])) {\n if (isset($params['id'])) {\n $params['name'] = $params['id'];\n }\n }\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n foreach ($params as $k=>$v) {\n $str .= \" {$k}=\\\"{$v}\\\"\";\n }\n return \"<button type='submit' {$str} >{$val}</button>\";\n }", "function scrappy_get_radios($id) {\n $args = array(\n 'posts_per_page' => -1,\n 'offset' => 0,\n 'category' => '',\n 'category_name' => '',\n 'orderby' => 'meta_value',\n 'order' => 'DESC',\n 'include' => '',\n 'exclude' => '',\n 'meta_key' => '',\n 'meta_value' => '',\n 'post_type' => 'radio',\n 'post_mime_type' => '',\n 'post_parent' => '',\n 'author'\t => '',\n 'author_name'\t => '',\n 'post_status' => 'publish',\n 'suppress_filters' => true,\n /*'tax_query' => array(\n array(\n 'taxonomy' => 'radio_category',\n 'field' => 'id',\n 'terms' => 2\n )\n ),*/\n 'meta_key' => 'scrappy_url',\n );\n if ( $id ) {\n $args['post__in'] = ( is_array($id) ? $id : array($id));\n }\n return get_posts( $args );\n}", "public function renderRadio(): string\n\t{\n\t\t$gateUrl = $this->config->gateUrl;\n\t\t$queryArgs = [\n\t\t\t'merchantId' => $this->config->merchantId,\n\t\t\t'accountId' => $this->config->accountId,\n\t\t\t'name' => $this->name,\n\t\t\t'value' => $this->value,\n\t\t\t'showIcon' => $this->showIcon,\n\t\t\t'selected' => $this->isTpMethodChosen() ? (int) $_REQUEST['tp_radio_value'] : '',\n\t\t];\n\t\t// Currency is an optional argument. For compatibility reasons, it is\n\t\t// not present in the query at all if its value is empty.\n\t\tif ($this->currency) {\n\t\t\t$queryArgs['currency'] = $this->currency;\n\t\t}\n\n\t\t$queryArgs['signature'] = $this->createSignature($queryArgs);\n\n\t\t$queryArgs = http_build_query($queryArgs);\n\t\t$thepayGateUrl = \"{$gateUrl}radiobuttons/index.php?{$queryArgs}\";\n\t\t$thepayGateUrl = Escaper::jsonEncode($thepayGateUrl);\n\n\t\t$href = \"{$gateUrl}radiobuttons/style/radiobuttons.css?v=\" . time();\n\t\t$out = \"<link href=\\\"{$href}\\\" type=\\\"text/css\\\" rel=\\\"stylesheet\\\" />\\n\";\n\t\t$out .= \"<script type=\\\"text/javascript\\\">\\n\";\n\t\t$out .= \"\\tvar thepayGateUrl = {$thepayGateUrl};\\n\";\n\n\t\tif ($this->appendCode) {\n\t\t\t$thepayAppendCode = Escaper::jsonEncode($this->appendCode);\n\t\t\t$out .= \"\\tvar thepayAppendCode = {$thepayAppendCode};\\n\";\n\t\t}\n\n\t\t$out .= \"</script>\\n\";\n\n\t\t$src = \"{$gateUrl}radiobuttons/js/jquery.js?v=\" . time();\n\t\t$out .= \"<script type=\\\"text/javascript\\\" src=\\\"{$src}\\\" async=\\\"async\\\"></script>\\n\";\n\n\t\t$src = \"{$gateUrl}radiobuttons/js/radiobuttons.js?v=\" . time();\n\t\t$out .= \"<script type=\\\"text/javascript\\\" src=\\\"{$src}\\\" async=\\\"async\\\"></script>\\n\";\n\n\t\t$out .= \"<div id=\\\"thepay-method-box\\\"></div>\\n\";\n\n\t\treturn $out;\n\t}", "function createCheckboxGroup($data) {\n foreach($data as $key => $value) {\n echo '<div class=\"form-check mb-2\">';\n echo \"<label class=\\\"form-check-label font-weight-bold\\\">\";\n echo \"<input type=\\\"checkbox\\\" class=\\\"form-check-input\\\" name=\\\"$value\\\" value=\\\"$value\\\"\";\n if(isset($_POST[$value]) && $_POST[$value]){\n echo \" checked=\\\"checked\\\"\";\n }\n echo \"> $key</label></div>\";\n }\n }", "function sb_slideshow_radio( $value, $key, $name, $checked = '' ) {\n\treturn '<input type=\"radio\" name=\"sb_' . esc_attr( $name ) . '\" id=\"' . esc_attr( $name . '_' . $value ) . '\"\n\t\tvalue=\"' . esc_attr( $value ) . '\"' . ($value == $checked ? 'checked=\"checked\"' : '') . ' />\n\t\t<label for=\"' . esc_attr( $name . '_' . $value ) . '\">' . $key . '</label><br />';\n}", "public static function generate($fields) {\n $form=\"\";\n $extraOptions=[];\n // wildCard will be applied all inputs\n $wildCard=isset($fields[\"*\"]) ? $fields[\"*\"]:[];\n // exclude given elements\n if(isset($fields[\"_exclude\"])) {\n foreach ($fields[\"_exclude\"] as $value) {\n unset($fields[$value]);\n }\n }\n foreach ($fields as $key => $val) {\n if($key==\"*\"||$key==\"_exclude\") continue;\n if(!empty($wildCard)) {\n $val=array_replace_recursive($val,$wildCard);\n }\n $inputOptions=isset($val[\"options\"]) ? $val[\"options\"] : [];\n \n $placeholder=isset($val[\"placeholder\"]) ? $val[\"placeholder\"] : null;\n switch ($val[\"type\"]) {\n case 'select':\n $form.=cForm::{\"c\".ucfirst($val[\"type\"])}($key,$val[\"label\"],$val[\"data\"],$inputOptions);\n break;\n case 'password':\n $form.=cForm::{\"c\".ucfirst($val[\"type\"])}($key,$val[\"label\"],$placeholder,$inputOptions);\n break;\n case 'checkbox':\n case 'radio':\n $form.=cForm::{\"c\".ucfirst($val[\"type\"])}($key,$val[\"label\"],$val[\"value\"],null); // removed $val[\"checked\"] for unwanted results\n break;\n case 'color':\n case 'number':\n case 'file';\n $form.=cForm::{\"c\".ucfirst($val[\"type\"])}($key,$val[\"label\"],$inputOptions);\n break;\n // other elements share the same parameters.\n default:\n try {\n\n $form.=cForm::{\"c\".ucfirst($val[\"type\"])}($key,$val[\"label\"],$placeholder,$inputOptions);\n }catch(\\Exception $err) {\n if(config('app.debug')==false) { // only show error on debug\n dump(\"Error on generating form\",$err,$key,$val);\n }\n }\n break;\n }\n }\n return $form;\n }", "public function CreateTaphonomyMultiple()\n {\n // Test user login\n $user = ['email' => 'testuno@unomaha.edu', 'password' => 'Password!23'];\n $this->browse(function ($browser) use ($user) {\n $browser->visit(new loginPage)\n ->loginUser($user['email'], $user['password'])\n ->assertSee('Welcome');\n\n // Skeletal elements search set up\n $browser->visit(new specimenPage)\n ->pause(1000)\n ->select('@search-type-selector','SE-P1')\n ->pause(1000)\n ->type('@cora-search','888')\n ->keys('@cora-search','{enter}')\n\n // Search Result Assertions for humerus ABC999-888-777-555\n ->waitForLink('ABC999-888-777-555')\n ->assertSeeLink('ABC999-888-777-555')\n ->assertSee('Humerus')\n ->assertSee('Left')\n ->assertSee('Bone')\n ->assertSee('Side')\n ->assertSee('DNA Sampled')\n\n // Specimen Assertions\n ->clickLink('ABC999-888-777-555')\n ->assertSee('View Specimen - ABC999-888-777-555')\n ->click('@se-details-menu')\n ->click('@se-taphonomys-menu')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertPathIs('/skeletalelements/1220/taphonomys')\n\n // Open Edit Functions\n ->click('@se-taphonomys-menu')\n ->click('@taphonomy-actions-edit')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertSee('Save')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n // Add and Save a multiple new taphonomies\n ->select('@se-taphonomy-list','General Color-Natural')\n ->select('@se-taphonomy-list','Human Modification-Other')\n ->select('@se-taphonomy-list','Physical-Weathering')\n ->click('@se-taphonomy-save')\n ->acceptDialog()\n ->assertSee('Taphonomies successfully associated')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n ->logoutUser();\n });\n }", "protected function printRadioFormField($nameField, $label, $array, $required=false, $value=null){\n $optRequired = \"\";\n if($required == true){\n $optRequired = \"required\";\n }\n if($value == null){\n if(isset($_POST[$nameField])){\n $value = $_POST[$nameField];\n }\n }\n \n ?>\n <div class=\"form-group\">\n <label class=\"control-label col-sm-2\" for=\"<?php echo $nameField ?>\" ><?php echo $label ?></label>\n <?php\n foreach($array as $k => $v){\n if($value == $k){\n echo '<label class=\"radio-inline\"><input type=\"radio\" value=\"'.$k.'\" name=\"'.$nameField.'\" '.$optRequired.' checked>'.$v.'</label>';\n }\n else{\n echo '<label class=\"radio-inline\"><input type=\"radio\" value=\"'.$k.'\" name=\"'.$nameField.'\" '.$optRequired.'>'.$v.'</label>';\n }\n }\n ?>\n \n \n </div>\n <?php\n }", "public function initAddQuestionAndAnswersForm () {\n global $tpl, $ilCtrl;\n\n $my_tpl = new ilTemplate(\"tpl.question_and_answers.html\", true, true,\n \"Customizing/global/plugins/Services/Repository/RepositoryObject/MobileQuiz\");\n $rtokenFactory = new ilCtrl();\n $my_tpl->setVariable(\"ACTION_URL\",$this->ctrl->getFormAction($this));\n $my_tpl->setVariable(\"SUBMIT_BUTTON\", $this->txt(\"save\"));\n $my_tpl->setVariable(\"NEW_QUESTION\", $this->txt(\"question_add_head\"));\n $my_tpl->setVariable(\"QUESTION\", $this->txt(\"question_add_text\"));\n $my_tpl->setVariable(\"QUESTION_TYPE\", $this->txt(\"question_add_type\"));\n $my_tpl->setVariable(\"CHOICES\", $this->txt(\"choice_add_texts\"));\n $my_tpl->setVariable(\"VAR_1\", \"value1\");\n $my_tpl->setVariable(\"COMMAND\", \"cmd[createQuestionAndAnswers]\");\n $my_tpl->setVariable(\"MINIMUM\", $this->txt(\"choice_add_numeric_minimum\"));\n $my_tpl->setVariable(\"MAXIMUM\", $this->txt(\"choice_add_numeric_maximum\"));\n $my_tpl->setVariable(\"STEP\", $this->txt(\"choice_add_numeric_steprange\"));\n $my_tpl->setVariable(\"CORRECT_VALUE\", $this->txt(\"choice_add_numeric_correctvalue\"));\n $my_tpl->setVariable(\"TOLERANCE_RANGE\", $this->txt(\"choice_add_numeric_tolerenace_range\"));\n $my_tpl->setVariable(\"SELECTED_SINGLE\", 'selected=\"selected\"');\n\n $my_tpl->setVariable(\"HIDE_NUMERIC_BLOCK\", 'style=\"display:none;\"');\n $my_tpl->setVariable(\"HIDE_SINGLE_CHOICE_BLOCK\", 'style=\"display:none;\"');\n\n $html = $my_tpl->get();\n $tpl->setContent($html);\n }", "public function test_export_multichoice_2() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'multichoice';\n $qdata->name = 'Multiple choice question';\n $qdata->questiontext = 'Questiontext of muliple choice question.';\n $qdata->questiontextformat = FORMAT_HTML;\n $qdata->generalfeedback = 'General feedback';\n $qdata->generalfeedbackformat = FORMAT_HTML;\n $qdata->defaultmark = 23;\n $qdata->length = 1;\n $qdata->penalty = 0.3333333;\n $qdata->hidden = 0;\n \n $qdata->options = new stdClass();\n $qdata->options->single = 0;\n $qdata->options->shuffleanswers = 0;\n $qdata->options->answernumbering = 'abc';\n $qdata->options->correctfeedback = '<p>Your answer is correct.</p>';\n $qdata->options->correctfeedbackformat = FORMAT_HTML;\n $qdata->options->partiallycorrectfeedback = '<p>Your answer is partially correct.</p>';\n $qdata->options->partiallycorrectfeedbackformat = FORMAT_HTML;\n $qdata->options->shownumcorrect = 1;\n $qdata->options->incorrectfeedback = '<p>Your answer is incorrect.</p>';\n $qdata->options->incorrectfeedbackformat = FORMAT_HTML;\n \n $qdata->options->answers = array(\n 13 => new question_answer(13, 'answer 1', 0, '', FORMAT_HTML),\n 14 => new question_answer(14, 'answer 2', 1, '', FORMAT_HTML),\n 15 => new question_answer(15, 'answer 3', 0, '', FORMAT_HTML),\n 16 => new question_answer(16, 'answer 4', 1, '', FORMAT_HTML),\n );\n \n $qdata->hints = array(\n new question_hint_with_parts(0, 'Hint 1.', FORMAT_HTML, false, false),\n new question_hint_with_parts(0, 'Hint 2.', FORMAT_HTML, false, false),\n );\n \n \n // Export the question.\n $exporter = new qformat_smart();\n $questions = array($qdata);\n $zipcontent = $exporter->export_questions($questions);\n \n // Open exported question as import_data.\n $import_data = $this->zip_to_import_data($zipcontent);\n \n /*\n * Test content of imsmanifest.xml\n */\n \n $imsmanifest = $import_data->imsmanifest;\n \n $expected = '<resource identifier=\"group0_pages\" href=\"page0.svg\" type=\"webcontent\" adlcp:scormType=\"asset\"><file href=\"page0.svg\"/></resource>';\n $actual = $imsmanifest->resources->resource[0]->asXML();\n $this->assert_same_xml($expected, $actual);\n \n $expected = '<resource identifier=\"pages\" href=\"page0.svg\" type=\"webcontent\" adlcp:scormType=\"asset\"><file href=\"page0.svg\"/></resource>';\n $actual = $imsmanifest->resources->resource[1]->asXML();\n $this->assert_same_xml($expected, $actual);\n \n /*\n * Test content of page.\n */\n \n // Test number of pages.\n $this->assertCount(1, $import_data->pages);\n \n $page = $import_data->pages[0];\n \n // Test the number of question elements.\n $questions = $page->xpath('//g[@class=\"question\"]');\n $this->assertCount(1, $questions);\n \n // Test the question element.\n $question = $questions[0];\n $expectedvotemetadata = '<votemetadata><questiontext format=\"selection\" labelstyle=\"upper-alpha\" correct=\"2 4\" points=\"23\" tags=\"\" explanation=\"General feedback\" mathgradingoption=\"\" likert=\"\"/></votemetadata>';\n $votemetadata = $question->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the question number.\n $expectedquestionnumber = '1';\n $questionnumber = strip_tags($question->text[0]->asXML());\n $this->assertEquals($expectedquestionnumber, $questionnumber);\n \n // Test the question text without formattings.\n $expectedquestiontext = 'Questiontext of muliple choice question.';\n $questiontext = strip_tags($question->text[1]->asXML());\n $this->assertEquals($expectedquestiontext, $questiontext);\n \n // Test the number of choices.\n $choices = $page->xpath('//g[@class=\"questionchoice\"]');\n $this->assertCount(4, $choices);\n \n // Test the 1. choice element.\n $choice = $choices[0];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"1\" format=\"selection\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'A';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 1';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 2. choice element.\n $choice = $choices[1];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"2\" format=\"selection\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'B';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 2';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 3. choice element.\n $choice = $choices[2];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"3\" format=\"selection\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'C';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 3';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the 4. choice element.\n $choice = $choices[3];\n $expectedvotemetadata = '<votemetadata><choicetext label=\"4\" format=\"selection\"/></votemetadata>';\n $votemetadata = $choice->votemetadata->asXML();\n $this->assert_same_xml($expectedvotemetadata, $votemetadata);\n \n // Test the numbering of the choice text without formattings.\n $expectedchoicetext = 'D';\n $choicetext = strip_tags($choice->text[0]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n \n // Test the choice text without formattings.\n $expectedchoicetext = 'answer 4';\n $choicetext = strip_tags($choice->text[1]->asXML());\n $this->assertEquals($expectedchoicetext, $choicetext);\n }", "function re_post_form($var, $ignore=array('submit'))\r\n{\r\n $input_hiddens = '';\r\n\r\n foreach($var as $k=>$v)\r\n {\r\n $k = format_str($k);\r\n if(in_array($k, $ignore)!=false) continue;\r\n\r\n if(is_array($v))\r\n {\r\n foreach($v as $k2=>$v2){\r\n $input_hiddens .= \"<input type='hidden' name='{$k}[{$k2}]' value='{$v2}' />\\r\\n\";\r\n }\r\n }\r\n else{\r\n $input_hiddens .= \"<input type='hidden' name='{$k}' value='{$v}' />\\r\\n\";\r\n }\r\n }\r\n\r\n return $input_hiddens;\r\n}", "public function getDomObject()\n\t\t{\n\t\t\t$fieldset = new \\System\\XML\\DomObject( 'fieldset' );\n\t\t\t$fieldset->setAttribute( 'id', $this->getHTMLControlId() );\n//\t\t\t$fieldset->setAttribute( 'class', ' radiobuttonlist' );\n\n\t\t\tif( !$this->visible )\n\t\t\t{\n\t\t\t\t$fieldset->setAttribute( 'style', 'display:none;' );\n\t\t\t}\n\n\t\t\tfor( $i = 0, $count = $this->items->count; $i < $count; $i++ )\n\t\t\t{\n\t\t\t\t$input = $this->createDomObject( 'input' );\n\t\t\t\t$input->setAttribute( 'id', $this->getHTMLControlId() . '__' . $i );\n//\t\t\t\t$input->setAttribute( 'class', 'radiobuttonlist_input' );\n\t\t\t\t$input->setAttribute( 'value', $this->items->itemAt( $i ));\n\t\t\t\t$input->setAttribute( 'title', $this->tooltip );\n\n\t\t\t\tif( $this->submitted && !$this->validate() )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'class', 'invalid' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->autoPostBack )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'onclick', 'Rum.id(\\''.$this->getParentByType('\\System\\Web\\WebControls\\Form')->getHTMLControlId().'\\').submit();' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->ajaxPostBack )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'onclick', 'Rum.evalAsync(\\'' . $this->ajaxCallback . '\\',\\''.$this->getHTMLControlId().'=\\'+encodeURIComponent(this.value)+\\'&'.$this->getRequestData().'\\',\\'POST\\','.\\addslashes($this->ajaxStartHandler).','.\\addslashes($this->ajaxCompletionHandler).');' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->readonly )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'readonly', 'readonly' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->disabled )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'disabled', 'disabled' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->multiple )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'type', 'checkbox' );\n\t\t\t\t\t$input->setAttribute( 'name', $this->getHTMLControlId() .'[]' );\n\n\t\t\t\t\tif( in_array( $this->items->itemAt( $i ), $this->value, false ))\n\t\t\t\t\t{\n\t\t\t\t\t\t$input->setAttribute( 'checked', 'checked' );\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$input->setAttribute( 'type', 'radio' );\n\t\t\t\t\t$input->setAttribute( 'name', $this->getHTMLControlId() );\n\n\t\t\t\t\tif( $this->value === $this->items->itemAt( $i ))\n\t\t\t\t\t{\n\t\t\t\t\t\t$input->setAttribute( 'checked', 'checked' );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$input->setAttribute( 'onclick',\tstr_replace( '%value%', $this->items->itemAt( $i ), $this->onclick ));\n\t\t\t\t$input->setAttribute( 'ondblclick', str_replace( '%value%', $this->items->itemAt( $i ), $this->ondblclick ));\n\n\t\t\t\t$label = new \\System\\XML\\DomObject( 'label' );\n\t\t\t\t$label->addChild( $input );\n\t\t\t\t$label->addChild( new \\System\\XML\\TextNode( $this->items->keyAt( $i )) );\n\t\t\t\t$fieldset->addChild( $label );\n\t\t\t}\n\n\t\t\treturn $fieldset;\n\t\t}", "public function make_multianswer_question_twosubq() {\n question_bank::load_question_definition_classes('multianswer');\n $q = new qtype_multianswer_question();\n test_question_maker::initialise_a_question($q);\n $q->name = 'Simple multianswer';\n $q->questiontext =\n 'Complete this opening line of verse: \"The {#1} and the {#2} went to sea\".';\n $q->generalfeedback = 'General feedback: It\\'s from \"The Owl and the Pussy-cat\" by Lear: ' .\n '\"The owl and the pussycat went to sea';\n $q->qtype = question_bank::get_qtype('multianswer');\n\n $q->textfragments = array(\n 'Complete this opening line of verse: \"The ',\n ' and the ',\n ' went to sea\".',\n );\n $q->places = array('1' => '1', '2' => '2');\n\n // Shortanswer subquestion.\n question_bank::load_question_definition_classes('shortanswer');\n $sa = new qtype_shortanswer_question();\n test_question_maker::initialise_a_question($sa);\n $sa->name = 'Simple multianswer';\n $sa->questiontext = '{1:SHORTANSWER:Dog#Wrong, silly!~=Owl#Well done!~*#Wrong answer}';\n $sa->questiontextformat = FORMAT_HTML;\n $sa->generalfeedback = '';\n $sa->generalfeedbackformat = FORMAT_HTML;\n $sa->usecase = true;\n $sa->answers = array(\n 13 => new question_answer(13, 'Dog', 0.0, 'Wrong, silly!', FORMAT_HTML),\n 14 => new question_answer(14, 'Owl', 1.0, 'Well done!', FORMAT_HTML),\n 15 => new question_answer(15, '*', 0.0, 'Wrong answer', FORMAT_HTML),\n );\n $sa->qtype = question_bank::get_qtype('shortanswer');\n $sa->maxmark = 1;\n\n // Multiple-choice subquestion.\n question_bank::load_question_definition_classes('multichoice');\n $mc = new qtype_multichoice_single_question();\n test_question_maker::initialise_a_question($mc);\n $mc->name = 'Simple multianswer';\n $mc->questiontext = '{1:MULTICHOICE:Bow-wow#You seem to have a dog obsessions!' .\n '~Wiggly worm#Now you are just being rediculous!~=Pussy-cat#Well done!}';\n $mc->questiontextformat = FORMAT_HTML;\n $mc->generalfeedback = '';\n $mc->generalfeedbackformat = FORMAT_HTML;\n\n $mc->shuffleanswers = 0;\n $mc->answernumbering = 'none';\n $mc->layout = qtype_multichoice_base::LAYOUT_DROPDOWN;\n\n $mc->answers = array(\n 13 => new question_answer(13, 'Bow-wow', 0,\n 'You seem to have a dog obsessions!', FORMAT_HTML),\n 14 => new question_answer(14, 'Wiggly worm', 0,\n 'Now you are just being rediculous!', FORMAT_HTML),\n 15 => new question_answer(15, 'Pussy-cat', 1,\n 'Well done!', FORMAT_HTML),\n );\n $mc->qtype = question_bank::get_qtype('multichoice');\n $mc->maxmark = 1;\n\n $q->subquestions = array(\n 1 => $sa,\n 2 => $mc,\n );\n\n return $q;\n }", "public function createQuestionAndAnswers () {\n global $tpl, $lng, $ilCtrl, $ilTabs;\n\n // create wizard object\n include_once('class.ilObjMobileQuizWizard.php');\n $wiz = new ilObjMobileQuizWizard();\n\n\n $ilTabs->activateTab(\"editQuiz\");\n\n\n if ($wiz->checkInput()){\n $wiz->createQuestionAndAnswers($this->object);\n ilUtil::sendSuccess($this->txt(\"question_obj_create\"), true);\n $ilCtrl->redirect($this, \"editQuiz\");\n }\n $this->initAddQuestionAndAnswersFormAfterError();\n //$tpl->setContent(\"Test\");\n }", "function create_question_set($title, $points) {\n $set = array();\n $set['title'] = $title;\n $set['points'] = $points;\n return $set;\n}", "public function run()\n {\n $data = [\n [\n 'title' => 'Общие и финансовые вопросы',\n 'questions' => [\n [\n 'general' => true,\n 'title' => 'Как я могу узнать, какой у меня подключен тарифный план и до какого числа оплачен интернет?',\n 'description' => 'Ознакомиться с этой информацией можно несколькими способами: - В личном кабинете в разделе «Интернет – Услуги». - Для владельцев Apple разработано удобное приложение “SkyNet Личный кабинет”. Найти приложение можно в магазине приложений AppStore по запросу \"SkyNet. Требования: iPhone, iPod, iPad с операционной системой iOS 7.1 и выше. - Обратиться по телефону в Отдел Поддержки Пользователей SkyNet (тел.: 386-20-20)'\n ],\n [\n 'general' => true,\n 'title' => 'Подключение банковской карты в Личном кабинете',\n 'description' => 'Заходим в Личный кабинет, в раздел «Автоматическая оплата картой». Нажимаем «Подключить карту». Заполняем все поля. Имя держателя карты вводится заглавными латинскими буквами. Для не именных карт указываем «NO NAME». Нажимаем «Подтвердить». Возвращаемся в Личный кабинет. Нажимаем «Активировать карту». На карте резервируются две суммы: — 1 рубль для проверки активности карты; — Случайная сумма от 0,01 до 9,99 рублей. Данную сумму (три цифры без запятых) необходимо ввести в поле «Сумма авторизации (в копейках)» в течение 15 минут. Сумма вводится в формате кода, например: для суммы 5 р. 56 коп. необходимо ввести — 556; Если Вы не получили SMS с суммой авторизации, пожалуйста, обратитесь в банк-держатель карты. Нажимаем «Подтвердить». После регистрации карты зарезервированные суммы возвращаются на банковскую карту. Нажимаем «Вернуться в личный кабинет». Карта успешно подключена! Теперь Вы можете оплатить через «Разовое пополнение» или включить «Автопополнение».'\n ],\n [\n 'general' => true,\n 'title' => 'Как подключить оповещения в Telegram от SkyNet?',\n 'description' => 'Каждый абонент сети SkyNet может пользоваться услугой информирования в Telegram. Это можно сделать следующим образом. Прежде всего Вам потребуется установить мессенджер Telegram на устройство. Это может быть смартфон по управлением ОС iOS или Android, а так же устройство на ОС Windows или MAC OS. Ссылки на загрузку приложения: OS Android; iOS; Windows Phone; Для Android: Откройте Play Market на Вашем устройстве В поиске введите «Telegram» или «Телеграмм» Нажмите кнопку «Установить» Запустите приложение. После этого введите номер своего мобильного телефона. На указанный Вами номер поступит СМС-уведомление с кодом активации приложения. Введите код в соответствующее поле. Для iOS. Откройте AppStore на Вашем устройстве. В поиске введите «Telegram» или «Телеграмм» Нажмите кнопку «Установить» После этого откройте приложение. Введите Ваш номер телефона. Затем введите номер своего мобильного телефона. На указанный Вами номер поступит СМС-уведомление с кодом активации приложения. Введите код в соответствующее поле. Для ОС Windows и MAC OS: Загрузите клиент с официального сайта программы. После этого запустите процесс установки. Подключить оповещения от любимого провайдера SkyNet можно следующим образом: 1. Пройдите по ссылке и нажмите кнопку «Join». 2. - Запустите Telegram; - Нажмите поиск (кнопка лупа). В поиске введите «skntbot» - Нажмите кнопку «Start» - После этого разрешите приложению использовать Ваш номер телефона, нажав кнопку «OK» - Затем нажмите кнопку «Продолжить» После этого Вы можете использовать функции нашего бота. Он будет оповещать Вас о: Балансе своего счета; Предстоящих списаниях и зачислении средств; Ремонтных работах. Обратите внимание! Ваш номер телефона, указанный в Telegram, так же должен быть указан в Личном кабинете SkyNet в разделе «Настройка SMS-оповещения».'\n ],\n [\n 'general' => true,\n 'title' => 'Я внес средства на лицевой счет, как я могу узнать об их поступлении?',\n 'description' => '- В личном кабинете в разделе «Баланс и платежи» - Через приложение «SkyNet Личный кабинет» (для владельцев Apple iOS) - Вы можете подключить услугу «SMS-чек» в личном кабинете и после внесения денежных средств вам на телефон будет приходить SMS-сообщение об их поступлении.'\n ],\n [\n 'title' => 'Я хочу сменить тариф. Как это сделать?',\n 'description' => 'Сменить тариф Вы можете в личном кабинете. Для смены тарифа в личном кабинете выбираете раздел «Интернет» -> «Услуги». В разделе «Услуги» нажимаете «Сменить текущий/будущий тариф», после этого откроется таблица с тарифами. В данной таблице выбираете желаемый тариф и нажимаете «Отправить»'\n ],\n [\n 'title' => 'Как я могу узнать пароль от личного кабинета?',\n 'description' => 'Пароль от личного кабинета предоставляется каждому клиенту при подключении. Если он был утерян, Вы можете его восстановить несколькими способами: - При входе в личный кабинет нажать кнопку «Забыли пароль» - на Ваш номер телефона придет SMS с новым паролем, сменить его Вы можете в любой момент в личном кабинете в разделе «Сменить пароль» - Обратиться в Отдел Поддержки Пользователей по телефону 386-20-20 или через онлайн-консультант.'\n ],\n [\n 'title' => 'Как я могу оплатить интернет без комиссии?',\n 'description' => 'Произвести оплату без комиссии Вы можете через терминалы Сбербанка в любом отделении банка, а также банковской картой в личном кабинете или на нашем сайте.'\n ],\n [\n 'title' => 'Я пропустил оплату, интернет не работает, но хотелось бы оплатить услуги банковской картой. Как я могу это сделать?',\n 'description' => '- Вы можете активировать «Отложенный платеж» в личном кабинете. Через 15 минут доступ в интернет восстановится, и можно будет оплатить услуги банковской картой через наш сайт. - Если Вы уже воспользовались услугой «Отложенный платеж», но оплатить не успели – Вы можете привязать банковскую карту к договору в личном кабинете в разделе «Оплата банковской картой» и после этого оплатить. Также, Вы можете подключить в личном кабинете «Автоплатеж» и более не беспокоиться об оплате – средства будут списываться с Вашей банковской карты автоматически.'\n ],\n [\n 'title' => 'Как привязать банковскую карту к договору в личном кабинете?',\n 'description' => 'Для того что бы привязать карту нужно зайти в Личный кабинет, в раздел «Оплата банковской картой» и нажать кнопку «Подключить карту». Далее: 1. Заполняем все поля; - Произойдёт резервирование средств на сумму 1 рубля для проверки активности карты. - Далее резервируется случайная сумма от 0,01 до 9,99 (с учётом копеек), после этого процедура регистрации карты переходит в режим ожидания ввода данной суммы, срок ожидания ограничен по времени - 2 часа. 2. Нажимаем «Вернуться в личный кабинет»; 3. Нажимаем «Активировать карту»; 4. В строке «Сумма авторизации» вводим сумму, которая была зарезервирована. Сумма вводится в формате кода, например: для суммы 5 р. 56 коп. необходимо ввести - 556; 5. Нажимаем «Подтвердить». После успешной регистрации карты, зарезервированные суммы возвращаются на банковскую карту.'\n ],\n [\n 'title' => 'Я случайно оплатил на неверный номер договора, что делать?',\n 'description' => 'Вам нужно написать заявление на info@sknt.ru, либо приехать в офис с паспортом и чеком. В заявлении должно быть указано: 1. Ф.И.О. полностью 2. Паспортные данные 3. Дата оплаты 4. Верный ID 5. Неверный ID 6. Сумма к зачислению 7. Число 8. Подпись 9. Копия чека (это может быть скан или четкая фотография) На почте заявление рассматривается от 1 до 7 дней в порядке очереди, но как правило это происходит быстрее, в течение 1-2 дней. В офисе денежные средства переведут сразу при Вас.'\n ],\n [\n 'title' => 'Как добавить номер телефона в Личном кабинете?',\n 'description' => 'Чтобы указать номер телефона в Личном кабинете: 1. Слева, в разделе «SMS-услуги» выбираем «Мой телефон» 2. В поле «Текущий номер телефона для оповещений» указываем номер телефона и нажимаем кнопку «Сохранить».'\n ],\n [\n 'title' => 'Я оплатил банковской картой с сайта, но деньги не дошли, почему?',\n 'description' => '— чтобы выяснить это, нам потребуется «Идентификатор транзакции», который отображается после проведения платежа (выделен красным на рисунке ниже). Вы можете передать его нам любым удобным для вас способом: – обращением из ЛК; – по почте info@sknt.ru; – через чат с нашего сайта; – по телефону 386–2020 (круглосуточно). Если Вы вдруг не сохранили «Идентификатор транзакции», необходимо обращаться в банк, который выпустил Вашу карту. Заметим, что данный процесс может занимать значительное время (в зависимости от банка, время реакции может различаться), поэтому настоятельно рекомендуем сохранять его до поступления Вашего платежа на счёт.'\n ],\n ]\n ],\n [\n 'title' => 'Техническая поддержка: Интернет',\n 'questions' => [\n [\n 'general' => true,\n 'title' => 'Я подключил кабель интернета в новое устройство, но Интернет не заработал. Почему?',\n 'description' => 'Я подключил кабель интернета в новое устройство, но Интернет не заработал. Почему? Необходимо зарегистрировать Ваше устройство в сети, для этого потребуется Физический (MAC) адрес нового оборудования. Физический адрес Вашего устройства нужно указать в Личном кабинете. · Зайдите в Личный кабинет; · Зайдите в раздел «Услуги»; · Нажмите кнопку «Сменить мак-адрес»; · В поле для ввода укажите физический адрес Вашего устройства, затем нажмите «Сохранить». Так же Вы можете зарегистрировать новое устройство в приложении «SkyNet Личный кабинет». После регистрации нового устройства доступ появится в течение 10 минут.'\n ],\n [\n 'general' => true,\n 'title' => 'Как узнать Физический (MAC) адрес моего компьютера?',\n 'description' => 'Windows 7 Необходимо открыть меню Пуск; Затем выбрать Панель управления; После этого Сеть и интернет; Далее Центр управления сетями и общим доступом, там нужно выбрать Изменение параметров адаптера; Нажмите левой кнопкой мыши дважды по значку Подключение по локальной сети; в выпадающем меню выберите пункт Состояние, кнопка Сведения; В открывшемся окне найдите строчку Физический адрес. Windows 8/8.1/10 Необходимо нажать на клавиатуре одновременно клавишу \"Windows\" и английскую клавишу \"X\"; В открывшемся списке выберите Панель управления; После этого Сеть и интернет; Далее Центр управления сетями и общим доступом, там нужно выбрать Изменение параметров адаптера; Нажмите левой кнопкой мыши дважды по значку Ethernet; В выпадающем меню выберите пункт Состояние, кнопка Сведения; В открывшемся окне найдите строчку Физический адрес. Mac OS X 10.5 и новее Необходимо перейти в Системные настройки; Далее Сеть, после этого нужно выбрать подключение Ethernet; Затем Дополнительно, дальше Ethernet; В поле Идентификатор Ethernet находится MAC-адрес.'\n ],\n [\n 'title' => 'Как можно сменить IP-адрес?',\n 'description' => 'Внешний IP-адрес можно сменить в личном кабинете в разделе «Интернет» → «Услуги».'\n ],\n [\n 'title' => 'Какие порты блокируются в сети SkyNet?',\n 'description' => 'В нашу сеть закрыт доступ из глобальной сети по следующим портам: 68 – порт DHCP; 135, 137, 138, 139 – порты NETBIOS; 445 – порт MICROSOFT-DS. Так же закрыт доступ из глобальной сети для порта 53 (UDP). Это означает, что из интернета нельзя сделать запрос к DNS-серверам пользователей нашей сети, зато сами пользователи по-прежнему могут отправлять такие запросы в интернет и получать ответ. Это обусловлено тем, что иногда пользователи некорректно настраивают свои домашние сервера и совершают неумышленные сетевые атаки на сторонние ресурсы, приводящие к отключению или перезагрузке сетевого оборудования. Если вы все-таки хотите настроить у себя дома полноценный DNS-сервер, рекомендуем ознакомиться с разделом «Хостинг DNS» в личном кабинете.'\n ],\n [\n 'general' => true,\n 'title' => 'Настройка роутера Dlink DIR-615S',\n 'description' => 'Подключение и обновление ПО роутера Кабель сети SkyNetTelecom соедините с портом INTERNET (WAN) на роутере; Стационарные компьютеры внутренней сети соедините с портами LAN на роутере. ВНИМАНИЕ! Категорически запрещается соединять кабель сети SkyNet с портами LAN. Настройка интернета и доступа к Wi-Fi После подключения роутера к компьютеру откройте браузер (Firefox, Google Chrome, Opera или Safari) и в адресной строке наберите: 192.168.0.1 Появится страница авторизации. Введите пароль «admin», который в дальнейшем будете использовать для настройки роутера, и нажмите «Save» После входа на главную страницу нажмите «Статус». В пункте «Сетевая статистика» найдите «WAN» и соответствующее значение «MAC». MAC-адрес необходим для регистрации роутера в сети SkyNetTelecom. Узнать о способах регистрации устройства можно здесь. Зайдите на вкладку «Сеть», выберите «WAN» Далее нажмите на имя соединения. Следуйте настройкам согласно рисунку и нажмите «Применить» В пункте «Wi-Fi» зайдите в основные настройки. Установите все как на представленном рисунке и нажмите «Применить». После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить». Далее выберите в разделе «Wi-Fi» пункт «Настройка безопасности». В пункте «Сетевая аутентификация» из выпадающего списка выберите «WPA-PSK/WPA2-PSK mixed». Введите пароль (не менее 8 символов) в пункте «Ключ шифрования PSK». Он в дальнейшем будет использоваться для ограничения доступа к Вашей беспроводной сети. Остальные настройки осуществите, как указано на рисунке. Нажмите «Применить». После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить» Настройка IPTV Зайдите в пункт «Начало», там выберите раздел «Мастер настройки IPTV» Выберите порт(ы), к которому будет подключена приставка, и нажмите «Сохранить» После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить» Зайдите в раздел «Дополнительно», выберите вкладку «Разное». Установите все как на представленном рисунке и нажмите «Применить». Если ваше устройство не поддерживает Multicast (SmartTV с OS TIZEN, мобильные устройства), необходимо включить сервер UDP-to-HTTP Proxy. На вкладке «Разное» должны быть следующие настройки После внесения изменений нажмите «Применить». Настройка удаленного доступа Зайдите в раздел «Дополнительно», выберите вкладку «Удаленный доступ к устройству». Нажмите кнопку «Добавить» В появившемся окне установите следующие настройки: После внесения изменений нажмите «Применить». Настроив функцию таким образом, мы можем гарантировать, что подключиться к роутеру для удаленной настройки сможет только сотрудник SkyNetTelecom.'\n ],\n [\n 'title' => 'Настройка роутера Zyxel',\n 'description' => 'Подключение и настройка · кабель сети SkyNet Telecom соедините с портом «ИНТЕРНЕТ» (WAN) на роутере; · стационарные компьютеры внутренней сети соедините с портами «ДОМАШНЯЯ СЕТЬ» (LAN) на роутере. ВНИМАНИЕ! Категорически запрещается соединять кабель сети SkyNet Telecom с портами LAN. После подключения роутера к компьютеру откройте браузер (Firefox, Google Chrome, Opera или Safari) и в адресной строке наберите: 192.168.1.1 Появится страница быстрой настройки, выберите «Веб-конфигуратор» В открывшимся окне найдите поле «MAC-адрес». Это значение необходимо для регистрации роутера в сети SkyNet Telecom. Узнать о способах регистрации устройства можно здесь. Зайдите на вкладку «Интернет» Затем на вкладке «Подключения» зайдите в «Broadbandconnection» Убедитесь, что все настройки соответствуют указанным на картинке. После внесения изменений, нажмите «Применить» Настройка Wi-Fi Зайдите на вкладку «Сеть Wi-Fi» Во вкладке «Точка доступа» установите следующие настройки и нажмите «Применить» НастройкаIPTV Для работы IPTV по кабелю и по Wi-Fi необходимы следующие настройки: Зайдите на вкладку «Домашняя сеть» На вкладке «IGMP Proxy» должны быть следующие настройки После внесения изменений нажмите «Применить» Если ваше устройство не поддерживаетMulticast (SmartTVс OS TIZEN, мобильные устройства), необходимо включить сервер UDP-to-HTTP Proxy. На вкладке «Серверudpxy» должны быть следующие настройки После внесения изменений нажмите «Применить». Обновление и установка компонентов Некоторых компонентов может не хватать для работы, а некоторые компоненты не нужны, поэтому их можно удалить. Для этого зайдите на вкладку «Система» На вкладке «Обновление» нажмите кнопку«Показать компоненты» оставьте галочки только на следующих и нажмите «Обновить». · ПлатформаNDMS; · IPv6 · UDP-HTTPпрокси(udpxy) · Модуль управления маршрутизатором через облачную службу · ИнтерфейсWi-Fi; · СлужбаIGMP/PPPoEproxy; · СерверDHCP; · СлужбаUPnP; · БиблиотекаSSL. Некоторые компоненты могут отсутствовать на разных моделях роутеров. Настройка удаленного доступа Зайдите на вкладку «Безопасность» на вкладке «Межсетевой экран» нажмите кнопку «Добавить правило» в появившемся окне установите следующие настройки: Нажмите «Сохранить» Настроив функцию таким образом, мы можем гарантировать, что подключиться к роутеру для удаленной настройки сможет только сотрудник SkyNetTelecom.'\n ],\n [\n 'title' => 'Настройка роутера TP-Link',\n 'description' => 'Подключение роутера Настройка роутера предоставлена с целью облегчения подключения нескольких компьютеров к локальной и интернет-сети в пределах квартиры. кабель сети SkyNet Telecom соедините с портомWAN (выделен другим цветом) на роутере; стационарные компьютеры иприставки IPTV внутренней сети соедините с портами LAN на роутере. ВНИМАНИЕ! Категорически запрещается соединять кабель сети SkyNet Telecom с портами LAN. Настройка интернета и доступа к Wi-Fi После подключения роутера к компьютеру откройте браузер (Firefox, Google Chrome, Opera или Safari), в адресной строке наберите: 192.168.0.1 Появится страница авторизации. Введите «admin»в два поля и нажмите «Вход». Зайдите на вкладку «Состояние». В разделе «WAN» найдите поле«MAC-адрес». Это значение необходимо для регистрации роутера в сети SkyNet Telecom. Узнать о способах регистрации устройства можно здесь. Зайдите на вкладку «Сеть». В разделе «WAN» в поле «Тип WAN соединения» выберите из списка «ДинамическийIP-адрес». Если изменения внесены, нажмите кнопку «Сохранить». Если потребуется, перезагрузите роутер. Зайдите на вкладку «Беспроводной режим». В разделе «Настройки беспроводного режима» установите настройки,аналогичные представленным на рисунке. После внесения изменения, нажмите кнопку «Сохранить». Если потребуется, перезагрузите роутер. В разделе «Защита беспроводного режима» выберите шифрование данных «WPA-Personal/WPA2-Personal (Рекомендуется)».В поле «Версия» из выпадающего списка выберите «WPA2-Personal» и в поле «Шифрование»из выпадающего списка выберите «AES» В поле «Пароль PSK» введите ключ защиты.Он в дальнейшем будет использоваться как пароль для ограничения доступа к Вашей беспроводной сети. По окончании настроек нажмите на кнопку «Сохранить», чтобы применить внесенные изменения. Если потребуется,перезагрузите роутер. Настройка IPTV Зайдите на вкладку «Сеть», в раздел «IPTV». В поле «Режим» из выпадающего списка выберите «Мост». В поле «Порт для IPTV» выберите тот порт(ы), к которому будет подключена IPTV приставка.'\n ],\n [\n 'title' => 'Настройка роутера Asus',\n 'description' => 'Подключение роутера кабель сети SkyNet Telecom соедините с портом INTERNET (выделен отдельным цветом) на роутере; стационарные компьютеры внутренней сети соедините с портами LAN на роутере. ВНИМАНИЕ! Категорически запрещается соединять кабель сети SkyNet Telecom с портами LAN. Настройка интернета После подключения роутера к компьютеру откройте браузер (Firefox, Google Chrome, Opera или Safari) и в адресной строке наберите: 192.168.1.1 Появится страница авторизации. Введите «admin» в два поля и нажмите «Вход». Зайдите в меню «Интернет» во вкладку «Подключение» Убедитесь, что все настройки соответствуют указанным на картинке. После внесения изменений, нажмите «Применить». При желании Вы можете использовать функцию клонирования MAC-адреса, если до этого Ваш компьютер был подключен к нашей сети напрямую. Это избавит Вас от необходимости звонить в службу поддержки при подключении интернет-кабеля к роутеру. Либо вы можете внести MAC-адрес нового устройства в личном кабинете в разделе интернет –услуги – сменить мак адрес. Настройка Wi-Fi Зайдите в меню «Беспроводная сеть» Введите желаемое название беспроводной сети в поле «SSID». Далее установите режим защиты как показано на картинке, придумайте ключ сети и запишите его в поле «Предварительный ключWPA». Нажмите кнопку «Применить» Настройка IPTV Для работы IPTV по кабелю и по Wi-Fi необходимы следующие настройки: Зайдите в разделе «Локальная сеть» на вкладку «IPTV» За трансляцию IPTV отвечает функция «Включить многоадресную маршрутизацию (IGMP Proxy)» и «Включить IGMP Snooping». Установите параметры в соответствии с изображением. Примечание: на некоторых младших моделях роутеров может отсутствовать параметр «Включить IGMP Snooping». В этом случае достаточно установки только первого параметра.'\n ],\n [\n 'title' => 'Настройка роутера D-Link',\n 'description' => 'Подключение и обновление ПО роутера кабель сети SkyNet Telecom соедините с портом INTERNET (WAN) на роутере; стационарные компьютеры внутренней сети соедините с портами LAN на роутере. ВНИМАНИЕ! Категорически запрещается соединять кабель сети SkyNet с портами LAN. Настройка интернета и доступа к Wi-Fi После подключения роутера к компьютеру откройте браузер (Firefox, Google Chrome, Opera или Safari) и в адресной строке наберите: 192.168.0.1 Появится страница авторизации. Введите пароль «admin», который в дальнейшем будете использовать для настройки роутера,и нажмите «Save» После входа на главную страницу нажмите «Расширенные настройки». В пункте «Сеть» найдите и выберите «WAN». Нажмите на предложенное подключении WAN для его редактирования. Следуйте настройкам согласно рисунку. При желании Вы можете использовать функцию клонирования MAC-адреса, если до этого Ваш компьютер был подключен к нашей сети напрямую. Это избавит Вас от необходимости звонить в службу поддержки при подключении интернет-кабеля к роутеру. Либо вы можете внести MAC-адрес нового устройства в личном кабинете в разделе интернет –услуги – сменить мак адрес. После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить». В пункте «Wi-Fi» зайдите в основные настройки. Установите все как на представленном рисунке и нажмите «Изменить». После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить». Далее выберите в разделе «Wi-Fi» пункт«Настройка безопасности». В пункте «Сетевая аутентификация» из выпадающего списка выберите «WPA-PSK/WPA2-PSK mixed». Введите пароль в пункте «Ключ шифрования PSK». Он в дальнейшем будет использоваться для ограничения доступа к Вашей беспроводной сети. Остальные настройки осуществите, как указано на рисунке.Нажмите «Изменить». После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить» Настройка IPTV Зайдите в пункт «Мастер настройкиIPTV» Выберите порт(ы), к которому будет подключена приставка, и нажмите «Изменить» После возврата в главное меню в окне предупреждения нажмите кнопку «Сохранить»'\n ],\n [\n 'general' => true,\n 'title' => 'Я замеряю скорость по кабелю, и она ниже тарифной, почему так?',\n 'description' => 'Выделим три момента: Удалённость ресурса от Вас Когда сайт за пределами нашей сети, на пример, в Лондоне, то скорость будет изменяться в зависимости от пройденного сигналом расстояния и количества различных узлов связи до ресурса. Не все сегменты этого пути принадлежат провайдеру, а в таком случае гарантировать скорость мы сможем в пределах нашей сети. Сайты для измерения скорости Любой сайт измерения скорости – это чьё-то оборудование с ограниченной полосой пропускания. В тот момент, когда возникает нагрузка от большого количества пользователей, сайт делит свои ресурсы между всеми. Можно измерить скорость трижды подряд и получить совершенно разные результаты. И браузер, и загружаемый для замера скорости файл используют ресурсы вашего устройства: процессор, память, жёсткий диск и браузер. Точность результатов измерения может зависеть от этих характеристик. Так же обратите внимание на местоположение сервера, ведь чтобы получить более реальные показатели, он должен находиться в Санкт-Петербурге. Технические особенности При передаче данных в сети, определённая их часть всегда тратится на технические нужды, такие, как адрес отправителя и получателя, размер пакета, флаги, время жизни пакета и т.д. Это не зависит от провайдера. Это свойство работы Операционной Системы (компьютера,планшета, роутера) с различными сетевыми протоколами. Все эти технические данные всегда добавляются к скачиваемой вами информации, из-за чего отображаемый показатель скорости может быть до 6% ниже заявленной. Если вы видите значительную разницу между тарифной и фактической скоростями, пожалуйста, обратитесь в нашу службу поддержки для диагностики. Мы поможем!'\n ],\n ]\n ],\n [\n 'title' => 'Техническая поддержка: Цифровое ТВ',\n 'questions' => [\n [\n 'general' => true,\n 'title' => 'Я хочу подключить Цифровое ТВ.',\n 'description' => 'Цифровое ТВ доступно на тарифах: Вода, Вода HD, Огонь и Огонь HD. Просматривать Цифровое телевидение можно несколькими способами: На мониторе компьютера: загрузите и установите VLC-плеер, затем загрузите и запустите плейлист со списком каналов. Для просмотра на телевизоре SAMSUNG с функцией SMART TV: загрузите и установите приложение SkyNet.TV в магазине приложений SAMSUNG APPS. Данное приложение совместимо только с телевизорами выпуска 2013 – 2015 годов. Узнать какого года выпуска ваш телевизор можно здесь. Для просмотра на экране любого другого телевизора необходима IPTV-приставка.'\n ],\n [\n 'general' => true,\n 'title' => 'Как настроить роутер для просмотра Цифрового телевидения?',\n 'description' => 'Прежде всего роутер должен поддерживать функцию – Multicast (IGMP). Если Вы используете нашу IPTV приставку при подключении Интернета через роутер, рекомендуем на последнем настроить выделение порта под ТВ. TP-link: В адресной строке браузера необходимо ввести 192.168.0.1 (192.168.1.1); В поле Имя пользователя нужно ввести admin, в поле пароль admin; Заходим в раздел \"Сеть\"; Выбираем подпункт \"Мост\" или \"IPTV\"; В строке - \"Порт LAN, соединенный в режиме \"Мост\" с WAN\" выбираем нужный нам порт под IPTV приставку. D-link: В адресной строке браузера необходимо ввести 192.168.0.1 (192.168.1.1); В поле Имя пользователя нужно ввести admin, в поле пароль admin (либо оставить пустым); На главной странице веб-интерфейса выбираем раздел \"IP Телевидение\" и подраздел \"Мастер настройки IPTV\" или “IPTV”; Далее щелкаем по нужному порту для IPTV. ZyXEL: микропрограмма NDMS V1 В адресной строке браузера необходимо ввести 192.168.1.1; В поле Имя пользователя нужно ввести admin, в поле пароль - 1234; Слева в категориях выбираем \"Домашняя сеть\", далее подгруппа \"IP-телевидение; Выбираем \"Назначить разъем LAN\" в строке \"Режим TVport\"; Ниже в \"Разъем для ресивера IPTV\" выбираем нужным нам LAN порт. микропрограмма NDMS V2 В адресной строке браузера необходимо ввести 192.168.1.1; В поле Имя пользователя нужно ввести admin, в поле пароль - 1234; В панели значков выбираем значок глобуса \"Интернет\"; Далее выбираем активное подключение в списке \"Подключения к интернету и другим сетям\"; В новом окне ставим галочку в строке \"Использовать разъем\" под нужным LAN портом. Upvel: В адресной строке браузера необходимо ввести 192.168.10.1; В поле Имя пользователя нужно ввести admin, в поле пароль - admin; На главной странице веб-интерфейса нажимаем на \"Настройки\"; Далее настройки VLAN; Ставим галочку напротив \"Включить VLAN\"; Напротив нужного для нас LAN порта - \"Ethernet Port #\" ставим галочку и выбираем под; категорией \"Forwarding Rule\" выбираем из списка тип \"Bridge\", под категорией \"Priority\" в случае лагов, можно поднимать приоритет до значения \"7\", NetGear: В адресной строке браузера необходимо ввести 192.168.1.1; В поле Имя пользователя нужно ввести admin, в поле пароль - password; В левой части главной страницы, есть \"Меню быстрого перехода\", там выбираем \"Настройки\", далее пункт \"Параметры интернет-порта\"; В строке \"Перенаправить IPTV-поток для приставки на\" выбираем нужным нам LAN порт. ASUS: В адресной строке браузера необходимо ввести 192.168.1.1; В поле Имя пользователя нужно ввести admin, в поле пароль - admin; На главной странице веб-интерфейса, в левой части в списке выбирайте \"Локальная сеть\"; Сверху в открывшемся окне выбираем категорию \"IPTV\". В строке \"Выбор порта IPTV STB\"; выбираем нужный нам LAN порт из предложенного списка.'\n ],\n [\n 'general' => true,\n 'title' => 'Как настроить IPTV на телевизорах Samsung (Tizen)',\n 'description' => 'Один из способов просмотра IPTV — приложение SkyNet.TV на Samsung Smart TV для моделей, выпущенных после 2013 года. Установить приложение можно следующим образом: На телевизоре SAMSUNG SMART TV нажимаем на кнопку SMART HUB; Переходим в раздел ПРИЛОЖЕНИЯ и выбираем иконку SAMSUNG APPS; В поиске набираем латиницей «SkyNet»; Нажимаем «УСТАНОВИТЬ» бесплатное приложение «SkyNet»; Запускаем его; Наслаждаемся множеством каналов и отличной картинкой. С 2015 года компания Samsung выпускает телевизоры с операционной системой Tizen, которая не поддерживает функцию multicast. Для воспроизведения требуется дополнительное оборудование – роутер с поддержкой функции udpxy. В качестве такого устройства можно выбрать ZyXEL Keenetic Lite III. Настроить его можно следующим образом: В адресную строку браузера необходимо ввести адрес роутера: 192.168.1.1. Для входа в настройки потребуется авторизация (по умолчанию имя пользователя «admin», пароль такой же). В веб-интерфейсе необходимо открыть пункт Домашняя сеть. Выбрать вкладку Сервер udpxy Если при этом на роутере включен multicast (IGMP proxy), появится предупреждение, что одновременно использовать функции невозможно. В этом же окне есть кнопка для отключения IGMP Proxy. Нажав ее, можно будет продолжить настройку. При включении функции udpxy роутер автоматически предложит номер TCP-порта (по умолчанию – 4022), этот номер необходимо запомнить - он потребуется для дальнейшей настройки приложения на телевизоре. Нажимаем кнопку Применить и перезагружаем роутер. Далее потребуется настройка приложения. Выбираем пункт Меню, далее Настройки → Видео и аудио → Udp прокси → Включить. В появившемся окне нужно ввести адрес роутера и номер выбранного порта (192 - 168 - 1 - 1 - 4022)'\n ],\n ]\n ]\n ];\n\n foreach ($data as $key => $value) {\n $type = factory(QuestionType::class)->create([\n 'published' => true,\n 'title' => $value['title'],\n ]);\n foreach ($value['questions'] as $question) {\n factory(Question::class)->create(array_merge($question, [\n 'published' => true,\n 'question_type_id' => $type->id,\n ]));\n }\n }\n }", "function guifi_radio_add_link2ap_submit(&$form,&$form_state) {\n $radio_id =$form_state['clicked_button']['#parents'][1];\n $interface_id=$form_state['clicked_button']['#parents'][2];\n guifi_log(GUIFILOG_TRACE,\n sprintf(\"function guifi_radio_add_link2ap_submit(Radio: %d, Interface: %d)\",\n $radio_id, $interface_id),\n $form_state['clicked_button']['#parents']);\n\n $form_state['rebuild'] = TRUE;\n $form_state['action'] = 'guifi_radio_add_link2ap_form';\n\n // initialize the filters\n $form_state['filters'] = array(\n 'dmin' => 0,\n 'dmax' => 10,\n 'search' => NULL,\n 'type' => 'ap/client',\n 'mode' => $form_state['values']['radios'][$radio_id]['mode'],\n 'from_node' => $form_state['values']['nid'],\n 'from_device' => $form_state['values']['id'],\n 'from_radio' => $radio_id,\n 'azimuth' => \"0,360\",\n );\n\n $form_state['link2apInterface'] =\n &$form_state['values']['radios'][$radio_id]['interfaces'][$interface_id];\n\n return;\n}" ]
[ "0.5851053", "0.55911535", "0.5372921", "0.5343518", "0.5342001", "0.53135383", "0.5303237", "0.5252377", "0.5118637", "0.5106243", "0.5092101", "0.5055059", "0.5021198", "0.5008819", "0.49969587", "0.49287325", "0.49158427", "0.4912691", "0.4900946", "0.48587927", "0.4856847", "0.48421472", "0.48239562", "0.48222768", "0.4813508", "0.48067412", "0.47975975", "0.47958273", "0.47798997", "0.47796124", "0.4766512", "0.47432205", "0.47319105", "0.4711188", "0.47102958", "0.47068322", "0.47060537", "0.46911857", "0.46847892", "0.46765625", "0.4669285", "0.46669215", "0.46562332", "0.4654035", "0.46483618", "0.46483403", "0.46470532", "0.46450227", "0.46437111", "0.46384144", "0.46299973", "0.4629914", "0.462823", "0.46253118", "0.4622993", "0.46216527", "0.46162343", "0.46151736", "0.4612979", "0.4605235", "0.46027917", "0.46011493", "0.45951188", "0.45894074", "0.45879343", "0.45848486", "0.458465", "0.45799136", "0.4577065", "0.4570759", "0.45700458", "0.45687464", "0.456873", "0.45620716", "0.45500866", "0.453641", "0.4531706", "0.45287704", "0.45178574", "0.4512111", "0.4510875", "0.45063886", "0.4497621", "0.44841528", "0.4480395", "0.44720808", "0.44714463", "0.44695637", "0.4447326", "0.44455135", "0.4442955", "0.4433087", "0.44327685", "0.4430775", "0.44155976", "0.44133908", "0.44047648", "0.4403539", "0.44002813", "0.43985906" ]
0.73485553
0
/\ Remove jQuery // jQuery UI \
// Удалить jQuery // jQuery UI \
function remove__jquery(&$scripts) { if ( !is_admin() ) { $scripts->remove( 'jquery' ); $scripts->remove( 'jquery-ui-core' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function faster_jquery_remove() {\n\n\twp_deregister_script( 'jquery' );\n\n}", "function remove_jquery_wordpress( $scripts ) {\n if ( !is_admin() ) {\n $script = $scripts->registered['jquery'];\n \n if ( $script->deps ) { \n $script->deps = array_diff( $script->deps, array( 'jquery-core', 'jquery-migrate' ) );\n \n }\n }\n }", "function isa_remove_jquery_migrate( &$scripts) {\n if(!is_admin()) {\n $scripts->remove( 'jquery');\n $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.4.11' );\n }\n}", "function remove_wp_embed_and_jquery() {\n\tif (!is_admin()) {\n\t\twp_deregister_script('wp-embed');\t\t\n\t}\n}", "function bethel_move_jquery() {\n global $wp_scripts;\n foreach ($wp_scripts->registered as $k => $v) {\n if (substr($k, 0, 6) == 'jquery') {\n if (isset($wp_scripts->registered[$k]->ver) && isset($wp_scripts->registered[$k]->src) && $wp_scripts->registered[$k]->deps) {\n $ver = $wp_scripts->registered[$k]->ver;\n $src = $wp_scripts->registered[$k]->src;\n $deps = $wp_scripts->registered[$k]->deps;\n wp_deregister_script ($k);\n wp_register_script($k, $src, $deps, $ver, true);\n }\n }\n }\n}", "function wp_deregister_script($handle)\n {\n }", "function cm_replace_jquery() {\n\tif (!is_admin()) {\n\t\t// comment out the next two lines to load the local copy of jQuery\n\t\twp_deregister_script('jquery');\n\t\twp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3');\n\t\twp_enqueue_script('jquery');\n\t}\n}", "function replace_jquery() {\r\n\tif (!is_admin()) {\r\n\t\t// comment out the next two lines to load the local copy of jQuery\r\n\t\twp_deregister_script('jquery');\r\n\t\twp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3');\r\n\t\twp_enqueue_script('jquery');\r\n\t}\r\n}", "function add_qoorate_scripts(){\n\t\t// MAYBE TODO: cacheing ... place in DB options?\t\t\n\t\t// unregister our really old jquery bundled with WP\n\t\t// Maybe we can keep it? should it be an option?\n\t\twp_deregister_script( 'jquery' );\n\t\twp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' );\n\t\twp_enqueue_script( 'jquery' );\n\t}", "function replace_jquery() {\n if (!is_admin()) {\n // comment out the next two lines to load the local copy of jQuery\n wp_deregister_script('jquery');\n wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, '1.12.4');\n wp_enqueue_script('jquery');\n }\n}", "function wp_deregister_script( $handle ) {\n\t_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );\n\n\t/**\n\t * Do not allow accidental or negligent de-registering of critical scripts in the admin.\n\t * Show minimal remorse if the correct hook is used.\n\t */\n\t$current_filter = current_filter();\n\tif ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) ||\n\t\t( 'wp-login.php' === $GLOBALS['pagenow'] && 'login_enqueue_scripts' !== $current_filter )\n\t) {\n\t\t$no = array(\n\t\t\t'jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core', 'jquery-ui-accordion',\n\t\t\t'jquery-ui-autocomplete', 'jquery-ui-button', 'jquery-ui-datepicker', 'jquery-ui-dialog',\n\t\t\t'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-menu', 'jquery-ui-mouse',\n\t\t\t'jquery-ui-position', 'jquery-ui-progressbar', 'jquery-ui-resizable', 'jquery-ui-selectable',\n\t\t\t'jquery-ui-slider', 'jquery-ui-sortable', 'jquery-ui-spinner', 'jquery-ui-tabs',\n\t\t\t'jquery-ui-tooltip', 'jquery-ui-widget', 'underscore', 'backbone',\n\t\t);\n\n\t\tif ( in_array( $handle, $no ) ) {\n\t\t\t$message = sprintf(\n\t\t\t\t/* translators: 1: script name, 2: wp_enqueue_scripts */\n\t\t\t\t__( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),\n\t\t\t\t\"<code>$handle</code>\",\n\t\t\t\t'<code>wp_enqueue_scripts</code>'\n\t\t\t);\n\t\t\t_doing_it_wrong( __FUNCTION__, $message, '3.6.0' );\n\t\t\treturn;\n\t\t}\n\t}\n\n\twp_scripts()->remove( $handle );\n}", "function wp_deregister_script( $handle ) {\r\n\tglobal $wp_scripts;\r\n\tif ( !is_a($wp_scripts, 'WP_Scripts') )\r\n\t\t$wp_scripts = new WP_Scripts();\r\n\r\n\t$wp_scripts->remove( $handle );\r\n}", "function dequeue_jquery_migrate( &$scripts){\n\tif(!is_admin()){\n\t\t$scripts->remove( 'jquery');\n\t\t$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' );\n\t}\n}", "function replace_default_jquery() {\n\tif (!is_admin()) {\n\t\t// comment out the next two lines to load the local copy of jQuery\n\t\twp_deregister_script('jquery');\n\t\t// wp_register_script('jquery', '//cdn.jsdelivr.net/jquery/2.1.4/jquery.min.js', false, null);\n\t\twp_register_script('jquery', get_template_directory_uri() . '/js/jquery-2.1.4.min.js', false, null);\n\t\t// wp_enqueue_script('jquery');\n\t}\n}", "function upgrade_jquery() {\n\tif ( ! is_admin() ) {\n\t\twp_deregister_script( 'jquery' );\n\t\twp_enqueue_script( 'jquery-updated', 'https://code.jquery.com/jquery-3.5.1.slim.min.js' );\n\t\twp_enqueue_script( 'jquery-migrate', 'https://code.jquery.com/jquery-migrate-3.3.1.min.js' );\n\t}\n}", "function deenqueue_parent_scripts_styles() {\n wp_dequeue_script( 'one-page-slitslider' );\n wp_deregister_script( 'one-page-slitslider' );\n wp_dequeue_script( 'one-page-custom' );\n wp_deregister_script( 'one-page-custom' );\n}", "function registerJqueryFromCdn() {\n\t// Use jquery and jquery core from the google cdn instead of wordpress included\n\twp_deregister_script( 'jquery-ui-core' );\n\twp_deregister_script( 'jquery-ui-tab' );\n\twp_deregister_script( 'jquery-ui-autocomplete' );\n\twp_deregister_script( 'jquery-ui-accordion' );\n\twp_deregister_script( 'jquery-ui-autocomplete' );\n\twp_deregister_script( 'jquery-ui-button' );\n\twp_deregister_script( 'jquery-ui-datepicker');\n\twp_deregister_script( 'jquery-ui-dialog' );\n\twp_deregister_script( 'jquery-ui-draggable' );\n\twp_deregister_script( 'jquery-ui-droppable' );\n\twp_deregister_script( 'jquery-ui-mouse' );\n\twp_deregister_script( 'jquery-ui-position' );\n\twp_deregister_script( 'jquery-ui-progressbar');\n\twp_deregister_script( 'jquery-ui-resizable' );\n\twp_deregister_script( 'jquery-ui-selectable');\n\twp_deregister_script( 'jquery-ui-slider' );\n\twp_deregister_script( 'jquery-ui-sortable' );\n\twp_deregister_script( 'jquery-ui-tabs' );\n\twp_deregister_script( 'jquery-ui-widget' );\n\twp_deregister_script( 'jquery' );\n\n\twp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', array(), '1.11.3' );\n\twp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', array( 'jquery' ), '', true);\n}", "function _h_remove_jetpack_footer_assets() {\n wp_deregister_script('sharing-js');\n\n // disable spinner when infinite loading is enabled\n wp_deregister_script('jquery.spin');\n wp_deregister_script('spin');\n}", "function my_admin_scripts() {\n\t\t\t wp_deregister_script('jquery');\n\t\t\t wp_register_script('jquery', (\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"), false, null);\n\t\t\t wp_enqueue_script('jquery');\n\t\t\t wp_enqueue_script( 'jquery-migrate', 'https://code.jquery.com/jquery-migrate-3.0.1.min.js', array('jquery'), '3.0.1', false );\n\t\t}", "function modify_jquery_version() {\n if (!is_admin()) {\n wp_deregister_script('jquery');\n wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js', false, '2.0.s');\n wp_enqueue_script('jquery');\n }\n}", "function theme_remove_admin_bar() {\r\n\treturn false;\r\n}", "function set_jquery_cdn() {\n\t\tif (is_admin()) return;\n\t\twp_deregister_script('jquery');\n\t\twp_register_script('jquery',\n\t\t\t'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');\n\t}", "function google_hosted_jquery() {\n\tif (!is_admin()) {\n\t\twp_deregister_script('jquery');\n\n\t\tswitch ( SeekConfig::JQUERY_VERSION ) {\n\t\t\tcase 1:\n\t\t\t\twp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, null);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\twp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js', false, null);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\twp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', false, null);\n\t\t\t\tbreak;\n\t\t}\n\n\t\twp_enqueue_script('jquery');\n\t}\n}", "function admin_dequeue_scripts() {\r\n\twp_dequeue_script('jquery-qtip');\r\n}", "function reassign_jQuery() {\n wp_deregister_script( 'jquery' );\n wp_deregister_script( 'jquery-core' );\n wp_deregister_script( 'jquery-migrate' );\n\n wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js', array(), '3.4.1', true);\n wp_add_inline_script( 'jquery', \"window.jQuery || document.write('<script src=\\\"\".get_template_directory_uri() .\"/assets/jquery-3.4.1.min.js\\\">\\\\x3C/script>')\");\n \n wp_enqueue_script('jquery');\n\n}", "function asc_deregister_script( $handle ) {\n\tglobal $asc_scripts;\n\tif ( ! is_a( $asc_scripts, 'ASC_Scripts' ) ) {\n\t\tif ( ! did_action( 'init' ) )\n\t\t\t_doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),\n\t\t\t\t'<code>asc_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' );\n\t\t$asc_scripts = new ASC_Scripts();\n\t}\n\n\t/**\n\t * Do not allow accidental or negligent de-registering of critical scripts in the admin.\n\t * Show minimal remorse if the correct hook is used.\n\t */\n\t$current_filter = current_filter();\n\tif ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) ||\n\t\t( 'wp-login.php' === $GLOBALS['pagenow'] && 'login_enqueue_scripts' !== $current_filter )\n\t) {\n\t\t$no = array(\n\t\t\t'jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core', 'jquery-ui-accordion',\n\t\t\t'jquery-ui-autocomplete', 'jquery-ui-button', 'jquery-ui-datepicker', 'jquery-ui-dialog',\n\t\t\t'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-menu', 'jquery-ui-mouse',\n\t\t\t'jquery-ui-position', 'jquery-ui-progressbar', 'jquery-ui-resizable', 'jquery-ui-selectable',\n\t\t\t'jquery-ui-slider', 'jquery-ui-sortable', 'jquery-ui-spinner', 'jquery-ui-tabs',\n\t\t\t'jquery-ui-tooltip', 'jquery-ui-widget', 'underscore', 'backbone',\n\t\t);\n\n\t\tif ( in_array( $handle, $no ) ) {\n\t\t\t$message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),\n\t\t\t\t\"<code>$handle</code>\", '<code>asc_enqueue_scripts</code>' );\n\t\t\t_doing_it_wrong( __FUNCTION__, $message, '3.6' );\n\t\t\treturn;\n\t\t}\n\t}\n\n\t$asc_scripts->remove( $handle );\n}", "public function removable()\n {\n $this->rightTools()->append(\n '<a data-toggle=\"remove\"><i class=\"zmdi zmdi-close\"></i></a>'\n );\n\n static::$scripts[0] = <<<EOF\n $('.portlet [data-toggle=\"remove\"]').click(function (e) {\n $(this).parent().parent().parent().parent().parent().toggle(100)\n })\nEOF;\n return $this;\n }", "public static function move_jquery_to_footer() {\n\t\tadd_action('wp_enqueue_scripts', function() {\n\t\t\tif (is_admin()) {\n\t\t return;\n\t\t }\n\n\t\t $wp_scripts = wp_scripts();\n\n\t\t $wp_scripts->add_data('jquery', 'group', 1);\n\t\t $wp_scripts->add_data('jquery-core', 'group', 1);\n\t\t $wp_scripts->add_data('jquery-migrate', 'group', 1);\n\t\t}, 0);\n\t}", "function wp_deregister_style($handle)\n {\n }", "function ui_resizable_destroy($selector){\n return add_method_support('resizable',$selector, 'destroy');\n}", "public function enqueue_jQuery_ui() {\n $this->enqueue_script( 'sumo-pp-jquery-ui' , $this->get_asset_url( 'js/jquery-ui/jquery-ui.js' ) ) ;\n $this->enqueue_style( 'sumo-pp-jquery-ui' , $this->get_asset_url( 'css/jquery-ui.css' ) ) ;\n }", "function rad_remove_dash_widgets(){\n\tremove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n}", "function remove_plugin_assets() {\n wp_dequeue_style('roots-share-buttons'); // roots-share-buttons/assets/styles/share-buttons.css\n wp_dequeue_script('roots-share-buttons'); //roots-share-buttons/assets/scripts/share-buttons.js\n wp_dequeue_style('wp-biographia-bio'); //wp-biographia/css/wp-biographia-min.css\n}", "function wpfme_jquery_enqueue() {\n wp_deregister_script('jquery');\n wp_register_script('jquery', \"http\" . ($_SERVER['SERVER_PORT'] == 443 ? \"s\" : \"\") . \"://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\", false, null);\n wp_enqueue_script('jquery');\n}", "public function setJquery($preventJQuery);", "function uninstall(){}", "function bfa_remove_featured_gallery_scripts() {\r\n remove_action('wp_head', 'gallery_styles');\r\n}", "function mro_deregister_scripts() {\n\n //Deregister styles\n\n\t// Bootstrap\n\twp_dequeue_style( 'tt-bootstrap.css' );\n\twp_deregister_style( 'tt-bootstrap.css' );\n\n\t// icomoon\n\twp_dequeue_style( 'tt-icomoon.css' );\n\twp_deregister_style( 'tt-icomoon.css' );\n\n\t// tt-main-style\n\twp_dequeue_style( 'tt-main-style' );\n\twp_deregister_style( 'tt-main-style' );\n\n\t// tt-theme-style\n\twp_dequeue_style( 'tt-theme-style' );\n\twp_deregister_style( 'tt-theme-style' );\n\n}", "function uninstall() {\n\t}", "function noc_deregister_scripts() {\n\n //Deregister styles\n\n\t// Parent\n\twp_dequeue_style( 'theme-style-child' );\n\twp_deregister_style( 'theme-style-child' );\n\n\t// Theme child from parent\n\twp_dequeue_style( 'theme-style' );\n\twp_deregister_style( 'theme-style' );\n\n\t// // tt-main-style\n\t// wp_dequeue_style( 'tt-main-style' );\n\t// wp_deregister_style( 'tt-main-style' );\n\n\t// // tt-theme-style\n\t// wp_dequeue_style( 'tt-theme-style' );\n\t// wp_deregister_style( 'tt-theme-style' );\n\n}", "function childtheme_remove_scripts(){\n remove_action('wp_enqueue_scripts','thematic_head_scripts');\n}", "function top10_remove() {\r\n//delete_option('omekafeedpull_omekaroot');\r\n}", "function remove_admin_bar() {\n\tshow_admin_bar(false);\n}", "function deregister_scripts_oembed_footer(){\n\twp_deregister_script( 'wp-embed' );\n}", "function deregister_scripts_oembed_footer(){\n\twp_deregister_script( 'wp-embed' );\n}", "function fyxt_custom_scripts() {\n\twp_enqueue_style( 'jquery-custom', get_stylesheet_directory_uri() . '/css/fyxt-theme-2/jquery-ui-1.10.4.custom.css' );\n\twp_enqueue_style( 'jquery-custom', get_stylesheet_directory_uri() . '/css/fyxt-theme-2/jquery-ui-1.10.4.custom.min.css' );\t\n\twp_enqueue_script( 'jquery' );\n\twp_enqueue_script( 'jquery-ui-core' );\n\twp_enqueue_script( 'jquery-ui-tabs' );\n\twp_enqueue_script( 'jquery-ui-button' );\n\twp_enqueue_script( 'jquery-ui-accordion' );\n\twp_enqueue_script( 'jquery-ui-slider' );\n\twp_enqueue_script( 'tabs-script', get_stylesheet_directory_uri() . '/js/tabs.js', array( 'jquery-ui-core', 'jquery-ui-accordion', 'jquery-ui-tabs' ) );\n}", "public function update_jquery_source() {\n\t\t$jquery_url = $this->get_jquery_url();\n\t\tif ( ! empty( $jquery_url ) ) {\n\t\t\twp_deregister_script( 'jquery' );\n\t\t\twp_register_script( 'jquery', $jquery_url, [], null, true );\n\t\t\t$this->add_filter( 'script_loader_src', 'jquery_local_fallback', 10, 2 );\n\t\t}\n\t}", "public function uninstallPlugin()\n {\n }", "function uninstall(){\n\n }", "static public function deregister_scripts() {\n wp_dequeue_script( 'filterable-portfolio' );\n wp_deregister_script( 'filterable-portfolio' );\n }", "function wp_ajax_delete_plugin()\n {\n }", "function wp_unregister_widget_control($id)\n {\n }", "function wpdocs_dequeue_dashicon() {\n\tif ( current_user_can( 'update_core' ) ) {\n\t\treturn;\n\t}\n\twp_deregister_style( 'dashicons' );\n}", "public function ajax_header_remove()\n {\n }", "function remove_recent_comments_style() {\n global $wp_widget_factory;\n remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));\n}", "function ui_sortable_destroy($selector){\n return add_method_support('sortable',$selector, 'destroy');\n}", "function remove_recent_comments_style() {\n\tglobal $wp_widget_factory;\n\tremove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );\n}", "function wpdocs_dequeue_dashicon() {\n\tif (current_user_can( 'update_core' )) {\n\t\treturn;\n\t}\n\twp_deregister_style('dashicons');\n}", "function startertheme_remove_version() {\nreturn '';\n}", "private static function removeConflictingScripts()\n {\n remove_action('admin_enqueue_scripts', 'kadence_admin_scripts');\n\n // Compatibility with Woocommerce Product Tab Pro 1.8.0 (http://codecanyon.net/item/woocommerce-tabs-pro-extra-tabs-for-product-page/8218941)\n remove_action('admin_print_footer_scripts', '_hc_tinymce_footer_scripts');\n }", "function carousel_remove_junk_action_javascript() { \n ?>\n <script type=\"text/javascript\" >\n \"use strict\";\n jQuery(document).ready(function($) {\n setTimeout(function(){\n $('.wpbooklist_carousel_inner_main_display_div a').each(function(){\n $(this).removeClass('wpbooklist-show-book-colorbox');\n $(this).find('span').remove();\n })\n },2000)\n });\n </script>\n <?php\n}", "function remove_unused_widgets() {\n\tunregister_widget( 'WP_Widget_Meta' );\n\tunregister_widget( 'WP_Widget_Calendar' );\n\tunregister_widget( 'WP_Widget_Recent_Comments' );\n\tunregister_widget( 'WP_Widget_Tag_Cloud' );\n}", "function remove_theme_mods()\n {\n }", "function remove_widgets(){\r\n remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); \r\n remove_meta_box('dashboard_quick_press', 'dashboard', 'side'); \r\n remove_meta_box('dashboard_activity', 'dashboard', 'normal'); \r\n remove_meta_box('dashboard_primary', 'dashboard', 'side'); \r\n remove_meta_box('dashboard_site_health', 'dashboard', 'side'); \r\n \r\n // Eliminar widget de Elementor que aparece al activar su plugin\r\n remove_meta_box('e-dashboard-overview', 'dashboard', 'normal'); \r\n}", "public function getJquery();", "function unhook_parent_style() {\n \n wp_dequeue_style( 'genericons' );\n\twp_deregister_style( 'genericons' );\n wp_dequeue_style( 'twentyfifteen-ie' );\n\twp_deregister_style( 'twentyfifteen-ie' );\n wp_dequeue_style( 'twentyfifteen-ie7' );\n\twp_deregister_style( 'twentyfifteen-ie7' );\n wp_dequeue_style( 'twentyfifteen-fonts' );\n\twp_deregister_style( 'twentyfifteen-fonts' );\n}", "function wpdocs_dequeue_dashicon() {\n if (current_user_can( 'update_core' )) {\n return;\n }\n wp_deregister_style('dashicons');\n}", "function my_deregister_scripts(){\r\n\t \twp_deregister_script( 'wp-embed' );\r\n\t}", "function my_remove_recent_comments_style()\n{\n global $wp_widget_factory;\n remove_action('wp_head', array(\n $wp_widget_factory->widgets['WP_Widget_Recent_Comments'],\n 'recent_comments_style'\n ));\n}", "function my_remove_recent_comments_style()\n{\n global $wp_widget_factory;\n remove_action('wp_head', array(\n $wp_widget_factory->widgets['WP_Widget_Recent_Comments'],\n 'recent_comments_style'\n ));\n}", "function remove_widgets_wallet() {\n\t\tunregister_widget( 'myCRED_Widget_Wallet' );\n\n\t}", "function cultiv8_deregister_scripts() {\n\tglobal $wp_query, $post;\n\t\n\tif( ! ( strpos( json_encode( $wp_query ), '[contact-form-7' ) || strpos( json_encode( $post ), '[contact-form-7' ) ) ) {\n\t\t\twp_deregister_script( 'contact-form-7' );\n\t\t\twp_deregister_style( 'contact-form-7' );\n\t}\n\n}", "function wpfifc_remove_option() {\r\n\r\n\t\treturn;\r\n\t}", "function templ_remove_dashboard_widgets()\r\n{\r\n /* Globalize the metaboxes array, this holds all the widgets for wp-admin*/\r\n global $wp_meta_boxes;\r\n /* Remove the Dashboard quickpress widget*/\r\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\r\n /* Remove the Dashboard incoming links widget*/\r\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\r\n /* Remove the Dashboard secondary widget*/\r\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\r\n}", "function disable_scripts() { \n\tif ($GLOBALS['pagenow'] != 'wp-login.php' && !is_admin()) {\n\t\twp_deregister_script('l10n');\n\t\twp_deregister_script('jquery');\n\t\twp_deregister_script('wp-embed');\n\t}\n}", "function rb_load_javascript()\n{\n wp_enqueue_script(\n 'rb-main-javascript',\n get_stylesheet_directory_uri() . '/main.js',\n array( 'jquery' )\n );\n wp_enqueue_script(\"myUi\",\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js\");\n}", "function wp_ajax_delete_theme()\n {\n }", "public function remove_help_tabs()\n {\n }", "public function dequeue_script() {\r\n\t wp_dequeue_script( 'jquery-ui-sortable' );\r\n\t wp_dequeue_script( 'scporderjs' );\r\n\t wp_dequeue_script( 'plt-quick-add' );\r\n\t}", "function remove_head_scripts() {\n remove_action('wp_head', 'wp_print_scripts');\n remove_action('wp_head', 'wp_print_head_scripts', 9);\n remove_action('wp_head', 'wp_enqueue_scripts', 1);\n\n // remove_action('wp_head', 'wp_print_style');\n // remove_action('wp_head', 'wp_print_head_style', 9);\n // remove_action('wp_head', 'wp_enqueue_style', 1);\n \n add_action('wp_footer', 'wp_print_scripts', 5);\n add_action('wp_footer', 'wp_enqueue_scripts', 5);\n add_action('wp_footer', 'wp_print_head_scripts', 5);\n\n // add_action('wp_footer', 'wp_print_style', 5);\n // add_action('wp_footer', 'wp_enqueue_style', 5);\n // add_action('wp_footer', 'wp_print_head_style', 5);\n}", "function my_admin_add_js() {\n\t$screen = get_current_screen();\n\tif ($screen->id == 'contact') {\n\t\techo \"<script>document.getElementById('newcategory_parent').remove()</script>\n\t\t <script>document.getElementById('titlediv').remove(); </script>\";\n\t\t wp_enqueue_script('inputmask', get_template_directory_uri() . '/js/jquery.inputmask.bundle.min.js', array('jquery'));\n wp_enqueue_script('admin', get_template_directory_uri() . '/js/admin.js', array('jquery'));\n\t}\n}", "function remove_admin_bar_from_head() {\n remove_action('wp_head', '_admin_bar_bump_cb');\n show_admin_bar(false);\n}", "function tempera_remove_recent_comments_style() {\n\tglobal $wp_widget_factory;\n\tremove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );\n}", "function my_remove_recent_comments_style()\n{\n global $wp_widget_factory;\n remove_action('wp_head', array(\n $wp_widget_factory->widgets['WP_Widget_Recent_Comments'],\n 'recent_comments_style'\n ));\n}", "function remove_dashboard_widgets() {\n\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n\tremove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n\t// remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );\n\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n}", "function deregister_widgets()\n { foreach ( $this->get_widgets() as $widget )\n {\n unregister_widget( $widget );\n }\n\n }", "function hxp_plugin_deactivation() {\n\twp_dequeue_style( 'hxp_custom_style' );\n\twp_deregister_style( 'hxp_custom_style' );\n\twp_dequeue_script( 'hxp_export_script' );\n\twp_dequeue_script( 'hxp_import_script' );\n\twp_deregister_script( 'hxp_export_script' );\n\t$hxp_upload_dir = wp_upload_dir();\n\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_exports' );\n\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_imports' );\n}", "function dwwp_remove_dashboard_widget() {\n remove_meta_box( 'dashboard_primary','dashboard','side' );\n}", "function cardealer_head_cleanup() {\r\n\tadd_filter( 'style_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from css\r\n\tadd_filter( 'script_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from scripts\r\n}", "function replace_widjets_content() {\n remove_action( 'widgets_init', 'envo_storefront_widgets_init' );\n}", "function remove_description_form() {\n echo \"<style> .term-description-wrap{display:none;}</style>\";\n}", "function my_deregister_scripts(){\n wp_deregister_script( 'wp-embed' );\n}", "public function move_js_to_footer() {\n\t\t$this->remove_action( 'wp_head', 'wp_print_scripts' );\n\t\t$this->remove_action( 'wp_head', 'wp_print_head_scripts', 9 );\n\t\t$this->remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );\n\t}", "function ui_sortable_cancel($selector){\n return add_method_support('sortable',$selector, 'cancel');\n}", "function wp_dequeue_script($handle)\n {\n }", "function clean_wp_header() {\n remove_action( 'wp_head', 'feed_links_extra', 3 );\n remove_action( 'wp_head', 'feed_links', 2 );\n wp_deregister_script('comment-reply');\n}", "function dimaan_remove_version() { return ''; }", "function flatsome_remove_recent_comments_style() {\n global $wp_widget_factory;\n remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );\n }", "function remove_sl(){\n\t\t\n\t}", "function custom_remove_recent_comments_style() {\n\tglobal $wp_widget_factory;\n\n\tremove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );\n}" ]
[ "0.7260323", "0.6732453", "0.6726179", "0.64241177", "0.6321641", "0.6062501", "0.6060515", "0.60391295", "0.60380536", "0.59975517", "0.59745836", "0.59575576", "0.5925367", "0.59131294", "0.5815577", "0.57426333", "0.5717533", "0.57099456", "0.57041276", "0.56919074", "0.56900656", "0.566551", "0.56418014", "0.5631362", "0.5620843", "0.5553032", "0.5543106", "0.55299234", "0.5526728", "0.55257136", "0.55208176", "0.55080706", "0.5494247", "0.5493271", "0.54748505", "0.5456125", "0.54408526", "0.5421826", "0.53969604", "0.5373781", "0.5372709", "0.53726065", "0.5371033", "0.53705674", "0.53705674", "0.53484", "0.53424984", "0.5342224", "0.5341848", "0.5341275", "0.5337382", "0.53247553", "0.53229105", "0.53120476", "0.5309311", "0.53033024", "0.5296963", "0.52908105", "0.5288845", "0.5266578", "0.52607805", "0.5260161", "0.5255865", "0.52557766", "0.5252941", "0.5238836", "0.5228726", "0.5223804", "0.52209353", "0.52209353", "0.5215935", "0.52155805", "0.5211555", "0.5206277", "0.5204942", "0.52030873", "0.51951724", "0.5185204", "0.51839256", "0.5181494", "0.51780003", "0.5173845", "0.5173322", "0.5171724", "0.5168004", "0.5165866", "0.5157361", "0.5156464", "0.5152224", "0.51388985", "0.5136205", "0.513534", "0.5129415", "0.5112304", "0.5111241", "0.5095375", "0.50914747", "0.50908625", "0.5086245", "0.50768983" ]
0.7426778
0
Get all unseen discussions. Use in notification.
Получить все не просмотренные обсуждения. Используйте для уведомлений.
public function get_unseen() { $this->authenticate(); $result = $this->discussion->get_unseen_discussions(); if (!is_null($result)) { exit(json_encode([ 'flg' => TRUE, 'msg' => $result ])); } else { exit(json_encode([ 'flg' => FALSE ])); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUnreadMessages(): Collection;", "public static function getLastDiscussions(){\n $sql = \"select * from discussions ORDER BY `id` DESC LIMIT 5\";\n return App::$db->query($sql);\n }", "public function get_list_unread(){\n\n\t\tuser_login_required();\n\n\t\t//Get the list of unread conversations of the user\n\t\t$list_unread_conversations = components()->conversations->get_list_unread(userID);\n\n\t\t//Process the results\n\t\tforeach($list_unread_conversations as $num => $conv)\n\t\t\t$list_unread_conversations[$num] = self::UnreadConversationToAPI($conv);\n\n\t\t//Return result\n\t\treturn $list_unread_conversations;\n\t}", "public function getUnread()\n\t{\n\t\t$msgs = $this->getAllByQuery(\"is_read=?\", [(int) false]);\n\t\t$this->updateQueryTime();\n\t\treturn $msgs;\n\t}", "public function getDiscussionsUnread($id_user=null){\n // $id_user correspon à l'id de l'utilisateur\n // retourne un numerique qui correspond aux nombre de messages non lus\n $inst_user = new Model_DbTable_User();\n $inst_item = new Model_DbTable_Item();\n if($id_user > 0){\n $current_user = $this->find($id_user)->current();\n $id_user = $current_user->idUser;\n }else{\n $current_user = $inst_user->getUser();\n $id_user = $current_user->idUser;\n }\n $messages = $this->fetchAll($this->select()->where(\"state LIKE '%\".$id_user.\",%'\"));\n $list_unread = array();\n foreach($messages as $message){\n $message_obj = $inst_item->find($message['item_idItem'])->current();\n $list_obj = $message_obj->findParentRow(Model_DbTable_List);\n $list_unread[$list_obj->idList] = $list_obj->idList; \n }\n return $list_unread;\n }", "protected function getUnreadConversations() {\n return DB::table('conversations')\n ->join('participants', function($join) {\n $join->on('participants.conversation_id', '=', 'conversations.id')\n ->on('participants.last_read', '<', 'conversations.last_message')\n ->where('participants.user_id', '=', Auth::user()->id);\n })\n ->pluck('conversation_id');\n }", "public function discussions()\n {\n\n return $this->hasMany('App\\Discussion','channel_id');\n }", "function GetUnreadNotifications($uid=false,$last_notification=false){\n\n\t$query_=$last_notification?\" and `id`> {$last_notification}\":\"\";\n\n\t$notifications = NotificationsModel::model()->findAll(\"`to` =\".helpers::uid($uid).$query_.\" and `seen`='0' order by `time` desc\");\n\n\tif($notifications!=NULL){\n\n\t//get user controller\n\t$user_c=Helpers::get_controller(USERS);\n\n\tforeach ($notifications as $k=>$notification){\n\n\t$notifications[$k]->user = $user_c->GetUserById($notification->from);\n\n\n\t}\n\n\n\t}\n\n\n\treturn $notifications==null?array():$notifications;\n\n\t}", "public function getUnseenEmails(): array\n {\n $emails = [];\n\n try {\n $imap = $this->loginToInbox();\n\n // We only want the emails we haven't fetched before.\n foreach ($imap->search(['UNSEEN']) as $id) {\n $data = $imap->fetch(['RFC822.HEADER', 'RFC822.TEXT'], $id);\n\n // We need to combine headers and text in order to have a full email.\n $emails[] = InboundEmail::fromMessage($data['RFC822.HEADER'].\"\\r\\n\".$data['RFC822.TEXT']);\n }\n\n $imap->logout();\n } catch (\\Exception $e) {\n // Just log the error and get on with the method execution.\n $this->logger->error($e->getMessage());\n }\n\n return $emails;\n }", "public function getLatestUnreadNotifications()\n {\n return $this->_notificationList->setPageSize(self::NOTIFICATIONS_NUMBER);\n }", "function getUnsentNotifications($userId) {\n\t\treturn $this->_conn->arrayQuery(\"SELECT id, userid, objectid, type, title, body FROM notifications WHERE userid = :userid AND NOT SENT\",\n array(\n ':userid' => array($userId, PDO::PARAM_INT)\n ));\n\t}", "public function notifications()\n {\n $notifications = $this->get(\"/api/v1/conversations?as_user_id=sis_user_id:mtm49\");\n return $notifications;\n }", "public function getNotOpenedMessagesToFollow()\n {\n // no problem if one message is opened more than one time\n $modifier = Carbon::now()->modify(\"-{$this->getDelayInterval()}\");\n $messages = TrackingLog::select('tracking_logs.*')\n ->leftJoin('open_logs', 'tracking_logs.message_id', '=', 'open_logs.message_id')\n ->join('auto_triggers', 'tracking_logs.auto_trigger_id', '=', 'auto_triggers.id')\n ->join('auto_events', 'auto_triggers.auto_event_id', '=', 'auto_events.id')\n ->where('auto_event_id', $this->previousEvent->id)\n ->whereRaw(sprintf('%s NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('tracking_logs.subscriber_id'), table('auto_triggers'), $this->id))\n ->whereRaw(sprintf('%s IS NULL', table('open_logs.id')))\n ->where('tracking_logs.created_at', '<=', $modifier)\n ->get();\n\n // one message could be opened more than one time\n // @note: use array_uniq_by() helper function for far better performance thant Collection::uniq()\n $unique = array_unique_by($messages, function ($message) {\n return $message->message_id;\n });\n\n return $unique;\n }", "public function getUnsubscribersToFollow()\n {\n return $this->automation->subscribers()\n ->addSelect('unsubscribe_logs.created_at AS unsubscribed_at')\n ->addSelect('tracking_logs.message_id')\n ->join('tracking_logs', 'subscribers.id', '=', 'tracking_logs.subscriber_id')\n ->join('unsubscribe_logs', 'tracking_logs.message_id', '=', 'unsubscribe_logs.message_id')\n ->whereRaw(sprintf(table('subscribers') . '.id NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('auto_triggers'), $this->id))\n ->where('unsubscribe_logs.created_at', '>=', $this->created_at)\n ->get();\n }", "public function getUnreadMessageCollection(){\n if(!$this->_unreadMessageCollection){\n $this->_unreadMessageCollection = $this->_messageFactory->create()->getCollection();\n $this->_unreadMessageCollection->addFieldToFilter('customer_email','')->addFieldToFilter('customer_id',$this->ticketData->getCustomerId())\n ->addFieldToFilter('is_read',0)\n ->setOrder('message_id','DESC')\n ->setPageSize(5); \n }\n \n return $this->_unreadMessageCollection;\n }", "final public function get_notifications() {\r\n\t\tif ($this->user_id) {\r\n\t\t\t$sql = \"SELECT notification_id, message, user_id, type, a_href, read_status, date_notified\r\n\t\t\tFROM `notifications`\r\n\t\t\tWHERE read_status = '\" . NotificationFactory::UNREAD . \"'\";\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\t$notifications = array();\r\n\t\t\twhile ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\r\n\t\t\t\t$notification = '<a href=\"' . $row['a_href'] . '\">' . $row['message'] . '</a>';\r\n\t\t\t\tarray_push($notifications, $notification);\r\n\t\t\t}\r\n\t\t\treturn $notifications;\r\n\t\t}\r\n\t}", "function getReceivedIssues() {\n\t\t$i = $this->_query->join('synd_issue','i');\n\t\t$query = clone $this->_query;\n\n\t\t$query->column($this->_grouping->getReceivedKey($this, $query), 'PK');\n\t\t$query->column(\"COUNT(DISTINCT $i.node_id)\", 'ISSUES');\n\t\t$query->groupBy($this->_grouping->getReceivedKey($this, $query));\n\t\t\n\t\t$sql = $query->toString();\n\t\t$rows = $this->_db->getAssoc($sql);\n\t\treturn $this->_grouping->filter($rows);\n\t}", "public function unread()\n {\n request()->user()->readNotifications()->update(['read_at' => null]);\n\n return response()->json(request()->user()->notifications);\n }", "public function unread()\n {\n return $this->unseen();\n }", "public function getUnsentNotifications() {\n return $this->hasMany(NotificationEmployer::className(), ['employer_id' => 'employer_id'])\n ->with(['job', 'student'])\n ->where(['notification_sent' => NotificationEmployer::SENT_FALSE])\n ->orderBy(\"notification_datetime DESC\");\n }", "public function getDiscussions($id_user=null){\n // $id_user correspon à l'id de l'utilisateur\n // retourne un tableau de liste de messages recus\n $discussions = array();\n $inst_user = new Model_DbTable_User();\n $inst_list = new Model_DbTable_List();\n \n if($id_user > 0){\n $current_user = $this->find($id_user)->current();\n $id_user = $current_user->idUser;\n }else{\n $current_user = $inst_user->getUser();\n $id_user = $current_user->idUser;\n } \n \n $select = $inst_list->select()->where('categorie_idcategories = ?',$this->Category_id);\n $lists = $current_user->findModel_DbTable_ListViaModel_DbTable_UserHasListByUserAndList($select);\n foreach($lists as $list){\n $discussions[$list->idList] = array(\"user\"=>$current_user->idUser,\"count\"=>count($inst_list->getCountItem($list->idList)));\n }\n \n foreach($this->fetchAll($this->select()->where(\"recipients_id LIKE '%\".$id_user.\",%'\")) as $message){\n $inst_item = new Model_DbTable_Item();\n $inst_list = new Model_DbTable_List();\n $current_item = $inst_item->find($message[\"item_idItem\"])->current();\n $current_list = $inst_list->find($current_item->list_idList)->current();\n $list_user = $current_list->findModel_DbTable_UserViaModel_DbTable_UserHasListByListAndUser()->current(); \n $other_user = $inst_user->find($list_user->idUser)->current(); \n $discussions[$current_item->list_idList] = array(\"user\"=>$other_user->idUser,\"count\"=>count($inst_list->getCountItem($current_item->list_idList)));\n }\n krsort($discussions);\n return $discussions; \n }", "public function unseenReviews($itemId)\n\t{\n\t\treturn $this->review->where('item_id', $itemId)->where('status', 'unseen')->get();\n\t}", "public function getUnread()\n {\n if(Session::has('prac_id'))\n {\n $viewer = Practitioner::find(Session::get('prac_id'));\n }\n elseif(Auth::check())\n {\n $viewer = User::find(Auth::user()->id);\n }\n\n $unreadcount = Message::latest('created_at')->GetConversationReceiver($viewer->email)\n ->GetUnreadMessages()->distinct()->lists('conv_id');\n\n if(count($unreadcount) < 1)\n {\n return null;\n }\n else\n { \n return $unreadcount;\n }\n\n }", "public function getNotClickedMessagesToFollow()\n {\n // no problem if one message is opened more than one time\n $modifier = Carbon::now()->modify(\"-{$this->getDelayInterval()}\");\n $messages = TrackingLog::select('tracking_logs.*')\n ->leftJoin('click_logs', 'tracking_logs.message_id', '=', 'click_logs.message_id')\n ->join('auto_triggers', 'tracking_logs.auto_trigger_id', '=', 'auto_triggers.id')\n ->join('auto_events', 'auto_triggers.auto_event_id', '=', 'auto_events.id')\n ->where('auto_event_id', $this->previousEvent->id)\n ->whereRaw(sprintf('%s NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('tracking_logs.subscriber_id'), table('auto_triggers'), $this->id))\n ->whereRaw(sprintf('%s IS NULL', table('click_logs.id')))\n ->where('tracking_logs.created_at', '<=', $modifier)\n ->get();\n\n // one message could be clicked more than one time\n // @note: use array_uniq_by() helper function for far better performance thant Collection::uniq()\n $unique = array_unique_by($messages, function ($message) {\n return $message->message_id;\n });\n\n return $unique;\n }", "public function All () {\n\t\t$messages = DB::select(\"\n\t\t\tselect max(a.created_at) as date, max(a.id) as id, projects.name,\n\t\t\t(select message from messages where created_at = max(a.created_at) AND id = max(a.id)) message,\n\t\t\t(select seen from messages where created_at = max(a.created_at) AND id = max(a.id)) seen,\n\t\t\t(select messages.from from messages where created_at = max(a.created_at) AND id = max(a.id)) as sender,\n\t\t\t(select messages.project_id from messages where created_at = max(a.created_at) AND id = max(a.id)) as project_id,\n\t\t\t(select messages.type from messages where created_at = max(a.created_at) AND id = max(a.id)) as type\n\t\t\tfrom messages a join projects ON projects.id = a.project_id\n\t\t\tWHERE a.to = \".Auth::user()->id.\" OR a.from = \".Auth::user()->id.\"\n\t\t\tgroup by projects.name ORDER BY id DESC\");\n\n\t\t$seen = collect($messages)->pluck('seen');\n\t\t$unseen = array_diff($seen->all(), array(1));\n\t\treturn array(\"messages\" => $messages, \"unseen\" => $unseen);\n\t}", "public function fetchAllMessages()\n {\n return Chat::with('user')->get();\n }", "public function getDiscussions() {\n $comments = $this->getComments();\n $discussions = array();\n\n foreach($comments as $comment) {\n if(!$comment->parentId) {\n $discussions[$comment->id] = array();\n $discussions[$comment->id][] = $comment;\n }\n else {\n $discussions[$comment->parentId][] = $comment;\n }\n }\n\n return $discussions;\n }", "public function getDiscussionsSend($id_user=null){\n // $id_user correspon à l'id de l'utilisateur\n // retourne un tableau de liste de messages envoyes\n $discussions = array();\n $inst_user = new Model_DbTable_User();\n $inst_list = new Model_DbTable_List();\n \n if($id_user > 0){\n $current_user = $this->find($id_user)->current();\n $id_user = $current_user->idUser;\n }else{\n $current_user = $inst_user->getUser();\n $id_user = $current_user->idUser;\n } \n \n $select = $inst_list->select()->where('categorie_idcategories = ?',$this->Category_id);\n $lists = $current_user->findModel_DbTable_ListViaModel_DbTable_UserHasListByUserAndList($select);\n foreach($lists as $list){\n $discussions[$list->idList] = array(\"user\"=>$current_user->idUser,\"count\"=>count($inst_list->getCountItem($list->idList)));\n }\n krsort($discussions);\n return $discussions; \n }", "public static function get_unsubscribable_reactforums() {\n global $USER, $DB;\n\n // Get courses that $USER is enrolled in and can see.\n $courses = enrol_get_my_courses();\n if (empty($courses)) {\n return array();\n }\n\n $courseids = array();\n foreach($courses as $course) {\n $courseids[] = $course->id;\n }\n list($coursesql, $courseparams) = $DB->get_in_or_equal($courseids, SQL_PARAMS_NAMED, 'c');\n\n // Get all reactforums from the user's courses that they are subscribed to and which are not set to forced.\n // It is possible for users to be subscribed to a reactforum in subscription disallowed mode so they must be listed\n // here so that that can be unsubscribed from.\n $sql = \"SELECT f.id, cm.id as cm, cm.visible, f.course\n FROM {reactforum} f\n JOIN {course_modules} cm ON cm.instance = f.id\n JOIN {modules} m ON m.name = :modulename AND m.id = cm.module\n LEFT JOIN {reactforum_subscriptions} fs ON (fs.reactforum = f.id AND fs.userid = :userid)\n WHERE f.forcesubscribe <> :forcesubscribe\n AND fs.id IS NOT NULL\n AND cm.course\n $coursesql\";\n $params = array_merge($courseparams, array(\n 'modulename'=>'reactforum',\n 'userid' => $USER->id,\n 'forcesubscribe' => REACTFORUM_FORCESUBSCRIBE,\n ));\n $reactforums = $DB->get_recordset_sql($sql, $params);\n\n $unsubscribablereactforums = array();\n foreach($reactforums as $reactforum) {\n if (empty($reactforum->visible)) {\n // The reactforum is hidden - check if the user can view the reactforum.\n $context = \\context_module::instance($reactforum->cm);\n if (!has_capability('moodle/course:viewhiddenactivities', $context)) {\n // The user can't see the hidden reactforum to cannot unsubscribe.\n continue;\n }\n }\n\n $unsubscribablereactforums[] = $reactforum;\n }\n $reactforums->close();\n\n return $unsubscribablereactforums;\n }", "public function allUnreadForUser($userId);", "public function allUnreadForUser($userId);", "function get_all_unmarked() {\n\n global $CFG;\n\n $sql = \"SELECT s.id as subid, s.userid, s.data2, a.course, a.assignmenttype, a.name, a.description, a.id, c.id as cmid\n FROM {$CFG->prefix}assignment a\n INNER JOIN {$CFG->prefix}course_modules c\n ON a.id = c.instance\n INNER JOIN {$CFG->prefix}assignment_submissions s\n ON s.assignment = a.id\n WHERE c.module = {$this->mainobject->modulesettings['assignment']->id}\n AND c.visible = 1\n AND a.course IN ({$this->mainobject->course_ids})\n AND s.timemarked < s.timemodified\n AND NOT (a.resubmit = 0 AND s.timemarked > 0)\n ORDER BY a.id\";\n\n $unmarked = get_records_sql($sql);\n\n // Due to oracle being rubbish, there is no way to put this bit into sql as the data2 field is\n // a CLOB and so cannot be used with any kind of comparison operator.\n // It used to be:\n // AND NOT (a.assignmenttype = 'upload' AND s.data2 != 'submitted'))\n \n\n foreach ($unmarked as $key => $submission) {\n\n if (($submission->data2 != 'submitted') && ($submission->assignmenttype == 'upload')) {\n unset($unmarked[$key]);\n }\n }\n \n\n $this->all_submissions = $unmarked;\n\n return true;\n }", "public function countUnseenNewsItems(){\n return $this->newsModel->countUnseenNewsItems();\n }", "public static function All()\n {\n $result = &get_instance()->db->order_by(\"posted_on\", \"DESC\")->get_where(\"Announcements\", array());\n $ret = array();\n foreach($result->result() as $r)\n $ret[] = Announcement_model::LoadWithData($r);\n return $ret;\n }", "public static function reset_discussion_cache() {\n self::$reactforumdiscussioncache = array();\n self::$discussionfetchedreactforums = array();\n }", "protected function getUnreadInbox(): array\n {\n return $this->unreadInbox;\n }", "public static function getUnassignedTickets() {\n $tickets = Self::where('is_assigned', 0)\n ->where('status_id', 1)\n ->where('is_approved', 1)\n ->where('created_at', '<', Carbon::now()->subMinutes(30)->toDateTimeString())\n ->get();\n\n return $tickets;\n }", "private function listChannels()\n {\n $channels = Auth::guard()->user()->channels->load('users');\n foreach($channels as $channel){\n foreach($channel->users as $key => $user){\n if ($user->id == Auth::guard()->user()->id){\n unset($channel->users[$key]);\n }\n }\n }\n return $channels;\n }", "public function unread()\n {\n return $this->hasMany('App\\ChatMessage',\"chat_id\", \"id\")->where(\"is_read\", 0);\n }", "function getUnreadMessages($nid,$uid)\n\t{\n\t\t$db=JFactory::getDBO();\n\t\t//get all unread messages against current node for this user\n\t\t$query =\"SELECT m.msg_id AS mid,m.from AS fid, m.msg, m.time AS ts\n\t\tFROM #__jbolo_chat_msgs AS m\n\t\tLEFT JOIN #__jbolo_chat_msgs_xref AS mx ON mx.msg_id=m.msg_id\n\t\tWHERE m.to_node_id=\".$nid.\"\n\t\tAND mx.to_user_id =\".$uid.\"\n\t\tAND mx.read = 0\n\t\tORDER BY m.msg_id \";\n\t\t$db->setQuery($query);\n\t\t//$messages = $db->loadAssocList();\n\t\t$messages=$db->loadObjectList();\n\t\t//print_r($messages);\n\t\treturn $messages;\n\t}", "public function getNewsNotCheck()\n {\n $news = $this->_model->where('news_is_check', '=', '0')->get();\n\n return $news;\n }", "public function viaNotificationChannels()\n {\n return UserNotificationChannel::with('notification_channel')->get()->filter(function ($item) {\n return $item->muted_at == null;\n })->pluck('notification_channel.name');\n }", "public function getAll()\n\t{\n\t\t$msgs = Message::findByUser($this->getUser());\n\t\t$this->updateQueryTime();\n\t\treturn $msgs;\n\t}", "public function listDiscussion($request){\n $userArray = $this->verify_token($request);\n if ($userArray==false){\n return new Response(401, ['Content-Type' => 'application/json'], json_encode(array(\n \"status\" => \"error\",\n \"message\" => \"Invalid authorized access\"\n )));\n }\n\n $user_id = $userArray[\"id\"];\n\n $discussion = new Discussion();\n\n $discussionsArray = $discussion->getDiscussionsFromUserId($user_id);\n\n $discussionsJson = array();\n\n foreach ($discussionsArray as $discussion) {\n $discussionJson = array();\n $discussionJson[\"id\"] = $discussion->getId();\n $discussionJson[\"type\"] = $discussion->getType();\n $discussionJson[\"name\"] = $discussion->getName();\n $discussionJson[\"users\"] = $discussion->getUsersNecessityArray();\n $discussionJson[\"photo_profil\"] = $discussion->getPhoto_profil();\n $discussionJson[\"notseen\"] = $discussion->getNotSeenMessages($user_id);\n $discussionJson[\"last_message\"] = $discussion->getLast_messageArray();\n $discussionsJson[] = $discussionJson;\n }\n\n return $this->renderJson(array(\n \"current_user_id\" => $user_id,\n \"discussions\" => $discussionsJson,\n ));\n }", "public function _getAbsentGroupMeetings()\n {\n $meetings = [];\n foreach ($this->meetings as $meeting)\n if ($meeting->IsGroupMeeting)\n if ($meeting->_joinData->away_reason !== '')\n $meetings[] = $meeting;\n\n return $meetings;\n }", "public function notifications($organiser_id)\n {\n $organiser = Organiser::scope()->findOrFail($organiser_id);\n return $organiser->unreadNotifications()->limit(10)->get()->toArray();\n }", "protected function unconfirmedSubscriptionList()\n {\n $repository = $this->doctrine->getRepository(NewsletterSubscription::class);\n $subscriptions = $repository->findBy(['isConfirmed' => false]);\n\n return $subscriptions;\n }", "public static function drafts()\n {\n return self::where('published', '=', false)->get();\n }", "public function getAllNotResponded()\n {\n $query = 'select count(attendees.attendeeID) from users right join attendees on users.userID = attendees.userID where users.isRSVP = 0;';\n if ($this->connectedModel->runQuery($query)) //query\n {\n if ($row = $this->connectedModel->getResultsRow())\n return $row[0]; //count()\n }\n else\n {\n return -1;\n }\n }", "public function getAllUnreadEmailsSenders()\n {\n $messages = collect(LaravelGmail::message()->unread()->preload()->all());\n $fromList = [];\n\n $messages->each(function ($message) use (&$fromList) {\n $fromList[] = $message->getFrom();\n });\n\n // TODO: can be optimized\n return $this->getUnreadEmailsList($fromList);\n }", "public function index(){\n\n return view('discussions.index', [\n\n 'discussions' => Discussion::filterByChannels()->paginate(5)\n\n ]);\n }", "public static function prevent_forumngfeature_discussion() {\n return array();\n }", "public function findNotSentToCalendar()\n {\n $sql = <<<SQL\n SELECT s.*, p.title as program_name \n FROM ec_shows s, ec_programs p\n WHERE sent_to_calendar like ''\n AND s.program_id = p.id\nSQL;\n $sqlQuery = new SqlQuery($sql);\n return $this->getList($sqlQuery);\n }", "public function all()\n {\n return $this->onlinetrack->all();\n }", "public function discussions(): MorphToMany\r\n {\r\n return $this->morphToMany(\r\n \\App\\Models\\Discussion::class,\r\n 'model',\r\n 'model_has_discussions',\r\n 'model_id',\r\n 'discussion_id'\r\n );\r\n }", "public static function unwatchedMovies()\n {\n return self::where('user_id', Auth::id())\n ->where('watched', 0)\n ->orderBy('created_at', 'desc')\n ->limit(UserMovie::LIMIT)\n ->get();\n }", "public function getUnreadVoicemail()\n {\n return $this->_getAndParse($this->_serverPath['voicemail'], false);\n\t}", "function get_all_course_unmarked($courseid) {\n\n global $CFG;\n $unmarked = '';\n $student_sql = $this->get_role_users_sql($this->mainobject->courses[$courseid]->context);\n\n $sql = \"SELECT s.id as subid, s.userid, s.data2, a.id, a.name, a.assignmenttype,\n a.course, a.description, a.assignmenttype, c.id as cmid\n FROM {$CFG->prefix}assignment a\n INNER JOIN {$CFG->prefix}course_modules c\n ON a.id = c.instance\n INNER JOIN {$CFG->prefix}assignment_submissions s\n ON s.assignment = a.id\n\n WHERE c.module = {$this->mainobject->modulesettings['assignment']->id}\n AND c.visible = 1\n AND (s.userid IN ({$student_sql}))\n AND a.course = $courseid\n AND s.timemarked < s.timemodified\n AND NOT (a.resubmit = 0 AND s.timemarked > 0)\n\n ORDER BY a.id\";\n\n $unmarked = get_records_sql($sql);\n\n foreach ($unmarked as $key => $submission) {\n\n if (($submission->data2 != 'submitted') && ($submission->assignmenttype == 'upload')) {\n unset($unmarked[$key]);\n }\n }\n \n\n return $unmarked;\n }", "public function index()\n {\n session(['header_text' => 'Messages']);\n \n $message = Message::where('user_id', '!=', Auth::user()->id)->get();\n $notification = 0; \n foreach($message as $notif){\n\n $ids = collect(json_decode($notif->seen, true))->pluck('id');\n if(!$ids->contains(Auth::user()->id)){\n $notification++;\n }\n }\n $notification = 0; \n return view('message.index', compact('notification'));\n }", "public function listNotifications()\r\n { \t \r\n \r\n \t$data = $this->call(array(), \"GET\", \"notifications.json\");\r\n \t$data = $data->{'notifications'};\r\n \t$notificationArray = new ArrayObject();\r\n \tfor($i = 0; $i<count($data);$i++){\r\n \t\t$notificationArray->append(new Notification($data[$i], $this));\r\n \t}\r\n \treturn $notificationArray;\r\n }", "public function getUnreadEnquiries()\r\n\t\t{\r\n\t\t\tContact::SetQuery($name, $email, $subject, $message);\r\n\t\t}", "public function getNotificationsCollection()\n {\n return Mage::getModel('kdcatalogupdates/log')->getCollection();\n }", "public function getManyNotPublished(QueryBuilder $builder)\n {\n return $this->getManyNotPublishedFrom(Content::query()->with('type'), $builder);\n }", "public function index()\n {\n $discussions = Discussion::filterByChannels()->paginate(10);\n return view('discussion.index', compact('discussions'));\n }", "function GetNotifications($uid=false,$last_notification=false){\n\n\t$query_=$last_notification?\" and `id`> {$last_notification}\":\"\";\n\n\t$notifications = NotificationsModel::model()->findAll(\"`to` =\".helpers::uid($uid).$query_.\" order by `time` desc limit 10\");\n\n\tif($notifications!=NULL){\n\n\t//get user controller\n\t$user_c=Helpers::get_controller(USERS);\n\n\tforeach ($notifications as $k=>$notification){\n\n\t$notifications[$k]->user = $user_c->GetUserById($notification->from);\n\n\t}\n\n\n\t}\n\n\n\treturn $notifications==null?array():$notifications;\n\n\t}", "public function getNotifications()\n {\n return $this->_notifications;\n }", "public function getMessages()\n\t{\n\t\t$messages = Message::orderBy( 'created_at', 'asc' )->get();\n\t\treturn $messages;\n\t}", "public function findAllNew()\n {\n return $this->createQueryBuilder()\n ->field('feeditems')->size(0)\n ->eagerCursor(true)\n ->getQuery()\n ->execute();\n }", "public function getUnpublished()\n {\n $userManager = new UserManager;\n $infoUser = $userManager->getInfo($_SESSION['id_user']);\n if ($_SESSION['id_user'] == $infoUser['id'] and $infoUser['rank_id'] == 1) {\n if (isset($_GET['id']) && $_GET['id'] > 0) {\n $commentManager = new CommentManager;\n $unpublished = $commentManager->unpublished($_GET['id']);\n header('Location: administration');\n } else {\n throw new Exception('Impossible de trouvé le commentaire');\n }\n } else {\n throw new Exception('Vous n\\'êtes pas autorisé à faire cela');\n }\n }", "function thediscussion() {\n\tglobal $discussions_index, $discussion, $discussions, $discussion_title;\n\t$discussion = $discussions[$discussions_index - 1];\n\treturn $discussion;\n}", "public function getAllUnidadNegocio()\r\n {\r\n $sql = \"SELECT id_unidad_negocio, nombre, url_logo, url_imagen, descripcion FROM tbl_unidad_negocio\";\r\n $query = $this->db->prepare($sql);\r\n\r\n $query->execute();\r\n\r\n return $query->fetchAll();\r\n }", "function get_all_notifications()\n {\n $this->db->order_by('id_notification', 'desc');\n return $this->db->get('notifications')->result_array();\n }", "public function showAllNotifications()\n {\n return view('intern.notifications.allnotifications')\n ->withUser(auth()->user())\n ->withNotifications(auth()->user()->notifications()->paginate(10));\n }", "public function scopeUnseen($query)\n {\n return $query->where('seen', '=', false);\n }", "public function notifications()\n {\n return $this->morphMany(DatabaseNotification::class, 'notifiable')->orderBy('created_at', 'desc');\n }", "public function getNotifs() {\n\n // Notifications stored\n if( Storage::exists('notifications.ser') ) {\n $notifs = unserialize( Storage::get('notifications.ser') );\n\n // If the query is too old, remove the notifs\n if( Carbon::now()->timestamp - $notifs['query_date'] > 60 )\n $notifs = null;\n }\n\n // Get the information for the API\n if( !isset($notifs) ) {\n $notifs = [\n 'query_date' => Carbon::now()->timestamp,\n 'notifications' => getJSON( env('APP_URL_SERVER') . '/api/notifications' )\n ];\n\n // Store the new query\n Storage::put('notifications.ser', serialize($notifs));\n }\n\n return $notifs;\n }", "public static function unreaded_messages($id)\n {\n $messages = Message::where('conversation_id', $id)\n ->where('user_id_to', Auth::user()->id)\n ->where('readed', NULL)\n ->get();\n\n return $messages;\n }", "static function listHiddenExhibit(){\n\t\t$res = requete_sql(\"SELECT id FROM exhibit WHERE visible = FALSE ORDER BY creation_date ASC\");\n\t\t$res = $res->fetchAll(PDO::FETCH_ASSOC);\n\t\t$list = array();\n\t\tforeach ($res as $exhibit) {\n\t\t\t$exhibit = new Exhibit($exhibit['id']);\n\t\t\tarray_push($list, $exhibit);\n\t\t}\n\t\treturn $list;\n\t}", "public function getInboxMessages() {\n\t\t$urlInboxMessages = \"http://www.reddit.com/message/messages/.json\";\n\t\treturn $this->runCurl ( $urlInboxMessages );\n\t\t// Surely: return $this->getRawJSON('message/messages/'); is preferable.\n\t}", "public function getNotifications()\n {\n return $this->hasMany(Notification::className(), ['user_id' => 'id']);\n }", "public function pull()\n {\n return $this->jsonData(Auth::user()->unreadNotifications);\n }", "public function _getPrivateMeetings()\n {\n $meetings = [];\n foreach ($this->meetings as $meeting)\n if ($meeting->IsPrivateMeeting)\n $meetings[] = $meeting;\n\n return $meetings;\n }", "public function all()\n {\n return $this->jsonData(Auth::user()->notifications);\n }", "public function getNonVotingUsersForEvent($eventId)\n\t{\n\t\t$rows = $this->getTable()->getNonVotingUsersForEvent($eventId);\n\n\t\treturn $this->_getSet($rows);\n\t}", "public function getAllNoPaginate()\n {\n return $this->projectRepo->all();\n }", "public function getUnreadAlerts()\n\t{\n\t\tif ((int) $this->mybb->user['uid'] > 0)\t// check the user is a user and not a guest - no point wasting queries on guests afterall\n\t\t{\n\t\t\t$alerts = $this->db->write_query(\"SELECT a.*, u.uid, u.username, u.avatar FROM \".TABLE_PREFIX.\"alerts a INNER JOIN \".TABLE_PREFIX.\"users u ON (a.from = u.uid) WHERE a.uid = \".(int) $this->mybb->user['uid'].\" AND unread = '1' ORDER BY a.id DESC;\");\n\t\t\tif ($this->db->num_rows($alerts) > 0)\n\t\t\t{\n\t\t\t\t$return = array();\n\t\t\t\twhile ($alert = $this->db->fetch_array($alerts))\n\t\t\t\t{\n\t\t\t\t\t$alert['content'] = json_decode($alert['content'], true);\n\t\t\t\t\t$return[] = $alert;\n\t\t\t\t}\n\n\t\t\t\treturn $return;\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}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('Guests have not got access to the Alerts functionality');\n\t\t}\n\t}", "public function getOpenedMessagesToFollow()\n {\n $messages = TrackingLog::select('tracking_logs.*')->join('open_logs', 'tracking_logs.message_id', '=', 'open_logs.message_id')->join('auto_triggers', 'tracking_logs.auto_trigger_id', '=', 'auto_triggers.id')->join('auto_events', 'auto_triggers.auto_event_id', '=', 'auto_events.id')->where('auto_event_id', $this->previousEvent->id)->whereRaw(sprintf(table('tracking_logs') . '.subscriber_id NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('auto_triggers'), $this->id))->get();\n\n // one message could be opened more than one time\n // @todo: use array_uniq_by() helper function for far better performance thant Collection::uniq()\n $unique = $messages->unique(function ($item) {\n return $item->message_id;\n });\n\n return $unique;\n }", "public function countUnseenNotifications(NotifiableInterface $notifiable)\n {\n return $this->notificationManager->getUnseenNotificationCount($notifiable);\n }", "public function getDiscussion(): Discussion\n {\n return $this->discussion;\n }", "public function getMessages() {\r\n\t\t$messages = $this->session->messages;\r\n\t\t$this->session->unsetAll ();\r\n\t\treturn $messages;\r\n\t}", "public function getUnansweredQuestions()\n {\n if ($this->input->server('REQUEST_METHOD') == 'GET')\n {\n $unanswered_questions = $this->Question_model->getUnansweredQuestions();\n echo json_encode(array('status' => \"success\", 'unanswered_questions' => $unanswered_questions));\n return;\n }\n }", "public function get_noPublishedRecipes() {\n\n $query = $this->db\n ->from('recipes')\n ->where('published', 0)\n ->order_by('created_at', 'DESC')\n ->get();\n\n return $result = $query->result();\n }", "public function getUnreadMessages()\n {\n $conversations = ConversationModel::getMyConversations($this);\n /** @var Conversation $_conversation */\n $messagesCount = 0;\n foreach ($conversations as $_conversation) {\n $messagesCount += $_conversation->getUnreadMessageCount($this);\n }\n return $messagesCount;\n }", "protected function getMessages()\n\t{\n\t\t$page = \\Illuminate\\Support\\Facades\\Request::input('page', 1);\n\t\t\n\t\tif(!$this->messages)\n\t\t{\n\t\t\t$this->messages = Mail::where('folder', '=', $this->getFolderId())\n\t\t\t\t->orderBy($this->getFolderId() == 'sent' ? 'sent_time' : 'modified_time', 'desc')\n\t\t\t\t->offset(($page - 1) * $this->itemsPerPage)\n\t\t\t\t->limit($this->itemsPerPage)\n\t\t\t\t->get();\n\t\t}\n\t\t\n\t\treturn $this->messages;\n\t}", "public function unread($notifications);", "public function index()\n {\n\n $threads = Thread::forUser(Auth::id())->with([\n 'users' => function ($query) {\n $query->select('avatar', 'name', 'agent_name');\n },\n 'messages' => function ($query) {\n $query->latest()->first();\n },\n ])\n ->groupBy('threads.id')\n ->latest('updated_at')\n ->paginate();\n\n $threads->getCollection()->transform(function ($value) {\n $value->isUnread = $value->isUnread(Auth::id());\n\n return $value;\n });\n\n\n return response()->json($threads);\n }", "public function getReplys()\n {\n\t $q = Doctrine_Query::create()\n ->from('SpeakoutReply sr')\n ->leftJoin('sr.NetworkUser nu')\n ->where('sr.topic_id = ?', $this->getId()); \n\t\n return Doctrine_Core::getTable('NetworkUser')->getWithUsers($q);\n }", "public function messages()\n {\n return $this->hasMany(Chat::class, 'conversation_id')\n ->latest();\n }", "function getPendingIssues() {\n\t\t$i = $this->_query->join('synd_issue','i');\n\t\t$query = clone $this->_query;\n\n\t\t$query->where(\"$i.info_status >= 0 AND $i.info_status < \".synd_node_issue::CLOSED);\n\t\t\n\t\t$query->column($this->_grouping->getResolveByKey($this, $query), 'PK');\n\t\t$query->column(\"COUNT(DISTINCT $i.node_id)\", 'ISSUES');\n\t\t$query->groupBy($this->_grouping->getResolveByKey($this, $query));\n\t\t\n\t\t$sql = $query->toString();\n\t\t$rows = $this->_db->getAssoc($sql);\n\t\treturn $this->_grouping->filter($rows);\n\t}", "public function getAnnouncements()\r\n {\r\n $sql = \"SELECT * FROM announcements\";\r\n $query=$this->db->query($sql);\r\n return $query->result_array();\r\n }" ]
[ "0.65681255", "0.6378681", "0.63406754", "0.6325844", "0.62785566", "0.6249371", "0.6220479", "0.61696243", "0.610331", "0.60896033", "0.60003984", "0.5989895", "0.5964396", "0.59434146", "0.59220237", "0.5888419", "0.58776474", "0.58678305", "0.5790014", "0.5775237", "0.5765656", "0.5740093", "0.5715218", "0.57041425", "0.5701785", "0.5696361", "0.56937426", "0.5669351", "0.5658675", "0.5618743", "0.5618743", "0.560537", "0.558741", "0.5580608", "0.55522126", "0.5546755", "0.5532595", "0.553021", "0.5529591", "0.55285627", "0.5508485", "0.5484022", "0.54746515", "0.5474459", "0.54683745", "0.5444247", "0.5441437", "0.5422966", "0.54090613", "0.54082", "0.5390659", "0.5372397", "0.53697836", "0.5369701", "0.5357235", "0.53552467", "0.5351499", "0.53346086", "0.53272724", "0.5320464", "0.53184354", "0.53051114", "0.5304343", "0.529963", "0.5298517", "0.5295586", "0.5292926", "0.5289634", "0.52867377", "0.5284604", "0.5282129", "0.5278178", "0.5277268", "0.5275026", "0.5267025", "0.5261642", "0.5242955", "0.5239021", "0.5236869", "0.52290285", "0.52256167", "0.5222787", "0.52209824", "0.52096975", "0.5202292", "0.5199196", "0.51980793", "0.5183351", "0.5182291", "0.51785", "0.5171198", "0.51671666", "0.5165534", "0.5161252", "0.51602113", "0.5158053", "0.5157164", "0.51549673", "0.5154313", "0.51515186" ]
0.8289016
0
Test when name is not set
Тест при отсутствии имени
public function testNoName() { $this->expectException('HttpSourceConfigException'); $this->Field->name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function assertValidName() : void\n {\n InvalidDescriptorArgumentException::assertIsNotEmpty(\n $this->name,\n '#[Route.name] must contain a non-empty string.'\n );\n }", "function valid_name($name) {\r\n\tif (empty($name)) \r\n\t\treturn false;\r\n\telse\r\n\t\treturn true;\r\n }", "final protected\tfunction\thasName($name)\n\t\t{\n\t\t\t$this->_name\t=\t$name;\n\t\t}", "final protected\tfunction\thasName($name)\n\t\t{\n\t\t\t$this->_name\t=\t$name;\n\t\t}", "public function testBlankNameNotAllowed()\n {\n $this->browse(function ($browser) {\n $browser->visit(new Pages\\ProfilePage())\n ->type('name', '')\n ->click('.btn-success')\n ->assertPathIs($this->pageUrl)\n ->assertSee('You need to mention your name.');\n });\n }", "public function testMissingParameterAddCheckName() {\n $check = $this->default_check;\n $check['name'] = null;\n $this->pingdom->addCheck($check);\n }", "public function testGetNameFail() {\r\n $this->_action->getName();\r\n }", "public function nameIsEmpty()\n {\n if (!$this->name) {\n return true;\n }\n\n return false;\n }", "public function hasName()\n {\n return $this->name !== null;\n }", "public function hasName()\n {\n return $this->get(self::NAME) !== null;\n }", "public function testIfStockManagementHasName()\n {\n $this->assertNotNull($this->stock->getName());\n }", "public function testConstructSetsName()\n {\n self::assertNotEmpty($this->command->getName());\n }", "private function validateName($name)\n {\n if($name != NULL && $name != \"\"){\n return TRUE;\n } else {\n return FALSE;\n }\n }", "public function checkInputExists($name);", "public function testGetName() {\r\n\t\t$this->testObject->setName ( self::TEST_CONTROL_ID );\r\n\t\t$this->assertTrue ( self::TEST_CONTROL_ID == $this->testObject->getName (), 'incorrect control name returned' );\r\n\t}", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "static private function __isset($name) {}", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function __isset($name)\n {\n }", "public function testStoreInvalidName(): void\n {\n $request = [\n 'name' => null,\n ];\n\n $response = $this->json('POST', '/api/menus', $request);\n\n $response->assertStatus(400);\n }", "public function testNameValidation()\n {\n $aircraft = factory(\\App\\Aircraft::class)->create();\n $aircraft->name = '';\n $this->assertFalse($aircraft->save());\n\n $aircraft->name = str_random(201);\n $this->assertFalse($aircraft->save());\n\n $aircraft->name = str_random(200);\n $this->assertTrue($aircraft->save());\n }", "public function hasName(): bool\n {\n return $this->nameAttr !== NULL;\n }", "function verify_name($name) // Colorize: green\n { // Colorize: green\n return isset($name) // Colorize: green\n && // Colorize: green\n is_string($name) // Colorize: green\n && // Colorize: green\n $name != \"\"; // Colorize: green\n }", "public function testAutonameEven() {\r\n\t\t$autoname1=autoname(10);\r\n\t\t$autoname2=autoname(10);\r\n\t\r\n\t\t$this->assertNotEquals($autoname1, $autoname2);\r\n\t}", "public function testGetName(): void\n {\n /** @var Partner|MockObject $stub */\n $stub = $this->getMockBuilder(Partner::class)\n ->setMethods(null)\n ->getMock();\n\n $this->assertNull($stub->getName());\n }", "public function hasName()\n {\n return isset($this->name);\n }", "function _name_check($str){\n }", "public function __isset($name)\n {\n }", "public function __isset($name);", "public function testRegistrationFailsWithEmptyNameField()\n {\n $this->output->writeln('Running testRegistrationFailsWithEmptyNameField...');\n\n $this->browse(function ($browser) {\n $browser->visit('/register')\n ->type('name', '')\n ->type('email', 'user@test.com')\n ->type('password', 'secret')\n ->type('password_confirmation', 'secret')\n ->press('Register')\n ->assertPathIs('/register');\n });\n }", "public function hasName(){\r\n return $this->_has(1);\r\n }", "function is_reserved_name($str) {\n\t\t$reserved = array('name','value','content','parent','rank','password','timestamp');\n\t\tif(empty($str) || in_array($str, $reserved)) return true;\n\t\treturn false;\n\t}", "public function hasName(){\n return $this->_has(1);\n }", "public function hasName(){\n return $this->_has(1);\n }", "public function hasName(){\n return $this->_has(1);\n }", "public function hasName(){\n return $this->_has(1);\n }", "public function a_retailer_requires_a_name(): void\n {\n $attributes = factory(Retailer::class)->raw([\n 'name' => ''\n ]);\n\n $this->post('/retailers', $attributes)->assertSessionHasErrors('name');\n }", "private function ValidateName($name){\n if (empty($name)){ //checks if empty\n $this->valid = False;\n }else if (strlen($name)>= 30){ //checks max length\n $this->valid = False;\n }else if(!preg_match(\"/^[a-zA-Z ]*$/\",$name)){ //checks format\n $this->valid = False;\n }\n }", "private function __validate_name() {\n if (isset($this->initial_data[\"name\"])) {\n if ($this->get_limiter_id_by_name($this->initial_data[\"name\"], true)) {\n $this->id = $this->get_limiter_id_by_name($this->initial_data[\"name\"]);\n } else {\n $this->errors[] = APIResponse\\get(4209);\n }\n } else {\n $this->errors[] = APIResponse\\get(4167);\n }\n }", "static function validName($name)\r\n {\r\n if (ctype_alpha($name)) {\r\n return $name;\r\n } else if ($name == \"\") {\r\n return !empty($name);\r\n }\r\n }", "public function testRegisterWithEmptyName()\n {\n $generic = new GenericValidationTests($this);\n $generic->testEmptyAttribute('register', 'POST', self::$headers, self::$body, 'name');\n }", "public function hasProperArgumentName(): void\n {\n $filter = new RestrictByTypeFilter(RestrictByTypeFilter::MUNICIPALITY_NAME);\n\n $this->assertEquals('type', $filter->name());\n }", "public function testGetInvalidEventName (): void {\n // grab an name that does not exist\n $event = Event::getEventByEventName($this->getPDO(), \"omgmynameisLuther\");\n $this->assertEmpty($event);\n }", "abstract protected function handle_isset($name);", "private function __validate_name() {\n if (isset($this->initial_data[\"name\"])) {\n if ($this->get_limiter_id_by_name($this->initial_data[\"name\"], true)) {\n $this->parent_id = $this->get_limiter_id_by_name($this->initial_data[\"name\"]);\n } else {\n $this->errors[] = APIResponse\\get(4209);\n }\n } else {\n $this->errors[] = APIResponse\\get(4167);\n }\n }", "public function testGetName()\n\t{\n\t\t$this->assertEquals($this->filterName, $this->filter->getName());\n\t}", "public static function nameIsValid($name) {\r\n return ( is_string($name) && !empty($name) && strlen($name) >=2 ); \r\n }", "public function testNoNameWrite()\n\t{\n\t\t$this->setExpectedException( 'CCException' );\n\t\t\n\t\t$config = CCConfig::create();\n\t\t$config->write();\n\t}", "public function testNameEmptyException(): void\n {\n $name = '';\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage(\n AssertionException::notEmpty(\n 'MetaService::name'\n )->getMessage()\n );\n new MetaService(1, $name, 'average', 1, 'gauge');\n }", "public function testAutonameNoLength() {\r\n\t\t$autoname1=autoname(0);\r\n\t\t$this->assertEquals(0, strlen($autoname1));\r\n\t}", "function valid_item_name ($item_name) {\n if ( empty($item_name) )\n return false;\n else \n return true;\t\n}", "public function hasName() {\n return $this->_has(1);\n }", "public function hasName() {\n return $this->_has(1);\n }", "public function hasName() {\n return $this->_has(1);\n }", "public function hasName() {\n return $this->_has(1);\n }", "private static function name(&$name)\n {\n if(!self::validName($name))\n throw new OrmInputException('$name must be a string of alphanumerics and underscores, starting with a letter. You passed '.$name);\n\n if (is_null($name))\n $name = self::DEFAULT_NAME;\n }", "function validName($name)\n {\n //name should not be empty and should contain only letters\n return !empty($name) && ctype_alpha($name);\n }", "public function testGetName() {\r\n $action = $this->_action->setName('name');\r\n $this->assertEquals('name', $action->getName());\r\n }", "private final static function validPropertyName($name)\n {\n return !preg_match('#[^a-z0-9_]|^[^a-z]|__#', $name);\n }", "public function test_validate_name()\n {\n $response = $this->json('POST', '/api/developers', [\n 'name' => '',\n 'profession' => 'Desarrollador',\n 'position' => 'Backend',\n 'technology' => 'Laravel'\n ]);\n\n // Solicitud correcta pero imposible de completar\n $response->assertStatus(422)\n ->assertJsonValidationErrors('name');\n }", "public function testRegisterWithNullName()\n {\n $generic = new GenericValidationTests($this);\n $generic->testNullAttribute('register', 'POST', self::$headers, self::$body, 'name');\n }", "public function getName_always_returnCorrectly()\n {\n $name = $this->user['user_metadata']['firstname'].' '.$this->user['user_metadata']['lastname'];\n $this->assertEquals($name, $this->entity->getName());\n }", "public function testInvalidFurName(){\n\t\t\t$furVars =[\n\t\t\t\t'name' => '',\n\t\t\t\t'description' => 'Nice Dresser',\n\t\t\t\t'price' => '900.12',\n\t\t\t\t'categoryId' => '5',\n\t\t\t\t'fur_condition' => 'NEW'\n\t\t\t];\n\t\t\t$properTest = saveFuncFurniture($furVars);\n\t\t\t$this->assertFalse($properTest);\n\t\t}", "public function set_name($name) {\n if (!is_string($name)) { return false; }\n $this->_name = $name;\n return true;\n }", "public function getNameBasic()\n {\n $generator = All::create();\n $name = $generator->getName();\n $this->assertRegexp('/.+/', $name);\n }", "public function hasName(){\n return $this->_has(4);\n }", "public function testGetName(): void\n {\n $this->assertEquals(\n 'Другая (отслеживание и смена статуса производятся вручную)',\n DeliveryService::getName(1)\n );\n }", "public function valid()\n {\n return !empty($this->name);\n }", "public static function isValidName($name) {}", "public function a_name_is_required()\n {\n //$this->withoutExceptionHandling();\n\n $this->actingAsCustomer();\n\n $response = $this->patch('/profile/update', array_merge($this->customerData(), ['name' => '']));\n $response->assertSessionHasErrors('name');\n }", "public function hasName(){\n return $this->_has(2);\n }", "public function isNameTake(string $name): bool;", "public function testAutonameOdd() {\r\n\t\t$autoname1=autoname(9);\r\n\t\t$autoname2=autoname(9);\r\n\t\r\n\t\t$this->assertNotEquals($autoname1, $autoname2);\r\n\t}", "public function testInvalidCategoryname(){\n\t\t\t$categoryVars = [\n\t\t\t\t'name' => '',\n\t\t\t\t\n\t\t\t];\n\t\t\t$properTest= saveFuncCategory($categoryVars);\n\t\t\t$this->assertFalse($properTest);\n\t\t}", "public function nameIsClean()\n {\n return ($this->getName() != '' && $this->getName() == $this->getCleanName());\n }", "public function wrongNamesDataProvider() {}", "public function isValidNameOrError($name): bool\n {\n if ($name == \"\") {\n throw new Exception('Invalid Product Name');\n }\n return true;\n }", "public function test_form_submit_emptyname()\n {\n Livewire::test(ConfiguratorForm::class)\n ->set(\"name\",\"\")\n ->set(\"onPullrequest\", true)\n ->call('submitForm')\n ->assertHasErrors('name');\n }", "public function testWiki1() {\n\t\t$this->assertNormalized('name=', array('name' => null));\n\t}", "public function hasValidNameArgument()\n {\n $name = $this->argument('name');\n\n if (! Str::contains($name, '/')) {\n $this->error(\"The name argument expects a vendor and name in 'Composer' format. Here's an example: `vendor/name`.\");\n\n return false;\n }\n\n return true;\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function hasName() {\n return $this->_has(2);\n }", "public function testGetName()\n {\n $data_from_collection = $this->data['annual_collection'];\n $this->assertEquals(\n $data_from_collection['attributes']['plan_name'],\n $this->makePlan($data_from_collection)->getName()\n );\n\n $data_from_site = $this->data['annual_site'];\n $this->assertEquals($data_from_site['name'], $this->makePlan($data_from_site)->getName());\n }", "public function forNameWithNonExistingNameThrowsIllegalArgumentException()\n {\n TestEnumWithoutValues::forName('BAZ');\n }", "public function checkControlExists($name);" ]
[ "0.7126883", "0.7051787", "0.70507437", "0.70507437", "0.7032379", "0.7005613", "0.7003814", "0.69903255", "0.6954094", "0.6922928", "0.682972", "0.6669657", "0.6656195", "0.6620851", "0.6606527", "0.65667284", "0.65667284", "0.6566536", "0.6566536", "0.6566536", "0.6565861", "0.6565432", "0.65647787", "0.65647787", "0.65647787", "0.65647787", "0.65647787", "0.6558251", "0.652443", "0.65174365", "0.65173936", "0.649268", "0.64800614", "0.6473898", "0.6473548", "0.64680713", "0.64636034", "0.6416198", "0.641042", "0.641013", "0.6409271", "0.6409271", "0.6409271", "0.6409271", "0.6397347", "0.63968176", "0.6371037", "0.63663507", "0.636567", "0.63603586", "0.6351055", "0.6343651", "0.63368803", "0.63336", "0.6321334", "0.63135564", "0.6294852", "0.62924814", "0.6286979", "0.6274957", "0.6274957", "0.6274957", "0.6274957", "0.62733954", "0.6270705", "0.62610954", "0.6256104", "0.6245817", "0.62408435", "0.62349296", "0.62344337", "0.62236124", "0.6213211", "0.6206048", "0.6197945", "0.61924124", "0.6189068", "0.61821365", "0.6180976", "0.61767364", "0.61757356", "0.6175233", "0.6169335", "0.6164898", "0.6159905", "0.6150897", "0.6148972", "0.6140729", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6127706", "0.6126287", "0.61129075", "0.60993147" ]
0.71519655
0
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
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
Updates recipe specified by rid in parameters Performs 1 update for 'recipe' table, and 1 for each 'ingredients' and 1 for each 'directions'
Обновляет рецепт, указанный идентификатором rid в параметрах. Выполняет 1 обновление для таблицы 'recipe', 1 для каждой таблицы 'ingredients' и 1 для каждой таблицы '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']))
ПОМОЩЬФУНКЦИЯ Преобразование массива ингредиентов в шаблон значения SQL. Каждый элемент следует формату: '(rid, x, :valuex)', где x увеличивается от 1 до количества ингредиентов. Для использования в SQL-запросе: 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
Returns average of all comment ratings associated to rid
Возвращает среднее значение всех оценок комментариев, связанных с 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
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 = \"lkuffo@espol.edu.ec\"; //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
Получить модель конфигурации Postident
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
Получает новый массив ключей flash
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
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' => 'dianne@gmail.com',\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
Parses a dscan to an array
Парсит dscan в массив
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
This function redirect the user to the page indicated by the variable file.
Эта функция перенаправляет пользователя на страницу, указанную переменной 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
Get only master result.
Получить только результат мастера.
public function getMasterResult() { $results = $this->getResults(); return isset($results['original']) ? $results['original'] : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggle_master_view_query_result(): Array {\n $model = $this->current_model;\n\n $master_view = $this->master_view_query_result();\n \n // Get result from grants model if feature model list returns empty\n \n if(method_exists($this->CI->$model,'master_view') &&\n is_array($this->CI->$model->master_view()) && \n count($this->CI->$model->master_view()) > 0 \n ){\n \n $master_view = $this->CI->$model->master_view();\n \n }\n \n return $master_view;\n }", "public function selectdivisonmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM divisionmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "function getMaster();", "private static function getMaster() {\n return self::getRandomPDOLB(self::MASTER);\n }", "function getMaster() {\n\t\tif (null !== $this->_current && $this->_isMaster)\n\t\t\treturn $this->_current;\n\n\t\tif (!empty($this->_masters)) {\n\t\t\t$dsn = reset($this->_masters);\n\t\t\t$db = DatabaseManager::getConnection($dsn);\n\t\t\t\n\t\t\tif ($db->isNull()) {\n\t\t\t\t$this->_setFailed($dsn);\n\t\t\t\treturn $this->getMaster();\n\t\t\t}\n\t\t\t\n\t\t\t$this->_current = $db;\n\t\t\t$this->_isMaster = true;\n\t\t\treturn $this->_current;\n\t\t}\n\n\t\treturn DatabaseManager::getConnection('null://null');\n\t}", "public function getRequireMaster()\n {\n $value = $this->get(self::REQUIRE_MASTER);\n\n return $value === null ? (bool) $value : $value;\n }", "function get_master_id(){\r\n\t\t$result=$this->m_master_ambil_paket->get_master_id();\r\n\t\techo $result;\r\n\t}", "function get_master_id(){\r\n\t\t$result=$this->m_master_jual_rawat->get_master_id();\r\n\t\techo $result;\r\n\t}", "public function selectstatusmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM statusmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selectworktypemaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM worktypemaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selectmandalmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM mandalmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function masterAction()\n {\n //====================================================================//\n // Return Dummy Response\n return new JsonResponse(array('result' => 'Ok'));\n }", "private function searchMaster() {\n $id = intval($_POST['query']);\n $data = $this->system->getDB()->query(\"SELECT * FROM master WHERE id=?\", array($id));\n echo(json_encode($data[0]));\n }", "public function isMaster();", "public function getSingleResult()\n {\n }", "public function selectreligionmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM religionmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function getPrimary();", "public function selectschememaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM schememaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selectpositionmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM positionmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "function master_view_query_result(): Array {\n\n $table = strtolower($this->controller);\n \n $model = $this->current_model;\n\n $select_columns = $this->toggle_master_view_select_columns(); \n\n $lookup_tables = $this->CI->grants->lookup_tables($table);\n \n $master_view_query_result = $this->CI->grants_model->run_master_view_query($table,$select_columns,$lookup_tables);\n \n return $this->CI->grants->update_query_result_for_fields_changed_to_select_type($this->controller,$master_view_query_result);\n \n }", "function GetMasterMainChannel()\n {\n if ( ! is_superadmin()) {\n $this->db->where('is_superadmin', 0);\n }\n $data = $this->db\n ->order_by('master_mainchannel_code', 'asc')\n ->get('master_mainchannel')\n ->result_array();\n\n return $data;\n }", "public function selectvillagemaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM villagemaster LEFT JOIN mandalmaster ON villagemaster.mandalid=mandalmaster.mandalid\") or die(mysql_error());\n\t\treturn $result;\n\t}", "private function has_master(){\n\t\tif($this->master==\"None\"){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected function is_master() {\n\t\treturn $this->_config->is_master();\n\t}", "public function selectlocalitymaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM localitymaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selectrecievermaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM letterrecievermaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selecteventmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM eventmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function selectpetitionmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM petitionmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function getMasterConnection()\n {\n return $this->getConnection(self::DEFAULT_MASTER_NODE_ID);\n }", "function getAllMaster($tabel){\n $db = $this->load->database('mhsc_masterdata', TRUE);\n $query = $db->get($tabel);\n return $query;\n }", "function get_master_search_data($key = false) {\r\n\t\tif (empty ( $key )) {\r\n\t\t\treturn $this->master_search_data;\r\n\t\t} else {\r\n\t\t\treturn $this->master_search_data [$key];\r\n\t\t}\r\n\t}", "protected function getResult()\n {\n return $this->result ?? true;\n }", "public function getMasterRequest()\n {\n return $this->masterRequest;\n }", "public function getFirstResult();", "public function getFirstResult();", "public function selectpetitionforwardmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM petitionforwardmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function getMaster()\n {\n $container = $this->getContainer();\n\n if ($container->has('request.master')) {\n return $container->get('request.master');\n }\n return $container->get('request');\n }", "public function getWaitForMasterVariant();", "abstract public function getPrimary();", "private function getResult() {\n return $this->result;\n }", "public function actionFindAll(){\n\t\tYii::$app->response->format = Response::FORMAT_JSON;\n\n\t\t$response = null;\n\n\t\tif (Yii::$app->request->isGet){\n\t\t\t\n\t\t\t$master_matpel = DataMatpel::find()\n\t\t\t->groupBy('matpel')\n\t\t\t->all();\n\t\t\t\n\t\t\t$response['master'] = $master_matpel;\n\t\t}\n\n\t\treturn $response;\n }", "function GetMasterFilter() {\n\n\t\t// Master filter\n\t\t$sMasterFilter = \"\";\n\t\tif ($this->getCurrentMasterTable() == \"t_gaji_master\") {\n\t\t\tif ($this->gjm_id->getSessionValue() <> \"\")\n\t\t\t\t$sMasterFilter .= \"`gjm_id`=\" . ew_QuotedValue($this->gjm_id->getSessionValue(), EW_DATATYPE_NUMBER, \"DB\");\n\t\t\telse\n\t\t\t\treturn \"\";\n\t\t}\n\t\treturn $sMasterFilter;\n\t}", "public function getSSDBMasterResource()\n {\n return $this->SSDBMasterResource;\n }", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n {\n return parent::getResult();\n }", "public function getCurrentResult() : string;", "public function forceMaster()\n {\n return true;\n }", "public function forceMaster()\n {\n return true;\n }", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();", "public function getResult();" ]
[ "0.65682006", "0.6396339", "0.63761115", "0.6277591", "0.62601995", "0.6230873", "0.6190991", "0.61805916", "0.6174329", "0.6169014", "0.61662894", "0.6044402", "0.59527785", "0.58789414", "0.58752835", "0.5868419", "0.58595896", "0.5850338", "0.580162", "0.5797276", "0.5795399", "0.57707125", "0.5762875", "0.57620245", "0.5723853", "0.57154715", "0.56867486", "0.5684626", "0.56639904", "0.5656763", "0.56507015", "0.56265515", "0.56149244", "0.55980086", "0.55980086", "0.55966496", "0.5596387", "0.5585364", "0.5579689", "0.5545946", "0.5528654", "0.5523137", "0.5506194", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5504555", "0.5491944", "0.548436", "0.547806", "0.547806", "0.5476823", "0.5476823", "0.5476823", "0.5476823", "0.5476823", "0.5476823" ]
0.7969295
0
Find out if this element is placed in an inline context.
Узнайте, находится ли этот элемент в контексте inline.
public function isInline() { if ($ancestor = $this->getControlBlockContainer()) { return $ancestor->isInline(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_inline()\r\n\t{\r\n\t\treturn $this->is_inline;\r\n\t}", "function vcex_vc_is_inline() {\n\tif ( function_exists( 'vc_is_inline' ) ) {\n\t\treturn vc_is_inline();\n\t}\n\treturn false;\n}", "public function hasInlineVector()\n {\n return ($this->hasLinkImage() && $this->LinkImage()->getExtension() == 'svg' && $this->InlineVector);\n }", "public function isInline(): bool\n\t{\n\t\treturn $this->disposition === self::DISPOSITION_INLINE;\n\t}", "public function isInline() : bool\n {\n return $this->getDisposition() == 'inline';\n }", "public function isInlineImage(): bool\n\t{\n\t\treturn $this->isOfType( static::TYPE_INLINE_IMAGE );\n\t}", "public function getInline()\n\t{\n\t\treturn $this->isInlineQuery;\t\n\t}", "public function inlineImageExists()\n {\n foreach ($this->attachment as $attachment) {\n if ($attachment[6] == 'inline') {\n return true;\n }\n }\n return false;\n }", "public function InlineImageExists() {\n\t foreach($this->attachment as $attachment) {\n\t if ($attachment[6] == 'inline') {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "public function isPaymentPageModeInline($scopeId = null)\n {\n return $this->getPaymentPageMode($scopeId) === Configuration::PAYMENT_TYPE_INLINE;\n }", "private static function has_inline($handle)\n\t{\n\t\tglobal $wp_styles;\n\n\t\tif (isset($wp_styles->registered[$handle]->extra['after']))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public function isContextual(): bool\n {\n return $this->definition->isContextual($this);\n }", "protected function isPageSliderContext()\n\t{\n\t\treturn $this->request->get('IFRAME') === 'Y';\n\t}", "protected function get_vc_inline_html() {\n\t\t\treturn false;\n\t\t}", "public function isEmbargoed();", "protected function canPerformInlineSearch()\n\t{\n\t\t/* If the data store entry is present, read it first */\n\t\tif( isset( \\IPS\\Data\\Store::i()->safeInlineSearch ) )\n\t\t{\n\t\t\t/* We are over the threshold, return FALSE now */\n\t\t\tif( \\IPS\\Data\\Store::i()->safeInlineSearch == false )\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* If we haven't checked in 24 hours we should do so again */\n\t\t\t\tif( \\IPS\\Data\\Store::i()->safeInlineSearch > ( time() - ( 60 * 60 * 24 ) ) )\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Get our member count */\n\t\t$totalMembers = \\IPS\\Db::i()->select( 'COUNT(*)', 'core_members' )->first();\n\n\t\t/* If we have more members than our cutoff, just set a flag as we don't need to recheck this periodically. The total will never materially dip to where we can start performing inline searches again, and worst case scenario the upgrader/support tool would clear the cache anyways. */\n\t\tif( $totalMembers > $this->inlineSearchCutoff )\n\t\t{\n\t\t\t\\IPS\\Data\\Store::i()->safeInlineSearch = false;\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Otherwise we store a timestamp so we can recheck periodically */\n\t\t\t\\IPS\\Data\\Store::i()->safeInlineSearch = time();\n\t\t\treturn TRUE;\n\t\t}\t\n\t}", "public function hasInfluencedContent();", "public function inlineImageExists()\n {\n }", "public function isInlineContent($part)\r\n\t{\r\n\t\t$dis = $this->getPartContentDisposition($part);\r\n\t\tif ($dis)//ture\r\n\t\t{\r\n\t\t\tif ($dis == 'inline' || $dis == 'infile') // Add 'infile' as a hack for some stupid emails\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t\t//maybe need it in the future.\r\n\t\t\t\t// if (isset($part['disposition-filename']) && isset($part['content-name']))\r\n\t\t\t\t// {\r\n\t\t\t\t// \t$filename = end(explode('.', $part['disposition-filename']));\r\n\t\t\t\t// \t$name = end(explode('.', isset($part['content-name']);\r\n\t\t\t\t// \tif ($filename == 'html' || $filename == 'htm' || $name == 'html' || $name == 'htm')))\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn true;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// \telse\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn false;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// }\r\n\t\t\t\t// else if(isset($part['disposition-filename']))\r\n\t\t\t\t// {\r\n\t\t\t\t// \techo $part['disposition-filename'];\r\n\t\t\t\t// \tif (end(explode('.', $part['disposition-filename'])) == 'htm' || end(explode('.', $part['disposition-filename'])) == 'html' )\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn true;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// \telse\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn false;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// }\r\n\t\t\t\t// else if (isset($part['content-name']))\r\n\t\t\t\t// {\r\n\t\t\t\t// \tif (end(explode('.', $part['content-name'])) == 'html')\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn true;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// \telse\r\n\t\t\t\t// \t{\r\n\t\t\t\t// \t\treturn false;\r\n\t\t\t\t// \t}\r\n\t\t\t\t// }\r\n\t\t\t\t// else\r\n\t\t\t\t// {\r\n\t\t\t\t// \treturn true;\r\n\t\t\t\t// }\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public function hasSpanId(){\n return $this->_has(2);\n }", "public function isCurrentChild(): bool;", "public function hasAsis()\n {\n return isset($this->asis);\n }", "public function isAligned()\n {\n if ($ancestor = $this->getControlBlockContainer()) {\n return $ancestor->isAligned();\n }\n\n return false;\n }", "public function isShowing($in_tag)\n {\n $container = $this->show_area;\n $containee = $in_tag;\n $ret = false;\n $match = \"/^\" . $containee . \"/\";\n if (preg_match($match, $container)) {\n $ret = true;\n }\n\n $match = \"/qcol....form$/\";\n if (!$ret && preg_match($match, $containee)) {\n $ret = true;\n }\n\n $match = \"/pghd....form$/\";\n if (!$ret && preg_match($match, $containee)) {\n $ret = true;\n }\n\n $match = \"/pgft....form$/\";\n if (!$ret && preg_match($match, $containee)) {\n $ret = true;\n }\n\n $match = \"/grph...._/\";\n if (!$ret && preg_match($match, $containee)) {\n $ret = true;\n }\n\n return $ret;\n }", "public function isWrapped()\n {\n return ($this->getWrapperInfo() !== false);\n }", "public function hasContext(){\n return $this->_has(2);\n }", "public function hasContextValue();", "public function showIn(string $context): bool;", "public function hasContext()\n\t\t{\n\t\t\treturn null !== $this->context;\n\t\t}", "public function isRTE() {}", "public function testIncludeWithInlineContext()\n {\n $output = $this->primer->getPatterns(array('components/test-group/include-with-inline-context'), false);\n\n $this->assertEquals($output, 'new context');\n }", "public function isInvisible($in)\n {\n $elt = $this->getElement($in);\n\n return ($elt && ($elt['a'] & self::ELT_INVISIBLE));\n }", "static function is_post_field_edited_inline($inline_edit_list, $field_type, $post_id) {\n foreach ($inline_edit_list as $edit) {\n if ($edit['type'] == $field_type && $edit['post_id'] == $post_id) {\n return true;\n }\n }\n\n return false;\n }", "public function testInlineAnnotation() {\n $comment = \"/** @Inline */\";\n $annotations = new Annotations($comment);\n\n $this->assertTrue(isset($annotations['inline']));\n }", "public function isToBeMarked();", "public function hasSpans(){\n return $this->_has(2);\n }", "public function hasEmbeddedField()\n {\n return $this->get(self::EMBEDDED_FIELD) !== null;\n }", "public function getDetailFieldsInline()\n {\n if ($this->owner->config()->detail_fields_inline) {\n return true;\n }\n \n return Config::inst()->get(static::class, 'default_detail_fields_inline');\n }", "public function isContainer($in)\n {\n $elt = $this->getElement($in);\n\n return ($elt &&\n (($elt['a'] & self::ELT_NOSELECT) ||\n (((!$this->_showunsub && !$this->isSubscribed($elt)) ||\n $this->isInvisible($elt)) &&\n $this->hasChildren($elt, true))));\n }", "public function isAutofinishSpansEnabled()\n {\n return $this->boolValue('autofinish.spans', false);\n }", "public function getIsSnippetEnabled()\n {\n return $this->helper->isSnippetEnabled();\n }", "public function hasParent()\n {\n return $this->currentParent !== null;\n }", "final public function hasParent() {\n\t\treturn ($this->_parentNode !== null);\n\t}", "public function hasCurrent()\n {\n return $this->current !== null;\n }", "public function hasCurElementId(){\n return $this->_has(1);\n }", "public function hasContexts();", "public function isFrontendArea(): bool;", "public function isHtmlBlock()\n {\n return (! $this->isPhpBlock());\n }", "protected function isEmbeddedSubclass()\n {\n $index = $this->getIndex();\n return $index != \"\";\n }", "public function hasContentElement(): bool\n {\n return $this->isChildElementSet(1);\n }", "public function hasParent()\n\t{\n\t\treturn !empty($this->parent);\n\t}", "public function isAdHocLineItem()\n {\n if ($this->parent_invoice_item_id && !$this->product_id && !$this->data_product_id &&\n !$this->bindery_option_id &&\n !$this->proof_id && !$this->shipping_option_id && $this->quantity\n ) {\n return true;\n } else {\n return false;\n }\n }", "public function inContext(string $context): bool\n { return false;\n }", "public function hasInfoWindow() {\n return (!empty($this->_text));\n }", "function is_sp_widget_context() {\n\t\tif ( isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'],$this->id_base) !== false ) {\n\t\t\treturn true;\n\t\t} elseif ( isset($_REQUEST['_wp_http_referer']) && strpos($_REQUEST['_wp_http_referer'],$this->id_base) !== false ) {\n\t\t\treturn true;\n\t\t} elseif ( isset($_REQUEST['widget_id']) && strpos($_REQUEST['widget_id'],$this->id_base) !== false ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function hasParent() {\n return isset($this->_parent);\n }", "public function isActive() {\n return (($page = Mage::registry('splash_page')) !== null) && $page->getId() === $this->getId();\n }", "public function isActive() {\n return $this->site->page()->is($this);\n }", "function testInline(){\n\n #mdx:Inline\n $form = new HtForm();\n $form->inline(true);\n $form->textin('fst_name')->label('First Name');\n $form->textin('lst_name')->label('Last Name');\n $form->button('Submit');\n #/mdx echo $form\n $this->assertGreaterThanOrEqual(2, substr_count(\"$form\",\"display:inline-block\"));\n\n }", "public function in(BoxInterface $box): bool;", "function hasParent() {\n\t\treturn (bool) ($this->parentID);\n\t}", "public function getCaptionShown()\n {\n return ($this->Caption && !$this->HideCaption);\n }", "public function hasMarkDown(): bool\n {\n return $this->markDown;\n }", "public function isInteractive();", "public function isInteractive();", "public function isInteractive();", "public function isEmphasized() {\n\t\treturn $this->emphasize;\n\t}", "public function hasTag(){\n return $this->_has(1);\n }", "public function hasParent() {\n\t\treturn $this->parent()->count() == 1;\n\t}", "public function isInsideHead()\r\n\t{\r\n\t\treturn Anowave_Ec_Model_System_Config_Position::GTM_LOCATION_HEAD == (int) Mage::getStoreConfig('ec/config/code_position');\r\n\t}", "public function is_embed()\n {\n }", "public function isVisible()\n {\n if ($this->parent instanceof Zap_UIObject) {\n return ($this->parent->isVisible() && $this->visible);\n } else {\n return $this->visible;\n }\n }", "function getPType() {\n return 'inline';\n }", "public function isExpanded() {}", "public function getIsPartOf()\n {\n return $this->isPartOf;\n }", "function isVisible() {\n return $this->entry->flags & ThreadEntry::FLAG_EDITED;\n }", "protected function isDceContentElement(DataHandler $pObj): bool\n {\n return (bool)$this->getDceUid($pObj);\n }", "public function is_single()\r\n\t{\r\n\t\treturn $this->block == NULL;\r\n\t}", "public static function isLocalContext()\r\n\t{\r\n\t\treturn self::$localContext;\r\n\t}", "public function inSassScriptDirective()\n\t{\n\t\treturn $this->parent instanceof EachNode\n\t\t\t|| $this->parent->parent instanceof EachNode\n\t\t\t|| $this->parent instanceof ForNode\n\t\t\t|| $this->parent->parent instanceof ForNode\n\t\t\t|| $this->parent instanceof IfNode\n\t\t\t|| $this->parent->parent instanceof IfNode\n\t\t\t|| $this->parent instanceof WhileNode\n\t\t\t|| $this->parent->parent instanceof WhileNode;\n\t}", "public function isInteractive(): bool;", "public function isUsedInAssessments(){\n return ($this->assessments == 1);\n }", "private function readContext(): bool\n {\n return ($data = $this->readIdentifier('msgctxt')) !== null\n && ($this->translation = $this->translation->withContext($data));\n }", "abstract public function isCurrent();", "public function isIsolated() {}", "public function isUseInPreview() {\r\n\t\treturn $this->getUseInPreview();\r\n\t}", "public function isParent() {\n\t\treturn $this->isParent;\n\t}", "public function hasRenderingType()\n {\n return $this->RenderingType !== null;\n }", "public function isSetASIN()\n {\n return !is_null($this->_fields['ASIN']['FieldValue']);\n }", "public function is_block ()\n {\n return is_a( $this, __NAMESPACE__ . '\\\\Block' );\n }", "public function isCurrent() {\n\n return !empty($this->environment);\n }", "public function isProcessTag()\r\n\t{\r\n\t\treturn $this->process_tag;\r\n\t}", "public function hasContent(): bool\n {\n return !empty($this->getAssetId());\n }", "public function hasWrapper() {\n return NULL != $this->wrapper;\n }", "public static function use_inline_styles(){\n return false;\n }", "public function isOpen() {\n if($this->isActive()) return true;\n return $this->site->page()->parents()->has($this);\n }", "public static function hasAssociatedEntity()\n {\n return static::$associatedEntity !== null;\n }", "public function isShowingFull($in_tag)\n {\n $match = \"/qcol....$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/qcol....form$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/pghd....form$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/pghd....$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/pgft....form$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/pgft....$/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n $match = \"/grps...._/\";\n if (preg_match($match, $in_tag)) {\n return true;\n }\n\n if ($in_tag . \"detl\" == $this->show_area) {\n return true;\n }\n\n if ($in_tag == $this->show_area) {\n return true;\n }\n\n return false;\n }", "public function has_PLAIN_not_HTML()\n\t{\n\t\treturn $this->PLAIN != '' && $this->HTML == '';\n\t}", "private function hasAlign() {\n\t\treturn isset($this->options['align']);\n\t}" ]
[ "0.7384146", "0.70733654", "0.6968481", "0.6914325", "0.6851162", "0.67480165", "0.6497554", "0.63016534", "0.6232524", "0.57936937", "0.57405216", "0.5622722", "0.55322516", "0.5500013", "0.54707915", "0.5444395", "0.54324687", "0.5407346", "0.53898376", "0.5381279", "0.5376551", "0.53643036", "0.53631985", "0.53499454", "0.53328264", "0.5327806", "0.52628434", "0.52487844", "0.5246277", "0.5239341", "0.52357477", "0.52168715", "0.5211043", "0.5199071", "0.5191435", "0.5186424", "0.5155747", "0.51185995", "0.5117745", "0.51176834", "0.5073507", "0.5054282", "0.50516945", "0.50387925", "0.50274915", "0.50102466", "0.500354", "0.4997962", "0.49923947", "0.4983748", "0.49786514", "0.49782518", "0.49732205", "0.49720764", "0.49626473", "0.494749", "0.49328867", "0.49264416", "0.49262786", "0.4916711", "0.49051347", "0.4902971", "0.4897175", "0.4895581", "0.4895581", "0.4895581", "0.4895162", "0.48945564", "0.48894712", "0.48826382", "0.48793855", "0.4867258", "0.48659456", "0.4863464", "0.48558068", "0.48551896", "0.48504406", "0.48475885", "0.48460925", "0.48449606", "0.48360443", "0.48337013", "0.48242968", "0.48228016", "0.48158377", "0.4815831", "0.4812763", "0.47994402", "0.4796146", "0.47906396", "0.4787359", "0.47843397", "0.47837278", "0.4782051", "0.47813246", "0.47761348", "0.47751772", "0.47730923", "0.47710016", "0.47686094" ]
0.745781
0
Sets the Tidy options based on the configuration of Options.
Устанавливает параметры Tidy в зависимости от настроек Options.
function __setTidyConfig() { if($this->_options["IsWord"]){ $this->_tidy_config['word-2000'] = true; $this->_tidy_config['drop-proprietary-attributes'] = true; } else { $this->_tidy_config['word-2000'] = false; } if($this->_options["OutputXHTML"]) { $this->_options["UseTidy"] = true; $this->_tidy_config['output-xhtml'] = true; } else { $this->_tidy_config['output-xhtml'] = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setOptions($options = array()) \n { \n $default = array( \n \"RemoveStyles\" => true, \n \"IsWord\" => true, \n \"UseTidy\" => true, \n \"TidyBefore\" => false, \n \"CleaningMethod\" => array( \n \"tags\" => \"whitelist\", \n \"attributes\" => \"blacklist\" \n ), \n \"OutputXHTML\" => true, \n \"FillEmptyTableCells\" => true, \n \"DropEmptyParas\" => true, \n \"Optimize\" => true, \n \"Compress\" => false, \n \"Encoding\" => \"UTF8\" \n ); \n $new = array_merge_recursive($default, (array)$options); \n\n $this->_options = $new; \n $this->__setTidyConfig(); \n }", "protected function configureOptions(): void\n {\n }", "private function set_options()\n\t{\n\t\t$this->dompdf->set_paper(array(0, 0, 325.98, 646.299), 'landscape');\n\t\t$this->dompdf->set_option('isHtml5ParserEnabled', true);\n\t\t$this->dompdf->set_option('isRemoteEnabled', true);\n\t\t$this->dompdf->set_option('chroot', __DIR__ . '/templates');\n\t}", "abstract public function setOptions($options = array());", "protected function setOptions() {\n\t\t$this->_options->setHelpText(\"This tool provides a mechanism to run recurring workflow tasks.\");\n\n\t\t$text = \"This option triggers the execution of all known workflows.\\n\";\n\t\t$text.= \"You may filter the execution using option '--workflow'.\";\n\t\t$this->_options->addOption(Option::EasyFactory(self::OPTION_RUN, array('--run', '-r'), Option::TYPE_NO_VALUE, $text, 'value'));\n\n\t\t$text = \"This options provides a way to filter a specific workflow.\";\n\t\t$this->_options->addOption(Option::EasyFactory(self::OPTION_WORKFLOW, array('--workflow', '-w'), Option::TYPE_VALUE, $text, 'value'));\n\t}", "public function configureOptions();", "abstract public function setOptions($options);", "public function setOptions($options)\n {\n //if some arguments are not set grab defaults and merge\n $options = array_merge($this->defaults, $options);\n\n $this->maxTweets = $options['maxTweets'];\n $this->retweets= $options['include_retweets'];\n $this->style = $options['style'];\n $this->replies = $options['include_replies'];\n $this->cacheTime = $options['caching_intervals'];\n $this->displayImages = $options['display_images'];\n }", "public function setOptions($options){\n\n\t}", "function setOptions (array $options);", "public function setOptions($options) {\n\n $this->options = $options;\n }", "public function setOptions(array $options = array());", "public function setConfig($options);", "public function set_options(Array $options) {\n\t\tif (isset($options['tags'])) {\n\t\t $this->tags = array_merge($options['tags'], $this->tags);\n\t }\n\t}", "public function setOptions($options = []);", "public function configureOptions(array $options = []) : void;", "public function setOptions($optionVars);", "protected function configure(array $options)\n {\n }", "public function setOptions(array $options): void;", "public function setOptions(array $options): void;", "public function configure($options);", "public function setOptions($options)\n {\n $this->options = apply_filters(\n \"jankx_post_layout_{$this::get_name()}_set_options\",\n wp_parse_args(\n $options,\n $this->options\n ),\n $this\n );\n }", "public function setOptions($options)\n {\n $this->options = $options;\n }", "public static function configure(array $options): void\n {\n static::$options = $options;\n }", "public static function set_options() {\r\n\t\tself::add_option(\"my_option\", \"foo\");\r\n\t}", "public function setOptions(array $options = [])\n {\n $this->options = [];\n $this->shortcuts = [];\n $this->negations = [];\n $this->addOptions($options);\n }", "public function setOptions()\n\t{\n\t\tupdate_option($this->optionVar, serialize($this->options));\n\t}", "private function setOptions($options)\n {\n $this->options = $options;\n }", "public function configure(array $options)\n {\n }", "public function withTidy(array $config = [], string $encoding = 'utf8'): self\n\t{\n\t\t$this->tidyConfig = array_merge([\n\t\t\t'clean' => 'yes',\n\t\t\t'output-html' => 'yes',\n\t\t\t'wrap' => 0,\n\t\t], $config);\n\n\t\t$this->tidyEncoding = $encoding;\n\n\t\treturn $this;\n\t}", "protected function assignOptions($options)\n {\n $this->parseTemplate=$options['template'];\n $this->extraOptions=$options['extraOptions'];\n }", "public function setOptions($options)\n {\n $this->options = $options;\n }", "public function setOptions($options)\n {\n $this->options = $options;\n }", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "public function setOptions(array $options);", "protected function loadConfigurationOptions()\n {\n if ( ! empty($this->options)) return;\n\n $this->options = $this->app->make('config')->get('html');\n\n $this->options['theme_values'] = Arr::get($this->options['themes'], $this->options['theme']);\n\n unset ($this->options['themes']);\n }", "public function setOptions($options = array())\r\n { \r\n $this->options = $options;\r\n }", "private function setOptions()\n {\n $this->clientId = $this->config['stravaSettings']['clientId'];\n $this->clientSecret = $this->config['stravaSettings']['clientSecret'];\n $this->redirectUri = $this->config['stravaSettings']['redirectUri'];\n $this->aprovalPrompt = $this->config['stravaSettings']['approval_prompt'];\n $this->scopes = $this->config['stravaSettings']['scopes'];\n }", "public function set_options(Array $options);", "public function set_options() {\n\t\tif ( Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' ) === 'all' ) {\n\t\t\t$this->post_types = 'all';\n\t\t} else {\n\t\t\t$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes_list', array() );\n\t\t\t$this->post_types = array_merge( $this->post_types, $post_types );\n\t\t};\n\t}", "public function setupOptions() {\n $this->data = array('' => '') + $this->data;\n\n if (!isset($this->htmlOptions['class'])) {\n $this->htmlOptions['class'] = '';\n }\n\n // Include the base css if required\n if ($this->includeBaseCss) {\n\n if (stripos($this->htmlOptions['class'], 'yii-selectize') === false) {\n $this->htmlOptions['class'] .= ' yii-selectize';\n }\n\n // Add the full width class if fullWidth option is set to true\n if ($this->fullWidth && stripos($this->htmlOptions['class'], 'full-width') === false) {\n $this->htmlOptions['class'] .= ' full-width';\n }\n } else if ($this->fullWidth) { // if full with is required but the base css is not included\n if (!isset($this->htmlOptions['style'])) {\n $this->htmlOptions['style'] = '';\n }\n\n // we add the style attribute\n if (stripos($this->htmlOptions['style'], 'width:') === false) {\n $this->htmlOptions['style'] .= ' width: 100%;';\n }\n }\n\n // If the placeholder property is set we'll overwrite the htmlOptions attribute\n if (!empty($this->placeholder)) {\n $this->htmlOptions['placeholder'] = $this->placeholder;\n }\n\n // If the multiple property is set we'll overwrite the htmlOptions attribute\n if (!empty($this->multiple)) {\n $this->htmlOptions['multiple'] = $this->multiple;\n }\n\n // Set the selected attributed to the given options\n if (!empty($this->selectedValues)) {\n foreach ($this->selectedValues as $valueId) {\n $this->htmlOptions['options'][$valueId]['selected'] = true;\n }\n }\n\n }", "protected function configure($options = array(), $attributes = array())\n {\n parent::configure($options, $attributes);\n\n $this->addOption('date_format', null);\n $this->addOption('php_date_format', null);\n $this->addOption('with_time', 'false');\n }", "abstract protected function setup(Options $options): void;", "protected function configure()\n {\n parent::configure();\n $this->options->mustHave('class');\n }", "public function setOptions( /*array*/$Options )// : void\n\t{\n\t\t$this -> options = $Options;\n\t}", "protected function initOptions()\n {\n }", "public function options() {}", "public function setOptions($opts) {\n /* Vars that can be set via this function */\n $allowed = array(\n \"quit_on_error\",\n \"error_handler\",\n \"redirect_on_failure\",\n \"redirect_on_failure_url\",\n \"fail_text\",\n \"redirect_on_logout\",\n \"redirect_on_logout_url\",\n \"logout_text\",\n \"wait_time\",\n \"redirect_on_ip_fail\",\n \"redirect_on_ip_fail_url\",\n \"ip_fail_text\"\n );\n\n foreach ($opts as $k => $o) {\n if (in_array($k, $allowed))\n $this->$k = $o;\n }\n }", "protected function setOptions()\n {\n $options = \\XLite::getInstance()->getOptions('skin_details');\n \n if (isset($options['skin']) && $options['skin'] === 'default') {\n $options['skin'] = 'customer';\n }\n\n foreach (array('skin', 'locale') as $name) {\n if (!isset($this->$name)) {\n $this->$name = $options[$name];\n }\n }\n\n $this->setPath();\n }", "protected function configure($options = array(), $attributes = array())\n {\n \n }", "static public function setOptions($opts = array()) {\n if (isset($opts['gzip'])) {\n self::$optGzip = $opts['gzip'] ? true : false;\n }\n if (isset($opts['minimal'])) {\n self::$optMinimal = $opts['minimal'] ? true : false;\n }\n // global option for http proxy \n if (isset($opts['pmp_http_proxy'])) {\n self::$optHttpProxy = $opts['pmp_http_proxy'] ? $opts['pmp_http_proxy'] : '';\n } \n }", "public function setOptions($options = array()) {\n $this->options = $options;\n }", "function options($options){\n\t\t$defaults = array(\n\t\t\t'class_header' => 'cg_header',\n\t\t\t'class_colGroup' => 'cg_colGroup',\n\t\t\t'class_row' => 'cg_row',\n\t\t\t'class_table' => 'cg_table',\n\t\t\t'empty_message' => __('No Results'),\n\t\t\t'separator' => ' ',\n\t\t\t'type' => 'table'\n\t\t);\n\t\t\n\t\t$options = array_merge($defaults, $options);\n\t\t\n\t\t$this->__settings = $options;\n\t\t\n\t\t//-- Set the directory we'll be looking for elements\n\t\t$this->elemDir = $this->__settings['type'];\n\t}", "function tidy_getopt(tidy $object, $option) {}", "public static function setup(array $options) {}", "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('date_order', 'Y-m-d');\n $this->addOption('date', array());\n $this->addOption('time', array());\n $this->addOption('with_time', true);\n $this->addOption('format', '%date% %time%');\n }", "public function setOptions( array $options )\n\t{\n\t\t$this->_options = $options;\n\t}", "public static function generate_options ()\n\t{\n\t\t// Location options\n\t\tadd_option(\"wustache_base_folder\", 'templates');\n\t}", "protected function configure()\n {\n $this->internalInliner->setCleanup($this->options['cleanup']);\n\n $this->internalInliner->setUseInlineStylesBlock(\n $this->options['use_inline_styles_block']\n );\n $this->internalInliner->setStripOriginalStyleTags(\n $this->options['strip_original_tags']\n );\n $this->internalInliner->setExcludeMediaQueries(\n $this->options['exclude_media_queries']\n );\n }", "public\n function setOptions(array $options)\n {\n $this->options = $options;\n }", "public\n function setOptions(array $options)\n {\n $this->options = $options;\n }", "abstract function options();", "public function setOptions(array $options): void\n {\n $this->options = $options;\n }", "public function setArguments($options)\n {\n $this->setOption('filename', $options, null);\n $this->setOption('output', $options, 'output');\n $this->setOption('format', $options, $this->pandocBroken ? 'markdown_github' : 'gfm+raw_html');\n $this->setOption('flatten', $options);\n $this->setOption('addmeta', $options);\n $this->setOption('luafilter', $options);\n $this->setOption('template', $options);\n $this->output = rtrim($this->output, '/') . '/';\n }", "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('image', false);\n $this->addOption('config', '{}');\n $this->addOption('culture', '');\n\n parent::configure($options, $attributes);\n\n if ('en' == $this->getOption('culture'))\n {\n $this->setOption('culture', 'en');\n }\n }", "public function setOptions( array $options ) {\n if( null === $this->_classMethods ) {\n $this->_classMethods = get_class_methods( $this );\n }\n foreach( $options as $key => $value ) {\n $method = 'set' . ucfirst( $key );\n if( in_array( $method, $this->_classMethods )) {\n $this->$method($value);\n }\n }\n return $this;\n }", "function setOptions($options)\n {\n $this->options = array_merge($this->options, $options);\n }", "private function setOptions(array $options)\n {\n $this->opts = array_merge(array(\n \"build-models.request.queue\" => \"ichnaea.build-models.request\",\n \"build-models.request.exchange\" => \"ichnaea.build-models.request\",\n \"build-models.response.queue\"\t => \"ichnaea.build-models.response\",\n \"predict-models.request.queue\" => \"ichnaea.predict-models.request\",\n \"predict-models.request.exchange\" => \"ichnaea.predict-models.request\",\n \"predict-models.response.queue\" => \"ichnaea.predict-models.response\",\n \"fake.request.queue\" => \"ichnaea.fake.request\",\n \"fake.request.exchange\" => \"ichnaea.fake.request\",\n \"fake.response.queue\" => \"ichnaea.fake.response\",\n ), $this->opts, $options);\n }", "protected function configure()\n {\n $this->addOption(\n 'v|version', '-s',\n 'The version of the template that is to be installed; optional if '\n .'project is installed with PEAR'\n );\n }", "protected function configure($options = array(), $attributes = array())\n {\n parent::configure($options, $attributes);\n\n $this->setOption('type', 'hidden');\n $this->addOption('edit_mode', true);\n $this->addOption('no_file_label', '<span>No file selected.</span>');\n $this->addOption('set_label', 'Choose a file');\n $this->addOption('with_replace', true);\n $this->addOption('replace_label', 'Choose a different file');\n $this->addOption('with_delete', true);\n $this->addOption('delete_label', 'Remove file');\n $this->addOption('template', '%file%<br />%input% %replace% %delete%<br /><br />');\n }", "public function setHtmlOptions($options)\n\t{\n\t\tif (is_scalar($options))\n\t\t\treturn;\n\t\t$this->_htmlOptions = array_merge($this->_htmlOptions, $options);\n\t}", "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('format', '%isd% %mobile%');\n }", "public function setOptions($options)\n {\n $this->options = [\n 'config_dir' => null,\n 'cache_dir' => null,\n 'debug' => false,\n 'cache_class' => 'WebspaceCollectionCache',\n 'base_class' => 'WebspaceCollection',\n ];\n\n // overwrite the default values with the given options\n $this->options = \\array_merge($this->options, $options);\n }", "public function options($config);", "public function options();", "public function options();", "public function options();", "public function options();", "public function options();", "public function options($opts)\n {\n parent::options($opts);\n }", "public function setFontOptions($options = [])\n {\n $this->fontOptions = [\n 'file' => isset($options['file']) ? $options['file'] : public_path($this->fontOptions['file']),\n 'color' => isset($options['color']) ? $options['color'] : $this->fontOptions['color'],\n 'size' => isset($options['size']) ? $options['size'] : $this->fontOptions['size'],\n 'align' => isset($options['align']) ? $options['align'] : $this->fontOptions['align'],\n 'valign' => isset($options['valign']) ? $options['valign'] : $this->fontOptions['valign']\n ];\n }", "public function setOptions(array $options)\r\n\t{\r\n\t\t$this->options = $options;\r\n\t}", "public function setOptions(array $options): void\n {\n foreach ($options as $key => $value) {\n $this->setOption($key, $value);\n }\n }", "public function setOptions(array $options) { \n if (!is_array($options)) throw new App_Loader_Autoloader_Exception('Invalid options passed to Fooup Autoloader',500); \n if (isset($options['includeFile']) && mb_strlen($options['includeFile'])>0) $this->_options['includeFile'] = $options['includeFile']; \n if (isset($options['namespaces']) && is_array($options['namespaces'])>0) $this->_options['namespaces'] = $options['namespaces']; \n }", "public function setOptions(array $_options)\n {\n $this->options = $_options;\n }", "public function setMainConfiguration(array $options);", "public function setOptions( array $options = array() ) {\n\n // Mix-in defaults.\n $options = \\RWC\\Utility::get_options( $options, [\n 'apiKey' => null\n ] );\n\n $this->setApiKey( $options[ 'apiKey' ] );\n }", "public function set_options_filter() {\n\t\t/**\n\t\t * Filter the plugin options.\n\t\t *\n\t\t * @since 10.0.0\n\t\t *\n\t\t * @return array\n\t\t */\n\t\t$config = apply_filters( 'gu_set_options', [] );\n\n\t\t/**\n\t\t * Filter the plugin options.\n\t\t *\n\t\t * @return null|array\n\t\t */\n\t\t$config = empty( $config ) ? apply_filters_deprecated( 'github_updater_set_options', [ [] ], '6.1.0', 'gu_set_options' ) : $config;\n\n\t\tforeach ( array_keys( self::$git_servers ) as $git ) {\n\t\t\tunset( $config[ \"{$git}_access_token\" ], $config[ \"{$git}_enterprise_token\" ] );\n\t\t}\n\n\t\tif ( ! empty( $config ) ) {\n\t\t\t$config = $this->sanitize( $config );\n\t\t\tself::$options = array_merge( get_site_option( 'git_updater' ), $config );\n\t\t\tupdate_site_option( 'git_updater', self::$options );\n\t\t}\n\t}", "public function setupOptions()\n {\n $this->addTaskAction(new Action('test', 't', 'Test action'));\n }", "protected function configure($options = array(), $attributes = array())\r\n\t{\r\n\t\t$this->addOption('value');\r\n\t}", "public function setOptions(array $options)\n {\n // set topic and gridId if namespace is defined\n if (isset($options['namespace'])) {\n $this->setTopic($options['namespace'] . '.form');\n $this->setAttrib('gridId', $options['namespace'] . '.instance');\n unset($options['namespace']);\n }\n\n parent::setOptions($options);\n }", "public function options(array $options);", "protected function set_options( array $options ) {\n\n $this->options = array_merge(\n $this->options,\n $options\n );\n\n }", "protected function setUp(Config\\Options $options): void\n {\n // can be used in child classes to extract and validate config settings\n }" ]
[ "0.7753073", "0.65544134", "0.64637095", "0.62480843", "0.6239767", "0.6185608", "0.61761826", "0.604455", "0.6002066", "0.59947944", "0.59359074", "0.5933925", "0.59324235", "0.5923187", "0.59125334", "0.5909761", "0.59046334", "0.58950865", "0.58893365", "0.58893365", "0.5885772", "0.588415", "0.58443046", "0.58401805", "0.58237815", "0.5814185", "0.5811025", "0.5786824", "0.57670474", "0.5763395", "0.5739699", "0.5732316", "0.5732316", "0.56887877", "0.56887877", "0.56887877", "0.56887877", "0.56887877", "0.56887877", "0.56887877", "0.56887877", "0.5669067", "0.56667584", "0.56601495", "0.56530654", "0.56349856", "0.5582526", "0.5574723", "0.55660707", "0.5564303", "0.5558731", "0.55473834", "0.55440646", "0.55352783", "0.5533803", "0.55274063", "0.5501192", "0.5487785", "0.5485232", "0.54734963", "0.54721415", "0.545819", "0.54553896", "0.5451786", "0.5439384", "0.54359764", "0.54359764", "0.54189324", "0.540185", "0.5400826", "0.5391842", "0.5390378", "0.5389884", "0.5389623", "0.53713804", "0.53637767", "0.5363272", "0.53598654", "0.53433204", "0.53424984", "0.5339178", "0.5339178", "0.5339178", "0.5339178", "0.5339178", "0.5338993", "0.53345895", "0.53319746", "0.5331901", "0.53228325", "0.531067", "0.53034645", "0.530159", "0.5299963", "0.5295483", "0.5293521", "0.52909863", "0.5286545", "0.52774876", "0.5275666" ]
0.75497925
1
Uses the Tidy Configuration to run Tidy's cleanRepair method, if available.
Использует конфигурацию Tidy для запуска метода cleanRepair Tidy, если он доступен.
function tidyClean() { if(!class_exists('tidy')){ if(function_exists('tidy_parse_string')){ tidy_set_encoding("{$this->_options["Encoding"]}"); foreach($this->_tidy_config as $k => $v) { tidy_setopt($k, $v); } tidy_parse_string($this->_html); tidy_clean_repair(); $this->_html = tidy_get_output(); } else { error_log("Tidy is not supported on this platform. Basic Cleaning is applied."); } } else { $tidy = new tidy; $tidy -> parseString($this->_html, $this->_tidy_config, "{$this->_options["Encoding"]}"); $tidy -> cleanRepair(); $this -> html = $tidy; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanRepair() {}", "function tidy_clean_repair(tidy $object) {}", "function __setTidyConfig() \n { \n if($this->_options[\"IsWord\"]){ \n $this->_tidy_config['word-2000'] = true; \n $this->_tidy_config['drop-proprietary-attributes'] = true; \n } \n else { \n $this->_tidy_config['word-2000'] = false; \n } \n if($this->_options[\"OutputXHTML\"]) { \n $this->_options[\"UseTidy\"] = true; \n $this->_tidy_config['output-xhtml'] = true; \n } \n else { \n $this->_tidy_config['output-xhtml'] = false; \n } \n }", "function tidy_repair_file($filename, $config = null, $encoding = null, $use_include_path = false) {}", "public function _tidy_cleanup_callback($text = '')\n {\n if ( ! class_exists('tidy') || ! extension_loaded('tidy')) {\n return $text;\n }\n $tidy_default_config = [\n 'alt-text' => '',\n 'output-xhtml' => true,\n ];\n $tidy = new tidy();\n $tidy->parseString($text, $this->_TIDY_CONFIG ?: $tidy_default_config, conf('charset'));\n $tidy->cleanRepair();\n return $tidy;\n }", "private function htmltidy_php() {\r\n\t\t$this->logMsg(\"=== htmltidy_php ===\");\r\n\t\tif(!is_callable('tidy_parse_string')) {\r\n\t\t\t$this->logMsg('tidy_parse_string() is not callable! Maybe the tidy extension is not installed.');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// added (2011-06-29)\r\n\t\tif($this->WET === \"WET\" || $this->config['WET'] === \"WET\") {\r\n\t\t\t$this->config['htmltidy']['anchor-as-name'] = 0;\r\n\t\t}\r\n\t\tReTidy::set_HTML5();\r\n\t\t//ReTidy::tidy_comments();\r\n\t\tReTidy::encode_character_entities_in_comments();\r\n\t\t$tidy = tidy_parse_string($this->code, $this->config['htmltidy'], $this->config['htmltidy']['input-encoding']);\r\n\t\t//var_dump($tidy); // tidy error reporting\r\n\t\tif(!$tidy) {\r\n\t\t\t$this->logMsg('tidy_parse_string() failed!');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(!$tidy->cleanRepair()) {\r\n\t\t\t$this->logMsg('$tidy->cleanRepair() failed!');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$this->logMsg('Status: '. $tidy->getStatus() . \"\\nErrors: \" . tidy_error_count($tidy) . \"\\nWarnings: \" . tidy_warning_count($tidy));\r\n\t\tif($this->config['show_tidy_errors']) {\r\n\t\t\t$this->logMsg(\"--- Error buffer --- \\n\" . $tidy->errorBuffer . \"\\n --- Error buffer end ---\");\r\n\t\t}\r\n\t\t$this->code = tidy_get_output($tidy);\r\n\t\tif(!$this->code) {\r\n\t\t\t$this->logMsg('Warning! HTML Tidy output is empty.');\r\n\t\t}\r\n\t\t// perhaps we should just say if not utf8?\r\n\t\tif(($this->config['encoding'] === \"iso-8859-1\" ||\r\n\t\t$this->config['encoding'] === \"us-ascii\" ||\r\n\t\t$this->config['encoding'] === \"windows-1252\") && $this->config['do_not_encode_character_entities'] !== true) {\r\n\t\t\tReTidy::encode_character_entities();\r\n\t\t}\r\n\t\t// HTML5 specific fix (tidy and basically everything else do not support HTML5)\r\n\t\t//var_dump($this->config['HTML5']);\r\n\t\t//var_dump($this->config);\r\n\t\t//var_dump(ReTidy::get_HTML5());\r\n\t\tif(ReTidy::get_HTML5()) {\r\n\t\t\t//print(\"here--4300--2\");\r\n\t\t\t$this->code = ReTidy::str_replace_first('<meta />', '<meta charset=\"' . $this->config['encoding'] . '\" />', $this->code);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "function cleanup($html, $options = null) \n { \n if(isset($options) && is_array($options)){ \n $this->setOptions($options); \n } \n $this->_html = \"{$html}\"; \n\n if($this->_options['UseTidy'] && $this->_options['TidyBefore']){ \n $this->tidyClean(); \n } \n\n // Remove escape slashes \n $this->_html = stripslashes($this -> _html); \n\n if($this->_options['CleaningMethod']['tags'] == \"whitelist\"){ \n // Trim everything before body tag, leaving possible body attributes \n if(preg_match(\"/<body/i\", \"{$this -> _html}\")){ \n $this -> html = stristr($this -> _html, \"<body\"); \n } \n\n // strip tags, still leaving attributes, second variable is allowed tags \n $this->_html = strip_tags($this->_html, $this->_tag_whitelist); \n } \n\n if($this->_options['RemoveStyles']){ \n // Remove class and style attributes \n $this->removeBlacklistedAttributes(\"class|style\"); \n } \n\n if($this->_options['IsWord']){ \n $this->removeBlacklistedAttributes(\"lang|[ovwxp]:\\w+\"); \n } \n\n if($this->_options['CleaningMethod']['attributes'] == \"blacklist\"){ \n if(!empty ($this->_attrib_blacklist)){ \n $this->removeBlacklistedAttributes($this->_attrib_blacklist); \n } \n } \n\n if($this->_options['Optimize']){ \n $repl = 1; \n while($repl){ \n $repl = 0; \n foreach($this->_cleanup_tags as $tag){ \n // Strip empty inline tags \n $this -> _html = preg_replace(\"/<($tag)[^>]*>[\\s]*([(&nbsp;)]*)[\\s]*<\\/($tag)>/i\",\"\\\\2\", $this -> _html,-1,$count); \n $repl += $count; \n\n // Merge inline tags \n $this -> _html = preg_replace(\"/<\\/($tag)[^>]*>[\\s]*([(&nbsp;)]*)[\\s]*<($tag)>/i\",\"\\\\2\", $this -> _html,-1,$count); \n $repl += $count; \n } \n } \n\n // Drop empty paragraph tags \n if($this->_options['DropEmptyParas']){ \n $this -> _html = preg_replace('/<(p|h[1-6]{1})([^>]*)>[\\s]*[(&nbsp;)]*[\\s]*<\\/(p|h[1-6]{1})>/i',\"\\r\\n\", $this -> _html); \n } \n\n // Trim extra spaces only if tidy is not set to indent \n if(!$this->_tidy_config['indent']){ \n // Trim extra spaces between words \n $this -> _html = preg_replace('/([^<>])[\\s]+([^<>])/i',\"\\\\1 \\\\2\", $this -> _html); \n\n // Trim extra spaces before tags \n $this -> _html = preg_replace('/[\\n|\\r|\\r\\n|][\\n|\\r|\\r\\n|]+</i',\"<\", $this -> _html); \n } \n } \n\n if($this->_options['DropEmptyParas'] && !$this->_options['Optimize']){ \n $this -> _html = preg_replace('/<(p|h[1-6]{1})([^>]*)>[\\s]*[(&nbsp;)]*[\\s]*<\\/(p|h[1-6]{1})>/i',\"\\r\\n\", $this -> _html); \n } \n\n if($this->_options['FillEmptyTableCells']) { \n $this -> _html = preg_replace(\"/<td([^>]*)>[\\s]*<\\/td>/i\", \"<td\\\\1>&nbsp;</td>\", $this -> _html); \n } \n\n if($this->_options['Compress']){ \n // Trim spaces after tags \n $this -> _html = preg_replace('/>[\\s]+/',\">\", $this -> _html); \n\n // Trim spaces before end tags \n $this -> _html = preg_replace('/[\\s]+<\\//',\"</\", $this -> _html); \n\n // Trim spaces before tags \n $this -> _html = preg_replace('/[\\s]+</',\"<\", $this -> _html); \n\n // Trim extra spaces between words \n $this -> _html = preg_replace('/([^<>])[\\s]+([^<>])/',\"\\\\1 \\\\2\", $this -> _html); \n } \n\n if($this->_options['UseTidy'] && !$this->_options['TidyBefore']){ \n $this->tidyClean(); \n } \n return $this->output(\"{$this->_html}\"); \n }", "public static function additionalCleaning() {\n \n }", "private function executeTidy($page){\n\t\t$GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_tidier_error','error_pid = '.intval($page['uid']));\n\t\t\n\t\t// build the command\n\t\t$search =array(\n\t\t\t'###TEMP_RESULT###',\n\t\t\t'###TEMP_FILE###', \n\t\t\t'###TIDY_ACCESS###',\n\t\t);\n\t\t$replace = array(\n\t\t\t$this->tempFilename($page['uid'], 'result'),\n\t\t\t$this->tempFilename($page['uid'], 'file'),\n\t\t\t(intval($this->conf['tidyAccess']) > 0 ? intval($this->conf['tidyAccess']) : 2),\n\t\t);\n\t\t$cmd = str_replace($search, $replace, $this->conf['tidyCommand']);\n\t\t\n\t\t// this has to be cleaned up, some error handling!\n\t\t// get content\n\t\t$content = t3lib_div::getURL($this->getDomain() . '/?id='.intval($page['uid']));\n\t\tfile_put_contents($this->tempFilename($page['uid'], 'file'), $content);\n\t\t\n\t\t// exec tidy\n\t\texec($cmd);\n\t\t\n\t\t// parse tidy \n\t\t$this->parseTidy($page);\n\t\t// remove html file\n\t\t@unlink($this->tempFilename($page['uid'], 'file'));\n\t\t\n\t\t\n\t}", "public function process($html, $url, $smart_tidy=true) {\r\n\t\t$this->reset();\r\n\t\t\r\n\t\t// extract host name\r\n\t\t$host = @parse_url($url, PHP_URL_HOST);\r\n\t\tif (!($this->config = SiteConfig::build($host))) {\r\n\t\t\t// no match, so use defaults\r\n\t\t\t$this->config = new SiteConfig();\r\n\t\t}\r\n\t\t// store copy of config in our static cache array in case we need to process another URL\r\n\t\tSiteConfig::add_to_cache($host, $this->config);\r\n\t\t\r\n\t\t// use tidy (if it exists)?\r\n\t\t// This fixes problems with some sites which would otherwise\r\n\t\t// trouble DOMDocument's HTML parsing. (Although sometimes it\r\n\t\t// makes matters worse, which is why you can override it in site config files.)\r\n\t\t$tidied = false;\r\n\t\tif ($this->config->tidy && function_exists('tidy_parse_string') && $smart_tidy) {\r\n\t\t\t$this->debug('Using Tidy');\r\n\t\t\t$tidy = tidy_parse_string($html, self::$tidy_config, 'UTF8');\r\n\t\t\tif (tidy_clean_repair($tidy)) {\r\n\t\t\t\t$original_html = $html;\r\n\t\t\t\t$tidied = true;\r\n\t\t\t\t$html = $tidy->value;\r\n\t\t\t}\r\n\t\t\tunset($tidy);\r\n\t\t}\r\n\t\t\r\n\t\t// load and parse html\r\n\t\t$this->readability = new Readability($html, $url);\t\t\r\n\t\t\r\n\t\t// we use xpath to find elements in the given HTML document\r\n\t\t// see http://en.wikipedia.org/wiki/XPath_1.0\r\n\t\t$xpath = new DOMXPath($this->readability->dom);\r\n\r\n\t\t// strip elements (using xpath expressions)\r\n\t\tforeach ($this->config->strip as $pattern) {\r\n\t\t\t$elems = @$xpath->query($pattern, $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' elements (strip)');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip elements (using id and class attribute values)\r\n\t\tforeach ($this->config->strip_id_or_class as $string) {\r\n\t\t\t$string = strtr($string, array(\"'\"=>'', '\"'=>''));\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(@class, '$string') or contains(@id, '$string')]\", $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' elements (strip_id_or_class)');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip images (using src attribute values)\r\n\t\tforeach ($this->config->strip_image_src as $string) {\r\n\t\t\t$string = strtr($string, array(\"'\"=>'', '\"'=>''));\r\n\t\t\t$elems = @$xpath->query(\"//img[contains(@src, '$string')]\", $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' image elements');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip elements using Readability.com and Instapaper.com ignore class names\r\n\t\t// .entry-unrelated and .instapaper_ignore\r\n\t\t// See https://www.readability.com/publishers/guidelines/#view-plainGuidelines\r\n\t\t// and http://blog.instapaper.com/post/730281947\r\n\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' entry-unrelated ') or contains(concat(' ',normalize-space(@class),' '),' instapaper_ignore ')]\", $this->readability->dom);\r\n\t\t// check for matches\r\n\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t$this->debug('Stripping '.$elems->length.' .entry-unrelated,.instapaper_ignore elements');\r\n\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// strip elements that contain style=\"display: none;\"\r\n\t\t$elems = @$xpath->query(\"//*[contains(@style,'display:none')]\", $this->readability->dom);\r\n\t\t// check for matches\r\n\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t$this->debug('Stripping '.$elems->length.' elements with inline display:none style');\r\n\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// try to get title\r\n\t\tforeach ($this->config->title as $pattern) {\r\n\t\t\t$elems = @$xpath->evaluate($pattern, $this->readability->dom);\r\n\t\t\tif (is_string($elems)) {\r\n\t\t\t\t$this->debug('Title expression evaluated as string');\r\n\t\t\t\t$this->title = trim($elems);\r\n\t\t\t\tbreak;\r\n\t\t\t} elseif ($elems instanceof DOMNodeList && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Title matched');\r\n\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// try to get body\r\n\t\tforeach ($this->config->body as $pattern) {\r\n\t\t\t$elems = @$xpath->query($pattern, $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Body matched');\r\n\t\t\t\tif ($elems->length == 1) {\t\t\t\t\r\n\t\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->body = $this->readability->dom->createElement('div');\r\n\t\t\t\t\t$this->debug($elems->length.' body elems found');\r\n\t\t\t\t\tforeach ($elems as $elem) {\r\n\t\t\t\t\t\t$isDescendant = false;\r\n\t\t\t\t\t\tforeach ($this->body->childNodes as $parent) {\r\n\t\t\t\t\t\t\tif ($this->isDescendant($parent, $elem)) {\r\n\t\t\t\t\t\t\t\t$isDescendant = true;\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 ($isDescendant) {\r\n\t\t\t\t\t\t\t$this->debug('Element is child of another body element, skipping.');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t$this->readability->prepArticle($elem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$this->debug('Element added to body');\r\n\t\t\t\t\t\t\t$this->body->appendChild($elem);\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}\t\t\r\n\t\t\r\n\t\t// auto detect?\r\n\t\t$detect_title = $detect_body = false;\r\n\t\t// detect title?\r\n\t\tif (!isset($this->title)) {\r\n\t\t\tif (empty($this->config->title) || (!empty($this->config->title) && $this->config->autodetect_on_failure)) {\r\n\t\t\t\t$detect_title = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// detect body?\r\n\t\tif (!isset($this->body)) {\r\n\t\t\tif (empty($this->config->body) || (!empty($this->config->body) && $this->config->autodetect_on_failure)) {\r\n\t\t\t\t$detect_body = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check for hNews\r\n\t\tif ($detect_title || $detect_body) {\r\n\t\t\t// check for hentry\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' hentry ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('hNews: found hentry');\r\n\t\t\t\t$hentry = $elems->item(0);\r\n\t\t\t\t\r\n\t\t\t\tif ($detect_title) {\r\n\t\t\t\t\t// check for entry-title\r\n\t\t\t\t\t$elems = @$xpath->query(\".//*[contains(concat(' ',normalize-space(@class),' '),' entry-title ')]\", $hentry);\r\n\t\t\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t\t\t$this->debug('hNews: found entry-title');\r\n\t\t\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\t\t\t$detect_title = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// check for entry-content.\r\n\t\t\t\t// according to hAtom spec, if there are multiple elements marked entry-content,\r\n\t\t\t\t// we include all of these in the order they appear - see http://microformats.org/wiki/hatom#Entry_Content\r\n\t\t\t\tif ($detect_body) {\r\n\t\t\t\t\t$elems = @$xpath->query(\".//*[contains(concat(' ',normalize-space(@class),' '),' entry-content ')]\", $hentry);\r\n\t\t\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t\t\t$this->debug('hNews: found entry-content');\r\n\t\t\t\t\t\tif ($elems->length == 1) {\r\n\t\t\t\t\t\t\t// what if it's empty? (some sites misuse hNews - place their content outside an empty entry-content element)\r\n\t\t\t\t\t\t\t$e = $elems->item(0);\r\n\t\t\t\t\t\t\tif (($e->tagName == 'img') || (trim($e->textContent) != '')) {\r\n\t\t\t\t\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$detect_body = false;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$this->debug('hNews: skipping entry-content - appears not to contain content');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset($e);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$this->body = $this->readability->dom->createElement('div');\r\n\t\t\t\t\t\t\t$this->debug($elems->length.' entry-content elems found');\r\n\t\t\t\t\t\t\tforeach ($elems as $elem) {\r\n\t\t\t\t\t\t\t\t$isDescendant = false;\r\n\t\t\t\t\t\t\t\tforeach ($this->body->childNodes as $parent) {\r\n\t\t\t\t\t\t\t\t\tif ($this->isDescendant($parent, $elem)) {\r\n\t\t\t\t\t\t\t\t\t\t$isDescendant = true;\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ($isDescendant) {\r\n\t\t\t\t\t\t\t\t\t$this->debug('Element is child of another body element, skipping.');\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t\t\t$this->readability->prepArticle($elem);\r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$this->debug('Element added to body');\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$this->body->appendChild($elem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$detect_body = false;\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\t// check for elements marked with instapaper_title\r\n\t\tif ($detect_title) {\r\n\t\t\t// check for instapaper_title\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' instapaper_title ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('title found (.instapaper_title)');\r\n\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\t$detect_title = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// check for elements marked with instapaper_body\r\n\t\tif ($detect_body) {\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' instapaper_body ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('body found (.instapaper_body)');\r\n\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t}\r\n\t\t\t\t$detect_body = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// still missing title or body, so we detect using Readability\r\n\t\tif ($detect_title || $detect_body) {\r\n\t\t\t$this->debug('Using Readability');\r\n\t\t\t// clone body if we're only using Readability for title (otherwise it may interfere with body element)\r\n\t\t\tif (isset($this->body)) $this->body = $this->body->cloneNode(true);\r\n\t\t\t$success = $this->readability->init();\r\n\t\t}\r\n\t\tif ($detect_title) {\r\n\t\t\t$this->debug('Detecting title');\r\n\t\t\t$this->title = $this->readability->getTitle()->textContent;\r\n\t\t}\r\n\t\tif ($detect_body && $success) {\r\n\t\t\t$this->debug('Detecting body');\r\n\t\t\t$this->body = $this->readability->getContent();\r\n\t\t\tif ($this->body->childNodes->length == 1 && $this->body->firstChild->nodeType === XML_ELEMENT_NODE) {\r\n\t\t\t\t$this->body = $this->body->firstChild;\r\n\t\t\t}\r\n\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\tif ($this->config->prune) {\r\n\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isset($this->body)) {\r\n\t\t\t// remove scripts\r\n\t\t\t$this->readability->removeScripts($this->body);\r\n\t\t\t$this->success = true;\r\n\t\t}\r\n\t\t\r\n\t\t// if we've had no success and we've used tidy, there's a chance\r\n\t\t// that tidy has messed up. So let's try again without tidy...\r\n\t\tif (!$this->success && $tidied && $smart_tidy) {\r\n\t\t\t$this->debug('Trying again without tidy');\r\n\t\t\t$this->process($original_html, $url, false);\r\n\t\t}\r\n\r\n\t\treturn $this->success;\r\n\t}", "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('admincp.component_controller_maintain_reparser_clean')) ? eval($sPlugin) : false);\n\t}", "public function markClean();", "function MaintainCleanCache()\n{\n\tglobal $context, $txt;\n\n\t// Just wipe the whole cache directory!\n\tclean_cache();\n\tclean_cache('js');\n\tclean_cache('css');\n\n\t$context['maintenance_finished'] = $txt['maintain_cache'];\n}", "public function isClean();", "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('mobiletemplate.component_controller_admincp_managestyles_clean')) ? eval($sPlugin) : false);\n\t}", "public function clean() {\n\t\tglobal $warnings;\n\n\t\t// it's not at CBW\n\t\tif ($this->location != 1) {\n\t\t\t$warnings[2][] = \"keg \" . $this->id . \"_\" . $this->size . \" was not marked as being at HQ\";\n\t\t\t$this->location = 1;\n\t\t}\n\t\t// it had beer in it\n\t\tif ($this->beer != 0) {\n\t\t\t$warnings[2][] = \"keg \" . $this->id . \"_\" . $this->size . \" was not marked as empty\";\n\t\t\t$this->beer = 0;\n\t\t}\n\t\t// it's not dirty\n\t\tif ($this->status != 1) {\n\t\t\t$warnings[2][] = \"keg \" . $this->id . \"_\" . $this->size . \" was not marked as dirty\";\n\t\t}\n\n\t\t$this->status = 2;\n\t\t$this->update();\n\t}", "protected function _clean()\n {\n if ($this->_defaultOptions['clean'] === FALSE) {\n return;\n }\n\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'remove unused markers',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n $this->_cleanMarkers('loop');\n $this->_cleanMarkers('optional');\n\n $this->DISPLAY = preg_replace(\n $this->_contentMarkers,\n '',\n $this->DISPLAY\n );\n }", "abstract function clean ();", "public static function clean()\n\t{\n\t}", "public function clean() {}", "public function doXHTML_cleaning() {}", "public function cleanup()\n {\n if ($this->catalogRule != '-') {\n $this->deleteAllCatalogRule->run();\n }\n }", "public function clean()\n {\n (($sPlugin = Phpfox_Plugin::get('donation.component_controller_index_clean')) ? eval($sPlugin) : false);\n }", "public function withTidy(array $config = [], string $encoding = 'utf8'): self\n\t{\n\t\t$this->tidyConfig = array_merge([\n\t\t\t'clean' => 'yes',\n\t\t\t'output-html' => 'yes',\n\t\t\t'wrap' => 0,\n\t\t], $config);\n\n\t\t$this->tidyEncoding = $encoding;\n\n\t\treturn $this;\n\t}", "protected function parentCleanup() {\n }", "public function cleanup() {\n\t\t$this->status = new WPSEO_Import_Status( 'cleanup', false );\n\n\t\tif ( ! $this->detect_helper() ) {\n\t\t\treturn $this->status;\n\t\t}\n\n\t\t$this->wpdb->query( \"DELETE FROM {$this->wpdb->postmeta} WHERE meta_key LIKE '_aioseop_%'\" );\n\n\t\treturn $this->status->set_status( true );\n\t}", "function sanitizePassword() {\n // If there is a password confirmation we put it to the checker, too\n $passCheckerInput = (strlen($this->passwordConf) > 0) ?\n array($this->password, $this->passwordConf) : $this->password;\n $passwordChecker = new PasswordChecker($passCheckerInput);\n if ($passwordChecker->getRelevance()) {\n $this->password = htmlspecialchars($this->password);\n } else {\n die(\"Error. Check your form data\");\n }\n }", "public function cleanup() {\n\n\t\t$fs = new \\Symfony\\Component\\Filesystem\\Filesystem();\n\n\t\t$challange_dir = EE_ROOT_DIR . '/services/nginx-proxy/html/.well-known';\n\t\t$challange_rule_file = EE_ROOT_DIR . '/services/nginx-proxy/vhost.d/default';\n\t\tif ( $fs->exists( $challange_rule_file ) ) {\n\t\t\t$fs->remove( $challange_rule_file );\n\t\t}\n\t\tif ( $fs->exists( $challange_dir ) ) {\n\t\t\t$fs->remove( $challange_dir );\n\t\t}\n\t}", "abstract public function clean();", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "function tidy_repair_string($data, $config = null, $encoding = null) {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function fix() {}", "public function fix() {}", "public function clean() {\n\t\t\n\t}", "public static function inst() {\n\t\tif (class_exists('HTMLPurifier')) return new PurifierHTMLCleaner();\n\t\telseif (class_exists('tidy')) return new TidyHTMLCleaner();\n\t}", "public function clean();", "public function clean();", "public function clean();", "public function clean();", "public function clean();", "public function clean(){\n\n\t\t(($sPlugin = Phpfox_Plugin::get('cars.component_controller_admincp_index_clean')) ? eval($sPlugin) : false);\n\n\t}", "protected function cleanUp()\n\t{\n\t\t// clean\n\t\t$this->killExceededTasks();\n\t\t$this->cleanHistory();\n\t}", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "private function cleanUp() : void\n {\n\n // For every line.\n foreach ($this->contents as $lineId => $line) {\n\n // Test.\n preg_match('/( +)(\\*)( )(.+)/', $line, $output);\n\n // First option - this is proper comment line.\n // Second option - sth is wrong - ignore this line.\n if (isset($output[4]) === true && empty($output[4]) === false) {\n $this->contents[$lineId] = $output[4];\n } else {\n unset($this->contents[$lineId]);\n }\n }\n }", "public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}", "private function clean() {\n\t\t$types = ['.aux', '.fdb_latexmk', '.fls', '.log', '.out', '.tex', '.toc'];\n\t\t$s = '';\n\t\tforeach (scandir($this -> directory) as $file) {\n\t\t\tif ($file === '.' || $file === '..') continue;\n\t\t\tforeach ($types as $t) {\n\t\t\t\t$extension = substr($file, 0-strlen($t));\n\t\t\t\tif (in_array($extension, $types) && file_exists($this -> directory . '/' . $file)) {\n\t\t\t\t\tunlink($this -> directory . '/' . basename($file));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function cleanup()\n {\n $db = eZDB::instance();\n $db->begin();\n $db->query( \"DELETE FROM ezsphinx\" );\n $db->query( \"DELETE FROM ezsphinx_pathnodes\" );\n $db->commit();\n }", "function cleanup_tags() {\n $sql = '\n DELETE FROM\n tags\n WHERE NOT EXISTS (\n SELECT NULL FROM tips_tags\n WHERE\n tags.id = tips_tags.tag_id\n )';\n \n return $this->prep_and_exec($sql);\n }", "public function apply($str)\n\t{\n\t\tif (extension_loaded('tidy') && class_exists('tidy'))\n\t\t{\n\t\t\t$config = array(\n\t\t\t\t'doctype' => 'strict',\n\t\t\t\t'drop-proprietary-attributes' => true,\n\t\t\t\t'drop-font-tags' => true,\n\t\t\t\t'escape-cdata' => true,\n\t\t\t\t'indent' => false,\n\t\t\t\t'join-classes' => false,\n\t\t\t\t'join-styles' => true,\n\t\t\t\t'lower-literals' => true,\n\t\t\t\t'output-xhtml' => true,\n\t\t\t\t'show-body-only' => true,\n\t\t\t\t'wrap' => 80\n\t\t\t);\n\t\t\t\n\t\t\t$str = '<p>tt</p>'.$str; // Fixes a big issue\n\t\t\t\n\t\t\t$tidy = new tidy;\n\t\t\t$tidy->parseString($str, $config, 'utf8');\n\t\t\t$tidy->cleanRepair();\n\t\t\t\n\t\t\t$str = (string) $tidy;\n\t\t\t\n\t\t\t$str = preg_replace('#^<p>tt</p>\\s?#','',$str);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$str = $this->miniTidy($str);\n\t\t}\n\t\t\n\t\t# Removing open comments, open CDATA and processing instructions\n\t\t$str = preg_replace('%<!--.*?-->%msu','',$str);\n\t\t$str = str_replace('<!--','',$str);\n\t\t$str = preg_replace('%<!\\[CDATA\\[.*?\\]\\]>%msu','',$str);\n\t\t$str = str_replace('<![CDATA[','',$str);\n\t\t\n\t\t# Transform processing instructions\n\t\t$str = str_replace('<?','&gt;?',$str);\n\t\t$str = str_replace('?>','?&lt;',$str);\n\t\t\n\t\t$str = html::decodeEntities($str,true);\n\t\t\n\t\t$this->content = '';\n\t\txml_parse($this->parser,'<all>'.$str.'</all>');\n\t\treturn $this->content;\n\t}", "function tidy_str($str)\n\t{\n\t\tglobal $_CONFIG;\n\t\tif ($_CONFIG->tidy_html__or(true)) {\n\t\t\t$tidy = new tidy();\n\t\t\t$tidy->parseString($str, $_CONFIG->tidy_config__or(array()));\n\t\t\tif ($tidy->cleanRepair()) {\n\t\t\t\tfb(tidy_get_error_buffer($tidy), 'Tidy Errors');\n\t\t\t\treturn (string)$tidy;\n\t\t\t}\n\t\t}\n\t\treturn $str;\n\t}", "public function cleanup(bool $forceClean=FALSE){\n\t\tif(!$forceClean && rand(0,10) > 5) return;\n\t\tif ($handle = opendir($this->chunkPath)) {\n\t\t\twhile (FALSE !== ($file = readdir($handle))) {\n\t\t\t\t// relative dirs\n\t\t\t\tif ('.' === $file) continue;\n\t\t\t\tif ('..' === $file) continue;\n\t\t\t\t// directories/non-files\n\t\t\t\tif(!is_file($file)) continue;\n\t\t\t\t// non-chunks\n\t\t\t\tif(substr($file, strlen($this->partFileExt) * -1) !== $this->partFileExt) continue;\n\t\t\t\t// check modified time, to prevent current chunks from being removed\n\t\t\t\t$time = filemtime($this->chunkPath.'/'.$file);\n\t\t\t\tif($time && time() - $time > $this->chunkMaxAge){ // 4hr\n\t\t\t\t\tunlink($this->chunkPath.'/'.$file);\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($handle);\n\t\t}\n\t}", "function tidy_diagnose(tidy $object) {}", "public function cleanup() {\n\t\t//TODO\n\t}" ]
[ "0.69163716", "0.6459631", "0.5992639", "0.5587093", "0.5527182", "0.5481099", "0.54701006", "0.54606694", "0.54170126", "0.5328901", "0.51956946", "0.51528555", "0.50111246", "0.50066435", "0.48950356", "0.48489368", "0.48452532", "0.48368126", "0.48112518", "0.47943094", "0.47892353", "0.47765455", "0.47687688", "0.47499746", "0.47267494", "0.47146657", "0.4708404", "0.47060272", "0.4701051", "0.46971104", "0.46971104", "0.46971104", "0.46971104", "0.46971104", "0.46971104", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.4697087", "0.46955892", "0.4695536", "0.4695536", "0.4695536", "0.4695536", "0.4695536", "0.4695536", "0.4695536", "0.46942997", "0.46941808", "0.4692592", "0.46620336", "0.46592128", "0.46592128", "0.46592128", "0.46592128", "0.46592128", "0.46508873", "0.46506763", "0.46493906", "0.46493906", "0.46493906", "0.4621881", "0.46207413", "0.46092746", "0.45966047", "0.45919508", "0.45905918", "0.45889118", "0.45868987", "0.45828402", "0.45802101" ]
0.7230275
0
Cleans the provided html snippet based on the configuation options
Очищает предоставленный html-фрагмент в соответствии с настройками конфигурации
function cleanup($html, $options = null) { if(isset($options) && is_array($options)){ $this->setOptions($options); } $this->_html = "{$html}"; if($this->_options['UseTidy'] && $this->_options['TidyBefore']){ $this->tidyClean(); } // Remove escape slashes $this->_html = stripslashes($this -> _html); if($this->_options['CleaningMethod']['tags'] == "whitelist"){ // Trim everything before body tag, leaving possible body attributes if(preg_match("/<body/i", "{$this -> _html}")){ $this -> html = stristr($this -> _html, "<body"); } // strip tags, still leaving attributes, second variable is allowed tags $this->_html = strip_tags($this->_html, $this->_tag_whitelist); } if($this->_options['RemoveStyles']){ // Remove class and style attributes $this->removeBlacklistedAttributes("class|style"); } if($this->_options['IsWord']){ $this->removeBlacklistedAttributes("lang|[ovwxp]:\w+"); } if($this->_options['CleaningMethod']['attributes'] == "blacklist"){ if(!empty ($this->_attrib_blacklist)){ $this->removeBlacklistedAttributes($this->_attrib_blacklist); } } if($this->_options['Optimize']){ $repl = 1; while($repl){ $repl = 0; foreach($this->_cleanup_tags as $tag){ // Strip empty inline tags $this -> _html = preg_replace("/<($tag)[^>]*>[\s]*([(&nbsp;)]*)[\s]*<\/($tag)>/i","\\2", $this -> _html,-1,$count); $repl += $count; // Merge inline tags $this -> _html = preg_replace("/<\/($tag)[^>]*>[\s]*([(&nbsp;)]*)[\s]*<($tag)>/i","\\2", $this -> _html,-1,$count); $repl += $count; } } // Drop empty paragraph tags if($this->_options['DropEmptyParas']){ $this -> _html = preg_replace('/<(p|h[1-6]{1})([^>]*)>[\s]*[(&nbsp;)]*[\s]*<\/(p|h[1-6]{1})>/i',"\r\n", $this -> _html); } // Trim extra spaces only if tidy is not set to indent if(!$this->_tidy_config['indent']){ // Trim extra spaces between words $this -> _html = preg_replace('/([^<>])[\s]+([^<>])/i',"\\1 \\2", $this -> _html); // Trim extra spaces before tags $this -> _html = preg_replace('/[\n|\r|\r\n|][\n|\r|\r\n|]+</i',"<", $this -> _html); } } if($this->_options['DropEmptyParas'] && !$this->_options['Optimize']){ $this -> _html = preg_replace('/<(p|h[1-6]{1})([^>]*)>[\s]*[(&nbsp;)]*[\s]*<\/(p|h[1-6]{1})>/i',"\r\n", $this -> _html); } if($this->_options['FillEmptyTableCells']) { $this -> _html = preg_replace("/<td([^>]*)>[\s]*<\/td>/i", "<td\\1>&nbsp;</td>", $this -> _html); } if($this->_options['Compress']){ // Trim spaces after tags $this -> _html = preg_replace('/>[\s]+/',">", $this -> _html); // Trim spaces before end tags $this -> _html = preg_replace('/[\s]+<\//',"</", $this -> _html); // Trim spaces before tags $this -> _html = preg_replace('/[\s]+</',"<", $this -> _html); // Trim extra spaces between words $this -> _html = preg_replace('/([^<>])[\s]+([^<>])/',"\\1 \\2", $this -> _html); } if($this->_options['UseTidy'] && !$this->_options['TidyBefore']){ $this->tidyClean(); } return $this->output("{$this->_html}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function cleanHTML($content);", "protected function parseHtml() {\r\n\t\tif (is_array($this->cfg->html))\r\n\t\t\t$this->cfg->html = utils::render($this->cfg->html);\r\n\t}", "function tidyClean() \n { \n if(!class_exists('tidy')){ \n if(function_exists('tidy_parse_string')){ \n tidy_set_encoding(\"{$this->_options[\"Encoding\"]}\"); \n foreach($this->_tidy_config as $k => $v) { \n tidy_setopt($k, $v); \n } \n tidy_parse_string($this->_html); \n tidy_clean_repair(); \n $this->_html = tidy_get_output(); \n } \n else { \n error_log(\"Tidy is not supported on this platform. Basic Cleaning is applied.\"); \n } \n } \n else { \n $tidy = new tidy; \n $tidy -> parseString($this->_html, $this->_tidy_config, \"{$this->_options[\"Encoding\"]}\"); \n $tidy -> cleanRepair(); \n $this -> html = $tidy; \n } \n }", "function wpstart_sanitize_html($input)\n {\n return wp_kses_post(force_balance_tags($input));\n }", "function emarking_clean_question_html($html)\n{\n $question = get_string('question', 'mod_quiz');\n $html = preg_replace('/[\\n\\r]/', '', $html);\n $html = preg_replace('/<div class=\"state\">(.*?)<\\/div>/', '', $html);\n $html = preg_replace('/<div class=\"grade\">(.*?)<\\/div>/', '', $html);\n $html = preg_replace('/<div class=\"questionflag\">(.*?)<\\/div>/', '', $html);\n $html = preg_replace('/<h4 class=\"accesshide\">(.*?)<\\/h4>/', '', $html);\n $html = preg_replace('/<input type=\"hidden\"(.*?)>/', '', $html);\n $html = preg_replace('/<input type=\"radio\"(.*?)>/', '<input type=\"radio\">', $html);\n $html = preg_replace('/checked=\"checked\"/', '', $html);\n $html = preg_replace('/alt=\"[^\"]*\"/', '', $html);\n $html = preg_replace('/title=\"[^\"]*\"/', '', $html);\n $html = preg_replace('/class=\"texrender\"/', '', $html);\n $html = preg_replace('/<script type=\"math\\/tex\">(.*?)<\\/script>/', '', $html);\n $html = preg_replace('/class\\s*=\\s*\"(.*?)\"/', '', $html);\n $html = preg_replace('/style\\s*=\\s*\"(.*?)\"/', '', $html);\n $html = preg_replace('/<span\\s*>/', '', $html);\n $html = preg_replace('/<\\/span>/', '', $html);\n $html = preg_replace('/<label(.*?)>/', '', $html);\n $html = preg_replace('/<\\/label>/', '', $html);\n $html = preg_replace('/<a\\s+href\\s*=\\s*\"(.*?)\">(.*?)<\\/a>/', '$2', $html);\n $html = preg_replace('/id\\s*=\\s*\"(.*?)\"/', '', $html);\n $html = preg_replace('/<br>/', '', $html);\n $html = preg_replace('/<p(\\s*?)>/', '', $html);\n $html = preg_replace('/(<div\\s*>)+/', '<div>', $html);\n $html = preg_replace('/(<\\/div>)+/', '</div>', $html);\n $html = preg_replace('/<div>Sele(.*?)<\\/div>/', '', $html);\n $html = preg_replace('/<div(.*?)><h3(.*?)>'.$question.'\\s+(.*?)<\\/h3><\\/div>/', '<br/><p><b>$3</b></p>', $html);\n $html = preg_replace('/<tbody\\s*>/', '', $html);\n $html = preg_replace('/<\\/tbody>/', '', $html);\n $html = preg_replace('/<td(.*?)>(.*?)<\\/p><\\/td>/', '<td style=\"text-align:center;\" align=\"center\">$2</td>', $html);\n $html = preg_replace('/frame=\"border\"/', '', $html);\n $html = preg_replace('/border=\"\\d+\"/', 'border=\"1\"', $html);\n $html = preg_replace('/<table(.*?)>/', '<br/><table$1>', $html);\n $html = preg_replace('/<table(.*?)>/', '<br/><table$1>', $html);\n $html = preg_replace('/<div>(<input.*?)<\\/div>/', '<br/>$1', $html);\n return $html;\n}", "function cmh_validate_options($input) {\r\n\t // strip html from textboxes\r\n\t$input['textarea_one'] = wp_filter_nohtml_kses($input['textarea_one']); // Sanitize textarea input (strip html tags, and escape characters)\r\n\t$input['txt_one'] = wp_filter_nohtml_kses($input['txt_one']); // Sanitize textbox input (strip html tags, and escape characters)\r\n\treturn $input;\r\n}", "function sanitization() {\n genesis_add_option_filter( 'one_zero', GENESIS_SIMPLE_SETTINGS_FIELD,\n array(\n\n ) );\n genesis_add_option_filter( 'no_html', GENESIS_SIMPLE_SETTINGS_FIELD,\n array(\n\n ) );\n }", "protected function allow_html() {\n\t\tremove_filter( 'pre_term_description', 'wp_filter_kses' );\n\t\tremove_filter( 'term_description', 'wp_kses_data' );\n\n\t\tadd_filter( 'pre_term_description', 'wp_filter_post_kses' );\n\t}", "public function doXHTML_cleaning() {}", "public static function sanitizeHtml($raw_html)\n {\n try {\n $cache_dir = fn_get_cache_path(false) . 'html_purifier/';\n if (!is_dir($cache_dir)) {\n fn_mkdir($cache_dir);\n }\n\n $config_instance = \\HTMLPurifier_Config::createDefault();\n $config_instance->set('HTML.DefinitionID', PRODUCT_NAME . '_' . PRODUCT_VERSION);\n $config_instance->set('HTML.DefinitionRev', 1);\n $config_instance->set('Cache.SerializerPath', $cache_dir);\n $config_instance->set('Cache.SerializerPermissions', DEFAULT_DIR_PERMISSIONS);\n $config_instance->set('HTML.AllowedAttributes', [\n // general tags\n '*.class' => true,\n '*.id' => true,\n '*.href' => true,\n '*.target' => true,\n '*.style' => true,\n '*.title' => true,\n // img tags\n 'img.src' => true,\n 'img.width' => true,\n 'img.height' => true,\n 'img.alt' => true,\n // block placeholders in WYSIWYG\n 'hr.data-ca-object-key' => true,\n 'hr.data-ca-block-name' => true,\n ]);\n\n $config_instance->autoFinalize = false;\n\n /**\n * Allows to configure HTMLPurifier before it purifies given HTML.\n *\n * @param \\HTMLPurifier_Config $config_instance Instance of HTMLPurifier_Config\n * @param string $raw_html HTML to be purified\n */\n fn_set_hook('sanitize_html', $config_instance, $raw_html);\n\n /** @var \\HTMLPurifier_HTMLDefinition $html_definition */\n if ($html_definition = $config_instance->maybeGetRawHTMLDefinition()) {\n $html_definition->addAttribute('a',\n 'target',\n new \\HTMLPurifier_AttrDef_Enum(\n array('_blank', '_self', '_target', '_top')\n ));\n\n $html_definition->addAttribute('hr',\n 'data-ca-object-key',\n new \\HTMLPurifier_AttrDef_Text()\n );\n\n $html_definition->addAttribute('hr',\n 'data-ca-block-name',\n new \\HTMLPurifier_AttrDef_Text()\n );\n }\n\n $purifier_instance = \\HTMLPurifier::instance($config_instance);\n\n $html_purify = $purifier_instance->purify($raw_html);\n\n return html_entity_decode($html_purify, ENT_QUOTES, 'UTF-8');\n\n } catch (\\Exception $e) {\n throw new DeveloperException($e->getMessage());\n }\n }", "function clean_html($html)\r\n{\r\n\t$html = preg_replace('/<script\\b[^>]*>(.*?)<\\/script>/is', \"\", $html);\r\n\t$html = preg_replace('/<style\\b[^>]*>(.*?)<\\/style>/is', \"\", $html);\r\n\t$html = preg_replace('/<link \\b[^>]*>(.*?)/is', \"\", $html);\r\n\r\n\treturn $html;\r\n}", "protected function cleanup()\n {\n $this->internalInliner->setHTML('');\n $this->internalInliner->setCSS('');\n }", "protected function cleanHTML(string $html) : string\n {\n // $html = str_replace(\"\\n\", '', $html);\n for($i = 0; $i < 3; $i++) {\n $html = str_replace($this->prefixHTML, '', $html);\n $html = str_replace($this->postfixHTML, '', $html);\n $html = str_replace('<?xml version=\"1.0\" standalone=\"yes\"?>', '', $html);\n //remove white space\n $html = preg_replace('/\\s+/', ' ', $html);\n // $html = str_replace('> <', '><', $html);\n }\n\n return $html;\n }", "function acf_allow_unfiltered_html()\n{\n}", "protected function cleanHTML($html)\n\t{\n\t\t$html = trim($html);\n\t\t// remove multiple tabs\n\t\t$html = preg_replace('/\\t/',\"\",$html);\n\t\t// remove multiple line breaks\n\t\t$html = preg_replace('/(\\n|\\r){2,}/',\"\\n\",$html);\n\t\t// set all paths to absolute\n\t\t$html = preg_replace_callback('/((?:src|href|action)=[\\'\\\"])([^\\'\\\"]*)([\\'\\\"])/',function($matches){\n\t\t\tif ( (preg_match('/^\\/[^\\/]/',$matches[2])) && (!preg_match('/^https?/',$matches[2])) )\n\t\t\t{\n\t\t\t\t$matches[2] = Director::absoluteURL($matches[2]);\n\t\t\t}\n\t\t\treturn $matches[1].$matches[2].$matches[3];\n\t\t},$html);\n\t\treturn $html;\n\t}", "function _cut_html($str) {\n $str=preg_replace(\"'<[\\/\\!]*?[^<>]*?>'si\",\"\",$str);\n return $str;\n }", "public static function cleanHTMLStr($html)\n {\n require_once __DIR__ . '/../../Libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php';\n $config = HTMLPurifier_Config::createDefault();\n $config->loadArray([\n 'Cache.DefinitionImpl' => null,\n 'Core.Encoding' => 'UTF-8',\n 'HTML.Allowed' => 'strong,em,a[href|title|target|rel|class|style],ul[style],ol[style],li[style],br,span[class|style]',\n 'Attr.AllowedFrameTargets' => array('_blank', '_self'),\n 'CSS.AllowTricky' => true,\n 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding,padding-left,padding-right,color,background-color,text-align,display',\n 'AutoFormat.RemoveEmpty' => true\n ]);\n $purifier = new HTMLPurifier($config);\n return $purifier->purify($html);\n }", "private static function clearHTML($html)\n {\n return preg_replace(array(\n '/\\s+/',\n '/[\\t\\n\\r]+/',\n '/<!--.*?-->/s',\n '/>\\s*</',\n '/;\\s*(\\\"|\\')/',\n '/<\\/\\s+/',\n '/\\s+\\/>/',\n '/<\\s+/',\n '/\\s+>/'\n ), array(\n ' ',\n ' ',\n '',\n '><',\n '${1}',\n '</',\n '/>',\n '<',\n '>'\n ), $html);\n }", "function wpec_validate_options($input) {\n\n\t// Check our textbox option field contains no HTML tags - if so strip them out\n\t//$input['text_string'] = wp_filter_nohtml_kses($input['text_string']);\n\n return $input;\n}", "function strips_tags( $html, $disallowed_tag = 'script|style|noframes|select|option', $allowed_tag = '' )\n\t{\n\t\t//prep the string\n\t\t$html = ' ' . $html;\n\n\t\t//initialize keep tag logic\n\t\tif ( strlen( $allowed_tag ) > 0 )\n\t\t{\n\t\t\t$k = explode( '|', $allowed_tag );\n\t\t\tfor ( $i = 0; $i < count( $k ); $i++ )\n\t\t\t{\n\t\t\t\t$html = str_replace( '<' . $k[ $i ], '[{(' . $k[ $i ], $html );\n\t\t\t\t$html = str_replace( '</' . $k[ $i ], '[{(/' . $k[ $i ], $html );\n\t\t\t}\n\t\t}\n\t\t//begin removal\n\t\t//remove comment blocks\n\t\twhile ( stripos( $html, '<!--' ) > 0 )\n\t\t{\n\t\t\t$pos[ 1 ] = stripos( $html, '<!--' );\n\t\t\t$pos[ 2 ] = stripos( $html, '-->', $pos[ 1 ] );\n\t\t\t$len[ 1 ] = $pos[ 2 ] - $pos[ 1 ] + 3;\n\t\t\t$x = substr( $html, $pos[ 1 ], $len[ 1 ] );\n\t\t\t$html = str_replace( $x, '', $html );\n\t\t}\n\t\t//remove tags with content between them\n\t\tif ( strlen( $disallowed_tag ) > 0 )\n\t\t{\n\t\t\t$e = explode( '|', $disallowed_tag );\n\t\t\tfor ( $i = 0; $i < count( $e ); $i++ )\n\t\t\t{\n\t\t\t\twhile ( stripos( $html, '<' . $e[ $i ] ) > 0 )\n\t\t\t\t{\n\t\t\t\t\t$len[ 1 ] = strlen( '<' . $e[ $i ] );\n\t\t\t\t\t$pos[ 1 ] = stripos( $html, '<' . $e[ $i ] );\n\t\t\t\t\t$pos[ 2 ] = stripos( $html, $e[ $i ] . '>', $pos[ 1 ] + $len[ 1 ] );\n\t\t\t\t\t$len[ 2 ] = $pos[ 2 ] - $pos[ 1 ] + $len[ 1 ];\n\t\t\t\t\t$x = substr( $html, $pos[ 1 ], $len[ 2 ] );\n\t\t\t\t\t$html = str_replace( $x, '', $html );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//remove remaining tags\n\t\twhile ( stripos( $html, '<' ) > 0 )\n\t\t{\n\t\t\t$pos[ 1 ] = stripos( $html, '<' );\n\t\t\t$pos[ 2 ] = stripos( $html, '>', $pos[ 1 ] );\n\t\t\t$len[ 1 ] = $pos[ 2 ] - $pos[ 1 ] + 1;\n\t\t\t$x = substr( $html, $pos[ 1 ], $len[ 1 ] );\n\t\t\t$html = str_replace( $x, '', $html );\n\t\t}\n\t\t//finalize keep tag\n\t\tif ( strlen( $allowed_tag ) > 0 )\n\t\t{\n\t\t\tfor ( $i = 0; $i < count( $k ); $i++ )\n\t\t\t{\n\t\t\t\t$html = str_replace( '[{(' . $k[ $i ], '<' . $k[ $i ], $html );\n\t\t\t\t$html = str_replace( '[{(/' . $k[ $i ], '</' . $k[ $i ], $html );\n\t\t\t}\n\t\t}\n\n\t\treturn trim( $html );\n\t}", "function sanitize(\n $html,\n $tags_to_remove = ['script', 'iframe', 'input', 'form'],\n $attributes_to_keep = ['title', 'href', 'src'],\n $text_to_keep = []\n) {\n $htmlContent = str_get_html($html);\n\n foreach ($htmlContent->find('*') as $element) {\n if (in_array($element->tag, $text_to_keep)) {\n $element->outertext = $element->plaintext;\n } elseif (in_array($element->tag, $tags_to_remove)) {\n $element->outertext = '';\n } else {\n foreach ($element->getAllAttributes() as $attributeName => $attribute) {\n if (!in_array($attributeName, $attributes_to_keep)) {\n $element->removeAttribute($attributeName);\n }\n }\n }\n }\n\n return $htmlContent;\n}", "function theme_options_validate( $input ) {\n\n\t// Say our text option must be safe text with no HTML tags\n\t$input['sometext'] = wp_filter_nohtml_kses( $input['sometext'] );\n\n\n\n\treturn $input;\n}", "function cleanHtml($name) {\n\t\tif (isset($this->getvars[$name])){\n\t\t\treturn (string)strip_tags(urldecode($this->getvars[$name]));\n\t\t} else {\n\t\t\treturn (string)@strip_tags(urldecode($this->postvars[$name]));\n\t\t}\n\t}", "public function sanitize()\n {\n parent::sanitize();\n\n foreach ($this->_cleanData as $key => $value) {\n $this->_cleanData[$key] = strip_tags($value);\n }\n }", "public function cropHtmlWorksWithLinebreaks() {}", "function qa_sanitize_html($html, $linksnewwindow = false, $storage = false)\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\trequire_once 'vendor/htmLawed.php';\n\n\tglobal $qa_sanitize_html_newwindow;\n\n\t$qa_sanitize_html_newwindow = $linksnewwindow;\n\n\t$safe = htmLawed($html, array(\n\t\t'safe' => 1,\n\t\t'elements' => '*+embed+object-form',\n\t\t'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; style: !; classid:clsid',\n\t\t'keep_bad' => 0,\n\t\t'anti_link_spam' => array('/.*/', ''),\n\t\t'hook_tag' => 'qa_sanitize_html_hook_tag',\n\t));\n\n\treturn $safe;\n}", "function wp_filter_nohtml_kses($data)\n {\n }", "function mc_admin_strip_tags() {\n\n\treturn '<strong><em><i><b><span><a><code><pre>';\n}", "public function tidyHtml(string $html): string\n {\n // some point.\n return $html;\n }", "public function cropHtmlWorksWithComplexContent() {}", "public function testHtml() {\n $this->assertEquals('String with b &amp; i tags.', Sanitize::html('String <b>with</b> b & i <i>tags</i>.'));\n $this->assertEquals('String &lt;b&gt;with&lt;/b&gt; b &amp; i &lt;i&gt;tags&lt;/i&gt;.', Sanitize::html('String <b>with</b> b & i <i>tags</i>.', array('strip' => false)));\n $this->assertEquals('String &lt;b&gt;with&lt;/b&gt; b &amp; i tags.', Sanitize::html('String <b>with</b> b & i <i>tags</i>.', array('whitelist' => '<b>')));\n $this->assertEquals('String with b &amp;amp; i tags.', Sanitize::html('String <b>with</b> b &amp; i <i>tags</i>.', array('double' => true)));\n }", "function purify($html, $level=0, $groupId=0) {\n $clean = '';\n switch($level) { \n case CODENDI_PURIFIER_FORUMML:\n require_once($GLOBALS['htmlpurifier_dir'].'/HTMLPurifier.auto.php');\n $hp = HTMLPurifier::getInstance();\n $config = $this->getHPConfig($level);\n $clean = util_make_links($hp->purify($html, $config), $groupId); \t\n break;\n default:\n $clean = parent::purify($html,$level,$groupId);\n }\n return $clean;\n }", "function remove_autop_template_content( $init, $editor_id ) {\r\n $init['apply_source_formatting'] = true;\r\n $init['wpautop'] = false;\r\n $init['remove_linebreaks'] = false;\r\n return $init;\r\n }", "function guy_strip_bad($str, $mode='') {\n global $guy_c;\n $html_allowed = array('a', 'b', 'i', 'p', 'ol', 'ul', 'li', 'blockquote', 'br', 'em', 'sup', 'sub');\n\t$html_allowed_regexp = join('|',$html_allowed);\n\t$html_allowed_striptags = '<'.join('><',$html_allowed).'>';\n\t$str = strip_tags($str,$html_allowed_striptags);\n\t$str = preg_replace_callback(\"/<($html_allowed_regexp)\\b(.*?)>/si\",'guy_attrcheck',$str);\n\t$str = preg_replace('/<\\/([^ \n>]+)[^>]*>/si',$guy_c['lt'].'/$1'.$guy_c['gt'],$str);\n\t$str = preg_replace('#^\\s+$#m','',$str);\n\t$str = safehtml($str);\n\treturn $str;\n}", "protected function setHtmlContent() {}", "public static function get_allowed_wp_kses_html()\n {\n }", "function filter_html($as_admin,$source_member,$pos,&$len,&$comcode,$in_html,$in_semihtml)\n{\n\tif ((!$as_admin) && (!has_specific_permission($source_member,'use_very_dangerous_comcode')))\n\t{\n\t\tglobal $POTENTIAL_JS_NAUGHTY_ARRAY;\n\n\t\t$comcode=preg_replace('#(\\\\\\\\)+(\\[/(html|semihtml)\\])#','\\2',$comcode); // Stops sneaky trying to trick the end of the HTML tag to hack this function\n\n\t\tif (($in_html) && ($in_semihtml)) $ahead_end=max(strpos(strtolower($comcode),'[/html]',$pos),strpos(strtolower($comcode),'[/semihtml]',$pos));\n\t\telseif ($in_html) $ahead_end=strpos(strtolower($comcode),'[/html]',$pos);\n\t\telseif ($in_semihtml) $ahead_end=strpos(strtolower($comcode),'[/semihtml]',$pos);\n\t\telse $ahead_end=false;\n\t\tif ($ahead_end===false) $ahead_end=strlen($comcode);\n\t\t$ahead=substr($comcode,$pos,$ahead_end-$pos);\n\n\t\trequire_code('input_filter');\n\t\thard_filter_input_data__html($ahead);\n\n\t\t// Tidy up\n\t\t$comcode=substr($comcode,0,$pos).$ahead.substr($comcode,$ahead_end);\n\t\t$len=strlen($comcode);\n\t}\n}", "protected function _clean()\n {\n if ($this->_defaultOptions['clean'] === FALSE) {\n return;\n }\n\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'remove unused markers',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n $this->_cleanMarkers('loop');\n $this->_cleanMarkers('optional');\n\n $this->DISPLAY = preg_replace(\n $this->_contentMarkers,\n '',\n $this->DISPLAY\n );\n }", "protected function cleanHtml($html) {\n $chain = new Zend_Filter();\n\n if($this->isFilterTags){\n $chain->addFilter(new Zend_Filter_StripTags(self::$tags));\n }\n $chain->addFilter(new Zend_Filter_StringTrim());\n\n $html = $chain->filter($html);\n\n $tmp = $html;\n while (1) {\n // Try and replace an occurrence of javascript:\n $html = preg_replace('/(<[^>]*)javascript:([^>]*>)/i', '$1$2', $html);\n \n\n // If nothing changed this iteration then break the loop\n if ($html == $tmp)\n break;\n\n $tmp = $html;\n }\n\n return $html;\n }", "function string_restore_valid_html_tags( $p_string, $p_multiline = true ) \r\n{\r\n\t$t_html_valid_tags = config_get( $p_multiline ? 'html_valid_tags' : 'html_valid_tags_single_line' );\r\n\r\n\tif ( OFF === $t_html_valid_tags || is_blank( $t_html_valid_tags ) ) {\r\n\t\treturn $p_string;\r\n\t}\r\n\r\n\t$tags = explode( ',', $t_html_valid_tags );\r\n\tforeach ($tags as $key => $value) \r\n\t{ \r\n \tif ( !is_blank( $value ) ) {\r\n \t$tags[$key] = trim($value); \r\n }\r\n }\r\n $tags = implode( '|', $tags);\r\n\r\n\t$p_string = preg_replace( '/&lt;(' . $tags . ')\\s*&gt;/ui', '<\\\\1>', $p_string );\r\n\t$p_string = preg_replace( '/&lt;\\/(' . $tags . ')\\s*&gt;/ui', '</\\\\1>', $p_string );\r\n\t$p_string = preg_replace( '/&lt;(' . $tags . ')\\s*\\/&gt;/ui', '<\\\\1 />', $p_string );\r\n\r\n\r\n\treturn $p_string;\r\n}", "private function clean_content( $content ){\n\t\t\t$content = strip_shortcodes( $content );\n\n\t\t\t// clean html away from content\n\t\t\t$content = wp_filter_nohtml_kses( $content );\n\n\t\t\t// all clean and ready to shine\n\t\t\treturn $content;\n\t\t}", "private function clean_youtube() {\n\n\t\tadd_filter('embed_oembed_html', function($html, $src, $args){\n\n\t\t\tif ( strpos( $src, 'www.youtube.com') != false ) {\n\t\t\t\t$html = preg_replace( '/(src=(\\S+))(?=\")/', '$1&showinfo=0&rel=0', $html);\n\t\t\t}\n\n\t\t\t$html = '<div class=\"embed-responsive embed-responsive-16by9\">' . $html . '</div>';\n\t\t\treturn $html;\n\t\t}, 10, 3);\n\t}", "public static function removeHtml($s)\n {\n $newLinesAfter = 'h1|h2|h3|h4|h5|h6|h7|h8';\n $newLineAfter = 'caption|div|li|p|tr';\n $removeContent = 'script|style|noframes|select|option|link';\n $spaceAfter = 'td|th';\n\n /**///prep the string\n $s = ' ' . preg_replace(\"/[\\\\r\\\\n]+/\", '', $s);\n\n //begin removal\n /**///remove comment blocks\n while(stripos($s,'<!--') > 0){\n $pos[1] = stripos($s,'<!--');\n $pos[2] = stripos($s,'-->', $pos[1]);\n $len[1] = $pos[2] - $pos[1] + 3;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n\n /**///remove tags with content between them\n if(strlen($removeContent) > 0){\n $e = explode('|', $removeContent);\n for($i=0;$i<count($e);$i++){\n while(stripos($s,'<' . $e[$i]) > 0){\n $len[1] = strlen('<' . $e[$i]);\n $pos[1] = stripos($s,'<' . $e[$i]);\n $pos[2] = stripos($s,$e[$i] . '>', $pos[1] + $len[1]);\n $len[2] = $pos[2] - $pos[1] + $len[1];\n $x = substr($s,$pos[1],$len[2]);\n $s = str_replace($x,'',$s);\n }\n }\n }\n\n foreach (explode('|', $newLinesAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\\n\", $s);\n }\n foreach (explode('|', $newLineAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\", $s);\n }\n foreach (explode('|', $spaceAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \" \", $s);\n }\n\n /**///remove remaining tags\n $start = 0;\n while(stripos($s,'<', $start) > 0){\n $pos[1] = stripos($s,'<', $start);\n $pos[2] = stripos($s,'>', $pos[1]);\n if (!$pos[2]) {\n //No closing tag! Skip this one\n $start = $pos[1]+1;\n } else {\n $len[1] = $pos[2] - $pos[1] + 1;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n }\n\n if (PHP_EOL != \"\\n\") {\n $s = str_replace(\"\\n\", PHP_EOL, $s);\n }\n return html_entity_decode(trim($s), ENT_QUOTES, 'cp1252');\n }", "private static function cleanHtml(string $html, array $allowedTags): string\n {\n $html = static::removeUnallowedHTMLTags($html, array_keys(static::$validUserTagsAndAttributes));\n\n $html = static::removeUnallowedHTMLAttributes($html);\n\n $html = static::removeUnallowedHTMLTags($html, $allowedTags);\n\n return $html;\n }", "function remove_html($content) {\r\n\t$content = strip_tags($content);\r\n return $content;\r\n}", "function mdwpfp_init_markup_cleanup() {\n add_action('init', 'mdwpfp_head_cleanup');\n\n // Remove WP version from the RSS feed.\n add_filter('the_generator', 'mdwpfp_rss_version');\n\n // Clean the WP generated code around images.\n add_filter('the_content', 'mdwpfp_filter_ptags_on_images');\n\n // Remove pesky injected css for recent comments widget.\n add_filter('wp_head', 'mdwpfp_remove_wp_widget_recent_comments_style', 1);\n // Clean up injected comment styles in the <head>.\n add_action('wp_head', 'mdwpfp_remove_recent_comments_style', 1);\n\n // Clean the default WP photo gallery output.\n add_filter('gallery_style', 'mdwpfp_gallery_style');\n\n}", "function wp_kses_allowed_html($context = '')\n {\n }", "public function html_remove_shortcodes($html)\n {\n return preg_replace_callback('/\\[[^\\]]*\\]/', function ($match) {\n if (preg_match('/^\\[(image|sitetree\\_link,id|file\\_link,id)\\b/', $match[0])) {\n return $match[0];\n }\n return '';\n }, $html);\n }", "function xss_html_clean( $html )\n\t{\n\t\t//-----------------------------------------\n\t\t// Opening script tags...\n\t\t// Check for spaces and new lines...\n\t\t//-----------------------------------------\n\t\t\n\t\t$html = preg_replace( \"#<(\\s+?)?s(\\s+?)?c(\\s+?)?r(\\s+?)?i(\\s+?)?p(\\s+?)?t#is\" , \"&lt;script\" , $html );\n\t\t$html = preg_replace( \"#<(\\s+?)?/(\\s+?)?s(\\s+?)?c(\\s+?)?r(\\s+?)?i(\\s+?)?p(\\s+?)?t#is\", \"&lt;/script\", $html );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Basics...\n\t\t//-----------------------------------------\n\t\t\n\t\t$html = preg_replace( \"/javascript/i\" , \"j&#097;v&#097;script\", $html );\n\t\t$html = preg_replace( \"/alert/i\" , \"&#097;lert\" , $html );\n\t\t$html = preg_replace( \"/about:/i\" , \"&#097;bout:\" , $html );\n\t\t$html = preg_replace( \"/onmouseover/i\", \"&#111;nmouseover\" , $html );\n\t\t$html = preg_replace( \"/onclick/i\" , \"&#111;nclick\" , $html );\n\t\t$html = preg_replace( \"/onload/i\" , \"&#111;nload\" , $html );\n\t\t$html = preg_replace( \"/onsubmit/i\" , \"&#111;nsubmit\" , $html );\n\t\t$html = preg_replace( \"/<body/i\" , \"&lt;body\" , $html );\n\t\t$html = preg_replace( \"/<html/i\" , \"&lt;html\" , $html );\n\t\t$html = preg_replace( \"/document\\./i\" , \"&#100;ocument.\" , $html );\n\t\t\n\t\treturn $html;\n\t}", "static function html_sanitization($input)\r\n {\r\n return strip_tags($input);\r\n }", "public function custom_category_descriptions_allow_html() {\n\t\t$filters = array(\n\t\t\t'pre_term_description',\n\t\t\t'pre_link_description',\n\t\t\t'pre_link_notes',\n\t\t\t'pre_user_description',\n\t\t);\n\n\t\tforeach ( $filters as $filter ) {\n\t\t\tremove_filter( $filter, 'wp_filter_kses' );\n\t\t}\n\t\tremove_filter( 'term_description', 'wp_kses_data' );\n\t}", "function correctHTMLValidationErrors($txt) {\r\n\tif (Settings::get ( \"disable_html_validation\" )) {\r\n\t\treturn $txt;\r\n\t}\r\n\t\r\n\t// Ersetze & durch &amp;\r\n\t$txt = preg_replace ( '/[&](?![A-Za-z]+[;])/', \"&amp;\", $txt );\r\n\t\r\n\t// replaced deprecated HTML-Tags\r\n\t$txt = str_ireplace ( \"<center>\", \"<div style=\\\"text-align:center\\\">\", $txt );\r\n\t$txt = str_ireplace ( \"</center>\", \"</div>\", $txt );\r\n\t$txt = str_ireplace ( \"<strike>\", \"<del>\", $txt );\r\n\t$txt = str_ireplace ( \"</strike>\", \"</del>\", $txt );\r\n\t$txt = str_ireplace ( \"<s>\", \"<del>\", $txt );\r\n\t$txt = str_ireplace ( \"</s>\", \"</del>\", $txt );\r\n\t$txt = str_ireplace ( \"<tt>\", \"<code>\", $txt );\r\n\t$txt = str_ireplace ( \"</tt>\", \"</code>\", $txt );\r\n\t$txt = str_ireplace ( \"<dir>\", \"<ul>\", $txt );\r\n\t$txt = str_ireplace ( \"</dir>\", \"</ul>\", $txt );\r\n\t$txt = str_ireplace ( \"<acronym>\", \"<abbr>\", $txt );\r\n\t$txt = str_ireplace ( \"</acronym>\", \"</abbr>\", $txt );\r\n\t\r\n\treturn $txt;\r\n}", "public function cleanup()\n\t{\n\t\tif ($this->isHtml())\n\t\t{\n\t\t\t$responseBody = preg_replace('/<link rel=[\"\\' ](pingback|alternate|EditURI|wlwmanifest|index|profile|prev)[\"\\' ](.*?)>/si', '', $this->getResponseBody());\n\t\t\t$responseBody = preg_replace('/<meta name=[\"\\' ]generator[\"\\' ](.*?)>/si', '', $responseBody);\n\t\t\t$this->setResponseBody($responseBody);\n\t\t}\n\t}", "private static function minify($html) {\n\t\tif(!modules::get_config('tpl_minifier')) {\n\t\t\treturn $html;\n\t\t}\n\t\t// TODO: Match <code> and <pre> too - in separate arrays\n\t\tpreg_match_all('/(<script[^>]*?>.*?<\\/script>)/si', $html, $pre);\n\t\tpreg_match_all('/(<textarea[^>]*?>.*?<\\/textarea>)/si', $html, $textarea);\n\t\t$i=0;\n\t\twhile(preg_match('/(<script[^>]*?>.*?<\\/script>)/si', $html)) {\n\t\t\t$html = preg_replace('/(<script[^>]*?>.*?<\\/script>)/si', '#pre'.$i.'#', $html, 1);\n\t\t\t$i++;\n\t\t}\n\t\t$i=0;\n\t\twhile(preg_match('/(<textarea[^>]*?>.*?<\\/textarea>)/si', $html)) {\n\t\t\t$html = preg_replace('/(<textarea[^>]*?>.*?<\\/textarea>)/si', '#textarea'.$i.'#', $html, 1);\n\t\t\t$i++;\n\t\t}\n\t\t$html = preg_replace('#<!-[^\\[].+?->#', '', $html);//ToDo: WTF?!\n\t\t$html = preg_replace('/[\\r\\n\\t]+/', ' ', $html);\n\t\t$html = preg_replace('/>[\\s]*</', '><', $html); // Strip spacechars between tags\n\t\t$html = preg_replace('/[\\s]+/', ' ', $html); // Replace several spacechars with one space\n\t\tif(!empty($pre[0])) {\n\t\t\t$i=0;\n\t\t\tforeach($pre[0] as $tag) {\n\t\t\t\t$tag = preg_replace('/^\\ *\\/\\/[^\\<]*?$/m', ' ', $tag); // Strips comments - except those that contains HTML comment inside\n\t\t\t\t$tag = preg_replace('/[\\ \\t]{2,}/', ' ', $tag); // Replace several spaces by one\n\t\t\t\t$tag = preg_replace('/\\s{2,}/', \"\\r\\n\", $tag); // Replace several linefeeds by one\n\t\t\t\t$html = preg_replace('/#pre'.$i.'#/', $tag, $html, 1);\n\t\t\t\tunset($pre[0][$i]);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\tif(!empty($textarea[0])) {\n\t\t\t$i=0;\n\t\t\tforeach($textarea[0] as $tags) {\n\t\t\t\t$tags = preg_replace('/^\\ *\\/\\/[^\\<]*?$/m', ' ', $tags);\n\t\t\t\t$tags = preg_replace('/[\\ \\t]{3,}/', ' ', $tags);\n\t\t\t\t$html = preg_replace('/#textarea'.$i.'#/', $tags, $html, 1);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\treturn $html;\n\t}", "function HTMLPurifier($html, $config = null) {\r\r\n static $purifier = false;\r\r\n if (!$purifier) {\r\r\n require_once 'HTMLPurifier.php';\r\r\n $purifier = new HTMLPurifier();\r\r\n }\r\r\n return $purifier->purify($html, $config);\r\r\n}", "function clean_content($string) {\n $patterns = array(\n '#^\\s*</p>#',\n '#<p>\\s*$#',\n '#<p>(\\s|&nbsp;)*+(<br\\s*/*>)?(\\s|&nbsp;)*</p>#'\n );\n // $patterns = '#<p>(\\s|&nbsp;)*+(<br\\s*/*>)?(\\s|&nbsp;)*</p>#i';\n\n return preg_replace($patterns, '', $string);\n}", "public function cropHTML($content, $options)\n {\n $options = explode('|', $options);\n $chars = (int)$options[0];\n $absChars = abs($chars);\n $replacementForEllipsis = trim($options[1]);\n $crop2space = trim($options[2]) === '1';\n // Split $content into an array(even items in the array are outside the tags, odd numbers are tag-blocks).\n $tags = 'a|abbr|address|area|article|aside|audio|b|bdi|bdo|blockquote|body|br|button|caption|cite|code|col|colgroup|data|datalist|dd|del|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|h1|h2|h3|h4|h5|h6|header|hr|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|main|map|mark|meter|nav|object|ol|optgroup|option|output|p|param|pre|progress|q|rb|rp|rt|rtc|ruby|s|samp|section|select|small|source|span|strong|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|tr|track|u|ul|ut|var|video|wbr';\n $tagsRegEx = '\n\t\t\t(\n\t\t\t\t(?:\n\t\t\t\t\t<!--.*?-->\t\t\t\t\t# a comment\n\t\t\t\t\t|\n\t\t\t\t\t<canvas[^>]*>.*?</canvas> # a canvas tag\n\t\t\t\t\t|\n\t\t\t\t\t<script[^>]*>.*?</script> # a script tag\n\t\t\t\t\t|\n\t\t\t\t\t<noscript[^>]*>.*?</noscript> # a noscript tag\n\t\t\t\t\t|\n\t\t\t\t\t<template[^>]*>.*?</template> # a template tag\n\t\t\t\t)\n\t\t\t\t|\n\t\t\t\t</?(?:' . $tags . ')+\t\t\t# opening tag (\\'<tag\\') or closing tag (\\'</tag\\')\n\t\t\t\t(?:\n\t\t\t\t\t(?:\n\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\\\\s+\\\\w[\\\\w-]*\t\t# EITHER spaces, followed by attribute names\n\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\\\\s*=?\\\\s*\t\t# equals\n\t\t\t\t\t\t\t\t(?>\n\t\t\t\t\t\t\t\t\t\".*?\"\t\t# attribute values in double-quotes\n\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t\\'.*?\\'\t\t# attribute values in single-quotes\n\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t[^\\'\">\\\\s]+\t# plain attribute values\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|\t\t\t\t\t\t# OR a single dash (for TYPO3 link tag)\n\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\\\\s+-\n\t\t\t\t\t\t)\n\t\t\t\t\t)+\\\\s*\n\t\t\t\t\t|\t\t\t\t\t\t\t# OR only spaces\n\t\t\t\t\t\\\\s*\n\t\t\t\t)\n\t\t\t\t/?>\t\t\t\t\t\t\t\t# closing the tag with \\'>\\' or \\'/>\\'\n\t\t\t)';\n $splittedContent = preg_split('%' . $tagsRegEx . '%xs', $content, -1, PREG_SPLIT_DELIM_CAPTURE);\n // Reverse array if we are cropping from right.\n if ($chars < 0) {\n $splittedContent = array_reverse($splittedContent);\n }\n // Crop the text (chars of tag-blocks are not counted).\n $strLen = 0;\n // This is the offset of the content item which was cropped.\n $croppedOffset = null;\n $countSplittedContent = count($splittedContent);\n for ($offset = 0; $offset < $countSplittedContent; $offset++) {\n if ($offset % 2 === 0) {\n $tempContent = $splittedContent[$offset];\n $thisStrLen = mb_strlen(html_entity_decode($tempContent, ENT_COMPAT, 'UTF-8'), 'utf-8');\n if ($strLen + $thisStrLen > $absChars) {\n $croppedOffset = $offset;\n $cropPosition = $absChars - $strLen;\n // The snippet \"&[^&\\s;]{2,8};\" in the RegEx below represents entities.\n $patternMatchEntityAsSingleChar = '(&[^&\\\\s;]{2,8};|.)';\n $cropRegEx = $chars < 0 ? '#' . $patternMatchEntityAsSingleChar . '{0,' . ($cropPosition + 1) . '}$#uis' : '#^' . $patternMatchEntityAsSingleChar . '{0,' . ($cropPosition + 1) . '}#uis';\n if (preg_match($cropRegEx, $tempContent, $croppedMatch)) {\n $tempContentPlusOneCharacter = $croppedMatch[0];\n } else {\n $tempContentPlusOneCharacter = false;\n }\n $cropRegEx = $chars < 0 ? '#' . $patternMatchEntityAsSingleChar . '{0,' . $cropPosition . '}$#uis' : '#^' . $patternMatchEntityAsSingleChar . '{0,' . $cropPosition . '}#uis';\n if (preg_match($cropRegEx, $tempContent, $croppedMatch)) {\n $tempContent = $croppedMatch[0];\n if ($crop2space && $tempContentPlusOneCharacter !== false) {\n $cropRegEx = $chars < 0 ? '#(?<=\\\\s)' . $patternMatchEntityAsSingleChar . '{0,' . $cropPosition . '}$#uis' : '#^' . $patternMatchEntityAsSingleChar . '{0,' . $cropPosition . '}(?=\\\\s)#uis';\n if (preg_match($cropRegEx, $tempContentPlusOneCharacter, $croppedMatch)) {\n $tempContent = $croppedMatch[0];\n }\n }\n }\n $splittedContent[$offset] = $tempContent;\n break;\n }\n $strLen += $thisStrLen;\n }\n }\n // Close cropped tags.\n $closingTags = [];\n if ($croppedOffset !== null) {\n $openingTagRegEx = '#^<(\\\\w+)(?:\\\\s|>)#';\n $closingTagRegEx = '#^</(\\\\w+)(?:\\\\s|>)#';\n for ($offset = $croppedOffset - 1; $offset >= 0; $offset = $offset - 2) {\n if (substr($splittedContent[$offset], -2) === '/>') {\n // Ignore empty element tags (e.g. <br />).\n continue;\n }\n preg_match($chars < 0 ? $closingTagRegEx : $openingTagRegEx, $splittedContent[$offset], $matches);\n $tagName = isset($matches[1]) ? $matches[1] : null;\n if ($tagName !== null) {\n // Seek for the closing (or opening) tag.\n $countSplittedContent = count($splittedContent);\n for ($seekingOffset = $offset + 2; $seekingOffset < $countSplittedContent; $seekingOffset = $seekingOffset + 2) {\n preg_match($chars < 0 ? $openingTagRegEx : $closingTagRegEx, $splittedContent[$seekingOffset], $matches);\n $seekingTagName = isset($matches[1]) ? $matches[1] : null;\n if ($tagName === $seekingTagName) {\n // We found a matching tag.\n // Add closing tag only if it occurs after the cropped content item.\n if ($seekingOffset > $croppedOffset) {\n $closingTags[] = $splittedContent[$seekingOffset];\n }\n break;\n }\n }\n }\n }\n // Drop the cropped items of the content array. The $closingTags will be added later on again.\n array_splice($splittedContent, $croppedOffset + 1);\n }\n $splittedContent = array_merge($splittedContent, [\n $croppedOffset !== null ? $replacementForEllipsis : ''\n ], $closingTags);\n // Reverse array once again if we are cropping from the end.\n if ($chars < 0) {\n $splittedContent = array_reverse($splittedContent);\n }\n return implode('', $splittedContent);\n }", "public function clear_html( $val ) {\n//\t\treturn $val;\n\t\treturn str_replace( array( '&#44;', '&#34;', '&#91;', '&#93;', '&#39;' ), array( ',', '\"', '[', ']', \"'\" ), $val);\n\t}", "protected function _beforeToHtml()\n {\n if (!$this->isReviewsEnabled()) {\n $this->setTemplate('');\n return parent::_beforeToHtml();\n }\n\n if (!$this->_setReviews()) {\n $this->setTemplate('');\n return parent::_beforeToHtml();\n }\n\n return parent::_beforeToHtml();\n }", "function html_strip_unsafe($strData)\n\t\t{\n\t\t // Unsafe HTML tags/attributes that members may abuse\n\t\t $arrData=array(\n\t\t //'/<iframe(.*?)<\\/iframe>/is',\n\t\t '/<title(.*?)<\\/title>/is',\n\t\t '/<pre(.*?)<\\/pre>/is',\n\t\t '/<frame(.*?)<\\/frame>/is',\n\t\t '/<frameset(.*?)<\\/frameset>/is',\n\t\t //'/<object(.*?)<\\/object>/is',\n\t\t '/<script(.*?)<\\/script>/is',\n\t\t //'/<embed(.*?)<\\/embed>/is',\n\t\t '/<applet(.*?)<\\/applet>/is',\n\t\t '/<meta(.*?)>/is',\n\t\t '/<!doctype(.*?)>/is',\n\t\t '/<link(.*?)>/is',\n\t\t '/<body(.*?)>/is',\n\t\t '/<\\/body>/is',\n\t\t '/<head(.*?)>/is',\n\t\t '/<\\/head>/is',\n\t\t '/onload=\"(.*?)\"/is',\n\t\t '/onunload=\"(.*?)\"/is',\n\t\t '/onerror=\"(.*?)\"/is',\n\t\t '/onclick=\"(.*?)\"/is',\n\t\t '/onchange=\"(.*?)\"/is',\n\t\t '/onmouseover=\"(.*?)\"/is',\n\t\t '/autofocus=\"(.*?)\"/is',\n\t\t '/onfocus=\"(.*?)\"/is',\n\t\t '/<html(.*?)>/is',\n\t\t '/<\\/html>/is',\n\t\t );\n\t\t $strData = preg_replace($arrData, \"\", $strData);\n\t\t\t$strData = filter_var($strData, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);\n\n\t\t return $strData;\n\t\t}", "function FixHtml($html_text) {\n\t\t$text_filter = new TextFilter ( );\n\t\t$text_nojs = $text_filter->filterJavaScript ( $html_text );\n\t\t$text_noif = preg_replace ( '/<iframe.*?<\\/iframe>/ims', \"\", $text_nojs );\n\t\t$text_noif = preg_replace ( '/<IFRAME.*?<\\/IFRAME>/ims', \"\", $text_noif );\n\t\t//$text_bal = $text_filter->balanceTags($text_noif);\n\t\t\n\n\t\treturn $text_noif;\n\t}", "function tags_tinymce_fix( $init )\n{\n // html elements being stripped\n $init['extended_valid_elements'] = 'i[*],span[*]';\n // don't remove line breaks\n $init['remove_linebreaks'] = false;\n // convert newline characters to BR\n $init['convert_newlines_to_brs'] = true;\n // don't remove redundant BR\n $init['remove_redundant_brs'] = false;\n // pass back to wordpress\n return $init;\n}", "function tags_tinymce_fix( $init )\n{\n // html elements being stripped\n $init['extended_valid_elements'] = 'div[*],article[*]';\n // don't remove line breaks\n $init['remove_linebreaks'] = false;\n // convert newline characters to BR\n $init['convert_newlines_to_brs'] = true;\n // don't remove redundant BR\n $init['remove_redundant_brs'] = false;\n // pass back to wordpress\n return $init;\n}", "public static function commentFormUnfilteredHtml() {\n if (\n function_exists(\n self::WP_NONCE_COMMENT_FORM_UNFILTERED_HTML_FUNCTION_NAME\n ) === FALSE\n ) {\n return FALSE;\n } else {\n call_user_func(\n self::WP_NONCE_COMMENT_FORM_UNFILTERED_HTML_FUNCTION_NAME\n );\n }\n }", "function clear($sanitize)\n\t{\n\t\t$sanitize = strip_tags($sanitize);\n\t\treturn $sanitize;\n\t}", "public function minify_html($html)\n {\n $html = str_replace([\"\\t\", \"\\r\", \"\\n\"], '', $html);\n\n // This is over twice the speed of a RegExp\n // (removes > 2 spaces and concatentate strings if there are 2 spaces between them)\n while (strpos($html, ' ') !== false)\n {\n $html = str_replace(' ', '', $html);\n }\n\n // while (strpos($html, ' ') !== false)\n // {\n // $html = str_replace(' ', '', $html);\n // }\n //\n // $text = preg_replace('|[\\s]+|s', ' ', $text1);\n\n\n $search = array(\n '#(?://)?<!\\[CDATA\\[(.*?)(?://)?\\]\\]>#s', //leave CDATA alone\n '/<!--(?!\\s*(?:\\[if [^\\]]+]|<!|>))(?:(?!-->).)*-->/s' // Remove html comments\n );\n\n $replace = array(\n \"//&lt;![CDATA[\\n\" . '\\1' . \"\\n//]]>\",\n ''\n );\n\n return preg_replace($search, $replace, $html);\n }", "protected static function cleanCode($html)\n {\n $html = str_replace(Parser::REMOVE_HTML, '', $html);\n $html = preg_replace('!\\s+!', ' ', $html);\n $html = iconv(\"UTF-8\", \"UTF-8//IGNORE\", utf8_decode($html));\n $html = trim(preg_replace('/.*<\\/head>/', '', $html));\n return $html;\n }", "function _xss_sanitization_sanitize_stored_html( $html ) {\n \n // URL protocols\n $protocols = array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn');\n\n return kses($html, _xss_sanitization_allowed_tags(), $protocols);\n}", "private function htmlFix() {\n // First, check if html is allowed\n if (!$this->allow_html) {\n $html = false;\n } elseif ($this->standard_html) {\n $html = true;\n } else {\n $html = false;\n }\n\n $newParseArray = array();\n while ($tag = array_shift($this->parseArray)) {\n switch ($tag) {\n case self::TAG_NOHTML_OPEN:\n case self::TAG_HTML_CLOSE:\n $html = false;\n break;\n case self::TAG_HTML_OPEN:\n case self::TAG_NOHTML_CLOSE:\n if ($this->allow_html) {\n $html = true;\n }\n break;\n\n default:\n if ($html) {\n if ($tag == self::BR_TAG) {\n $tag = \"\\n\";\n } // Really, no BR's in html code is wanted.\n $newParseArray[] = $tag;\n } else {\n $newParseArray[] = htmlspecialchars($tag);\n }\n }\n }\n $this->parseArray = $newParseArray;\n return true;\n }", "public function htmlpurify($text) {\r\n require_once(__DIR__ . '/php-htmlpurifier/HTMLPurifier.standalone.php');\r\n $config = HTMLPurifier_Config::createDefault();\r\n $config->set('Cache.DefinitionImpl', null);\r\n $purifier = new HTMLPurifier($config);\r\n return $purifier->purify($text);\r\n }", "function _wpcom_vip_allow_more_html_in_comments() {\n remove_filter( 'pre_comment_content', 'wp_filter_kses' );\n add_filter( 'pre_comment_content', 'wp_filter_post_kses' );\n}", "static private function optimizeOutput(&$output) {\n\t\tif (!isset($_GET['no_opti'])) {\n\t\t\t$preserved_tags = array('textarea', 'pre', 'script', 'style', 'code');\n\t\t\t$preserved_blocks = array();\n\t\t\t$preserved_boundry = '@@PRESERVEDTAG@@';\n\t\t\t$cdata_blocks = array();\n\t\t\t$cdata_boundry = '@@CDATA@@';\n\t\t\t$conditional_boundries = array('@@IECOND-OPEN@@', '@@IECOND-CLOSE@@');\n\n\t\t\t$output = str_replace(array('<!--[if', '<!--<![endif]-->'), $conditional_boundries, $output);\n\t\t\t$output = preg_replace('/<!--(.|\\s)*?-->/', '', $output);\n\t\t\t$output = str_replace($conditional_boundries, array('<!--[if', '<!--<![endif]-->'), $output);\n\n\t\t\t$tag_string = implode('|', $preserved_tags);\n\t\t\tpreg_match_all('!<(' . $tag_string . ')[^>]*>.*?</(' . $tag_string . ')>!is', $output, $preserved_blocks);\n\t\t\t$preserved_blocks = $preserved_blocks[0];\n\t\t\t$output = preg_replace('!<(' . $tag_string . ')[^>]*>.*?</(' . $tag_string . ')>!is', $preserved_boundry, $output);\n\n\t\t\tpreg_match_all('/<!\\[CDATA\\[.*?\\]\\]>/is', $output, $cdata_blocks);\n\t\t\t$cdata_blocks = $cdata_blocks[0];\n\t\t\t$output = preg_replace('/<!\\[CDATA\\[.*?\\]\\]>/is', $cdata_boundry, $output);\n\n\t\t\t$output = preg_replace('/[\\t\\s\\n\\r]+/m', ' ', $output);\n\t\t\t$output = str_replace('> <', '><', $output);\n\n\t\t\tforeach($preserved_blocks as $curr_block) {\n\t\t\t\t$output = preg_replace('!' . $preserved_boundry . '!', $curr_block, $output, 1);\n\t\t\t}\n\n\t\t\tforeach($cdata_blocks as $curr_block) {\n\t\t\t\t$output = preg_replace('!' . $cdata_boundry . '!', $curr_block, $output, 1);\n\t\t\t}\n\n\t\t\t$output = trim($output);\n\t\t}\n\t}", "static function login_html_sanitization($input)\r\n {\r\n return strip_tags($input);\r\n }", "function my_minify_html() {\n ob_start('sanitize_output');\n}", "function strip_html_tags( $text )\r\n{\r\n $text = preg_replace(\r\n array(\r\n // Remove invisible content\r\n '@<head[^>]*?>.*?</head>@siu',\r\n '@<style[^>]*?>.*?</style>@siu',\r\n '@<script[^>]*?.*?</script>@siu',\r\n '@<object[^>]*?.*?</object>@siu',\r\n '@<embed[^>]*?.*?</embed>@siu',\r\n '@<applet[^>]*?.*?</applet>@siu',\r\n '@<noframes[^>]*?.*?</noframes>@siu',\r\n '@<noscript[^>]*?.*?</noscript>@siu',\r\n '@<noembed[^>]*?.*?</noembed>@siu',\r\n // Add line breaks before and after blocks\r\n '@</?((address)|(blockquote)|(center)|(del))@iu',\r\n '@</?((div)|(h[1-9])|(ins)|(isindex)|(p)|(pre))@iu',\r\n '@</?((dir)|(dl)|(dt)|(dd)|(li)|(menu)|(ol)|(ul))@iu',\r\n '@</?((table)|(th)|(td)|(caption))@iu',\r\n '@</?((form)|(button)|(fieldset)|(legend)|(input))@iu',\r\n '@</?((label)|(select)|(optgroup)|(option)|(textarea))@iu',\r\n '@</?((frameset)|(frame)|(iframe))@iu',\r\n ),\r\n array(\r\n ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\r\n $nl.\"\\$0\", $nl.\"\\$0\", $nl.\"\\$0\", $nl.\"\\$0\", $nl.\"\\$0\", $nl.\"\\$0\",\r\n $nl.\"\\$0\", $nl.\"\\$0\",\r\n ),\r\n $text );\r\n return strip_tags( $text );\r\n}", "public function testSimpleHTML() : void\n {\n $string = $this->sanitizer->sanitize('<script>alert(\"hello\");</script><div id=\"fake\"><h5 class=\"foo\">Lorem ipsum</h5></div>');\n $this->assertEquals(\"Lorem ipsum\", $string);\n }", "protected function setHtmlFromDomDocument()\n {\n // retain the modified html\n $this->html = trim($this->doc->saveHtml($this->doc->documentElement));\n\n // strip the html and body tags added by DomDocument\n $this->html = substr(\n $this->html,\n strlen('<html><body>'),\n -1 * strlen('</body></html>')\n );\n\n // still may be whitespace all about\n $this->html = trim($this->html) . PHP_EOL;\n }", "function clean_redundant_sufficient_inline() {\r\n\t\t// dirty generator (word). the point is it cannot be done on <span>s since they are not inherently sufficient for a sort of styling (and perhaps that is why this was overlooked).\r\n\t\t// notice also that this only treats simple cases (tags without attributes) of which there may be a fair number.\r\n\t\t// this array is ordered so that tag names that are substrings of other tag names are done last (b)\r\n\t\t$sufficient_inlines = array('big', 'small', 'em', 'strong', 'sub', 'sup', 'strike', 'blink', 'i', 'b', 'u');\r\n\t\tforeach($sufficient_inlines as $sufficient_inline) {\r\n\t\t\t$opening_part = '<' . $sufficient_inline;\r\n\t\t\t$closing_part = '</' . $sufficient_inline . '>';\r\n\t\t\t$strlen_opening_part = strlen($opening_part);\r\n\t\t\t$strlen_closing_part = strlen($closing_part);\r\n\t\t\t$OStrings = OM::getAllOstrings($this->code, $opening_part, $closing_part);\r\n\t\t\t$index = sizeof($OStrings) - 1;\r\n\t\t\twhile($index > -1) {\r\n\t\t\t\t$OString = $OStrings[$index][0];\r\n\t\t\t\t//print('$OString: ');var_dump($OString);\r\n\t\t\t\tif($OString[strlen($opening_part)] !== ' ' && $OString[strlen($opening_part)] !== '>') { // then we are catching the wrong tag\r\n\t\t\t\t\t//print('wrong $OString: ');var_dump($OString);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$offset = $OStrings[$index][1];\r\n\t\t\t\t\t$initial_substr = $substr = substr($OString, $strlen_opening_part, strlen($OString) - $strlen_opening_part - $strlen_closing_part);\r\n\t\t\t\t\t$substr = str_replace('<' . $sufficient_inline . '>', '', $substr, $count1);\r\n\t\t\t\t\t$substr = str_replace($closing_part, '', $substr, $count2);\r\n\t\t\t\t\tif($count1 > 0 || $count2 > 0 && $count1 === $count2) {\r\n\t\t\t\t\t\t$cleaned_OString = $opening_part . $substr . $closing_part;\r\n\t\t\t\t\t\t//$this->code = substr($this->code, 0, $offset) . $cleaned_OString . substr($this->code, $offset + strlen($OString));\r\n\t\t\t\t\t\t$this->code = str_replace($OString, $cleaned_OString, $this->code);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$index--;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function sloodle_clean_for_output($str)\n {\n return sloodle_strip_new_lines(strip_tags(stripcslashes(@html_entity_decode($str, ENT_QUOTES, 'UTF-8'))));\n }", "function somehtml($nohtml) {\n\t\t$nohtml = str_replace(\"&#124;\", \"|\", $nohtml);\n\t\treturn stripslashes(strip_tags($nohtml, '<p><a><font><ul><li><h1><h2><h3><h4><h5><h6><hr><b><u><i><strong><em><table><tr><td><tbody><tfoot><span><div><br><br /><blockquote><img><embed><object><form><input>'));\n\t}", "function gboutique_validate_options($input) {\r\n\t // strip html from textboxes\r\n\t$input['email'] = wp_filter_nohtml_kses($input['email']); // Sanitize textarea input (strip html tags, and escape characters)\r\n\t$input['pass'] = wp_filter_nohtml_kses($input['pass']); // Sanitize textbox input (strip html tags, and escape characters)\r\n\t$input['spreadsheetKey'] = wp_filter_nohtml_kses($input['spreadsheetKey']);\r\n\t$input['apiKey'] = wp_filter_nohtml_kses($input['apiKey']);\r\n\t$input['emailapiKey'] = wp_filter_nohtml_kses($input['emailapiKey']);\r\n\treturn $input;\r\n}", "private static function minify_html( string $content = '' ): string {\n $pattern = array(\n '/<!--\\s.*?-->/',\n // Remove all HTML comments\n '/[\\n\\r\\t\\v\\e\\f]/',\n // Remove all new lines, carriage returns, tabs, vertical whitespaces, esc & form feeds characters\n '/\\s{2,}/',\n // Remove all spaces (when there are 2 or more)\n );\n\n $replacement = array(\n '',\n '',\n ' ',\n );\n\n return preg_replace( $pattern, $replacement, $content );\n }", "public function setHtml();", "function sacar_html($str) {\r\n$allowed = \"<br>,<b>,<i>,<u>\";\r\nreturn strip_tags($str,$allowed);\r\n}", "function wp_strip_all_tags($text, $remove_breaks = \\false)\n {\n }", "function qa_sanitize_html_hook_tag($element, $attributes = null)\n{\n\tglobal $qa_sanitize_html_newwindow;\n\n\tif (!isset($attributes)) // it's a closing tag\n\t\treturn '</' . $element . '>';\n\n\tif ($element == 'param' && trim(strtolower(@$attributes['name'])) == 'allowscriptaccess')\n\t\t$attributes['name'] = 'allowscriptaccess_denied';\n\n\tif ($element == 'embed')\n\t\tunset($attributes['allowscriptaccess']);\n\n\tif ($element == 'a' && isset($attributes['href']) && $qa_sanitize_html_newwindow)\n\t\t$attributes['target'] = '_blank';\n\n\t$html = '<' . $element;\n\tforeach ($attributes as $key => $value)\n\t\t$html .= ' ' . $key . '=\"' . $value . '\"';\n\n\treturn $html . '>';\n}", "protected function filterHtml($input) {\n switch (gettype($input)) {\n case \"string\":\n return $this->htmlPurifier($input);\n\n case \"array\":\n case \"object\":\n foreach ($input as &$value) {\n $value = $this->filterHtml($value);\n }\n return $input;\n\n default:\n // Leave integers, floats or boolean unchanged.\n return $input;\n }\n }", "public static function sanitize_option_arguments( $option = array() ) {\n\t\t$option = wp_parse_args( $option, array(\n\t\t\t// common arguments\n\t\t\t'type' => '',\n\t\t\t'id' => '',\n\t\t\t'title' => '',\n\t\t\t'class' => '',\n\t\t\t'css' => '',\n\t\t\t'default' => '',\n\t\t\t'desc' => '',\n\t\t) );\n\n\t\t// Sanitize fields\n\t\t$allowed_tags = array(\n\t\t\t'abbr' => array( 'title' => true ),\n\t\t\t'acronym' => array( 'title' => true ),\n\t\t\t'code' => true,\n\t\t\t'em' => true,\n\t\t\t'strong' => true,\n\t\t\t'a' => array(\n\t\t\t\t'href' => true,\n\t\t\t\t'title' => true,\n\t\t\t),\n\t\t);\n\n\t\t$option['desc'] = wp_kses( $option['desc'], $allowed_tags );\n\n\t\treturn $option;\n\t}", "public function get_html_filtered()\n\t{\n\t\t$html = (isset($this->HTML_rewritten))?$this->HTML_rewritten:$this->HTML;\n\t\treturn $html;\n\t}", "function cleanupMediaobjectUsage()\n\t{\n\t\tinclude_once(\"./Services/RTE/classes/class.ilRTE.php\");\n\t\t$completecontent = \"\";\n\t\tforeach ($this->getAllRTEContent() as $content)\n\t\t{\n\t\t\t$completecontent .= $content;\n\t\t}\n\t\tilRTE::_cleanupMediaObjectUsage($completecontent, $this->getType() . \":html\",\n\t\t\t$this->getId());\n\t}", "function regexcleanhtml($text){\n\t//get rid of unneeded spaces\n\t$text=regexspacecleaner($text);\n\t\n\t//lets get rid of weird spacing first so we can make simpler quearies later\n\t$regex_pattern=\"/<\\s/\"; //makes < followed by a space just < (e.g. slkj < slkj = slkj <slkj)\n\t$text = preg_replace($regex_pattern, \"<\", $text);\n\t$regex_pattern=\"/\\s>/\"; //makes > preceded by a space just > (e.g. slkj > slkj = slkj> slkj)\n\t$text = preg_replace($regex_pattern, \">\", $text);\n\t$regex_pattern=\"/<\\/\\s/\";\n\t$text = preg_replace($regex_pattern, \"</\", $text); //makes </ followed by a space just </ (e.g. slkj </ slkj = slkj </slkj)\n\t\n\treturn $text;\n}", "public function get_settings_html() {\n\t\treturn '';\n\t}", "function sanitize_settings($options)\n\t\t{\n\t\t\t// Setup array of valid options for return\n\t\t\t$valid_options = array();\n\t\t\t\n\t\t\t// Establish defaults\n\t\t\t$option_defaults = array(\n\t\t\t\t'analytics' => '',\n\t\t\t\t'google' => '',\n\t\t\t\t'pinterest' => ''\n\t\t\t);\n\t\t\t\n\t\t\t$option_types = array(\n\t\t\t\t'analytics' => 'html',\n\t\t\t\t'google' => 'text',\n\t\t\t\t'pinterest' => 'text'\n\t\t\t);\n\t\t\t\n\t\t\t// Merge pass options and the defaults\n\t\t\t$options = (array) wp_parse_args($options, $option_defaults);\n\t\t\t\n\t\t\t// Sanitize each value\n\t\t\tforeach ($option_types as $key => $type) {\n\t\t\t\t$valid_options[$key] = $this->sanitize_an_option($options[$key], $type);\n\t\t\t}\n\n\t\t\treturn $valid_options;\n\t\t}", "public function setCachedHTML($options);", "function apostrapheFix($html)\r\n\t{\r\n\t\t$iStart = stripos($html,\"[apostraphe]\");\r\n\t\twhile((string)$iStart != null)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t//get entire apostraphe tag\r\n\t\t\t$iEnd = $iStart+12;\r\n\t\t\t\r\n\t\t\t//replace HTML\r\n\t\t\t$replacementHTML = \"'\";\r\n\t\t\t$html = substr_replace($html,$replacementHTML,$iStart,($iEnd-$iStart));\r\n\t\t\t\r\n\t\t\t//prep next loop\r\n\t\t\t$iStart = stripos($html,\"[apostraphe]\");\r\n\t\t}\r\n\t\t\r\n\t\treturn $html;\r\n\t}", "function fix_html($string) {\n // ready our stats\n $this->stats = new tp_parserstats();\n // handler for possible json (buddypress)\n if ($this->might_json) {\n if ($string[0] == '{') {\n $jsoner = json_decode($string);\n if ($jsoner != null) {\n tp_logger(\"json detected (buddypress?)\", 4);\n // currently we only handle contents (which buddypress heavily use)\n if ($jsoner->contents) {\n $jsoner->contents = $this->fix_html($jsoner->contents);\n }\n if ($jsoner->fragments->{'div.widget_shopping_cart_content'}) {\n $jsoner->fragments->{'div.widget_shopping_cart_content'} = $this->fix_html($jsoner->fragments->{'div.widget_shopping_cart_content'});\n }\n if ($jsoner->fragments->{'div.kt-header-mini-cart-refreash'}) {\n $jsoner->fragments->{'div.kt-header-mini-cart-refreash'} = $this->fix_html($jsoner->fragments->{'div.kt-header-mini-cart-refreash'});\n }\n if ($jsoner->fragments->{'a.cart-contents'}) {\n $jsoner->fragments->{'a.cart-contents'} = $this->fix_html($jsoner->fragments->{'a.cart-contents'});\n }\n if ($jsoner->fragments->{'.woocommerce-checkout-review-order-table'}) {\n $jsoner->fragments->{'.woocommerce-checkout-review-order-table'} = $this->fix_html($jsoner->fragments->{'.woocommerce-checkout-review-order-table'});\n }\n if ($jsoner->fragments->{'.woocommerce-checkout-payment'}) {\n $jsoner->fragments->{'.woocommerce-checkout-payment'} = $this->fix_html($jsoner->fragments->{'.woocommerce-checkout-payment'});\n }\n return json_encode($jsoner); // now any attempted json will actually return a json \n }\n }\n }\n\n // create our dom\n $string = str_replace(chr(0xC2) . chr(0xA0), ' ', $string); // annoying NBSPs?\n $this->html = str_get_html($string, false); // false for RSS?\n //$this->stats->do_timing();\n //Log::info(\"Stats Build dom:\" . $this->stats->time);\n // mark translateable elements\n if ($this->html->find('html', 0))\n $this->html->find('html', 0)->lang = ''; // Document defined lang may be preset to correct lang, but should be ignored TODO: Better?\n $this->translate_tagging($this->html->root);\n //$this->stats->do_timing();\n //Log::info(\"Stats Done tagging:\" . $this->stats->time);\n // first fix the html tag itself - we might need to to the same for all such attributes with flipping\n if ($this->html->find('html', 0)) {\n if ($this->dir_rtl)\n $this->html->find('html', 0)->dir = 'rtl';\n else\n $this->html->find('html', 0)->dir = 'ltr';\n }\n\n if ($this->lang) {\n if ($this->html->find('html', 0))\n $this->html->find('html', 0)->lang = $this->lang;\n // add support for <meta name=\"language\" content=\"<lang>\">\n if ($this->html->find('meta[name=language]')) {\n @$this->html->find('meta[name=language]')->content = $this->lang;\n }\n }\n\n // not much point in further processing if we don't have a function that does it\n if ($this->fetch_translate_func == null) {\n return $this->html;\n }\n\n // fix feed\n if ($this->feed_fix) {\n // fix urls on feed\n tp_logger('fixing rss feed', 3);\n foreach (array('link', 'wfw:commentrss', 'comments') as $tag) {\n foreach ($this->html->find($tag) as $e) {\n $e->innertext = htmlspecialchars(call_user_func_array($this->url_rewrite_func, array($e->innertext)));\n // no need to translate anything here\n unset($e->nodes);\n }\n }\n // guid is not really a url -- in some future, we can check if permalink is true and probably falsify it\n foreach ($this->html->find('guid') as $e) {\n $e->innertext = $e->innertext . '-' . $this->lang;\n unset($e->nodes);\n }\n // fix feed language\n @$this->html->find('language', 0)->innertext = $this->lang;\n unset($this->html->find('language', 0)->nodes);\n } else {\n // since this is not a feed, we might have references to such in the <link rel=\"alternate\">\n foreach ($this->html->find('link') as $e) {\n if (strcasecmp($e->rel, 'alternate') == 0 || strcasecmp($e->rel, 'canonical') == 0) {\n if (!$e->hreflang) \n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n }\n }\n }\n\n // try some prefetching... (//todo - maybe move directly to the phrase create)\n// $originals = array();\n if ($this->prefetch_translate_func != null) {\n /* foreach ($this->html->find('text') as $e) {\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n }\n foreach (array('title', 'value', 'placeholder', 'alt') as $title) {\n foreach ($this->html->find('[' . $title . ']') as $e) {\n if (isset($e->nodes))\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n }\n }\n foreach ($this->html->find('[content]') as $e) {\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n } */\n // if we should split, we will split some urls for translation prefetching\n if ($this->split_url_func != null) {\n foreach ($this->atags as $e) {\n foreach (call_user_func_array($this->split_url_func, array($e->href)) as $part) {\n $this->prefetch_phrases[$part] = true;\n }\n }\n foreach ($this->otags as $e) {\n foreach (call_user_func_array($this->split_url_func, array($e->value)) as $part) {\n $this->prefetch_phrases[$part] = true;\n }\n }\n }\n call_user_func_array($this->prefetch_translate_func, array($this->prefetch_phrases, $this->lang));\n }\n\n //fix urls more\n // WORK IN PROGRESS\n /* foreach ($this->atags as $e) {\n $hrefspans = '';\n foreach (call_user_func_array($this->split_url_func, array($e->href)) as $part) {\n // fix - not for dashes\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($part, $this->lang));\n $hrefspans .= $this->create_edit_span($part, $translated_text, $source, true);\n }\n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n $e->outertext .= $hrefspans;\n } */\n\n // fix src for items\n if ($this->fix_src_tag_func !== null) {\n foreach ($this->html->find('[src]') as $e) {\n $e->src = call_user_func_array($this->fix_src_tag_func, array($e->src));\n }\n\n foreach ($this->html->find('link') as $e) {\n $e->href = call_user_func_array($this->fix_src_tag_func, array($e->href));\n }\n }\n\n // fix urls...\n foreach ($this->atags as $e) {\n if ($e->href)\n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n }\n foreach ($this->otags as $e) {\n if ($e->value)\n $e->value = call_user_func_array($this->url_rewrite_func, array($e->value));\n }\n\n // this is used to reserve spans we cannot add directly (out of body, metas, etc)\n $hiddenspans = '';\n $savedspan = '';\n\n // actually translate tags\n // texts are first\n foreach ($this->html->find('text') as $e) {\n $replace = array();\n foreach ($e->nodes as $ep) {\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n //stats\n $this->stats->total_phrases++;\n if ($translated_text) {\n $this->stats->translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n }\n if (($this->is_edit_mode || ($this->is_auto_translate && $translated_text == null))/* && $ep->inbody */) {\n if ($ep->inselect) {\n $savedspan .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n } elseif (!$ep->inbody) {\n $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n } else {\n $translated_text = $this->create_edit_span($ep->phrase, $translated_text, $source, false, $ep->srclang);\n }\n }\n // store replacements\n if ($translated_text) {\n $replace[] = array($translated_text, $ep);\n }\n }\n // do replacements in reverse\n foreach (array_reverse($replace) as $epag) {\n list($replacetext, $epg) = $epag;\n $e->outertext = substr_replace($e->outertext, $replacetext, $epg->start, $epg->len);\n }\n\n // this adds saved spans to the first not in select element which is in the body\n if ($e->nodes && !$ep->inselect && $savedspan && $ep->inbody) { // (TODO: might not be...?)\n $e->outertext = $savedspan . $e->outertext;\n $savedspan = '';\n }\n }\n\n // now we handle the title attributes (and the value of submit buttons)\n $hidden_phrases = array();\n foreach (array('title', 'value', 'placeholder', 'alt') as $title) {\n foreach ($this->html->find('[' . $title . ']') as $e) {\n $replace = array();\n $span = '';\n // when we already have a parent outertext we'll have to update it directly\n if (isset($e->parent->_[HDOM_INFO_OUTER])) {\n $saved_outertext = $e->outertext;\n }\n tp_logger(\"$title-original: $e->$title}\", 4);\n if (isset($e->nodes))\n foreach ($e->nodes as $ep) {\n if ($ep->tag == 'phrase') {\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n // more stats\n $this->stats->total_phrases++;\n if ($ep->inbody)\n $this->stats->hidden_phrases++;\n else\n $this->stats->meta_phrases++;\n if ($translated_text) {\n $this->stats->translated_phrases++;\n if ($ep->inbody)\n $this->stats->hidden_translated_phrases++;\n else\n $this->stats->meta_translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n }\n if (($this->is_edit_mode || ($this->is_auto_translate && $translated_text == null)) && $ep->inbody) {\n // prevent duplicate translation (title = text)\n if (strpos($e->innertext, $ep->phrase /* Transposh_utils::base64_url_encode($ep->phrase) */) === false) {\n// if (strpos($e->innertext, transposh_utils::base64_url_encode($ep->phrase)) === false) {\n //no need to translate span the same hidden phrase more than once\n if (!in_array($ep->phrase, $hidden_phrases)) {\n $this->stats->hidden_translateable_phrases++;\n $span .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n // logger ($span);\n $hidden_phrases[] = $ep->phrase;\n }\n }\n }\n // if we need to replace, we store this\n if ($translated_text) {\n $replace[$translated_text] = $ep;\n }\n }\n }\n // and later replace\n foreach (array_reverse($replace, true) as $replace => $epg) {\n $e->$title = substr_replace($e->$title, $replace, $epg->start, $epg->len);\n }\n\n $e->outertext .= $span;\n // this is where we update in the outercase issue\n if (isset($e->parent->_[HDOM_INFO_OUTER])) {\n $e->parent->outertext = implode($e->outertext, explode($saved_outertext, $e->parent->outertext, 2));\n }\n }\n }\n\n // now we handle the meta content - which is simpler because they can't be edited or auto-translated in place\n // we also don't expect any father modifications here\n // so we now add all those spans right before the <body> tag end\n foreach ($this->html->find('[content]') as $e) {\n $right = '';\n $newtext = '';\n\n foreach ($e->nodes as $ep) {\n if ($ep->tag == 'phrase') {\n // even more stats\n $this->stats->total_phrases++;\n $this->stats->meta_phrases++;\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n if ($translated_text) {\n $this->stats->translated_phrases++;\n $this->stats->meta_translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n list ($left, $right) = explode($ep->phrase, $e->content, 2);\n $newtext .= $left . $translated_text;\n $e->content = $right;\n }\n if ($this->is_edit_mode) {\n $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n }\n if (!$translated_text && $this->is_auto_translate && !$this->is_edit_mode) {\n tp_logger('untranslated meta for ' . $ep->phrase . ' ' . $this->lang);\n if ($this->is_edit_mode || $this->is_auto_translate) { // FIX\n }\n }\n }\n }\n if ($newtext) {\n $e->content = $newtext . $right;\n tp_logger(\"content-phrase: $newtext\", 4);\n }\n }\n\n if ($hiddenspans) {\n $body = $this->html->find('body', 0);\n if ($body != null)\n $body->lastChild()->outertext .= $hiddenspans;\n }\n \n // we might show an ad for transposh in some cases\n if (($this->allow_ad && !$this->default_lang && mt_rand(1, 100) > 95) || // 5 of 100 for translated non default language pages\n ($this->allow_ad && $this->default_lang && mt_rand(1, 100) > 99) || // 1 of 100 for translated default languages pages\n (!$this->allow_ad && mt_rand(1, 1000) > 999)) { // 1 of 1000 otherwise\n $this->do_ad_switch();\n }\n \n // This adds a meta tag with our statistics json-encoded inside...\n// $this->stats->do_timing();\n// Log::info(\"Stats Done:\" . $this->stats->time);\n\n $head = $this->html->find('head', 0);\n if ($this->edit_span_created) {\n if ($head != null) {\n $head->lastChild()->outertext .= $this->added_header;\n }\n }\n //exit;\n if ($head != null)\n $head->lastChild()->outertext .= \"\\n<meta name=\\\"translation-stats\\\" content='\" . json_encode($this->stats) . \"'/>\";\n\n // we make sure that the result is clear from our shananigans\n return str_replace(array(TP_GTXT_BRK, TP_GTXT_IBRK, TP_GTXT_BRK_CLOSER, TP_GTXT_IBRK_CLOSER), '', $this->html->outertext);\n // Changed because of places where tostring failed\n //return $this->html;\n //return $this->html->outertext;\n }", "public static function get_CSS_extended_content_HTML(): string\n {\n $html = '<option value=\"-1\"></option>\n<option value=\"563533\"> /[global]/PUBLICATIONS/EGU/ACP/ACP Bootstrap CSS File</option>\n<option value=\"782\"> /[global]/PUBLICATIONS/EGU/ACP/ACP CSS File</option>\n<option value=\"2754\"> /[global]/PUBLICATIONS/EGU/EGU CSS</option>\n<option value=\"18550\"> /[global]/PUBLICATIONS/EGU/ACP/Font Awesome v3.2 Min Css</option>\n<option value=\"18551\"> /[global]/PUBLICATIONS/EGU/ACP/Font Awesome v3.2 Min ie7 Css</option>\n<option value=\"163924\"> /[global]/PUBLICATIONS/Template base css 2018</option>\n<option value=\"240357\"> /[global]/PUBLICATIONS/Template base css 2018 mobile opt</option>\n<option value=\"262955\"> /[global]/PUBLICATIONS/Template base css 2018 mobile opt media</option>\n<option value=\"553405\"> /[global]/PUBLICATIONS/Template base css 2019 mobile opt</option>\n<option value=\"553406\"> /[global]/PUBLICATIONS/Template base css 2019 mobile opt media</option>\n<option value=\"553407\"> /[global]/PUBLICATIONS/Template Bootstrap bridge css</option>\n<option value=\"1283\"> /[global]/PUBLICATIONS/Template css addon extendend content</option>\n<option value=\"120\"> /[global]/PUBLICATIONS/Template css base</option>\n<option value=\"19074\"> /[global]/PUBLICATIONS/Template css base 2015</option>\n<option value=\"24190\"> /[global]/Template css base candidate</option>\n<option value=\"24294\"> /[global]/PUBLICATIONS/Template css display-mathml</option>\n<option value=\"24295\"> /[global]/PUBLICATIONS/Template css editor</option>\n<option value=\"19796\"> /[global]/PUBLICATIONS/Template css editor bridge</option>\n<option value=\"17695\"> /[global]/Template css Font Awesome</option>\n<option value=\"75462\"> /[global]/Template CSS Font Awesome 4.7.0.min</option>\n<option value=\"23035\"> /[global]/Template css Font Open Sans</option>\n<option value=\"237997\"> /[global]/Template css Font Open Sans v.15</option>\n<option value=\"19803\"> /[global]/PUBLICATIONS/Template css font style</option>\n<option value=\"24302\"> /[global]/PUBLICATIONS/Template css grid-system unsemantic</option>\n<option value=\"20666\" selected=\"selected\"> /[global]/PUBLICATIONS/Template css journals addon extended content</option>\n<option value=\"16236\"> /[global]/PUBLICATIONS/Template css JQuery Toggle - deprecated</option>\n<option value=\"24297\"> /[global]/PUBLICATIONS/Template css jquery-ui slider pips</option>\n<option value=\"392\"> /[global]/PUBLICATIONS/Template css print base</option>\n<option value=\"19818\"> /[global]/PUBLICATIONS/Template css print base 2015</option>\n<option value=\"1026718\"> /[global]/PUBLICATIONS/Template Editor bridge hide blocks css 2021</option>\n<option value=\"774031\"> /[global]/PUBLICATIONS/Template EGUSphere Base special CSS</option>\n<option value=\"774024\"> /[global]/Template One-column base css 2020</option>\n<option value=\"774025\"> /[global]/Template One-column base print css 2020</option>\n<option value=\"778693\"> /[global]/Template One-column base special css 2020</option>\n<option value=\"19817\"> /[global]/Template style social icon CSS</option> ';\n\n return $html;\n }", "private static function removeUnallowedHTMLAttributes(string $html): string\n {\n $tidy = new tidy();\n\n $dom = new DOMDocument();\n\n // Normalizes the HTML which reduce the possibility of having an unexpected\n // exception in the DomDocument library because some bad HTML was found.\n // Once the HTML is normalized, we will parse it again.\n $html = $tidy->repairString($html, [\n 'output-xhtml' => true,\n 'show-body-only' => true,\n ], 'utf8');\n\n try {\n libxml_use_internal_errors(true);\n // Needs a XML encoding declaration to ensure is treated as UTF-8\n $dom->loadHTML('<?xml encoding=\"utf-8\" ?>'.$html);\n } catch (Exception $e) {\n return '';\n }\n\n $attributes = static::getAttributesNodes($dom);\n\n collect($attributes)\n ->filter(fn ($attribute) => static::isAttributeAllowedForTag($attribute))\n ->each(fn ($node) => $node->parentNode->removeAttribute($node->nodeName));\n\n return $tidy->repairString($dom->saveHTML(), [\n 'output-xhtml' => true,\n 'show-body-only' => true,\n ], 'utf8');\n }", "function remove_h1_from_editor( $settings ) {\n $settings['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;';\n return $settings;\n}", "private function wpus_strip_tags($string, $remove_breaks = FALSE) {\n\t\t\t$string = preg_replace('/[\\r\\n\\t ]+/', ' ', $string);\n\n\t\t\t$string = preg_replace('@<(script|style)[^>]*?>.*?</\\\\1>@si', '', $string);\n\n\t\t\t$string = preg_replace('@ *</?\\s*(P|UL|OL|DL|BLOCKQUOTE)\\b[^>]*?> *@si', \"\\n\\n\", $string);\n\t\t\t$string = preg_replace('@ *<(BR|DIV|LI|DT|DD|TR|TD|H\\d)\\b[^>]*?> *@si', \"\\n\", $string);\n\t\t\t$string = preg_replace(\"@\\n\\n\\n+@si\", \"\\n\\n\", $string);\n\n\t\t\t$string = strip_tags($string);\n\n\t\t\tif($remove_breaks) {\n\t\t\t\t$string = preg_replace('/[\\r\\n\\t ]+/', ' ', $string);\n\t\t\t}\n\n\t\t\t// ...since we're pulling excerpts from the DB, some of the excerpts contain truncated HTML tags\n\t\t\t// that won't be picked up by strip_tags(). This removes any trailing HTML from the beginning\n\t\t\t// and end of the excerpt:\n\t\t\t$string = preg_replace('/.*>|<.*/', ' ', $string);\n\n\t\t\treturn trim($string);\n\t\t}" ]
[ "0.65628284", "0.63438624", "0.61977494", "0.61653143", "0.6090394", "0.6088692", "0.6066914", "0.6052629", "0.6049276", "0.6041285", "0.6014014", "0.6011197", "0.59926075", "0.59078074", "0.5880054", "0.58725715", "0.58725107", "0.5853894", "0.5809442", "0.57934916", "0.5785562", "0.57794607", "0.5760954", "0.5758369", "0.57369876", "0.5732307", "0.56953645", "0.56539714", "0.5652284", "0.5639041", "0.5633059", "0.5625011", "0.56198484", "0.56123245", "0.5612081", "0.560547", "0.55937475", "0.5593734", "0.5581829", "0.5573045", "0.5568454", "0.5558681", "0.5546506", "0.5539338", "0.5526499", "0.5522147", "0.5520783", "0.55179834", "0.5515009", "0.55136055", "0.54976565", "0.5493866", "0.54740167", "0.54720986", "0.544729", "0.54414237", "0.54393286", "0.543613", "0.5417095", "0.54170495", "0.541671", "0.5400546", "0.5399728", "0.5399437", "0.53850484", "0.5359762", "0.5359103", "0.5354352", "0.53466725", "0.53322893", "0.533202", "0.5330576", "0.53165513", "0.5316039", "0.5313285", "0.531204", "0.53010744", "0.5295099", "0.528677", "0.5277486", "0.5271995", "0.5264506", "0.52637225", "0.526095", "0.5258251", "0.52573013", "0.5254042", "0.5253806", "0.52531326", "0.5252495", "0.5244943", "0.52446645", "0.5241688", "0.5239093", "0.52363384", "0.52360356", "0.5223166", "0.5218522", "0.520943", "0.520862" ]
0.7351366
0
Deletes an array events by their identifiers (the "event_id" field on the event).
Удаляет массив событий по их идентификаторам (поле "event_id" события).
public function deleteEvents(array $eventIds, array $context = []): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(array $ids);", "function deleteItems($itemids) {\r\n $event = new mosEventCal_Event();\r\n\tforeach($itemids AS $itemid) {\r\n\t $event->delete($itemid);\t\r\n\t}\r\n}", "public function delete(array $ids)\n {\n\n }", "public function delete($ids){\n \n $filter = $this->primaryFilter; \n $ids = ! is_array($ids) ? array($ids) : $ids;\n \n foreach ($ids as $id) {\n $id = $filter($id);\n if ($id) {\n $this->db->where($this->primary_key, $id)->limit(1)->delete($this->table_name);\n }\n }\n }", "public function massDeleteAction()\r\n\t{\r\n\t\tif($eventIds = $this->getRequest()->getParam('event_ids')){\r\n\t\t\ttry{\r\n\t\t\t\tforeach ($eventIds as $eventId) {\r\n\t\t\t\t\t$eventModel = Mage::getModel('master_example/event')->load($eventId);\r\n\t\t\t\t\t$eventModel->delete();\r\n\t\t\t\t}\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addSuccess($this->__(\"your events(%d) have been deleted\", count($eventIds)));\r\n\t\t\t} catch(Exception $e){\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n\t\t\t}\r\n\t\t} else{\r\n\t\t\tMage::getSingleton('adminhtml/session')->addError('select some events');\r\n\t\t}\r\n\t\t$this->_redirect('*/*/index');\r\n\t}", "public function deleteFoodsFromEvent($event, $data){\r\n $rowsSQL = array();\r\n\r\n $toBind = array();\r\n\r\n foreach($data as $arrayIndex => $row){\r\n $params = array();\r\n foreach($row as $columnName => $columnValue){\r\n $param = \":\" . $columnName . $arrayIndex;\r\n $params[] = $param;\r\n $toBind[$param] = $columnValue;\r\n }\r\n $rowsSQL[] = \"(\" . implode(\", \", $params) . \")\";\r\n }\r\n\r\n $sql = \"DELETE FROM `food_event` WHERE `event` =\". $event .\" AND food IN (\" . implode(\", \", $rowsSQL) . \")\";\r\n\r\n $stmt = $this->db->prepare($sql);\r\n //Bind our values.\r\n foreach($toBind as $param => $val){\r\n $stmt->bindValue($param, $val);\r\n }\r\n //Execute our statement (i.e. insert the data).\r\n $stmt->execute();\r\n }", "public function deleteEvents($events)\n {\n $data = array (\n 'token' => $this->apiToken,\n 'content' => 'event',\n 'action' => 'delete',\n 'returnFormat' => 'json',\n );\n \n $data['events'] = $this->processEventsArgument($events, $required = true);\n \n $result = $this->connection->callWithArray($data);\n \n $this->processNonExportResult($result);\n \n return (integer) $result;\n }", "public function undelete(array $ids);", "public function deleteAllEvent($event_id)\r\r\n {\r\r\n $where = $this->getAdapter()->quoteInto('event_id = ?', $event_id);\r\r\n $this->delete($where);\r\r\n }", "public function remove($ids);", "function deleteIds ($ids) {\r\n $this->delete($this->tableName, $this->_id . ' in (' . implode(',', $ids) . ')');\r\n }", "public function massDestroy(Request $request)\n {\n if (! Gate::allows('event_delete')) {\n return abort(401);\n }\n if ($request->input('ids')) {\n $entries = Event::whereIn('id', $request->input('ids'))->get();\n\n foreach ($entries as $entry) {\n $entry->delete();\n }\n }\n }", "public function __deleteEvents() {\n $_deleteEventCodes_ = array(\n 'wk_pa_add_column_menu',\n 'wk_pa_addJs_product',\n 'wk_pa_product_model_delete',\n 'wk_pricealert_account_view',\n 'wk_pricealert_header',\n 'wk_pricealert_addJs_add',\n 'wk_pricealert_addJs_edit',\n 'wk_pa_product_model_update',\n 'wk_pa_product_model_add',\n );\n\n foreach ($_deleteEventCodes_ as $_DE_code) {\n $this->helper_event->deleteEventByCode($_DE_code);\n }\n }", "public function delete(){\r\n $id=$_POST['del_row'];\r\n $id=implode(',',$id);\r\n $this->Events_Model->delete($this->table,$id);\r\n}", "public function deleteItems(array $keys);", "function attendance_delete_calendar_events($sessionsids) {\n global $DB;\n $caleventsids = attendance_existing_calendar_events_ids($sessionsids);\n if ($caleventsids) {\n $DB->delete_records_list('event', 'id', $caleventsids);\n }\n\n $sessions = $DB->get_recordset_list('attendance_sessions', 'id', $sessionsids);\n foreach ($sessions as $session) {\n $session->caleventid = 0;\n $DB->update_record('attendance_sessions', $session);\n }\n}", "public function deleteByFileIds()\n\t{\n\t\tif ( isset( \\IPS\\Request::i()->fileIds ) )\n\t\t{\n\t\t\t$ids = \\IPS\\Request::i()->fileIds;\n\t\t\t\n\t\t\tif ( ! \\is_array( $ids ) )\n\t\t\t{\n\t\t\t\t$try = json_decode( $ids, TRUE );\n\t\t\t\t\n\t\t\t\tif ( ! \\is_array( $try ) )\n\t\t\t\t{\n\t\t\t\t\t$ids = array( $ids );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$ids = $try;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( \\count( $ids ) )\n\t\t\t{\n\t\t\t\t\\IPS\\cms\\Media::deleteByFileIds( $ids );\n\t\t\t}\n\t\t}\n\t}", "public function deleteByIds(array $ids)\n {\n try {\n $data = $this->model->whereIn('id', $ids)->delete();\n \n if ($data) {\n return [\n 'message' => 'Data is deleted successfully',\n 'payload' => $data,\n 'status' => CoreConstants::STATUS_CODE_SUCCESS\n ];\n } else {\n return [\n 'message' => 'Nothing to Delete',\n 'payload' => null,\n 'status' => CoreConstants::STATUS_CODE_ERROR\n ];\n }\n } catch (\\Throwable $th) {\n Log::error($th->getMessage());\n return [\n 'message' => 'Something went wrong',\n 'payload' => $th->getMessage(),\n 'status' => CoreConstants::STATUS_CODE_ERROR\n ];\n }\n }", "public function bulk_delete(Request $request){\n $this->isAuthorize();\n\n // Delete the Data\n $userID = $this->request->session()->get('userID');\n $ids = $request->ids;\n DB::table(\"apt_time_slots\")->where('userID','=',$userID)->whereIn('id',explode(\",\",$ids))->delete();\n return response()->json(['success'=>\"Deleted successfully.\"]);\n }", "public function destroySelected(Request $request)\n {\n foreach ($request->ids as $id) {\n // find that record\n $event = EventBackend::find($id);\n\n // delete english images or files\n\n // delete arabic images or files\n\n if (count($event->media) > 0) {\n $event->media()->delete(); // delete english & arabic youtube links\n }\n\n if (count($event->hashtags) > 0) {\n $event->hashtags()->detach(); // delete hashtags\n }\n\n if (count($event->categories) > 0) {\n $event->categories()->detach(); // delete categories\n }\n\n $event->delete(); // delete events\n }\n\n if (\\Lang::getLocale() == 'en') {\n Session::flash('success', 'Event deleted successfully!');\n } else {\n Session::flash('success', ' تم مسح الحدث بنجاح');\n }\n\n return response()->json(['success', 'event deleted!']);\n }", "protected function entityDeleteMultiple($ids) {\n waywire_video_delete_multiple($ids);\n }", "public function deleteMultipleById(array $ids) : int\n {\n }", "public function deleteMany($ids)\n {\n $placeholders = array_fill(0, count($ids), \"?\");\n $placeholders = implode(\", \", $placeholders);\n\n $sql = \"DELETE FROM `%s` WHERE `%s` IN (%s)\";\n $this->_sql[] = sprintf($sql, $this->_table, $this->_key, $placeholders);\n $parameters = array();\n foreach ($ids as $id) {\n $parameters[] = array($this->_key => $id);\n }\n $this->_parameters[] = $this->parameterize($parameters);\n return $this->run();\n }", "public function deleteChked(Request $request)\n {\n $ids=$request->allids;\n $users=User::find($ids);\n foreach($users as $user)\n {\n $user->events()->where('user_id', $user->id)->detach();\n\n }\n\n }", "public function deleteLineItems(array $ids);", "function delete_events($event_id) {\n\tglobal $cxn;\n\n\t$errArr=init_errArr(__FUNCTION__); \n\ttry\n\t{\n\t\t// Sql String\n\t\t$sqlString = \"DELETE FROM events\n\t\t\t\tWHERE eID = ?\";\n\t\t\t\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\n\t\t$stmt->bind_param(\"i\", $event_id);\n\t\t$stmt->execute();\n\t\t\n\t\t// Check and delete users from this event\n\t}\n\tcatch (mysqli_sql_exception $err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error deleting events , event id: \" . $event_id;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\tif ($errArr[ERR_AFFECTED_ROWS]==0) { \n\t $errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t}\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn $errArr;\n}", "public function deleteUserNotificationByIds(array $ids);", "function delete_list( $ids = array()) {\n \t\t\n \t\t// where clause\n\t\t$this->db->where_in( $this->primary_key, $id );\n\n\t\t// delete the record\n\t\treturn $this->db->delete( $this->table_name );\n \t}", "public function deleteEvent($id) {\r\n$array = array('event_id' => $id);\r\n$success = $this->db->delete('events', $array);\r\nreturn $success;\r\n}", "public function deleteItems(array $keys)\n {\n }", "function deleteEventFromFile($idEvent, $idUser, $eventsArray, $file)\n\t{\n\t\t$i = search_2d_array($eventsArray, \"Event ID\", $idEvent);\n\t\t$p = $eventsArray[$i][\"User ID\"];\n\t\tif ($p == $idUser)\n\t\t{\n\t\t\t// Make string array of file and remove line at index\n\t\t\t$eventStringArray = file($file);\n\t\t\tunset($eventStringArray[$i]);\n\t\t\t// Reset array to string and rewrite file\n\t\t\t$fileContent = implode(\"\", $eventStringArray);\n\t\t\t$eventFile = fopen($file, \"wb\");\n\t\t\t// if the file doesn't open\n\t\t\tif ($eventFile === FALSE)\n\t\t\t\t$errorMessage = \"There was an error deleting the event.\";\n\t\t\t// otherwise write the string and close the file\n\t\t\telse \n\t\t\t{\n\t\t\t\tfwrite($eventFile, $fileContent);\n\t\t\t\tfclose($eventFile);\n\t\t\t\t// Reread the file to the web page's eventsArray\n\t\t\t\t$eventsArray = get2DAssocArray($file, $keys);\n\t\t\t}\n\t\t}\n\t}", "public function delete($where = null, array $markers = []);", "protected function entityDeleteMultiple($fids) {\n $files = file_load_multiple($fids);\n foreach ($files as $file) {\n file_delete($file);\n }\n }", "static public function deleteMultiple($ids) {\n return entity_delete_multiple('nuntius_room', $ids);\n }", "public function deleteStaffFromEvent($event, $data){\r\n\r\n $rowsSQL = array();\r\n\r\n $toBind = array();\r\n\r\n foreach($data as $arrayIndex => $row){\r\n $params = array();\r\n foreach($row as $columnName => $columnValue){\r\n $param = \":\" . $columnName . $arrayIndex;\r\n $params[] = $param;\r\n $toBind[$param] = $columnValue;\r\n }\r\n $rowsSQL[] = \"(\" . implode(\", \", $params) . \")\";\r\n }\r\n\r\n $sql = \"DELETE FROM `staff_event` WHERE `event` =\". $event .\" AND staff IN (\" . implode(\", \", $rowsSQL) . \")\";\r\n\r\n $stmt = $this->db->prepare($sql);\r\n //Bind our values.\r\n foreach($toBind as $param => $val){\r\n $stmt->bindValue($param, $val);\r\n }\r\n //Execute our statement (i.e. insert the data).\r\n $stmt->execute();\r\n }", "function absenrich_delete(){\r\n\t\t$ids = $_POST['ids']; // Get our array back and translate it :\r\n\t\t$pkid = json_decode(stripslashes($ids));\r\n\t\t$result=$this->m_absensi_enrichment->absenrich_delete($pkid);\r\n\t\techo $result;\r\n\t}", "public function destroy($ids);", "protected function _deleteEvent($eventId)\n {\n }", "public function delete($names);", "public function delete(array $where);", "protected function entityDeleteMultiple($ids) {\n farm_asset_delete_multiple($ids);\n }", "function alat_delete(){\r\n\t\t$ids = $_POST['ids']; // Get our array back and translate it :\r\n\t\t$pkid = json_decode(stripslashes($ids));\r\n\t\t$result=$this->m_alat->alat_delete($pkid);\r\n\t\techo $result;\r\n\t}", "public static function remove($ids) {\n if ((! is_array($ids)) && ($ids == self::ALL)) {\n $url = self::_buildUrl(null,null);\n } else {\n $url = self::_buildUrl('id',$ids);\n }\n try {\n $rsp = XN_REST::delete($url);\n } catch (XN_Exception $e) {\n // 404 == didn't remove anything\n if ($e->getCode() != 404) {\n throw $e;\n }\n }\n }", "public function deleteById ($ids, $auditAction = false) {\n\t\n\t\t// initialise variables\n\t\t$successCount = 0;\n\t\t\n\t\t// build the identifier\n\t\tif (!$idKey = $this->getIdentifier()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// create an array of IDs\n\t\tif (!is_array($ids)) {\n\t\t\t$ids = array ( $ids );\n\t\t}\n\t\t\n\t\t// clean the array\n\t\tarray_walk($ids, \"intval\");\n\t\t\n\t\t// loop through IDs\n\t\tforeach ($ids as $id) {\n\t\t\n\t\t\t// get the data\n\t\t\t$sql = \"SELECT * FROM \".DB_PREFIX.$this->tableName.\"\n\t\t\t\t\tWHERE \".$this->getIdentifier().\" = \".$id;\n\t\t\t$rec = $this->db->query($sql);\n\t\t\t\n\t\t\tif ($row = $rec->fetch()) {\n\t\t\t\n\t\t\t\t// run delete SQL\n\t\t\t\t$sql = \"DELETE FROM \".DB_PREFIX.$this->tableName.\"\n\t\t\t\t\t\tWHERE \".$this->getIdentifier().\" = \".$id;\n\t\t\t\t$delResult = $this->db->query($sql);\n\t\t\t\t\n\t\t\t\t// if successful\n\t\t\t\tif ($delResult) {\n\t\t\t\t\n\t\t\t\t\t// add to count\n\t\t\t\t\t$successCount++;\n\t\t\t\t\t\n\t\t\t\t\t// log to audit trail\n\t\t\t\t\tif ($auditAction) {\n\t\t\t\t\t\tAuditTrail::log($auditAction, json_encode($row));\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t// provide feedback\n\t\tif ($successCount > 0) {\n\t\t\t$this->setMessage(LANG_SUCCESS);\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->setMessage(LANG_FAILED);\n\t\t\treturn false;\n\t\t}\n\t\n\t}", "function agenda_delete_item($event_id,$repeat='this')\n{\n\t$final_result=true;\n\t$result=array();\n\n\t$tbl = get_conf('mainTblPrefix') . 'event';\n\t$sql = \"SELECT master_event_id\n\t\tFROM \" . $tbl . \"\n\t\tWHERE id = \" .(int) $event_id;\n\t$master_event_id = claro_sql_query_fetch_all($sql);\n\tif ($master_event_id == false)$result[] = $master_event_id;\n\n $tbl = get_conf('mainTblPrefix') . 'event';\n $sql = \"DELETE FROM \" . $tbl . \"\n WHERE id = \" . (int) $event_id;\n\t$result[] = claro_sql_query($sql);\n\n $tbl = get_conf('mainTblPrefix') . 'rel_event_recipient';\n $sql = \"DELETE FROM \" . $tbl . \"\n WHERE event_id= \" . (int) $event_id;\n\t$result[] = claro_sql_query($sql);\n\n\tif ($repeat=='all')\n\t{\n\t\tforeach ($master_event_id as $this_master_event_id)\n\t\t{\n\t\t\t$tbl = get_conf('mainTblPrefix') . 'event';\n\t\t\t$sql = \"SELECT id\n\t\t\t\tFROM \" . $tbl . \"\n\t\t\t\tWHERE master_event_id = \" .(int) $this_master_event_id['master_event_id'];\n\t\t\t$event_id_list = claro_sql_query_fetch_all($sql);\n\t\t\tif ($event_id_list == false)$result[] = $event_id_list;\n\t\t}\n\n\t\tforeach ($event_id_list as $this_event_id) \n\t\t{\n\t\t\t$tbl = get_conf('mainTblPrefix') . 'event';\n\t\t\t$sql = \"DELETE FROM \" . $tbl . \"\n\t\t\t\tWHERE id = \" . (int) $this_event_id['id'];\n\t\t\t$result [] = claro_sql_query($sql);\n\n\t\t\t$tbl = get_conf('mainTblPrefix') . 'rel_event_recipient';\n\t\t\t$sql = \"DELETE FROM \" . $tbl . \"\n\t\t\t\tWHERE event_id= \" . (int) $this_event_id['id'];\n\t\t\t$result []= claro_sql_query($sql);\n\t\t}\n\t}\n\tif (is_array($result) && !empty($result))\n\t{\n\t\tforeach($result as $this_result)\n\t\t{\n\t\t\tif ($this_result==false) $final_result=false;\n\t\t}\n\t}\n return $final_result;\n}", "public function delete_multiple(array $keys, $group = '')\n {\n }", "function delete_event($event_id) {\n\t\t$data = $this->db->query('SELECT bulletin_id FROM event_bulletin WHERE event_id='.$event_id.'');\n\t\t$bulletinIDs = $data->result();\n\t\t// Delete all bulletins with this event_id\n\t\tforeach ($bulletinIDs as &$value) {\n\t\t\t$this->db->where('bulletin_id', $value->bulletin_id);\n\t\t\t$this->db->delete('bulletin');\n\t\t}\n\t\t$this->db->where('event_id', $event_id);\n\t\t$this->db->delete('event');\n\t\t$this->db->where('event_id', $event_id);\n $this->db->delete('event_bulletin');\n\t\t$this->db->where('event_id', $event_id);\n\t\t$this->db->delete('event_location');\n\t\t$this->db->where('event_id', $event_id);\n $this->db->delete('event_owner');\n\t\t$this->db->where('event_id', $event_id);\n\t\t$this->db->delete('event_tag');\n\t\t$this->db->where('event_id', $event_id);\n\t\t$this->db->delete('organization_event');\n\t}", "public function deleteItems(array $uuids)\n {\n foreach ($uuids as $uuid) {\n $this->deleteItem($uuid);\n }\n }", "public function remove($ids) {\n\t\tif(!is_array($ids)) {\n\t\t\t$ids = array($ids);\n\t\t}\n\t\t$ids = array_map('intval', $ids);\n\t\tforeach($ids as $id) {\n\t\t\t$this->removeById($id);\n\t\t}\n\t}", "public function deleteRowByArray($table, $field, $deleteIDs)\r\n\t\t{\r\n\t\t\tforeach($deleteIDs as $id){\r\n\t\t\t\t$this->where(\"`{$field}` = '{$id}'\");\r\n\t\t\t\t$this->deleteRow($table);\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}", "public function delete(Event $event){\r\n $stmt = $this->db->prepare(\"DELETE FROM event WHERE id_event = ?\");\r\n $stmt->execute(array($event->getIdEvent()));\r\n }", "public function purgeObjects(array $ids);", "function delete_list($office_ids)\n {\n $this->db->where_in('office_id',$office_ids);\n return $this->db->update('offices', array('deleted' => 1));\n }", "public function bulkDelete(Request $request)\n {\n $ids = $request->get('ids');\n Guest::whereIn('id', $ids)->delete();\n return $this->index(request());\n }", "public function deleteByEntryIds(array $entryIds)\n\t{\n\t\treturn $this->in($entryIds);\n\t}", "public function deleteEventsCommand(\n $dryRun = true,\n $period = 'pastOnly',\n $date = '',\n $storagePageIds = '',\n $limit = 1000\n ) {\n $settings = $this->createSettings($period, $date, $storagePageIds, $limit);\n\n $eventDemand = $this->eventDemandFactory->createFromSettings($settings);\n $events = $this->eventRepository->findDemanded($eventDemand);\n $performanceDemand = $this->performanceDemandFactory->createFromSettings($settings);\n $performances = $this->performanceRepository->findDemanded($performanceDemand);\n\n $deletedPerformances = count($performances);\n\n $output = 'Found ' . $deletedPerformances . ' performance in ' . count($events) . ' events.';\n if (!$dryRun) {\n $output = 'Deleted ' . $deletedPerformances . ' performances';\n foreach ($performances as $performance) {\n $this->performanceRepository->remove($performance);\n }\n\n $deletedEvents = 0;\n $keptEvents = 0;\n /** @var Event $event */\n foreach ($events as $event) {\n $localPerformances = $event->getPerformances();\n if (count($localPerformances)) {\n $keptEvents++;\n continue;\n }\n $deletedEvents++;\n $this->eventRepository->remove($event);\n }\n $output .= ' and ' . $deletedEvents . ' events. ';\n if ($keptEvents > 0) {\n $output .= $keptEvents . 'events where not deleted because they contain other performances.';\n }\n }\n\n $this->outputLine($output);\n }", "public function destroy($event_id)\n { \n $events=new Events;\n $events->find($event_id)->delete();\n }", "public function deleteMultiple( $keys )\n\t{\n\t\t$this->getObject()->deleteMultiple( $keys );\n\t}", "function messageDeleteBulk(Collection $messages);", "public function bulkDelete(Request $request)\n {\n return $this->model->bulkDelete($request->ids);\n }", "public function destroy(events $events)\n {\n //\n }", "public function destroy($id)\n {\n if($id == 'all')\n {\n DB::delete('delete from events where id != ?',[$id]);\n }\n else\n {\n DB::delete('delete from events where id = ?',[$id]);\n }\n return response()->json('Successfully Deleted');\n //\n }", "public static function deleteByIds($ids)\n {\n $criteriaWhere = new Criteria();\n $criteriaWhere->add(self::ID, $ids, Criteria::IN);\n\n $criteriaSet = new Criteria();\n $criteriaSet->add(self::IS_DELETED, 1);\n\n BasePeer::doUpdate($criteriaWhere, $criteriaSet, Propel::getConnection(self::DATABASE_NAME));\n }", "public function destroy(Request $request)\n\t{\n\t\t$Input = $request->all();\n\t\t$pagesIDs = $Input['pageIDs'];\n\t\t$pageIdArray = explode(',', $pagesIDs);\n\n\t\tforeach ($pageIdArray as $key => $pageId){\n\t\t\tUserEvents::find($pageId)->delete();\n\n\t\t\t// Store in audit\n\t $auditData = array();\n\t $auditData['user_id'] = \\Auth::user()->id;\n\t $auditData['section'] = 'event';\n\t $auditData['action'] = 'userRequestForEvent.delete';\n\t $auditData['time_stamp'] = time();\n\t $auditData['device_id'] = \\Request::ip();\n\t $auditData['device_type'] = 'web';\n\t auditTrackRecord($auditData);\n\t\t}\n\n return redirect()->route('UserRequestForEvent.index')->with('flash_message','Item deleted successfully');\n\t}", "function deleteDateTimeRecords($dateTimeIDs)\n\t{\n\t\tforeach($dateTimeIDs as $key=>$value)\n\t\t{\n\t\t\tif($key == \"REL_startID\")\n\t\t\t{\n\t\t\t\t$start_query = \"\tDELETE FROM\t\tevent_start \n\t\t\t\t\t\t\t\t\tWHERE \t\t\tPK_startID = '$value' \";\n\t\t\t\t$start_result = mysql_query($start_query);\n\t\t\t\tif(!$start_result)\n\t\t\t\t{\n\t\t\t\t\techo('Error in DELETE query named $start_query.');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$end_query = \"\tDELETE FROM\t\tevent_end \n\t\t\t\t\t\t\t\tWHERE \t\t\tPK_endID = '$value' \";\n\t\t\t\t$end_result = mysql_query($end_query);\n\t\t\t\tif(!$end_result)\n\t\t\t\t{\n\t\t\t\t\techo('Error in DELETE query named $end_query.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function delete($table, array $identifier);", "public static function delete_all_calendar_events($mumie) {\n global $CFG, $DB;\n require_once($CFG->dirroot.'/calendar/lib.php');\n $records = $DB->get_records(\n \"event\",\n array(\n \"modulename\" => \"mumie\",\n \"instance\" => $mumie->id\n )\n );\n\n foreach ($records as $record) {\n $event = \\calendar_event::load($record->id);\n $event->delete();\n }\n }", "function delete($documents=null){\n if(!$this->db_coll_set()){\n return [\"error\"=>\"db or collection not set.\"];\n }\n $bulk = new MongoDB\\Driver\\BulkWrite;\n if($documents){\n foreach($documents as $doc){\n if(!$this->isAssoc($doc)){\n return array(\"error\"=>\"DELETE failed, document not associative array.\");\n }\n //If the '_id' is in array and its long (like a mongo id) \n //then convert into a mongoid object\n if(array_key_exists('_id',$doc) && strlen($doc['_id']) >= 24){\n $doc['_id'] = new MongoDB\\BSON\\ObjectID($doc['_id']);\n }\n \n //run the delete\n $bulk->delete($doc);\n\t\t\t\t\n }\n }else{\n $bulk->delete([]);\n }\n \n $result = $this->manager->executeBulkWrite($this->dbdotcoll, $bulk, $this->writeConcern);\n return $result->getDeletedCount();\n\n }", "public function delete()\n {\n $ids = Request::get(\"id\");\n\n $ids = is_array($ids) ? $ids : [$ids];\n\n foreach ($ids as $ID) {\n\n $activity = TenderActivity::findOrFail($ID);\n\n // Fire deleting action\n\n Action::fire(\"activity.deleting\", $activity);\n\n\n $activity->delete();\n\n // Fire deleted action\n\n Action::fire(\"activity.deleted\", $activity);\n }\n\n return Redirect::back()->with(\"message\", trans(\"tenders::activities.events.deleted\"));\n }", "public function deleteAtOffset(Array $offset = []);", "public function deleteEvent($event_id,$poi_id)\r\r\n {\r\r\n $where = $this->getAdapter()->quoteInto('event_id = ?', $event_id).\r\r\n $this->getAdapter()->quoteInto(' AND poi_id = ?', $poi_id);\r\r\n $this->delete($where);\r\r\n }", "public function removeBulk(Request $request)\n {\n $reviews_id_array = $request['id'];\n foreach ($reviews_id_array as $review_id)\n {\n $review = Review::find($review_id);\n $review->delete();\n }\n return response()->json('Data deleted successfully.');\n }", "function batch_delete_maps ($ids) {\r\n\t\tif (!is_array($ids)) return false;\r\n\t\t$clean = array();\r\n\t\tforeach ($ids as $id) {\r\n\t\t\tif ((int)$id) $clean[] = (int)$id;\r\n\t\t}\r\n\t\tif (empty($clean)) return false;\r\n\t\t$table = $this->get_table_name();\r\n\t\t$res = $this->wpdb->query(\"DELETE FROM {$table} WHERE id IN(\" . join(',', $clean) . \")\", ARRAY_A);\r\n\t\treturn $res ? true : false;\r\n\t}", "function seminars_delete_multiple($sids, $delete_categories = FALSE, $delete_masters = FALSE) {\n\n foreach($sids as $sid)\n seminars_delete($sid, $delete_categories, $delete_masters);\n \n}", "function delete_repeat_events ($event_id, $sdate_time=MIN_DATE_TIME, $delete_option=DELETE_ALL) {\n\tglobal $cxn;\n\n\t$errArr=init_errArr(__FUNCTION__); \n\ttry\n\t{\n\t\t// Set up delete conditions \n\t\tif ($delete_option == DELETE_ONE) {\n\t\t\t$where = \" AND sdate_time = ?\";\n\t\t}\n\t\telse {\n\t\t\t$where = \" \";\n\t\t}\n\t\t// Sql String\n\t\t$sqlString = \"DELETE FROM repeat_events \n\t\t\t\tWHERE event_id = ?\" \n\t\t . $where ;\n\t\t\t\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\tif ($delete_option == DELETE_ONE) {\n\t\t $stmt->bind_param(\"is\", $event_id, $sdate_time );\n\t\t}\n\t\telse {\n\t\t\t$stmt->bind_param(\"i\", $event_id );\n\t\t}\n\t\t$stmt->execute();\n\t}\n\tcatch (mysqli_sql_exception $err)\n\t{\n\t\t// Error settings\n\t\t$err_code = 1;\n\t\t$err_descr = \"Error deleting repeat_events, event id: \" . $event_id . \" sdate_time: \" . $sdate_time\n\t\t . \" delete_option: \" . $delete_option ;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn $errArr;\n}", "public static function destroy($ids);", "function remove_duplicate_events( $events ) {\n\t// Re-index them by a URL to overwrite duplicates\n\t$unique_events = array();\n\n\tforeach ( $events as $event ) {\n\t\t$parsed_url = parse_url( $event['url'] );\n\n\t\t// Take all essential parts to cover current URL structures, and potential future ones.\n\t\t$normalized_url = sprintf(\n\t\t\t'%s%s%s',\n\t\t\t$parsed_url['host'],\n\t\t\t$parsed_url['path'] ?? '',\n\t\t\t$parsed_url['query'] ?? ''\n\t\t);\n\t\t$normalized_url = str_replace( '/', '', $normalized_url );\n\n\t\t$unique_events[ $normalized_url ] = $event;\n\t}\n\n\t// Restore integer keys.\n\treturn array_values( $unique_events );\n}", "function event__delete_event($id)\n {\n $this->db->where('id', $id);\n $this->db->delete('events');\n\n // Delete event from link table\n $this->db->where('event_id', $id);\n $this->db->delete('event_links');\n }", "public function deleteStoreIds($attribute, $storeIds = array())\n {\n $table = $this->getMainTable();\n\n if ($attribute instanceof \\Magento\\Eav\\Model\\Attribute) {\n $attributeId = $attribute->getId();\n } else {\n $attributeId = $attribute;\n }\n\n if (count($storeIds) > 0) {\n $where = ['attribute_id = ?' => (int)$attributeId, 'store_id IN (?)' => $storeIds];\n\n $this->_getWriteAdapter()->delete($table, $where);\n }\n }", "public function batch_delete($data)\n {\n $required = array(\n 'ids' => 'IDs not passed',\n );\n $this->di['validator']->checkRequiredParamsForArray($required, $data);\n\n foreach ($data['ids'] as $id) {\n $this->delete(array('id' => $id));\n }\n\n return true;\n }", "public function delete($identifiers)\n {\n if (is_object($identifiers)) {\n $identifiers = $this->_hydrator->extract($identifiers);\n }\n\n if (is_string($identifiers)) {\n $field = $this->_class->getIdentifierFieldNames();\n $identifiers = [$field[0] => $identifiers];\n }\n\n $classIdentifiers = $this->_class->getIdentifier();\n $identifiers = array_intersect_key($identifiers, $classIdentifiers);\n\n $result = $this->_em->getConnexionDriver()->deleteItem($identifiers, $this->_class);\n\n if(!$result) {\n throw new \\Exception('Something wrong.');\n }\n return $result ? true : false;\n }", "abstract public function delete(string $identifier): array;", "public function deleteSelected()\n {\n PatientRecord::whereIn('id', $this->selectedKeys())->delete();\n }", "public function deleteBulk(array $source_keys) {\n // If we have a single-column key, we can shortcut it\n if (count($this->sourceKey) == 1) {\n $sourceids = array();\n foreach ($source_keys as $source_key) {\n $sourceids[] = $source_key;\n }\n $this->connection->delete($this->mapTable)\n ->condition('sourceid1', $sourceids, 'IN')\n ->execute();\n $this->connection->delete($this->messageTable)\n ->condition('sourceid1', $sourceids, 'IN')\n ->execute();\n }\n else {\n foreach ($source_keys as $source_key) {\n $map_query = $this->connection->delete($this->mapTable);\n $message_query = $this->connection->delete($this->messageTable);\n $count = 1;\n foreach ($source_key as $key_value) {\n $map_query->condition('sourceid' . $count, $key_value);\n $message_query->condition('sourceid' . $count++, $key_value);\n }\n $map_query->execute();\n $message_query->execute();\n }\n }\n }", "public function delete() \n {\n $model = $this->model;\n $input = Input::all(); \n \n $arrayIdDelete = $input[$model::getPrimaryKey()];\n \n $result = array();\n foreach ($arrayIdDelete as $id) {\n $singleResult = $this->deleteSingleObject($id);\n $result[] = $singleResult;\n }\n \n return $jsend = JSend\\JSendResponse::success($result);\n }", "function orders_delete($ids, $options=array()){\n\textract($options);\n\tglobal $fl,$ln,$qr,$qx,$fromHdrBugs,$developerEmail;\n\t//what about security, who able to do so etc.\n\tforeach($ids as $Headers_ID){\n\t\t//filter out for payments made or deposits made\n\t\t$a=q(\"SELECT * FROM _v_finan_invoices_cash_sales WHERE ID=$Headers_ID\", O_ROW);\n\t\tif($a['AmountApplied']<>0 || $a['AmountAppliedTo']<>0){\n\t\t\terror_alert('Transaction '.$a['HeaderNumber'].' was not deleted because it was referenced or paid with another transaction',1);\n\t\t\tglobal $Orders_ID;\n\t\t\tunset($Orders_ID[array_search($Headers_ID,$Orders_ID)]);\n\t\t\tif(count($ids)==1)eOK();\n\t\t}\n\t\t$ln=__LINE__; q(\"DELETE FROM finan_headers WHERE ID=$Headers_ID\");\n\t\tprn($qr);\n\t\t$ln=__LINE__; q(\"DELETE FROM finan_invoices WHERE Headers_ID=$Headers_ID\");\n\t\tprn($qr);\n\t\t$ln=__LINE__; q(\"DELETE FROM finan_payments WHERE Headers_ID=$Headers_ID\");\n\t\tprn($qr);\n\t\t$ln=__LINE__; q(\"DELETE FROM finan_transactions WHERE Headers_ID=$Headers_ID\");\n\t\tprn($qr);\n\t}\n}", "public function massDelete(Request $request)\n\t{\n\t\t$ids = $request->input('ids', []);\n\t\t\n\t\tif(is_array($ids) && !empty($ids))\n\t\t{\n\t\t\tforeach(Mail::whereIn('id', $ids)->get() as $mail)\n\t\t\t{\n\t\t\t\t$mail->delete();\n\t\t\t}\n\t\t}\n\t\t\n\t\t$result = [\n\t\t\t'success' => 1,\n\t\t];\n\t\t\n\t\treturn $result;\n\t}", "public function deleteParticipants($event_id) {\r\n$array = array('event_id' => $event_id);\r\n$success = $this->db->delete('participated_in', $array);\r\nreturn $success;\r\n}", "public function delete( $ids )\n\t {\n\t\t if ( !is_array( $ids ) )\n\t\t \treturn false;\n\t\t \n\t\t try {\n\t\t\t $response = $this->_sf_connection->delete($ids);\n\t\t\t if ( $this->_debug ) $this->_response($response);\n\t\t\t if ( $response ) {\n\t\t\t \tif ( $response[0]->success )\n\t\t\t \t\treturn $response;\n\t\t\t \telse\n\t\t\t\t\tthrow new Exception($response[0]->errors[0]->message);\n\t\t\t} else {\n\t\t\t\tthrow new Exception(ERROR_NO_RESPONSE);\n\t\t\t}\n\t\t } catch ( Exception $e ) {\n\t\t \t$this->_error( $e );\n\t\t \treturn false;\n\t\t }\n\t }", "public static function deleteAssignedEmployeesShiftWithAttendance($shift_id,$employee_ids_collector){\n date_default_timezone_set('Europe/Prague');\n DB::table('table_employee_shifts')\n ->select('table_employee_shifts.employee_id','table_employee_shifts.shift_id')\n ->whereNotIn('employee_id',$employee_ids_collector)\n ->where(['table_employee_shifts.shift_id' => $shift_id])\n ->delete();\n\n DB::table('table_attendances')\n ->select('table_attendances.employee_id','table_attendances.shift_id')\n ->whereNotIn('table_attendances.employee_id',$employee_ids_collector)\n ->where(['table_attendances.shift_id' => $shift_id])\n ->delete();\n }", "function delete_user_events_by_event_id($event_id) {\n\tglobal $cxn;\n\n\t$errArr=init_errArr(__FUNCTION__); \n\ttry\n\t{\n\t\t// Sql String\n\t\t$sqlString = \"DELETE FROM user_events\n\t\t\t\tWHERE event_id = ?\"; \n\t\t\t\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\t\n\t\t$stmt->bind_param(\"i\", $event_id);\n\t\t$stmt->execute();\n\t}\n\tcatch (mysqli_sql_exception $err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error deleting user events , event id: \" . $event_id;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn $errArr;\n}", "public static function removeByIds($ids)\n {\n $idList = array();\n if (is_array($ids))\n {\n $idList = array_merge($idList, $ids);\n }\n else\n {\n $idList[] = $ids;\n }\n\n $cond = array( 'id' => array( $idList ) );\n eZPersistentObject::removeObject( self::definition(), $cond );\n }", "public function delete(){\r\n $rsid_array = $this -> uri -> segment_array();\r\n\r\n foreach ($rsid_array as $key => $value) {\r\n \r\n //If the key is greater than 2 i.e is one of the the ids\r\n if ($key > 2) {\r\n\r\n //Run delete\r\n $this -> db -> delete('refSubs', array('id' => $value));\r\n\r\n } \r\n }\r\n\r\n }", "public function destroys()\n {\n try {\n $ids = \\request()->get('ids');\n Event::destroy($ids);\n } catch (\\Exception $e) {\n return response()->json([\n 'message' => \"Error: {$e->getMessage()}\"\n ], $e->getCode());\n }\n\n return response()->json([\n 'message' => __('Data deleted successfully')\n ]);\n }", "public function deleteEventByID($event_id)\n{\n $this->load->database();\n\n $query = \"delete from event where event_id = $event_id\";\n $result = $this->db->query($query);\n return ($result);\n}", "public function delete($ids)\n\t{\n\t\t$conditions = array();\n\n\t\tforeach ($ids as $id)\n\t\t{\n\t\t\t$conditions[] = 'id = ' . (int) $id;\n\t\t}\n\n\t\t$query = $this->db->getQuery(true);\n\n\t\t$query->delete('#__monitor_projects')\n\t\t\t->where($conditions, 'OR');\n\n\t\t$this->db->setQuery($query);\n\n\t\t$this->db->execute();\n\t}", "function deleteEvent($eventId) {\n if (!is_int($eventId)) {\n return FALSE;\n }\n $this->deleteRecommendations($eventId);\n $this->_deleteWeekdays($eventId);\n $this->_deleteMonths($eventId);\n return $this->databaseDeleteRecord($this->tableEvents, 'event_id', $eventId);\n }", "function delete_user_events_by_user_event_id($user_id, $event_id) {\n\tglobal $cxn;\n\n\t$errArr=init_errArr(__FUNCTION__); \n\ttry\n\t{\n\t\t// Sql String\n\t\t$sqlString = \"DELETE FROM user_events\n\t\t\t\tWHERE user_id = ? AND\n\t\t\t\t event_id = ?\";\n\t\t\t\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\n\t\t$stmt->bind_param(\"ii\", $user_id, $event_id);\n\t\t$stmt->execute();\n\t}\n\tcatch (mysqli_sql_exception $err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error deleting user events , user id: \" . $user_id . \" event id: \" .$event_id;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn $errArr;\n}", "public function deleteEmails(int $id, array $emails): bool;", "public function deleteRows($arr_delete_array, $table_name, $field_name) {\n if (count($arr_delete_array) > 0) {\n foreach ($arr_delete_array as $id) {\n $this->db->where($field_name, $id);\n $query = $this->db->delete($table_name);\n $error = $this->db->_error_message();\n $error_number = $this->db->_error_number();\n if ($error) {\n $controller = $this->router->fetch_class();\n $method = $this->router->fetch_method();\n $error_details = array(\n 'error_name' => $error,\n 'error_number' => $error_number,\n 'model_name' => 'Common_Model',\n 'model_method_name' => 'deleteRows',\n 'controller_name' => $controller,\n 'controller_method_name' => $method\n );\n $this->common_model->errorSendEmail($error_details);\n redirect(base_url() . 'page-not-found'); //create this route\n }\n }\n }\n }" ]
[ "0.7017683", "0.69400126", "0.677669", "0.6579054", "0.6548128", "0.65366983", "0.64679104", "0.6464421", "0.64289457", "0.63672334", "0.6338343", "0.62950206", "0.61640596", "0.61266243", "0.60348094", "0.602979", "0.6000051", "0.59990793", "0.59835464", "0.5943345", "0.5921986", "0.58847386", "0.5867438", "0.58662695", "0.58634514", "0.58633995", "0.5854368", "0.584552", "0.5813635", "0.5811524", "0.58083475", "0.5794702", "0.5780489", "0.5775201", "0.5767032", "0.57368404", "0.5734767", "0.57282734", "0.57266647", "0.57206327", "0.57128865", "0.5697606", "0.56934035", "0.56902987", "0.56898683", "0.56850845", "0.5680258", "0.566065", "0.56546885", "0.56540394", "0.56504124", "0.56491786", "0.5646384", "0.5642115", "0.56254154", "0.5622979", "0.5606599", "0.5606382", "0.5602711", "0.5595057", "0.5587412", "0.5574977", "0.55580205", "0.55441386", "0.55429083", "0.55242366", "0.552063", "0.551988", "0.5513896", "0.5513323", "0.55057657", "0.5503032", "0.55005586", "0.5498081", "0.54973066", "0.54961264", "0.54961145", "0.54883724", "0.54854214", "0.5483474", "0.5474436", "0.5463413", "0.54613507", "0.5459047", "0.5451667", "0.5446865", "0.5446468", "0.5444625", "0.5438766", "0.5438536", "0.5437164", "0.5436844", "0.54366165", "0.5434115", "0.5429442", "0.5423095", "0.5413387", "0.540227", "0.53981215", "0.53959334" ]
0.705966
0
Returns Customer_Company objects of all employees of this company
Возвращает объекты Customer_Company всех сотрудников этой компании
public function getEmployees() { if ( is_null($this->_employees) ){ $customers = $this->getTable()->getEmployees(); $objects = new splObjectStorage(); foreach ($customers AS $customer) { try { $ccust = new Yourdelivery_Model_Customer_Company($customer->customerId, $this->getId()); if ($ccust->isDeleted()) { continue; } } catch (Yourdelivery_Exception_Database_Inconsistency $e) { continue; } $objects->attach($ccust); } $this->_employees = $objects; } return $this->_employees; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCompanyEmployees();", "public static function getEnterpriseCompanies(){\n $result = db::get(\"SELECT uid_empresa FROM \". TABLE_EMPRESA .\" WHERE is_enterprise = 1 ORDER BY nombre\", \"*\", 0, \"empresa\");\n return new ArrayObjectList($result);\n }", "public static function all() {\n\n $db = Zend_Registry::get('dbAdapter');\n $result = $db->query('select id from companys')->fetchAll();\n $companys = new SplObjectStorage();\n foreach ($result as $c) {\n try {\n $company = new Yourdelivery_Model_Company($c['id']);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $companys->attach($company);\n }\n return $companys;\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public static function employees(Company $company): array\n {\n // number of employees in total\n $totalNumberOfEmployees = $company->employees()->notLocked()->count();\n\n // 10 random employees\n $tenRandomEmployeesCollection = collect([]);\n $allEmployees = $company->employees()\n ->notLocked()\n ->with('picture')\n ->inRandomOrder()\n ->take(10)\n ->get();\n\n foreach ($allEmployees as $employee) {\n $tenRandomEmployeesCollection->push([\n 'id' => $employee->id,\n 'name' => $employee->name,\n 'avatar' => ImageHelper::getAvatar($employee, 32),\n 'url' => route('employees.show', [\n 'company' => $company,\n 'employee' => $employee,\n ]),\n ]);\n }\n\n // ten random employees\n\n // number of employees hired in the current year\n $employeesHiredInTheCurrentYear = $company->employees()\n ->notLocked()\n ->whereYear('hired_at', (string) Carbon::now()->year)\n ->count();\n\n return [\n 'employees_hired_in_the_current_year' => $employeesHiredInTheCurrentYear,\n 'ten_random_employees' => $tenRandomEmployeesCollection,\n 'number_of_employees_left' => $totalNumberOfEmployees - $tenRandomEmployeesCollection->count(),\n 'view_all_url' => route('employees.index', [\n 'company' => $company,\n ]),\n ];\n }", "public static function FilterByEmployees() {\n\t\t\t\n\t\t\t$sql = \"SELECT Code,Employee_Name FROM employees\";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees1 = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees1[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees1;\n\t\t}", "public function getAllEmployees();", "public function getEmployees() {\n\n /* Fetch all included employee IDs */\n $employeeIDs = $this->getIncludedEmployeeIDs();\n\n\n /* Set orWhereIn variables */\n array_push($this->whereIn, [\n 'column' => 'employee_id',\n 'array' => $employeeIDs\n ]);\n }", "public static function DisplayAll() {\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM employees \";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees;\n\t\t}", "public function getCompaniesReport() : CompaniesReport\n\t{\n\t\t$response = $this->execute('Empresa');\n\t\t\n\t\t$companiesByArea = [];\n\t\tforeach($response['e'] as $areaPool){\n\t\t\t$i = $areaPool['a'];\n\t\t\tforeach($areaPool['e'] as $company){\n\t\t\t\t$companiesByArea[$i][]=new Company(\n\t\t\t\t\t$company['a'],\n\t\t\t\t\t$company['c'],\n\t\t\t\t\t$company['n']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn new CompaniesReport($response['hr'],$companiesByArea);\n\t}", "public function companies(): Collection\n {\n return Company::all();\n }", "public function employees()\n {\n $response = $this->client->get('employees');\n\n return collect($response->json('collection'))->mapInto(Employee::class);\n }", "public function getAllEmployees() \n {\n $employees = Employees::getEmployees();\n\n foreach($employees as $key => $employee){\n $newArrayEmployees[$key] = $this->generateEmployeeData($employee);\n }\n\n sort($newArrayEmployees);\n\n return $newArrayEmployees;\n }", "function Companies(){\n\t\t\t\treturn $this->companies;\n\t\t\t}", "public static function getEmployees($conn) {\r\n\r\n \r\n // set static database connection\r\n $dbc = $conn->getdbc();\r\n\r\n // for now (or permanently) directly include SQL here\r\n $sql_showEmployees = \"SELECT * FROM employees\";\r\n\r\n\r\n if ($result = $dbc->query($sql_showEmployees)) {\r\n\r\n $employees = [];\r\n\r\n while ($row = $result->fetch()) {\r\n\r\n $employees[] = Employee::create($conn, $row['id'], $row['fname'], $row['lname'], $row['email']);\r\n }\r\n // return users array\r\n return $employees;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n }\r\n }", "public function getEmployee()\n\t{\n\t\t$arr = $this->queryToDbObj->getEmployeeList();\n\n\t\treturn $arr;\n\t}", "public function getAllEmployees() {\n\t\t$em = $this->getEntityManager();\n\t\t$employees = $em->createQueryBuilder()\n\t\t\t->select('e.employeeID,e.userName')\n\t\t\t->from('Employee', 'e')\n\t\t\t->orderBy('e.employeeID')\n\t\t\t->getQuery()\n\t\t\t->getResult();\n\t\t\n\t\t$response = array(\n\t\t\t\"employees\" => $employees\n\t\t);\n\t\t\n\t\treturn $this->respond($response);\n\t}", "public function employees()\n {\n return $this->users->where('account_type', 'Employee');\n }", "public function Employees()\n {\n $this->_Employees->ClearAllOptions();\n return $this->_Employees;\n }", "public static function allEmployeesEmail($companyId = null) {\n if (is_null($companyId)) {\n return array();\n }\n\n $db = Zend_Registry::get('dbAdapter');\n return $db->query('select c.email from customers c inner join customer_company cc on c.id=cc.customerId where c.deleted=0 and cc.companyId=' . $companyId . ' order by c.email')->fetchAll();\n }", "public function getAllEmployers();", "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "public function selectAll() {\r\n $query = \"SELECT * FROM \" . EmpleoDAO::EMPLEO_TABLE;\r\n $result = mysqli_query($this->conn, $query);\r\n $empleos = array();\r\n while ($empleoBD = mysqli_fetch_array($result)) {\r\n\r\n $empleo = new Empleo();\r\n $empleo->setId($empleoBD[\"idJob\"]);\r\n $empleo->setPosition($empleoBD[\"position\"]);\r\n $empleo->setCompany($empleoBD[\"company\"]);\r\n $empleo->setLogo($empleoBD[\"logo\"]);\r\n $empleo->setDescription($empleoBD[\"description\"]);\r\n $empleo->setSalary($empleoBD[\"salary\"]);\r\n\r\n array_push($empleos, $empleo);\r\n }\r\n return $empleos;\r\n }", "public function allCompanies()\n {\n\n $companies = $this->core_companies;\n\n $items = [];\n foreach ($companies as $company) {\n\n $companyItem = new CompanyCardItem();\n $companyItem->id = $company->id;\n $companyItem->name = $company->name;\n //$companyItem->amount = $catalog->amount;\n $companyItem->title = $company->title;\n if (\\Dash\\count($company->photo))\n $companyItem->image = '/uploaz/eyuf/UserCompany/photo/' . $company->id . '/' . $company->photo[0];\n $companyItem->url = ZUrl::to([\n 'customer/markets/show',\n 'id' => $company->id\n ]);\n $companyItem->distence = \"12km\";\n //$companyItem->image = $catalog->price;\n //$companyItem->price = $catalog->price_old;\n //$companyItem->currency = \"$\";\n //$companyItem->cart_amount = 0;\n\n $items[] = $companyItem;\n }\n return $items;\n }", "public function getAdmins() {\n $a = new SplObjectStorage();\n $admins = $this->getTable()->getAdmins();\n foreach ($admins as $admin) {\n try {\n $customer = new Yourdelivery_Model_Customer_Company($admin['id'], $this->getId());\n $a->attach($customer);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n }\n return $a;\n }", "public function getCompaniesToSuspend() {\n return $this->createQuery('c')\n ->select('c.*')\n ->from('Companies_Model_Company c')\n ->where('c.status = ?', Companies_Model_Company::STATUS_EXPIRED)\n ->addWhere('c.payment_date IS NOT NULL AND ADDDATE(c.payment_date, 8) < NOW()')\n ->execute();\n }", "public static function vehicles_employees_crits(){\n\t\treturn array('(company_name'=>CRM_ContactsCommon::get_main_company(),'|related_companies'=>array(CRM_ContactsCommon::get_main_company()));\n }", "public function getCompanyWithUsers();", "function exeGetAllEmployees() {\n $exeGetAllEmployees = $this->db->query(\"SELECT *\n FROM employees\n WHERE status >= 0\n ORDER BY firstname ASC, lastname ASC\");\n \n return $exeGetAllEmployees->result_array();\n }", "public function getEmployees()\n {\n return $this->hasMany(Employee::className(), ['Emp_tumbol' => 'id']);\n }", "public function getAllOfficeEmployers();", "public function getAllEmp(){\n\t\t$sql = \"SELECT * FROM empreendimento;\";\n\t\treturn $this->Model->getData($sql);\n\t}", "public function findAllEmployeesAsArray()\n {\n return $this->createQueryBuilder('e')\n ->getQuery()\n ->getArrayResult();\n\n }", "public function getAllCompanyAccounts()\n { \n // select all fields and columns form the 'companies' table and return is as an array of objects\n $companies = Company::all();\n\n // if the length of array of company objects is greater than 0 (contains elements)\n if (count($companies) > 0) {\n // loop through each company, get the token from the 'company_activation_codes' table and update the object\n foreach ($companies as $key => $value) {\n $token = CompanyActivationCode::where('company_id', $value['id'])->first()->activation_code;\n $value['token'] = $token;\n $companies[$key] = $value;\n }\n }\n \n // send a response to the requester of the data\n $response_message = array('success' => true, 'message' => 'Data fetched', 'data' => $companies);\n return response()->json($response_message);\n }", "public function selectAll() {\n\t\t$employees = $this->employee->all();\n\n\t\t$data = array();\n\t\tforeach ($employees as $employee) {\n\t\t\t$data[] = array(\n\t\t\t\t'name' => $employee->name . ' (' . $employee->contact_number . ')',\n\t\t\t\t'id' => $employee->id,\n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\t}", "function getEmployees($crewName) {\r\n\t\tglobal $databaseName;\r\n\t\tglobal $timesheetDate;\r\n\t\tglobal $builder;\r\n\t\tglobal $subdivision;\r\n\t\tglobal $lot;\r\n\t\tglobal $action;\r\n\t\t$employeesArr = array();\r\n\t\t\r\n\t\t$timesheetDateTS = strtotime($timesheetDate);\r\n\t\tif($timesheetDateTS > 0) {\r\n\t\t\t$date = date('m/d/y', $timesheetDateTS);\r\n\t\t}\r\n\r\n\t\t// Get Forman employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_forman`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\tarray_push($employeesArr, $employee);\r\n\t\t}\r\n\t\t\r\n\t\t// Get Mason employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_mason`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Apprentice employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_apprentice`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Apprentice employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_labor`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Driver employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_driver`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Operator employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_operator`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $employeesArr;\r\n\t}", "public function listAllEmployees()\n {\n foreach (Employee::all() as $employee) {\n $response[] = new EmployeeResource($employee);\n }\n return $this->responseSuccess(['employees' => $response]);\n }", "public function get_employees() {\n\n\t\t$data['title'] = $this->Xin_model->site_title();\n\t\t$id = $this->uri->segment(4);\n\t\t\n\t\t$data = array(\n\t\t\t'company_id' => $id\n\t\t\t);\n\t\t$session = $this->session->userdata('username');\n\t\tif(!empty($session)){ \n\t\t\t$this->load->view(\"admin/assets/get_employees\", $data);\n\t\t} else {\n\t\t\tredirect('admin/');\n\t\t}\n\t\t// Datatables Variables\n\t\t$draw = intval($this->input->get(\"draw\"));\n\t\t$start = intval($this->input->get(\"start\"));\n\t\t$length = intval($this->input->get(\"length\"));\n\t }", "public static function fetch_all_in_a_list()\n\t{\n\t return Company::orderBy( 'name' )->lists( 'name' , 'id' );\n\n\t}", "public function get_employees() {\n\n\t\t$data['title'] = $this->Xin_model->site_title();\n\t\t$id = $this->uri->segment(4);\n\t\t\n\t\t$data = array(\n\t\t\t'company_id' => $id\n\t\t\t);\n\t\t$session = $this->session->userdata('username');\n\t\tif(!empty($session)){ \n\t\t\t$this->load->view(\"admin/events/get_employees\", $data);\n\t\t} else {\n\t\t\tredirect('admin/');\n\t\t}\n\t\t// Datatables Variables\n\t\t$draw = intval($this->input->get(\"draw\"));\n\t\t$start = intval($this->input->get(\"start\"));\n\t\t$length = intval($this->input->get(\"length\"));\n\t }", "public function GetAllEmployees()\r\n\t{\t\r\n\t\t$WhereCondition = \"\";\r\n\t\t$query = $this->db->query(\" \t\r\n\t\t\t\t\t\t\t\t\tSELECT * FROM `tbl_user`\r\n\t\t\t\t\t\t\t\t\tWHERE user_designation_id = 3\r\n\t\t\t\t\t\t\t\t\t$WhereCondition\r\n\t\t\t\t\t\t\t\t\tORDER BY user_name\r\n\t\t\t\t\t\t\t\t\");\r\n\t\t$result = $query->result_array();\t\t\t\r\n\t\treturn $result;\r\n\t}", "public static function getList(){\n return DB::table('employees')->get();\n }", "public function companies()\n {\n return $this->hasMany('App\\Company');\n }", "public function getOwnerCompanies () {\n\t\t\tif (count($this) === 0) return new ArrayObjectList;\n\n\t\t\t$db \t\t= db::singleton();\n\t\t\t$table \t\t= TABLE_DOCUMENTOS_ELEMENTOS . \" INNER JOIN \". TABLE_DOCUMENTO_ATRIBUTO . \" USING (uid_documento_atributo)\";\n\t\t\t$set \t\t= $this->toComaList();\n\t\t\t$SQL \t\t= \"SELECT uid_empresa_propietaria FROM {$table} WHERE uid_documento_elemento IN ({$set}) GROUP BY uid_empresa_propietaria\";\n\t\t\t$collection\t= $db->query($SQL, '*', 0, \"empresa\");\n\n\n\t\t\treturn new ArrayObjectList($collection);\n\t\t}", "public function getEmployees()\n {\n if ($this->_employees === null) {\n // Use the internal _getProperty() API to read the actual property.\n // NOTE: This function only throws if \"employees\" contains any\n // invalid non-basic data. Only basic PHP types are accepted.\n $this->_employees = $this->_getProperty('employees'); // Throws.\n }\n\n foreach ($this->_employees as &$value) {\n if (is_array($value)) {\n $value = new User($value); // Throws.\n }\n }\n\n return $this->_employees;\n }", "public function GetCompaniesArray()\n\t{\n\t\tif (!$this->companies)\n\t\t{\n\t\t\t$this->dbase->Select('job_companies', array('company_id', 'name', 'OPF'), array(), array('name' => 'ASC'));\n\t\t\t$this->companies = array();\n\t\t\twhile ($company = $this->dbase->FetchArray())\n\t\t\t{\n\t\t\t\t$this->companies[$company['company_id']] = $company['name'] . \", \" . $this->lang[$company['OPF'] . \"_short\"];\n\t\t\t}\n\t\t}\n\t\treturn $this->companies;\n\t}", "public function getEmployees() { // gets all employees who have the responsability of dealing with visitor comments\n $db = Database::getDB();\n $query = 'SELECT * FROM planners WHERE employeeID < 5\n ORDER BY employeeID';\n $statement = $db->prepare($query);\n $statement->execute();\n \n $employees = array();\n foreach ($statement as $row) {\n $employee = new Employee($row['employeeID'],$row['fname']);\n $employees[] = $employee;\n }\n return $employees;\n }", "public function findCompanies(){\n $data = SCompany::select('id_company', 'name')\n ->get();\n return response()->json($data);\n }", "public static function getEmployee()\n {\n $employees = Employee::select('id', 'name')\n ->where('owner_id', auth_cache()->userable->id)\n ->whereDoesntHave('roles')\n ->get();\n\n return response()->json($employees);\n }", "public function index(){\n $companies=Company::where('client_id',Auth::user()->profile_id)->get();\n\n if($companies!=null){\n $employees = collect(new Employee);\n \n foreach($companies as $company){\n $employees->push(Employee::where('company_id',$company->id)->get());\n }\n\n $employees = $employees->collapse();\n\n \n return view('/client/client_home' , ['companies'=> $companies , 'employees'=>$employees]);\n }\n else \n return view('/client/client_home');\n\n \n}", "public static function FilterByActivity() {\n\t\t\t\n\t\t\t$sql = \"SELECT Code,Title FROM employees\";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees1 = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees1[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees1;\n\t\t}", "public function employees() {\n return $this->hasMany(Employee::class);\n }", "public function employees()\n {\n return $this->hasMany(Employee::class);\n }", "function GetCompanies()\n{\n\t$CompArr=array();\n\t$Query = \"SELECT * FROM \".PFX.\"_tracker_client ORDER BY NAME ASC\";\n\t$Sql = new Query($Query);\n\twhile ($Row=$Sql->Row()) {\n\t\t$CompArr[$Sql->Position]['Name']=htmlspecialchars(stripslashes($Row->NAME));\n\t\t$CompArr[$Sql->Position]['Value']=$Row->ID;\n\t}\n\treturn $CompArr;\n}", "public function getOriginCompanies () {\n $corp = $this->perteneceCorporacion();\n\n if ($corp) {\n return new ArrayObjectList([$corp, $this]);\n }\n\n return new ArrayObjectList([$this]);\n }", "public function getAllCompanies(){\n\t\t$path=\"../db/data.json\";\n\t\t$file=$this->getData($path);\n\t\n\t\t$arrayFile = json_decode($file, true);\n\t\n\t\treturn $arrayFile['companies'];\n\t}", "public function getAll()\r\n {\r\n // Query the database and return an array of contacts\r\n return $this->getEntityManager()\r\n ->createQuery(\r\n 'SELECT c FROM AppBundle:Contact c ORDER BY c.firstName, c.lastName ASC'\r\n )\r\n ->getResult();\r\n }", "public function findAll()\r\n {\r\n $sql = \"select * from tb_employer where employerid <> 1 order by employerid asc\";\r\n $statement = $this->commonPDO->query($sql);\r\n return $statement->fetchAll();\r\n }", "public function getCustomers() {\n $customerList = array();\n $i = 0;\n $sql = \"SELECT email, passwd, customer_name, address, city, state, country, zip, phone From signup_app.customers\";\n $customers = $this->db->query($sql);\n //$customer = $customers->fetch();\n if ($customers->num_rows > 0) {\n while ($customer = $customers->fetch_assoc()) {\n $customerList[$i++] = new Customer(\n $customer['email'], $customer['passwd'], $customer['customer_name'], $customer['address']\n , $customer['city'], $customer['state'], $customer['country'], $customer['zip'], $customer['phone']\n );\n }\n return $customerList;\n }\n }", "public function index()\n {\n return Api_Employees::all()->toArray(); \n }", "public function getCompanies($eliminadas = false, $limit = false){\n return $this->obtenerEmpresasSuperiores($eliminadas, $limit);\n }", "public function getCompaniesForSelect()\n {\n return Company::whereNull('deleted_at')->pluck('name', 'id');\n }", "static function getAllCustomerWithOrders(){\r\n\t\tglobal $DB;\r\n\t\t$retval = Array();\r\n\t\t\r\n\t\t$sql = \"SELECT DISTINCT personalization_orders.customerid FROM personalization_orders WHERE `status` >= 1 AND orderdate > 0\";\r\n\r\n\t\tif($DB->num_rows($sql)){\r\n\t\t\tforeach($DB->select($sql) as $r){ \r\n\t\t\t\t$retval[] = new BusinessContact($r[\"customerid\"]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $retval;\r\n\t}", "function select_all_company() {\n\t\t$qury=\"SELECT * FROM company\";\n\t\t$requet=mysqli_query($link,$qury);\n\t\t\n\t\twhile($res=mysqli_fetch_assoc($requet)) {\n\t\t\t$data[]=$res;\n\t\t}\n\t\treturn $data;\n\t}", "public function getCompany();", "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 getAllDataEmployees(){\n\t\t\t$this->db->select('*')->from('tbl_employees');\n\t\t\treturn $this->db->count_all_results();\n\t\t}", "function getAllEmpleadosDatos()\n\t\t\t{\n\t\t\t\t$request=\"SELECT `Id_Empleado` FROM `empleados` WHERE 1\";\n\t\t\t\t$result=$this->query->consulta($request);\n\t\t\t\t$empleadosIds=array();\n\t\t\t\t$empleadosDatos=array();\n\t\t\t\tif ($result->num_rows > 0) {\n\t\t\t \n\t\t\t\t while($datos = $result->fetch_assoc()) {\n\n\t\t\t\t array_push($empleadosIds,$datos[\"Id_Empleado\"]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\tforeach ($empleadosIds as $id_empleado) {\n\t\t\t\t\t\n\t\t\t\t\t$empleado_temp=new Empleado();\n\t\t\t\t\t$empleado_temp->obtenerDatosId($id_empleado);\n\t\t\t\t\tarray_push($empleadosDatos,$empleado_temp->getAllDatos2());\n\n\t\t\t\t}\n\n\t\t\t\treturn $empleadosDatos; \n\t\t\t}", "public function getCustomers(): array\r\n {\r\n try {\r\n $statement = $this->db->prepare(\"select * from customers\");\r\n $statement->execute();\r\n return $this->customers = $statement->fetchAll(\\PDO::FETCH_ASSOC);\r\n } catch (\\PDOException $e) {\r\n throw new \\Mpopa\\ExpException(\"Can't get customers: \" . $e->getMessage());\r\n }\r\n }", "public function getAvailableCompanies()\n {\n return $this->createQuery('c')\n ->select('c.*')\n ->addSelect(\n \"(SELECT ROUND(AVG(r.rating), 2)\n FROM Companies_Model_Review r\n WHERE r.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND r.company_id = c.id) as rating\"\n )\n ->addSelect(\"(SELECT COUNT(rc.id)\n FROM Companies_Model_Review rc\n WHERE rc.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND rc.company_id = c.id) as review_count\")\n ->whereIn('c.status', Companies_Model_Company::getActiveStatuses())\n ->orderBy('rating DESC')\n ->execute();\n }", "public function getCompany() {}", "public function getAllForCustonObj() {\n $query = $this->db->query(\"SELECT * FROM $this->table ORDER BY shortname;\");\n $this->allcpny = $query->custom_result_object('entity\\Company');\n // print \"<pre>\";\n // print_r($this->cpny);\n // print \"</pre>\";\n // exit();\n return $this->allcpny;\n }", "public function index()\n {\n $company = $this->repository->all();\n return $company;\n }", "public function getCompany() : \\App\\Domain\\Model\\Company\n {\n return $this->getRef('from__company_id__to__table__companies__columns__id', 'products');\n }", "public function employees()\n {\n return $this->hasMany(Employee::class);\n\n }", "public function companies()\n {\n return $this->morphedByMany('App\\Company', 'taggable');\n }", "public static function findAllEmpls(){\n try {\n\t\t\t$liste = new Liste();\n\t\t\t$requete = \"SELECT * FROM user where type_user='emp'\";\n\t\t\t$cnx = Database::getInstance();\n\t\t\t$res = $cnx->query($requete);\n\t\t foreach($res as $row) {\n\t\t\t\t$u = new User();\n\t\t\t\t$u->loadFromRecord($row);\n\t\t\t\t$liste->add($u);\n\t\t }\n\t\t $cnx = null;\n\t\t\treturn $liste;\n\t\t} catch (PDOException $e) {\n\t\t print \"Error!: \" . $e->getMessage() . \"<br/>\";\n\t\t return $liste;\n\t\t}\t\n }", "public function employees() {\n return $this->hasMany('App\\Employee');\n }", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n return Company::all();\n }", "public function companylist() {\r\n $companies = $this->model->getCompanies();\r\n return $this->view('company/companylist', $companies);\r\n }", "public function getPersonelAdd() {\n $companies = Companies::all();\n return $companies;\n }", "public static function getList()\n {\n $companies = static::find()->select(['id', 'name'])->asArray()->all();\n return array_column($companies, 'name', 'id');\n }", "public static function getAllCustomers()\n\t{\n\t\t$customers = self::where('users_role',UserRole::CUSTOMER_ROLE_ID)->get();\n\t\treturn $customers;\n\t}", "public static function getCustomers(){\n\t\t$sql = \"\n\t\t\tSELECT *\n\t\t\tFROM customer\n\t\t\t\";\n\n\t\t// Make a PDO statement\n\t\t$statement = DB::prepare($sql);\n\n\t\t// Execute\n\t\tDB::execute($statement);\n\n\t\t// Get all the results of the statement into an array\n\t\t$results = $statement->fetchAll();\n\n\t\t$customers = [];\n\t\tforeach($results as $row) {\n\t\t\t$customers[]= new Customer($row['id'], $row['first_name'], $row['last_name'], $row['email'], $row['gender'], $row['customer_since']);\n\t\t}\n\t\treturn $customers;\n\t}", "public function employees()\n\t{\n\t\treturn $this->hasOne(Employee::class,'id','emp_id');\t\t\t\t\n\t}", "public function index()\n {\n return Employee::all();\n }", "public function listeEmployee(){\n\t\t\t\t\t $sql = \"SELECT * FROM employee\";\n\t\t\t\t\t if($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t return $this->db->query($sql)->fetchAll();\n\t\t\t\t\t }else{\n\t\t\t\t\t return null;\n\t\t\t\t\t }\n\t\t\t\t\t }", "public static function searchPotentialLead(Company $company, string $criteria = null): Collection\n {\n if (is_null($criteria)) {\n $criteria = '';\n }\n\n $potentialEmployees = $company->employees()\n ->select('id', 'first_name', 'last_name', 'email')\n ->notLocked()\n ->where(function ($query) use ($criteria) {\n $query->where('first_name', 'LIKE', '%'.$criteria.'%')\n ->orWhere('last_name', 'LIKE', '%'.$criteria.'%')\n ->orWhere('email', 'LIKE', '%'.$criteria.'%');\n })\n ->orderBy('last_name', 'asc')\n ->take(10)\n ->get();\n\n $employeesCollection = collect([]);\n foreach ($potentialEmployees as $employee) {\n $employeesCollection->push([\n 'id' => $employee->id,\n 'name' => $employee->name,\n ]);\n }\n\n return $employeesCollection;\n }", "public static function birthdaysThisWeek(Company $company): array\n {\n $employees = $company->employees()\n ->where('locked', false)\n ->whereNotNull('birthdate')\n ->get();\n\n $now = Carbon::now();\n $minDate = $now->copy()->startOfWeek(Carbon::MONDAY);\n $maxDate = $now->copy()->endOfWeek(Carbon::SUNDAY);\n\n $birthdaysCollection = collect([]);\n foreach ($employees as $employee) {\n $birthdateWithCurrentYear = $employee->birthdate->copy()->year($now->year);\n\n if (BirthdayHelper::isBirthdayInRange($birthdateWithCurrentYear, $minDate, $maxDate)) {\n $birthdaysCollection->push([\n 'id' => $employee->id,\n 'name' => $employee->name,\n 'avatar' => ImageHelper::getAvatar($employee, 35),\n 'birthdate' => DateHelper::formatMonthAndDay($birthdateWithCurrentYear),\n 'sort_key' => Carbon::createFromDate($now->year, $birthdateWithCurrentYear->month, $birthdateWithCurrentYear->day)->format('Y-m-d'),\n 'url' => route('employees.show', [\n 'company' => $company,\n 'employee' => $employee->id,\n ]),\n ]);\n }\n }\n\n // sort the entries by soonest birthdates\n // we need to use values()->all() so it resets the keys properly.\n $birthdaysCollection = $birthdaysCollection->sortBy('sort_key')->values()->all();\n\n return $birthdaysCollection;\n }", "public function employees()\n {\n return $this->belongsToMany(Employee::class);\n }", "public function listAllCustomers();", "public function getThemAll(){\n $query = '//employees/employee/.';\n //$employees = $this->domDocument->getElementsByTagName('employee');\n\n // create a new XPath object and associate it with the document we want to query against\n $xpath = new DOMXPath($this->domDocument);\n $result = $xpath->query($query);\n $arrEmps = array();\n if($result->length){\n // iterate of the results\n $classCounter = 0;\n foreach($result as $emp) {\n // add the details of the employee to an array\n $arrEmps[$classCounter][\"name\"] = $emp->getElementsByTagName(\"name\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"name\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"gender\"] = $emp->getElementsByTagName(\"gender\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"gender\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"phone\"] = $emp->getElementsByTagName(\"phone\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"phone\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"email\"] = $emp->getElementsByTagName(\"email\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"email\"].\"<br><hr>\";\n $classCounter +=1;\n //echo $classCounter.\"<br><hr>\";\n }\n }\n return $arrEmps;\n }", "public function index()\n {\n $employees = Employee::with('company')->paginate(10);\n\n return view('adminlte::employees.employees', compact('employees'));\n }", "public function getCompaniesCrmSearchUrl()\n {\n $type = 'company' ;\n return $this->getEntitiesCrmSearchUrl( $type ) ;\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 }", "private function listEmployee()\n\t{\n\t\t$employees = $this->employee->getEmployee();\n\t\t$cnt = 1;\n\t\tforeach($employees as $key => $val)\n\t\t{\n\t\t\t$arr = array('CNT' => $cnt,\n\t\t\t\t\t\t 'EMPLOYEE_NAME' => $val['name_employee'],\n\t\t\t\t\t\t 'EMPLOYEE_ID' => $val['id_employee'],\n\t\t\t\t\t\t 'EMPLOYEE_MAIL' => $val['mail_employee']);\n\t\t\t$cnt ++;\n\t\t\t$this->view->addToReplace($arr);\n\t\t\t$this->arrRender['LISTEMPLOYEES'] .= $this->view->\n\t\t\tsetTemplateFile('employeeslist')->renderFile();\n\t\t}\n\t}", "public function getEmployeesByCostCenter($costCenter) {\n\t\t$em = $this->getEntityManager();\n\t\t$employees = $em->getRepository('Employee')->findByCostCenter($costCenter);\n\t\t\n\t\tforeach ($employees as &$employee) {\n\t\t\t$metaData = $em->getRepository('MetaData')->findBy(array(\n\t\t\t\t'type' => 'employee',\n\t\t\t\t'typeID' => $employee->getEmployeeID()\n\t\t\t), array(\n\t\t\t\t'valueOrder' => 'ASC'\n\t\t\t));\n\t\t\t$employee->meta_data = $metaData;\n\t\t}\n\t\t\n\t\treturn $this->respond($employees);\n\t}", "public function employees(): HasMany\n {\n return $this->hasMany(Employee::class);\n }", "public function getAll(): array\n {\n $customerData = $this->_doctrine->getRepository(CustomerData::class)->findAll();\n\n return $customerData;\n }" ]
[ "0.80659366", "0.7450481", "0.72915214", "0.69716215", "0.69016933", "0.6851105", "0.6811749", "0.6801597", "0.67012745", "0.6626089", "0.6619283", "0.65692306", "0.6564905", "0.65477973", "0.6546318", "0.6536029", "0.65336025", "0.6453452", "0.6442147", "0.64110345", "0.638719", "0.63721645", "0.6364135", "0.62932247", "0.6231704", "0.6227918", "0.6223712", "0.6204367", "0.6180595", "0.61646205", "0.6156158", "0.61217797", "0.61042047", "0.6099076", "0.6078557", "0.60484815", "0.6011409", "0.59994835", "0.5989219", "0.5985021", "0.59818625", "0.59788954", "0.597523", "0.59721196", "0.59111357", "0.59099734", "0.5898001", "0.58791554", "0.5874271", "0.5840361", "0.5833454", "0.58290535", "0.58071333", "0.577341", "0.57686037", "0.573774", "0.573069", "0.57006794", "0.5699388", "0.56972265", "0.5696936", "0.5696489", "0.5696258", "0.5694629", "0.56910855", "0.5687773", "0.5670808", "0.56603813", "0.56250405", "0.5612565", "0.56069684", "0.5606398", "0.560313", "0.56029826", "0.5600169", "0.5583965", "0.55644816", "0.5561299", "0.55578595", "0.55578595", "0.554704", "0.55440235", "0.5540181", "0.5535095", "0.5527983", "0.5527742", "0.5511516", "0.5510258", "0.5502196", "0.549065", "0.54861003", "0.5483385", "0.5482738", "0.5478765", "0.54768", "0.5464133", "0.5461319", "0.54481596", "0.5447891", "0.544393" ]
0.85140556
0
Returns count of employees
Возвращает количество сотрудников
public function getEmployeesCount() { return $this->getTable()->getEmployeesCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countEmployee(){\n\t\t\t\t\t return count($this->listeEmployee());\n\t\t\t\t\t }", "public function getAllDataEmployees(){\n\t\t\t$this->db->select('*')->from('tbl_employees');\n\t\t\treturn $this->db->count_all_results();\n\t\t}", "function get_all_empresas_count()\n {\n $this->db->from('empresas');\n return $this->db->count_all_results();\n }", "public function getNumberOfEmployees(): ?int;", "public function employees() \r\n\t{\r\n\t\t$query = \"SELECT count(id_radnik) as Zaposlenih FROM \" . $this->table;\r\n\r\n\t\t$stmt = $this->conn->prepare($query);\r\n\t\t$stmt->execute();\r\n\r\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\t\t$zaposlenih = $row['Zaposlenih'];\r\n\t\treturn $zaposlenih;\r\n\t}", "public function filteredDataEmployees(){\n\t\t\t$this->ajaxEmployeeList();\n\t\t\t$query = $this->db->get();\n\t\t\treturn $query->num_rows();\n\t\t}", "public function countByEmpID($emp_id){\n return $this->count('emp_id=:emp_id', array(':emp_id' => $emp_id));\n }", "function count_all(){\n\t $this->db->count_all($this->tbl_Employeeinfo);\n\t \n return $this->db->count_all($this->tbl_Employeeinfo);\n }", "function getEmpCount(){\n\t\t$con = connect();\t\t\n\t\t$sql = \"SELECT count(*) FROM employee\"; //count emp from view\n\t\t$stmt = $con->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchColumn();\n\t\techo $result;\n\t}", "function getNrEmployeesBranch($username){\n\n global $db;\n\n $stmt=$db->prepare('SELECT count(*) as nrEmployees from employee\n WHERE employee_branch_id=(\n SELECT client_branch\n FROM client\n JOIN\n (\n SELECT client_id AS client\n FROM person\n JOIN\n client ON client_id = person_id\n WHERE username = ?\n )\n ON client_id = client)');\n \n $stmt->execute(array($username));\n return $stmt->fetch();\n }", "function assign_subordinate_count($employee) {\n\t$count = 0;\n\t//Get subordinate employees of current employee\n\t$employees = $employee->getSubordinates();\n\t//Add to count\n\t$count += count($employees);\n\t//Recursively add all subordinate employees number of employees to current employees count\n\tforeach($employees AS $emp) {\n\t\t$count += assign_subordinate_count($emp);\n\t}\n\t//Update number of subordinate employees for this employee\n\t$employee->setNumSubordinates($count);\n\t//Destroy the subordinates attribute so returned data will be flat array/chop off multidimensional array\n\t$employee->destroySubordinates();\n\treturn $count;\n}", "function exeGetTotalEmp() { \n $exeGetTotalEmp = $this->db->query(\"SELECT *\n FROM employees\n WHERE status = 1\n ORDER BY firstname ASC, lastname ASC\");\n \n return $exeGetTotalEmp->num_rows(); \n }", "public function nbEmprunt()\n\t\t{\n\t\treturn $this->lesEmprunts->count();\n\t\t}", "public static function getEmployeeShiftsCounts($employee_id){\n return DB::table('table_employee_shifts')\n ->join('table_employees', 'table_employee_shifts.employee_id', '=', 'table_employees.employee_id')\n ->join('table_shifts', 'table_employee_shifts.shift_id', '=', 'table_shifts.shift_id')\n ->where(['table_employee_shifts.employee_id' => $employee_id])\n ->count();\n }", "function TotalEmployee() {\n global $mysqli, $db_table_prefix;\n $stmt = $mysqli->prepare(\"SELECT \n\t\t\" . $db_table_prefix . \"users.id, \" . $db_table_prefix . \"user_permission_matches.permission_id\n\t\tFROM \" . $db_table_prefix . \"users LEFT JOIN \" . $db_table_prefix . \"user_permission_matches ON \n\t\t\" . $db_table_prefix . \"users.id = \" . $db_table_prefix . \"user_permission_matches.user_id where \" . $db_table_prefix . \"user_permission_matches.permission_id = '1'\");\n $stmt->execute();\n $stmt->store_result();\n $num_returns = $stmt->num_rows;\n $stmt->close();\n\n return $num_returns;\n}", "public function countEntities(): int;", "public static function getCount(){\n \t$sql = \"SELECT COUNT(*) as count FROM yy_hospital\";\n \t$res = self::getDb()->query($sql)->fetchAll();\n \t$count = $res[0]['count'];\n \treturn $count;\n }", "function vcn_get_career_count() {\t\r\n\t$data = vcn_rest_wrapper('vcnoccupationsvc', 'vcncareer', 'listcareers', array('industry' => vcn_get_industry(), 'ignoreworktype' => 'Y'), 'json');\r\n\treturn count($data);\r\n}", "function getUsersCount() {\n $company_id = $this->getId(); \n \treturn Users::count(\"company_id LIKE $company_id\");\n }", "public function countEm()\n {\n $qb = $this->createQueryBuilder('g');\n $qb->select('count(g.id) AS counter');\n $query = $qb->getQuery();\n return $query->getSingleScalarResult();\n }", "public function employeesStefan(Request $request)\n {\n $employees = Employees::getEmployeesStefan();\n\n foreach($employees as $employee){\n print_r($employee->cn[0].', '.$employee->department[0].', '.$employee->title[0].', '.$employee->streetaddress[0].', '.$employee->l[0]);\n echo '<br>';\n }\n\n echo '<hr>';\n print_r('TOTAL: '.count($employees));\n\n die();\n }", "public function employees_head_count()\n\t{\n\t\t/* Define return | here result is used to return user data and error for error message */\n\t\t$date = date('Y');\n \t $query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-01%'\");\n\t\t$row1 = $query->num_rows();\n\t\t$Return['january'] = $row1;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-02%'\");\n\t\t$row2 = $query->num_rows();\n\t\t$Return['february'] = $row2;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-03%'\");\n\t\t$row3 = $query->num_rows();\n\t\t$Return['march'] = $row3;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-04%'\");\n\t\t$row4 = $query->num_rows();\n\t\t$Return['april'] = $row4;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-05%'\");\n\t\t$row5 = $query->num_rows();\n\t\t$Return['may'] = $row5;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-06%'\");\n\t\t$row6 = $query->num_rows();\n\t\t$Return['june'] = $row6;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-07%'\");\n\t\t$row7 = $query->num_rows();\n\t\t$Return['july'] = $row7;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-08%'\");\n\t\t$row8 = $query->num_rows();\n\t\t$Return['august'] = $row8;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-09%'\");\n\t\t$row9 = $query->num_rows();\n\t\t$Return['september'] = $row9;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-10%'\");\n\t\t$row10 = $query->num_rows();\n\t\t$Return['october'] = $row10;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-11%'\");\n\t\t$row11 = $query->num_rows();\n\t\t$Return['november'] = $row11;\n\t\t\n\t\t$query = $this->db->query(\"SELECT * from xin_employees WHERE created_at like '%\".$date.\"-12%'\");\n\t\t$row12 = $query->num_rows();\n\t\t$Return['december'] = $row12;\n\t\t\n\t\t$Return['current_year'] = date('Y');\n\t\t$this->output($Return);\n\t\texit;\n\t}", "public function getCount()\n {\n if (null === $this->count) {\n $qb = clone $this->getQueryBuilder();\n $query = $qb->addSelect('count(e.id) as total_count');\n $result = $query->getQuery()->execute();\n $this->count = $result[0]['total_count'];\n }\n return $this->count;\n }", "public function total() {\n $totEmployees = Employee::count();\n\n return response()->json([$totEmployees]);\n }", "public function verCantidadEmpresas()\n {\n $query = \"SELECT COUNT(*) as cantidad_empresa FROM empresa\";\n $stmt = $this->conexion->prepare($query);\n if (!$stmt->execute()) {\n $stmt->closeCursor();\n return 0;\n } else {\n $cantidad = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $cantidad;\n }\n }", "function erp_hr_count_departments() {\n\n return \\WeDevs\\ERP\\HRM\\Models\\Department::count();\n}", "public function getAllEmployees();", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function countUsers()\n\t{\n \treturn $this\n \t->createQueryBuilder('u')\n \t->select('COUNT(u)')\n \t->getQuery()->getSingleScalarResult();\n\t}", "public function count() {\n if ($this->_count <= 0) {\n $where = new Where();\n if (isset($this->_options[\"eventData\"]) && $this->_options[\"eventData\"] != '') {\n $where->expression($this->_sql_search_expression, \"%\" . $this->_options[\"eventData\"] . \"%\");\n }\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from($this->table)->where($where)->columns(array('count' => new Expression('COUNT(*)')));\n $sqlTxt = $sql->getSqlStringForSqlObject($select);\n $resultSet = $this->adapter->query($sqlTxt, Adapter::QUERY_MODE_EXECUTE);\n foreach ($resultSet as $row) {\n $this->_count = intval($row->count);\n break;\n }\n }\n return $this->_count;\n }", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function listarCount($id_empleador, $WHERE) {\n $query = \"\n SELECT\n count(*) as counteo\n FROM prestamos \n WHERE id_empleador = ?\n -- AND estado = 1\n $WHERE\n \";\n $stm = $this->pdo->prepare($query);\n $stm->bindValue(1, $id_empleador);\n $stm->execute();\n $lista = $stm->fetchAll();\n $stm = null;\n return $lista[0]['counteo'];\n }", "public function count()\n {\n return count($this->entities);\n }", "public function count()\n {\n return count($this->entities);\n }", "public function totalCount();", "public function totalCount();", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function record_count() {\r\n return $this->db->count_all(\"pessoafisica\");\r\n }", "public function countLigne_equipe_personne(){\n\t\t\t\t\t return count($this->listeLigne_equipe_personne());\n\t\t\t\t\t }", "public function emailCounts($email);", "public function getCompanyEmployees();", "public function getCountUsers(){\n $connect = ConnectionManager::get('default');\n $fila = $connect->execute(\"select count(*) from Usuarios;\")->fetchAll();\n return $fila[0];\n }", "public function getEntryCount() {}", "public function count_items() {\n\t\treturn SalesHistoryDetailQuery::create()->filterByOrdernumber($this->oehhnbr)->count();\n\t}", "public function countAll() : int\n {\n $result = $this->em->createQueryBuilder()->select('count(u.username)')\n ->from(User::class, 'u')\n ->getQuery()->getSingleScalarResult();\n\n return intval($result);\n }", "public function rowResultVacancyCount() {\n if (is_null($this->response)) {\n throw new Exception('Response is NULL');\n }\n return count($this->response->vacancies);\n }", "public function getUsersCount()\n {\n return $this->manager->createQuery('SELECT COUNT(u) FROM App\\Entity\\User u')->getSingleScalarResult();\n }", "public function CountRow()\n\t{\n\treturn HDB::hus()->Hcount(\"jobdata\");\n\t}", "public function record_count() {\r\n return $this->db->count_all(\"administradores\");\r\n }", "public function employeesStefanIMG(Request $request)\n {\n $employees = Employees::getEmployeesStefanIMG();\n\n foreach($employees as $employee){\n print_r($employee->cn[0].', '.$employee->department[0].', '.$employee->title[0].', '.$employee->streetaddress[0].', '.$employee->l[0]);\n echo '<br>';\n }\n\n echo '<hr>';\n print_r('TOTAL: '.count($employees));\n\n die();\n }", "abstract public function count();", "abstract public function count();", "abstract public function count();", "abstract public function count();", "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 findCount()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t.number, COUNT(f.id) as cnt\n FROM GazMainBundle:Finance f\n LEFT JOIN f.terminal t\n LEFT JOIN f.clientSale cs\n\t\t\t\t\t\t\tLEFT JOIN f.clientBuy cb\n\t\t\t\t\t\t\tWHERE f.financeType = FALSE\n\t\t\t\t\t\t\tGROUP BY t.number\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }", "public function countEvents()\n {\n $count = 0;\n foreach ($this->listEvents() as $dayevents) {\n $count += count($dayevents);\n }\n return $count;\n }", "public function getNbUsers(){\r\n $nb = 0 ;\r\n $q = \"select count(*) as nb from UserTab \";\r\n $res = execute($q) ;\r\n $l = mysql_fetch_assoc($res);\r\n $nb = $l['nb'];\r\n \r\n return $nb ;\r\n\r\n }", "function CountActive() {\r\n $conn = conn();\r\n $stmt = $conn->prepare(\"SELECT count(Natregno) val FROM employee WHERE EmpStatus='Active' AND DelFlg='N';\");\r\n $stmt->execute();\r\n $result_array = $stmt->fetchAll();\r\n foreach ($result_array as $value) {\r\n $this->activepersons = $value['val'];\r\n }\r\n return $this->activepersons;\r\n $conn = NULL;\r\n }", "public function count() {\n\t\treturn count($this->getData());\n\t}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {\n $repo = $this->getRepository();\n\n return $repo->aggregate($this->limit(0), __FUNCTION__, $repo->getPrimaryKey());\n }", "public function examenes_tatalExamenes(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idExamen) as cantidadExamenes from tb_examenes \";\n\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['cantidadExamenes'];\t\t\t\n\t\t\t\n\t\t\t\n }" ]
[ "0.83989877", "0.7367075", "0.72336376", "0.72261834", "0.7167031", "0.7027701", "0.699077", "0.69037336", "0.6776866", "0.6690841", "0.6654862", "0.6573313", "0.6515685", "0.64769894", "0.642788", "0.63113743", "0.62977064", "0.62742156", "0.6230173", "0.621434", "0.6199207", "0.6179927", "0.6175081", "0.6151251", "0.6147487", "0.61371815", "0.61119366", "0.6102614", "0.6102614", "0.6102614", "0.60846007", "0.60397077", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60167456", "0.60160124", "0.5996099", "0.5996099", "0.59834045", "0.59834045", "0.597562", "0.597562", "0.597562", "0.59608054", "0.59352314", "0.5932386", "0.59211475", "0.5907075", "0.58978367", "0.5894745", "0.5894418", "0.589133", "0.5890616", "0.5877426", "0.58750445", "0.583836", "0.58312637", "0.58312637", "0.58312637", "0.58312637", "0.5830074", "0.5825383", "0.58222497", "0.58211863", "0.581961", "0.5816244", "0.58099234", "0.58099234", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.58087635", "0.5808621", "0.5797295" ]
0.8466051
0
Returns the billing contact object if this company
Возвращает объект биллингового контакта, если это компания
public function getBillingContact() { try { return new Yourdelivery_Model_Contact($this->getBillingContactId()); } catch (Yourdelivery_Exception_Database_Inconsistency $e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContact() {\n try {\n return new Yourdelivery_Model_Contact($this->getContactId());\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return null;\n }\n }", "public function getContact()\n {\n return isset($this->contact) ? $this->contact : null;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getBilling()\n {\n return isset($this->billing) ? $this->billing : null;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function contact()\n {\n return $this->hasOne(OrderContact::class);\n }", "public function getBilling()\n {\n return $this->billing;\n }", "public function getBilling()\n {\n return $this->billing;\n }", "public function getAddressBilling()\n {\n return $this->addressBilling;\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 }", "public function getBillingCompany()\n {\n return $this->getParameter('billingCompany');\n }", "public function getBillingReference()\n {\n return $this->billingReference;\n }", "public function getBillingReference()\n {\n return $this->billingReference;\n }", "public function getBillingAddress()\n {\n if (is_null($this->billingAddress)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_BILLING_ADDRESS);\n if (is_null($data)) {\n return null;\n }\n\n $this->billingAddress = BaseAddressModel::of($data);\n }\n\n return $this->billingAddress;\n }", "public function getBillingAddress(){\n return $this->_getData(self::BILLING_ADDRESS);\n }", "public function getBillingDetails()\n {\n return $this->_billing;\n }", "public function getBillingCustomized() {\n $customized = new Yourdelivery_Model_Billing_Customized();\n $cid = $this->getTable()->getBillingCustomized();\n if ($cid === false) {\n $customized->setMode('comp');\n } else {\n $customized->load($cid['id']);\n }\n\n $customized->setCompany($this);\n $customized->setRefId($this->getId());\n\n return $customized;\n }", "public function billingCustomer()\n {\n $customer = new Customer();\n $this->setBilling($customer);\n\n return $customer;\n }", "public function getCompany()\n {\n return isset($this->company) ? $this->company : null;\n }", "public function getCompany()\n {\n return $this->getParameter('billingCompany');\n }", "function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}", "protected function buildContactObject()\n {\n return new Contact();\n }", "public function getBillingAddress();", "public function getBillingAddress();", "public function getBillingAddress() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->billingAddress;\r\n\t}", "public function getBillingAddress(): ?Address\n {\n return $this->billingAddress;\n }", "public function getContact()\n {\n $userId = Yii::$app->user->id;\n\n if ($userId == $this->author_id) {\n return $this->recipient;\n } elseif ($userId == $this->recipient_id) {\n return $this->author;\n }\n\n }", "public function billing_address()\n {\n return $this->hasOne(AddressProxy::modelClass(), 'saas_subscription_recurring_profile_id');\n }", "public function contact()\n {\n return new Contact($this);\n }", "public function returnContact(){\n return $this->contact->getContact(); //Chama a função getContact do objeto contact\n }", "public function getBillingAddress() : Address;", "public function getCompany()\n {\n return $this->company;\n }", "public function getBillingAddressModel()\n {\n if (is_null($this->_billingAddressModel)) {\n $object = Mage::getModel('customer/address');\n $this->_billingAddressModel = Mage::objects()->save($object);\n }\n return Mage::objects()->load($this->_billingAddressModel);\n }", "public function getCustomerBillingAddress() {\n\n if (Mage::getSingleton('customer/session')->isLoggedIn()) {\n $customerData = Mage::getSingleton('customer/session')->getCustomer();\n $customerID = $customerData->getId();\n }\n\n $visitorData = Mage::getModel('customer/customer')->load($customerID);\n $billingaddress = Mage::getModel('customer/address')->load($visitorData->default_billing);\n $addressdata = $billingaddress->getData();\n\n return $addressdata;\n }", "public function getBilling();", "public function getContactInfo() {\n return $this->contactInfo;\n }", "public function getContactPhone()\n {\n return isset($this->contactPhone) ? $this->contactPhone : null;\n }", "public function get_company() \n {\n return $this->company;\n }", "public function getCompany()\n\t{\n\t\tif (!isset($this->_r_company)) {\n\t\t\t$filters = [];\n\t\t\tif(!is_null($v = $this->getCompanyId())){\n\t\t\t\t$filters['company_id'] = $v;\n\t\t\t}\n\t\t\tif (empty($filters)){\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$m = new DYCompaniesControllerRealR();\n\t\t\t$this->_r_company = $m->getItem($filters);\n\t\t}\n\n\t\treturn $this->_r_company;\n\t}", "public function getContactInfo()\n {\n $phoneNumbers = [];\n if (isset($this->properties['contact_mobile_phone'])) {\n $phoneNumbers[] = $this->properties['contact_mobile_phone']->value;\n }\n if (isset($this->properties['contact_home_phone'])) {\n $phoneNumbers[] = $this->properties['contact_home_phone']->value;\n }\n $emailAddresses = [];\n if (isset($this->properties['email'])) {\n $emailAddresses[] = $this->properties['email']->value;\n }\n if (isset($this->properties['contact_alt_email'])) {\n $emailAddresses[] = $this->properties['contact_alt_email']->value;\n }\n return new Model\\ContactInfo(\n $phoneNumbers,\n $emailAddresses\n );\n }", "public function getAddress()\n {\n return $this->billingAddress;\n }", "public function getPhone()\n {\n return $this->billingPhone;\n }", "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "protected function getEntity(Order $order): ContactCompanyEntity\n\t{\n\t\t/** @var Contact $contact */\n\t\t$contact = $order->getContactCompanyCollection()->createContact();\n\t\tif (!$order->getContactCompanyCollection()->isPrimaryItemExists(\\CCrmOwnerType::Contact))\n\t\t{\n\t\t\t$contact->setField('IS_PRIMARY', 'Y');\n\t\t}\n\n\t\treturn $contact;\n\t}", "public function getBillingPhone();", "public function getBillingFrom()\n {\n return $this->billing_from;\n }", "public function company()\n {\n return $this->business();\n }", "public function getContact(): string\n {\n return $this->_contact;\n }", "public function getCustomer()\n {\n return $this->customer instanceof CustomerReferenceBuilder ? $this->customer->build() : $this->customer;\n }", "public function getCustomer()\n {\n return $this->customer instanceof CustomerReferenceBuilder ? $this->customer->build() : $this->customer;\n }", "public function getMarketingCompany()\n {\n return $this->marketingCompany;\n }", "function getPaypalBillingAddress()\n {\n return $this->getPaypalAddress('billing');\n }", "public function setBillingCompany($value)\n {\n return $this->setParameter('billingCompany', $value);\n }", "public function getCompany() : \\App\\Domain\\Model\\Company\n {\n return $this->getRef('from__company_id__to__table__companies__columns__id', 'products');\n }", "public function getCustomer()\n {\n if (null === $customer && isset($this['CUSTOMER_ID']))\n {\n $this->customer = \\Fastbill\\Customer\\Finder::findOneById($this['CUSTOMER_ID']);\n }\n return $this->customer;\n }", "public function getContact(): ?array\n\t{\n\t\treturn $this->contact;\n\t}", "public function getIdContact()\n {\n return $this->id_contact;\n }", "public static function aContact()\n {\n $contact = new Contact();\n return $contact;\n\n }", "public function getCompany() {\n if(!$this->department || !$this->department->department || !$this->department->department->division || !$this->department->department->division->company)\n return false;\n\n return $this->department->department->division->company;\n }", "public function getPortalContact()\n {\n return BeanFactory::getBean('Contacts', $_SESSION['contact_id']);\n }", "public function getCustomer()\n {\n return \\tabs\\api\\core\\Customer::create($this->getCusref());\n }", "public function billingIsActive()\n {\n return $this->billing_active;\n }", "public function getReadableContact()\n {\n return Extra::getBeautifulPhone($this->contact);\n }", "public function contacts()\n {\n return $this->hasOne(Contact::class);\n }", "public function getContactDetailAttribute()\n {\n return $this->contact()->first();\n }", "public function get(int $id): ActiveCampaignContact\n {\n return ContactFactory::make($this->request(\n method: 'get',\n path: 'contacts/'.$id,\n responseKey: 'contact'\n ));\n }", "public function getCompany()\n\t{\n\t\t$ci =& get_instance();\n\t\t$ci->load->library('company');\n\t\t\t\t\n\t\t$company = new Company($this->company_id);\t\t\t\n\n\t\treturn $company;\n\t}", "public function getSellerContact()\n {\n return $this->sellerContact;\n }", "public function getBillingTo()\n {\n return $this->billing_to;\n }", "public function getBillingAddress(): Address\n {\n if (!isset($this->billingAddress)) {\n throw new LocalizedException(__('Billing address is not defined for instance purchase.'));\n }\n return $this->billingAddress;\n }", "public function getCompany(): ?V1AccountsPostBodyCompany\n {\n return $this->company;\n }", "public function getUserCompany()\n {\n $user_company = \\App\\User::with(['company'])->where('id', Auth::user()->id)->first();\n return $user_company ? $user_company : null;\n }", "public function getCompany(): ?string\n {\n return $this->_company;\n }", "public function getMail()\n {\n return $this->billingMail;\n }", "public function company()\n {\n return $this->author()->company();\n }", "public function getBillingAddressBox()\n {\n return $this->_rootElement->find('.billing-address .info-address-edit');\n }", "public function contact(){\n return $this->hasOne(Contact::class,'id','contact_id');\n }", "function getDefaultContact() {\n $defaultContact = NULL;\n $opt = $this->getProperty('DEFAULT_CONTACT', '');\n if ($opt != '') {\n $defaultContact = $opt;\n }\n return $defaultContact;\n }", "public static function getCompanyByCustomerId()\n\t{\n\t\t$userId = Auth::getUser()->ID;\n\t\t$companyName = self::select('company')->where('ID', $userId)->first()->company;\n\t\treturn $companyName;\n\t}", "public function getContacts(): stdClass {\n\n\t\treturn $this->greenApi->request( 'GET',\n\t\t\t'{{host}}/waInstance{{idInstance}}/GetContacts/{{apiTokenInstance}}' );\n\t}", "public static function getBillingAddress($_oID, $_cID) {\n global $lC_Database;\n\n $QorderBilling = $lC_Database->query('select billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state_code, billing_country, billing_address_format from :table_orders where orders_id = :orders_id');\n $QorderBilling->bindTable(':table_orders', TABLE_ORDERS);\n $QorderBilling->bindInt(':orders_id', $_oID);\n $QorderBilling->execute();\n \n $billing_data = array('firstname' => self::getFirstName($_cID),\n 'lastname' => self::getLastName($_cID),\n 'company' => $QorderBilling->value('billing_company'),\n 'street_address' => $QorderBilling->value('billing_street_address'),\n 'suburb' => $QorderBilling->value('billing_suburb'),\n 'city' => $QorderBilling->value('billing_city'),\n 'postcode' => $QorderBilling->value('billing_postcode'),\n 'zone_code' => $QorderBilling->value('billing_state_code'),\n 'country_title' => $QorderBilling->value('billing_country'),\n 'format' => $QorderBilling->value('billing_address_format'));\n\n $QorderBilling->freeResult();\n \n return $billing_data;\n }", "public function getContactId()\n\t{\n\t\treturn $this->_contactId;\n\t}", "public function getBillingAccountId()\n {\n return $this->billingAccountId;\n }", "public function getCiviContactByEmail($email) {\n\n return $this->getCiviContact('email', $email);\n }", "public function getBillingType()\n {\n return $this->billingType;\n }", "public function getBillingType()\n {\n return $this->billingType;\n }", "public function getCompanyFieldDefault ()\n {\n $companyDefault = $this->scopeConfig->getValue(\n 'customer/address/company_show',\n ScopeInterface::SCOPE_STORE\n );\n return $companyDefault;\n }", "public function contact_company()\n {\n }", "public function contact($contact_id = null)\n {\n return new Ledger\\Contact($this->endpoint, $this->ledger_id, $contact_id, $this->client);\n }", "public function getCreditCard()\n {\n return $this->creditCard;\n }", "public function contactAction() {\n $request = $this->getRequest();\n\n if ( $request->isPost() ){\n $post = $request->getPost();\n\n // remove billing contact\n if ($request->getParam('removeBillingContact', false)) {\n $this->company->setBillingContactId('0');\n $this->company->save();\n $this->logger->adminInfo(sprintf(\"Billing contact for company #%d was deleted\", $this->company->getId()));\n $this->success(__b(\"Billing contact successfully removed. Contact person now is billing contact too\"));\n }\n //new contact was selected from drop-down menu\n else if ( $request->getParam('selContactId') > 0) {\n if ($request->getParam('selContactId') != $this->company->getContactId()) {\n $this->company->setContactId($request->getParam('selContactId'));\n $this->company->save();\n $this->logger->adminInfo(sprintf(\"Set new contact for company #%d\", $this->company->getId()));\n $this->success(__b(\"New contact was set\"));\n }\n else {\n $this->success(__b(\"Contact is the same. No changes.\"));\n }\n }\n //new billing contact was selected from drop-down menu\n else if ($request->getParam('selBillingContactId') > 0 ) {\n if ($request->getParam('selBillingContactId') != $this->company->getBillingContactId()) {\n $this->company->setBillingContactId($request->getParam('selBillingContactId'));\n $this->company->save();\n $this->logger->adminInfo(sprintf(\"Set new billing contact for company #%d\", $this->company->getId()));\n $this->success(__b(\"New Billing Contact was set\"));\n }\n else {\n $this->success(__b(\"Billing contact is the same. No changes.\"));\n }\n }\n //create new contact\n else {\n $contact = new Yourdelivery_Model_Contact();\n\n $form = new Yourdelivery_Form_Administration_Company_ContactEdit();\n\n $id = Yourdelivery_Model_Contact::getByEmail($values['email']);\n if (strlen($values['email'])>0 && !is_null($id) && ($id!=0)) {\n $this->error(__b(\"There is already a contact with this email. id: \") . $id);\n $this->logger->adminInfo(sprintf(\"contact could not be created for company #%d - email already in use\", $this->company->getId()));\n return $this->_redirect('/administration_company_edit/contacts/companyid/' . $this->company->getId());\n }\n \n if ( $form->isValid($post) ){\n $values = $form->getValues();\n \n $id = Yourdelivery_Model_Contact::getByEmail($values['email']);\n if (strlen($values['email'])>0 && !is_null($id) && ($id!=0)) {\n $this->logger->adminInfo(sprintf(\"contact could not be created for company #%d - email already in use\", $this->company->getId()));\n $this->error(__b(\"Unter dieser E-mail Adresse ist bereits ein Kontakt registriert. id: \") . $id);\n return $this->_redirect('/administration_company_edit/contacts/companyid/' . $this->company->getId());\n }\n\n $city = new Yourdelivery_Model_City($values['cityId']);\n $values['plz'] = $city->getPlz();\n\n //edit contact object\n $contact->setData($values);\n $contact->save();\n\n // we are assigning new billing contact\n if ( $request->getParam('saveBillingContact', false) ) {\n $this->company->setBillingContact($contact);\n $this->company->save();\n $this->logger->adminInfo(sprintf(\"New billing contact was created for company #%d\", $this->company->getId()));\n $this->success(__b(\"New billing contact was created\"));\n }\n // we are assigning new contact\n else {\n $this->company->setContact($contact);\n $this->company->save();\n $this->logger->adminInfo(sprintf(\"New contact was created for company #%d\", $this->company->getId()));\n $this->success(__b(\"New contact was created\"));\n }\n }\n else{\n $this->error($form->getMessages());\n }\n }\n }\n return $this->_redirect('/administration_company_edit/contacts/companyid/' . $this->company->getId() . $link);\n }", "public function getContactID()\n {\n return $this->ContactID;\n }", "public function getBillingAddressId();", "public function tenant()\n\t{\n\t\treturn $this->hasOne('App\\Contact');\n\t}", "public function getBillingName(){\n return $this->_getData(self::BILLING_NAME);\n }", "public function contact(): \\Illuminate\\Database\\Eloquent\\Relations\\HasOne\n {\n return $this->hasOne('App\\Models\\UserContactDetail');\n }", "public function customer()\n {\n return Customer::retrieve($this->customer);\n }", "public function company() {\n\t\treturn $this->has_one('Company_User');\n\t}" ]
[ "0.6930654", "0.6894252", "0.6823665", "0.6823665", "0.6823665", "0.68114996", "0.6693355", "0.66731006", "0.6621222", "0.6621222", "0.6559425", "0.6542592", "0.64734906", "0.64569074", "0.64569074", "0.6341582", "0.632374", "0.63229895", "0.62913233", "0.6269803", "0.6246155", "0.61843467", "0.616345", "0.61393", "0.61288065", "0.61288065", "0.612202", "0.61133504", "0.6075762", "0.6074257", "0.60653025", "0.60393375", "0.6038443", "0.6029655", "0.6020846", "0.6016194", "0.5939134", "0.5913419", "0.5898435", "0.5882226", "0.58763", "0.5876039", "0.5863107", "0.58581233", "0.58458763", "0.58398354", "0.5837697", "0.5828779", "0.5817046", "0.5814383", "0.58075315", "0.58075315", "0.57992816", "0.57947505", "0.57852435", "0.57596326", "0.5746052", "0.57457393", "0.573697", "0.5730154", "0.5709515", "0.5693306", "0.5686423", "0.5685956", "0.5665429", "0.56637543", "0.564897", "0.56456715", "0.5635235", "0.5624521", "0.5623859", "0.5610156", "0.56095", "0.55698156", "0.55447155", "0.55377144", "0.55240124", "0.5520544", "0.55169183", "0.5514557", "0.55114", "0.5510244", "0.5500667", "0.55000603", "0.5495046", "0.54873484", "0.54866844", "0.54866844", "0.54851437", "0.54849434", "0.54819924", "0.54763377", "0.54626346", "0.54552865", "0.5452961", "0.54362714", "0.54295856", "0.5419129", "0.5410985", "0.5409587" ]
0.8246131
0
returns all budget objects of this company
возвращает все объекты бюджета этой компании
public function getBudgets() { $table = new Yourdelivery_Model_DbTable_Company_Budgets(); $all = $table->fetchAll('companyId = ' . $this->getId()); $obj = new splObjectStorage(); foreach ($all AS $budget) { try { $budget = new Yourdelivery_Model_Budget($budget->id); } catch (Yourdelivery_Exception_Database_Inconsistency $e) { continue; } $obj->attach($budget); } return $obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAll() {\n $sql = \"SELECT * FROM budget\";\n $result = $this->db->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $budget = array();\n foreach ($result as $row) {\n $budgetID = $row['id'];\n $budget[$budgetID] = $this->buildBudget($row);\n }\n return $budget;\n }", "public function budgets()\n {\n return $this->hasMany(Budget::class);\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public function companies(): Collection\n {\n return Company::all();\n }", "public static function all() {\n\n $db = Zend_Registry::get('dbAdapter');\n $result = $db->query('select id from companys')->fetchAll();\n $companys = new SplObjectStorage();\n foreach ($result as $c) {\n try {\n $company = new Yourdelivery_Model_Company($c['id']);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $companys->attach($company);\n }\n return $companys;\n }", "public function getGlBudgets()\n {\n return $this->hasMany(GlBudget::className(), ['account_id' => 'account_id']);\n }", "public function allCompanies()\n {\n\n $companies = $this->core_companies;\n\n $items = [];\n foreach ($companies as $company) {\n\n $companyItem = new CompanyCardItem();\n $companyItem->id = $company->id;\n $companyItem->name = $company->name;\n //$companyItem->amount = $catalog->amount;\n $companyItem->title = $company->title;\n if (\\Dash\\count($company->photo))\n $companyItem->image = '/uploaz/eyuf/UserCompany/photo/' . $company->id . '/' . $company->photo[0];\n $companyItem->url = ZUrl::to([\n 'customer/markets/show',\n 'id' => $company->id\n ]);\n $companyItem->distence = \"12km\";\n //$companyItem->image = $catalog->price;\n //$companyItem->price = $catalog->price_old;\n //$companyItem->currency = \"$\";\n //$companyItem->cart_amount = 0;\n\n $items[] = $companyItem;\n }\n return $items;\n }", "public function budgets() : HasMany\n {\n return $this->hasMany('App\\Budget');\n }", "public function getProductBudgets()\n {\n return $this->productBudgets;\n }", "public function cycleBudgets()\n {\n return $this->hasMany(CycleBudget::class);\n }", "public static function getBudgetWithAllProperties()\n {\n $budget = new FakeBudget();\n $budget->setBudgetId(-1);\n $budget->setName('Test Budget');\n\n $money = new FakeMoney();\n $money->setMicroAmount(50000000);\n $budget->setAmount($money);\n\n return $budget;\n }", "public function cargarbodegas()\n {\n \treturn Cont_Bodega::all();\n }", "public function getBuildingsWithBudgets()\n {\n $buildings_budgets = $this->find('all', [\n 'contain' => ['Budgets' =>\n function ($q) {\n return $q\n ->select(['id', 'building_id']);\n }],\n 'conditions' => ['Buildings.softland_id IS NOT NULL', 'Buildings.omit' => false]\n ]);\n $buildingsWithBudget = array();\n foreach ($buildings_budgets as $buildings_budget) {\n if (!empty($buildings_budget['budget'])) {\n $buildingsWithBudget[$buildings_budget['softland_id']]['budget_id'] = $buildings_budget['budget']['id'];\n $buildingsWithBudget[$buildings_budget['softland_id']]['active'] = $buildings_budget['active'];\n }\n }\n return $buildingsWithBudget;\n }", "public function getBillings($filter = null) {\n $billingTable = new Yourdelivery_Model_DbTable_Billing();\n $all = $billingTable->fetchAll('mode=\"company\" AND refId=\"' . $this->getId() . '\"');\n $storage = new splObjectStorage();\n foreach ($all AS $bill) {\n try {\n $bill = new Yourdelivery_Model_Billing($bill->id);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $storage->attach($bill);\n }\n return $storage;\n }", "public function companyBillings($request)\n {\n if (Auth::user()->type != 'company') {\n throw new \\Exception('Unauthorized viewing of billing accounts.');\n }\n\n $data = [\n 'company_id' => Auth::user()->company->id,\n ]; \n\n $with = ['billable' => function($sub_query) { \n $sub_query->select('id', 'title', 'reference_id', 'price', 'incentive_per_share');\n \n }];\n \n $billings = $this->jobChoiceRepository->billing()->whereWhereMonthAndYear(\n $data, \n 'created_at', \n $request->month,\n $request->year,\n $with \n );\n \n // Fixed tax percentage\n $tax_percentage = Billing::VARIABLES['tax_percentage'];\n // Sub total amount of bills\n $sub_total_amount = $billings->sum('billable.incentive_per_share');\n // Result to be returned\n $result['billings'] = $billings; \n $result['sub_total_amount'] = $sub_total_amount;\n $result['consumption_tax_fee'] = $sub_total_amount * $tax_percentage;\n $result['total_amount_fee'] = $sub_total_amount + ($sub_total_amount * $tax_percentage);\n \n return $result;\n }", "function Companies(){\n\t\t\t\treturn $this->companies;\n\t\t\t}", "public function index()\n {\n $budgets = Budget::where(\"user_id\", \"=\", Auth::user()->id)->paginate(\n Config::get(\"constants.pagination.per_page\")\n );\n return BudgetResource::collection($budgets);\n }", "public function getContracts()\n {\n return $this->hasMany(Contracts::className(), ['company_id' => 'id']);\n }", "public function getAvailableCompanies()\n {\n return $this->createQuery('c')\n ->select('c.*')\n ->addSelect(\n \"(SELECT ROUND(AVG(r.rating), 2)\n FROM Companies_Model_Review r\n WHERE r.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND r.company_id = c.id) as rating\"\n )\n ->addSelect(\"(SELECT COUNT(rc.id)\n FROM Companies_Model_Review rc\n WHERE rc.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND rc.company_id = c.id) as review_count\")\n ->whereIn('c.status', Companies_Model_Company::getActiveStatuses())\n ->orderBy('rating DESC')\n ->execute();\n }", "public function getAllForCustonObj() {\n $query = $this->db->query(\"SELECT * FROM $this->table ORDER BY shortname;\");\n $this->allcpny = $query->custom_result_object('entity\\Company');\n // print \"<pre>\";\n // print_r($this->cpny);\n // print \"</pre>\";\n // exit();\n return $this->allcpny;\n }", "public function getCompaniesToSuspend() {\n return $this->createQuery('c')\n ->select('c.*')\n ->from('Companies_Model_Company c')\n ->where('c.status = ?', Companies_Model_Company::STATUS_EXPIRED)\n ->addWhere('c.payment_date IS NOT NULL AND ADDDATE(c.payment_date, 8) < NOW()')\n ->execute();\n }", "public function getAll($companyId)\n {\n return\n DB::table('company_bank_accs')\n ->select(\n 'company_id as companyId',\n 'bank_id as bankId',\n 'acc_number as accNumber',\n 'acc_name as accName'\n )\n ->where([\n ['company_id', $companyId]\n ])\n ->get();\n }", "public function getDoctorCashBacks()\n {\n try {\n return $this\n ->cash\n ->join('doctor_income', 'doctor_income.request_id', 'cash_back.id')\n ->where('doctor_income.account_id', auth()->user()->account_id)\n ->select(\n DB::raw(\"(DATE_FORMAT(doctor_income.created_at,'%b')) as month_name\"),\n DB::raw('SUM(doctor_income.income) as doctor_income'),\n DB::raw('SUM(cash_back.seena_cash) as seena_income'),\n DB::raw('SUM(cash_back.patient_cash) as patient_income'),\n DB::raw(\"(DATE_FORMAT(doctor_income.created_at,'%m')) as month\"),\n DB::raw(\"(DATE_FORMAT(doctor_income.created_at,'%Y')) as year\")\n )\n ->groupBy('month', 'year')\n ->orderBy('year', 'desc')\n ->orderBy('month', 'desc')\n ->get();\n } catch (\\Exception $e) {\n self::logErr($e->getMessage());\n return new Collection();\n }\n }", "public static function fetch_all_in_a_list()\n\t{\n\t return Company::orderBy( 'name' )->lists( 'name' , 'id' );\n\n\t}", "public function viewBudget()\n {\n $result = Budget::paginate(50);\n return view('data.list_budget', ['budget' => $result]);\n }", "public function all(): array\n {\n return Billingo::get('bank_accounts');\n }", "public function getAllBusinesses() {\n\t\t$em = $this->getEntityManager();\n\t\t$businesses = $em->createQueryBuilder()\n\t\t\t->select('b.businessID,b.costCenter,b.name')\n\t\t\t->from('Business', 'b')\n\t\t\t->orderBy('b.name')\n\t\t\t->getQuery()\n\t\t\t->getResult();\n\t\t\n\t\t$response = array(\n\t\t\t\"businesses\" => $businesses\n\t\t);\n\t\t\n\t\treturn $this->respond($response);\n\t}", "public function all()\n {\n return $this->atividadeComercialRepository->all();\n }", "public static function getAll() {\n self::checkConnection();\n $sql = \"SELECT p.*, (p.start_date+p.duration) AS end_date, (p.goal - COALESCE(SUM(d.amount), 0)) AS rem FROM project p LEFT JOIN donation d ON d.project_id = p.id GROUP BY p.id ORDER BY end_date DESC, rem DESC;\"; //coalesce similar with isnull;\n if(isset($_GET['_category'])) {\n $category_id = $_GET['_category'];\n settype($category_id, 'integer');\n $sql = sprintf(\"SELECT p.*,(p.start_date+p.duration) AS end_date, (p.goal - COALESCE(SUM(d.amount), 0)) AS rem FROM project p LEFT JOIN donation d ON d.project_id = p.id WHERE p.id IN (SELECT c.project_id FROM project_category c WHERE c.category_id = %d) GROUP BY p.id ORDER BY end_date DESC, rem DESC;\", $category_id);\n }\n $results = self::$connection->execute($sql);\n $projects = array();\n foreach ($results as $project_arr) {\n array_push($projects, new Project($project_arr));\n }\n return $projects;\n }", "public function getBudgetsByAddressId($addressId) {\n $nnTable = new Yourdelivery_Model_DbTable_Company_Location();\n $all = $nnTable->fetchAll('locationId = \"' . $addressId . '\"');\n $collector = new SplObjectStorage();\n foreach ($all AS $budget) {\n try {\n $budget = new Yourdelivery_Model_Budget($budget->id);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $collector->attach($budget);\n }\n return $collector;\n }", "public function getFreeCompanies() { return $this->FreeCompanies; }", "function getAll( $OrderBy = \"ID\", $LimitStart = \"None\", $LimitBy = \"None\" )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n switch ( strtolower( $OrderBy ) )\r\n {\r\n case \"description\":\r\n case \"desc\":\r\n $OrderBy = \"ORDER BY Description\";\r\n break;\r\n case \"name\":\r\n $OrderBy = \"ORDER BY Name\";\r\n break;\r\n case \"parentid\":\r\n case \"pid\":\r\n $OrderBy = \"ORDER BY ParentID\";\r\n break;\r\n case \"id\":\r\n case \"typeid\":\r\n $OrderBy = \"ORDER BY ID\";\r\n break;\r\n default:\r\n $OrderBy = \"ORDER BY ID\";\r\n break;\r\n }\r\n\r\n if ( is_numeric( $LimitStart ) )\r\n {\r\n $LimitArray = array( \"Offset\" => $LimitStart );\r\n\r\n if ( is_numeric( $LimitBy ) )\r\n {\r\n $LimitArray =& array_merge( $LimitArray, array( \"Limit\" => $LimitBy ) );\r\n }\r\n }\r\n else\r\n {\r\n $LimitArray = array();\r\n }\r\n\r\n $company_type_array = array();\r\n $return_array = array();\r\n\r\n\r\n $db->array_query( $company_type_array, \"SELECT ID FROM eZContact_CompanyType $OrderBy\", $LimitClause );\r\n\r\n foreach ( $company_type_array as $companyTypeItem )\r\n {\r\n $return_array[] = new eZCompanyType( $companyTypeItem[ $db->fieldName( \"ID\" ) ] );\r\n }\r\n return $return_array;\r\n }", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n return Company::all();\n }", "public function peopleCbo() {\n $people = Person::all();\n return $people;\n }", "public static function getBrandsAll()\n {\n $pdo = Database::getPDO();\n $sql = \"SELECT * FROM `\". static::$table .\"` \n WHERE `order` > 0\n ORDER BY `order` ASC \";\n \n $statement = $pdo->query( $sql );\n $modelListFromDatabase = $statement->fetchAll( PDO::FETCH_ASSOC );\n\n // Etape 2 : On vérifie qu'on a des résultats\n if( $modelListFromDatabase === false ) :\n exit( static::$table.\" not found !\" );\n endif;\n \n // Etape 3 : On prépare un tableau d'objets\n $modelsArray = [];\n\n // Etape 4 : On parcours nos résultats pour créer les objets\n // à partir des données récupérées en BDD\n foreach( $modelListFromDatabase as $modelDataFromDatabase ) :\n $model = new static( $modelDataFromDatabase );\n $modelsArray[] = $model;\n endforeach;\n\n // Etape 5 : On renvoi notre tableau d'objets (ici de type Brand)\n return $modelsArray;\n }", "public function findAll() {\n $sql = \"select * from book order by book_id desc\";\n $result = $this->getDb()->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $livres = array();\n foreach ($result as $row) {\n $livreId = $row['book_id'];\n $livres[$livreId] = $this->buildDomainObject($row);\n }\n return $livres;\n }", "public function companies()\n {\n return $this->morphedByMany('App\\Company', 'taggable');\n }", "public function getAll(): PriceListCollectionTransfer;", "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}", "public function get_all_data_bonifications_company($id)\n {\n $datos = $this->db->query('select * from money_usuario left join money_back on usuariosMoneyBackId = moneyBackId where usuarioMoneyId = ' . $id);\n return $datos->row();\n }", "public static function all(){\n\n\t\t//Connection to DB\n\t\t$db = $_COOKIE[\"db\"];\n\n\t\t//Fields\n\t\t$sql = \"SELECT * FROM company_types\";\n\n\t\t//Query\n\t\t$statement = $db->prepare($sql);\n\n\t\t//SET FETCH MODE\n\t\t$statement->setFetchMode(PDO::FETCH_ASSOC);\n\n\t\t//EXECUTE\n\t\t$statement->execute();\n\n\n\t\treturn $statement->fetchAll();\n\t}", "public function company() \n\t{\n\t\treturn $this->belongsTo('Company', 'object_id')->where('soft_deleted', 0);\n\t}", "public function allBranches()\n {\n $client = new Client();\n \t$response = $client->request('GET', 'http://www.dpdparcelshop.cz/api/get-all');\n $statusCode = $response->getStatusCode();\n \t$body = $response->getBody()->getContents();\n\n $result = json_decode($body);\n if($result->code != 200){\n return 'External service error';\n }\n\n\n $branches = array();\n foreach($result->data->items as $item){\n $branch = new BranchModel($item);\n array_push($branches, $branch->getBranchData());\n }\n return $branches;\n }", "public function getCalculos() {\n\n if (count($this->aCalculos) == 0 && !empty($this->iPlanilha)) {\n\n $oDaoBensCalculo = new cl_benshistoricocalculobem();\n $sWhereCalculos = \"t58_benshistoricocalculo = {$this->iPlanilha}\";\n $sSqlBensCalculo = $oDaoBensCalculo->sql_query(null, \"benshistoricocalculobem.*, bens.*, bensdepreciacao.*\", \"t58_sequencial\", $sWhereCalculos);\n $rsBensCaculo = $oDaoBensCalculo->sql_record($sSqlBensCalculo);\n\n if ($oDaoBensCalculo->numrows > 0) {\n\n for ($iCalculo = 0; $iCalculo < $oDaoBensCalculo->numrows; $iCalculo++) {\n\n $oDadosCalculo = db_utils::fieldsMemory($rsBensCaculo, $iCalculo);\n\n $oCalculo = new CalculoBem();\n $oCalculo->setHistoricoCalculo($oDadosCalculo->t58_benshistoricocalculo);\n $oCalculo->setPercentualDepreciado($oDadosCalculo->t58_percentualdepreciado);\n $oCalculo->setSequencial($oDadosCalculo->t58_sequencial);\n $oCalculo->setTipoDepreciacao($oDadosCalculo->t58_benstipodepreciacao);\n $oCalculo->setValorAnterior($oDadosCalculo->t58_valoranterior);\n $oCalculo->setValorAtual($oDadosCalculo->t58_valoratual);\n $oCalculo->setValorCalculado($oDadosCalculo->t58_valorcalculado);\n $oCalculo->setValorResidual($oDadosCalculo->t58_valorresidual);\n $oCalculo->setValorResidualAnterior($oDadosCalculo->t58_valorresidualanterior);\n\n $oBem = new Bem();\n $oBem->setCodigoBem($oDadosCalculo->t52_bem);\n $oBem->setCodigoBemDepreciacao($oDadosCalculo->t44_sequencial);\n $oBem->setTipoDepreciacao( BemTipoDepreciacaoRepository::getPorCodigo($oDadosCalculo->t44_benstipodepreciacao) );\n $oBem->setTipoAquisicao( BemTipoAquisicaoRepository::getPorCodigo($oDadosCalculo->t44_benstipoaquisicao) );\n $oBem->setClassificacao(BemClassificacaoRepository::getPorCodigo($oDadosCalculo->t52_codcla));\n $oBem->setVidaUtil($oDadosCalculo->t44_vidautil);\n $oBem->setValorAquisicao($oDadosCalculo->t52_valaqu);\n $oBem->setValorResidual($oDadosCalculo->t44_valorresidual);\n $oBem->setValorDepreciavel($oDadosCalculo->t44_valoratual);\n $oBem->setVidaUtil($oDadosCalculo->t44_vidautil);\n $oBem->setDescricao($oDadosCalculo->t52_descr);\n\n $oCalculo->setBem($oBem);\n\n array_push($this->aCalculos, $oCalculo);\n }\n }\n\n unset($oDaoBensCalculo);\n unset($rsBensCaculo);\n }\n return $this->aCalculos;\n }", "public function getAllCompanyRecruitment()\n {\n return \\App\\Recruitment::getAllCompanyRecruitments(\\Auth::id());\n }", "public function getBills()\n {\n return $this->hasMany(Bill::className(), ['cust_id' => 'id']);\n }", "function select_all_company() {\n\t\t$qury=\"SELECT * FROM company\";\n\t\t$requet=mysqli_query($link,$qury);\n\t\t\n\t\twhile($res=mysqli_fetch_assoc($requet)) {\n\t\t\t$data[]=$res;\n\t\t}\n\t\treturn $data;\n\t}", "public function getCashBacks()\n {\n try {\n return $this\n ->cash\n ->where('account_id', auth()->user()->account_id)\n ->orderBy('created_at', 'desc')// get last requests first\n ->orderBy('is_approved', 'asc')// then order them by approved asc 0 -> 1 as not paid first\n ->get();\n } catch (\\Exception $e) {\n self::logErr($e->getMessage());\n return new Collection();\n }\n }", "public function all()\n {\n return TipoCabelo::all();\n }", "public function companies()\n {\n return $this->hasMany('App\\Company');\n }", "public function getAllCompanies(){\n\t\t$path=\"../db/data.json\";\n\t\t$file=$this->getData($path);\n\t\n\t\t$arrayFile = json_decode($file, true);\n\t\n\t\treturn $arrayFile['companies'];\n\t}", "public function banks()\n {\n return Cache::remember('banks', $this->cacheTime, function () {\n return collect(Paymentmethods::getBanks(10))->pluck('name', 'id');\n });\n }", "public static function getNormalizedBudgetWithAllProperties()\n {\n return [\n 'budgetId' => -1,\n 'name' => 'Test Budget',\n 'amount' => [\n '@xsi:type' => 'ns1:FakeMoney',\n 'microAmount' => 50000000\n ]\n ];\n }", "public function findAll() {\n $sql = \"select * from billets order by billet_id desc\";\n $result = $this->getDb()->fetchAll($sql);\n \n // Convert query result to an array of domain objects\n $billets = array();\n foreach ($result as $row) {\n $billetId = $row['billet_id'];\n $nbComment = $this->commentDAO->countAllByBillet($billetId);\n $billets[$billetId] = $this->buildDomainObject($row);\n $billets[$billetId]->setNbComment($nbComment);\n }\n return $billets;\n }", "private function getOverBudgetList() {\r\n\t\t$sql = \"SELECT TOP 10 summary, TicketNbr, status_description AS status, Hours_Actual, \";\r\n\t\t$sql .= \"Hours_Budget, company_name, (Hours_Budget - Hours_Actual) AS hours_remaining \";\r\n\t\t$sql .= \"FROM v_rpt_Service \";\r\n\t\t$sql .= \"WHERE status_description NOT LIKE '>%' \";\r\n\t\t$sql .= \"AND status_description NOT LIKE 'Completed' \";\r\n\t\t$sql .= \"AND Hours_Budget > 0 \";\r\n\t\t$sql .= \"AND (Hours_Budget - Hours_Actual) < 0 \";\r\n\t\t$sql .= \"ORDER BY hours_remaining\";\r\n\t\t$result = sqlsrv_query($this->conn, $sql) or die ('Error in SQL: ' . $sql);\r\n\r\n\t\t$r = null;\r\n\t\t$i = 0;\r\n\t\twhile($row = sqlsrv_fetch_array($result)) {\r\n\t\t\t$r[$i]['summary'] = $row['summary'];\r\n\t\t\t$r[$i]['status'] = $row['status'];\r\n\t\t\t$r[$i]['ticket'] = $row['TicketNbr'];\r\n\t\t\t$r[$i]['client'] = $row['company_name'];\r\n\t\t\t$r[$i]['hremaining'] = (float)$row['hours_remaining'];\r\n\t\t\t$i++;\r\n\t\t}\r\n\r\n\t\treturn($r);\r\n\t}", "public function allConductores(){\n global $baseDatos;\n $listaConductores = array();\n if ($this->existeConductor()){\n $sql = \"SELECT * FROM `conductores`\";\n $resultado = $baseDatos->query($sql);\n $conductores = $resultado->fetch_all(MYSQLI_ASSOC);\n foreach ($conductores as $con){\n $conductor = new Conductor();\n $conductor->constructorConductor($con);\n $listaConductores[] = $conductor;\n }\n return $listaConductores;\n }else{\n return null;\n }\n }", "public function all(){\r\n\treturn $this->getRepository()->findAll();\r\n }", "public function listAll()\n {\n return $this->contractor->all()->pluck('name', 'id')->all();\n }", "public function getCompaniesForSelect()\n {\n return Company::whereNull('deleted_at')->pluck('name', 'id');\n }", "static function getAll()\n\t\t{\n\t\t\t$returned_brands = $GLOBALS['DB']->query(\"SELECT * FROM brands;\");\n\t\t\t$all_brands = [];\n\t\t\tforeach($returned_brands as $brand){\n\t\t\t\t$name = $brand['name'];\n\t\t\t\t$id = $brand['id'];\n\t\t\t\t$new_brand = new Brand($name, $id);\n\t\t\t\tarray_push($all_brands, $new_brand);\n\t\t\t}\n\t\t\treturn $all_brands;\n\t\t}", "public function getBorrowings();", "public function index()\n {\n $this->getRepository()->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n $budgets = $this->getRepository()->orderBy('id', 'desc')->paginate();\n $employees = Employe::where(['isSaler' => 1])->pluck('name', 'id');\n $clients = Client::all()->pluck('name', 'id');\n $cars = Clientcar::all()->pluck('name', 'id');\n\n if (request()->wantsJson()) {\n\n return response()->json([\n 'data' => $budgets,\n ]);\n }\n\n return view('budgets.index', compact('budgets', 'employees', 'clients', 'cars'));\n }", "public function getAll($tenantId)\n {\n return\n DB::table('companies')\n ->select(\n 'id',\n 'eff_begin as effBegin',\n 'eff_end as effEnd',\n 'name',\n 'description',\n 'file_logo as fileLogo',\n 'company_tax_number as companyTaxNumber',\n 'tax_withholder_number as taxWithholderNumber',\n 'tax_withholder_name as taxWithholderName',\n 'location_code as locationCode',\n 'sort_order as sortOrder'\n )\n ->where([\n ['tenant_id', $tenantId]\n ])\n ->get();\n }", "public static function getDecodedBudgetWithAllProperties()\n {\n return [\n 'budgetId' => -1,\n 'name' => 'Test Budget',\n 'amount' => [\n '@xsi:type' => 'FakeMoney',\n 'microAmount' => 50000000\n ]\n ];\n }", "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "function getContractList() {\n $sql = \"SELECT * FROM contract ORDER BY id DESC\";\n return getAll($sql);\n}", "public function index()\n {\n $query = Company::query();\n\n $parameters = $parameters = request()->query->all();\n\n $this->sortBy(Company::class, $query, $parameters);\n\n $this->filterBy(Company::class, $query, $parameters);\n \n return CompanyResource::collection($query->paginate(10));\n }", "public function getAll()\n {\n $data = array();\n $rs = parent::findAll(array(\"name\" => \"Commande\"));\n foreach ($rs as $k => $v) {\n foreach ($v as $vi) {\n $data[$k] = new Commande($v['ID'],$v['CLIENTID'],$v['PRODID'],$v['NBPRODUITS'],$v['DATEAJOUT']);\n }\n }\n return $data;\n }", "public function getCompanyFreeVehicles($id_company = null) {\n\t\ttry {\n\t\t\tglobal $con;\t\t\t\n\t\t\t/* Statement declaration */\n\t\t\t$sql = \t\"SELECT * \".\n\t\t\t\t\t\"FROM vehicles v, kinds k, brands b, states s, categories c, energies en, models m, sites si, currencies cu \".\n\t\t\t\t\t\"WHERE v.id_energy = en.id_energy \".\n\t\t\t\t\t\t\"AND v.id_model = m.id_model \".\n\t\t\t\t\t\t\"AND v.id_kind = k.id_kind \".\n\t\t\t\t\t\t\"AND v.id_category = c.id_category \".\n\t\t\t\t\t\t\"AND v.id_state = s.id_state \".\n\t\t\t\t\t\t\"AND v.id_currency = cu.id_currency \".\n\t\t\t\t\t\t\"AND v.id_site = si.id_site \".\n\t\t\t\t\t\t\"AND si.id_company = :id_company \".\n\t\t\t\t\t\t\"AND m.id_brand = b.id_brand \".\n\t\t\t\t\t\t\"AND v.id_vehicle NOT IN (SELECT id_vehicle FROM maintenance WHERE date_endmaintenance > NOW()) \".\n\t\t\t\t\t\t\"AND v.id_vehicle NOT IN (SELECT id_vehicle FROM maintenance WHERE date_endmaintenance = '0000-00-00');\";\n\t\t\t\t\t\n\t\t\t/* Statement values & execution */\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindParam(':id_company', $id_company);\n\t\t\t\n\t\t\t/* Statement execution */\n\t\t\t$stmt->execute();\n\t\t\t\n\t\t\t/* Handle errors */\n\t\t\tif ($stmt->errno)\n\t\t\t throw new PDOException($stmt->error);\n\t\t\telse\n\t\t\t return $stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t\t\n\t\t\t/* Close statement */\n\t\t\t$stmt->close();\n\t\t} catch(PDOException $e) {\n\t\t\treturn array(\"error\" => $e->getMessage());\n\t\t}\n }", "public static function all()\n\t{\n\t\t$portfolios = ORM::factory('portfolio')->where('deleted', '=', '')->find_all();\n\n\t\treturn $portfolios;\n\n\t}", "public function getAll()\n {\n return $this->banque->paginate(10);\n }", "public function getAllCAtegories()\n {\n return $this->dao->findAll();\n }", "public static function getAllBank()\n {\n return DB::table('banks')->select('id', 'name')->get();\n }", "public function getCompanyWithUsers();", "public function index()\n {\n $company = $this->repository->all();\n return $company;\n }", "public function getCreditmemoWarehouseList();", "public function all() {\n $stmt = $this->pdo->query('SELECT id, symbol, company '\n . 'FROM stocks '\n . 'ORDER BY symbol');\n $stocks = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $stocks[] = [\n 'id' => $row['id'],\n 'symbol' => $row['symbol'],\n 'company' => $row['company']\n ];\n }\n return $stocks;\n }", "public static function all(){\n\t\t$bdd = new DBcnx();\n\t\t\treturn $bdd->allClient();\n\t}", "public function getAll()\n {\n return DB::table('bukus')->all();\n }", "function GetCompanies()\n{\n\t$CompArr=array();\n\t$Query = \"SELECT * FROM \".PFX.\"_tracker_client ORDER BY NAME ASC\";\n\t$Sql = new Query($Query);\n\twhile ($Row=$Sql->Row()) {\n\t\t$CompArr[$Sql->Position]['Name']=htmlspecialchars(stripslashes($Row->NAME));\n\t\t$CompArr[$Sql->Position]['Value']=$Row->ID;\n\t}\n\treturn $CompArr;\n}", "public function getAll() {\n\n $query = $this->db->prepare('SELECT * FROM comentario ORDER BY puntaje');\n $query->execute();\n return $query->fetchAll(PDO::FETCH_OBJ);\n }", "public function getBanks()\n {\n return $this->hasMany(Bank::className(), ['currency_id' => 'currency_id']);\n }", "public function company()\n {\n return $this->hasMany('\\App\\Company', 'id_plan');\n }", "public static function getAll() : array {\n return self::$objects;\n }", "public function getAllActive()\n {\n\n $qb = $this->createQueryBuilder('u')->select('u')\n ->andWhere('u.isDeleted =:is_deleted')\n ->andWhere('u.status =:status')\n ->setParameters(array(\n 'is_deleted' => false,\n 'status' => $this->sm->active()\n ));\n $qb->orderBy('u.company', 'DESC');\n return $qb->getQuery()->getResult();\n }", "public function getAll()\n {\n $queryBuilder = $this->db->createQueryBuilder();\n $queryBuilder\n ->select('p.*')\n ->from('Pc', 'p');\n\n $statement = $queryBuilder->execute();\n $PcData = $statement->fetchAll();\n foreach ($PcData as $computerData) {\n $PcEntityList[$computerData['id']] = new Pc($computerData['id'], $computerData['marque']);\n }\n\n return $PcEntityList;\n }", "public function selectAllContracteData(){\n $sql = \"SELECT * FROM contract ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public function getCompaniesReport() : CompaniesReport\n\t{\n\t\t$response = $this->execute('Empresa');\n\t\t\n\t\t$companiesByArea = [];\n\t\tforeach($response['e'] as $areaPool){\n\t\t\t$i = $areaPool['a'];\n\t\t\tforeach($areaPool['e'] as $company){\n\t\t\t\t$companiesByArea[$i][]=new Company(\n\t\t\t\t\t$company['a'],\n\t\t\t\t\t$company['c'],\n\t\t\t\t\t$company['n']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn new CompaniesReport($response['hr'],$companiesByArea);\n\t}", "public function all()\n {\n $accounts = $this->walletAccounts()->get()\n ->tap(function ($accounts) use (&$totalAvailablePrice) {\n $totalAvailablePrice = $accounts->sum('available_price');\n })\n ->each(function ($account) use ($totalAvailablePrice) {\n $divisor = $totalAvailablePrice > 0 ? $totalAvailablePrice : 1;\n $quota = ceil(($account->available_price * 100) / $divisor);\n $account->setAttribute('available_price_quota', $quota);\n });\n\n return WalletAccountResource::collection($accounts);\n }", "public static function getBudgetWithAllValuesAsAdwords()\n {\n $budget = new FakeBudget();\n $budget->setBudgetId('adwords');\n $budget->setName('adwords');\n\n return $budget;\n }", "public function company()\n {\n return $this->business();\n }", "public function getAllCompanyAccounts()\n { \n // select all fields and columns form the 'companies' table and return is as an array of objects\n $companies = Company::all();\n\n // if the length of array of company objects is greater than 0 (contains elements)\n if (count($companies) > 0) {\n // loop through each company, get the token from the 'company_activation_codes' table and update the object\n foreach ($companies as $key => $value) {\n $token = CompanyActivationCode::where('company_id', $value['id'])->first()->activation_code;\n $value['token'] = $token;\n $companies[$key] = $value;\n }\n }\n \n // send a response to the requester of the data\n $response_message = array('success' => true, 'message' => 'Data fetched', 'data' => $companies);\n return response()->json($response_message);\n }", "public static function getBudgetWithNoAmountObject()\n {\n $budget = new FakeBudget();\n $budget->setBudgetId(-1);\n $budget->setName('Interplanetary Cruise #57a058e71f2b9');\n\n return $budget;\n }", "public function companies()\n {\n return $this->belongsToMany('App\\Company')->withTimestamps();\n }", "public function index()\n {\n // return $request->all();\n return Company::all();\n }", "public function index(Request $request)\n {\n //\n if ($request->filled('all'))\n {\n $budgets = \\App\\Budget::with(['workflow', 'department', 'action'])->orderBy('id', 'desc')->get();\n return ['data'=>$budgets]; \n }\n else\n {\n $budgets = \\App\\Budget::with(['workflow', 'department', 'action'])->orderBy('id', 'desc')->paginate(15);\n // $imprest[] = 0;\n // foreach($budgets as $budget)\n // {\n // $imprest[] = \\App\\Imprest::where('budget_id', $budget->id)->first(); \n // }\n // // $imprest;\n // return ['data'=>$budgets, 'imprest'=>$imprest]; \n return BudgetResource::collection($budgets);\n }\n \n \n }", "public function getBudgetObjectById($id) {\n\t\t$dbh = Database::getPdo();\n\t\ttry {\n\t\t\t$sql = \"SELECT * FROM \" . self::DB_TABLE . \" WHERE id = :id LIMIT 1\";\n\t\t\t$stmt = $dbh->prepare($sql);\n\t\t\t$stmt->bindParam(':id', $id, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t\t$budget = new Budget();\n\t\t\t$stmt->setFetchMode(PDO::FETCH_INTO, $budget);\n\t\t\t$result = $stmt->fetch();\n\t\t\treturn $result;\n\t\t} catch (PDOException $e) {\n\t\t\techo 'Unable to retrieve record ' . $e->getMessage();\n\t\t}\n\t}", "public function CahierDesCharges()\n\t{\n\t\treturn $this->hasMany('App\\CahierDesCharges', 'company_id');//mise en place de la relation (clef etrangère) cahier des charges a pour clef etrangère la clef primaire de la table company\n\t}", "public function getCompany(Company $company)\n {\n return TimelineResource::collection($company->timeline()->paginate());\n }" ]
[ "0.80036753", "0.69953966", "0.68506557", "0.67112535", "0.65952253", "0.64342594", "0.6264919", "0.6158434", "0.60893327", "0.60579413", "0.60140085", "0.59997874", "0.59993225", "0.5892793", "0.58861786", "0.58673936", "0.58306706", "0.5820295", "0.5809164", "0.58073443", "0.5776085", "0.57415384", "0.57374954", "0.573621", "0.5727508", "0.5719525", "0.5661433", "0.56612104", "0.5645164", "0.5642133", "0.5626821", "0.5613018", "0.56006324", "0.56006324", "0.5584138", "0.55759144", "0.55698603", "0.55657023", "0.5545997", "0.5523915", "0.5501158", "0.5495017", "0.549469", "0.54919606", "0.54875803", "0.54780334", "0.5475951", "0.5469567", "0.54692775", "0.5466507", "0.5452182", "0.5438158", "0.5430992", "0.54189765", "0.54148096", "0.5396079", "0.5394764", "0.53821903", "0.53816694", "0.537465", "0.5369279", "0.5367805", "0.536162", "0.5359206", "0.53553486", "0.53538", "0.53524864", "0.5340372", "0.5330501", "0.53300196", "0.5320357", "0.530309", "0.5298559", "0.52960193", "0.5295906", "0.5293009", "0.5284667", "0.52575105", "0.5253555", "0.5251901", "0.5246083", "0.5246068", "0.5244732", "0.5231237", "0.5230529", "0.5221095", "0.5220499", "0.5220413", "0.521846", "0.5216318", "0.5201287", "0.51990694", "0.5191323", "0.5180337", "0.5173913", "0.51703227", "0.5157515", "0.51547647", "0.5141553", "0.51370937" ]
0.83090556
0
return all admins of this company
вернуть всех администраторов этой компании
public function getAdmins() { $a = new SplObjectStorage(); $admins = $this->getTable()->getAdmins(); foreach ($admins as $admin) { try { $customer = new Yourdelivery_Model_Customer_Company($admin['id'], $this->getId()); $a->attach($customer); } catch (Yourdelivery_Exception_Database_Inconsistency $e) { continue; } } return $a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_admins();", "public static function admins()\n {\n return User::all()->where('idpapel', 1)->where('stusuario', 'ati')->toArray();\n }", "public function getAdmins()\n {\n $query = $this->newQuery();\n $query->where('admin', true);\n\n return $this->doQuery($query, false, false);\n }", "public static function getAllAdmins()\n\t{\n\t\t$admins = self::where('users_role',UserRole::ADMIN_ROLE_ID)->get();\n\t\treturn $admins;\n\t}", "function findAllAdministrators() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM admins;'));\r\n\r\n\t}", "public function admins()\n {\n return $this->newQuery('getUsers', ['type' => 'AdminUsers']);\n }", "public function findAllAdmin() {\n\t\t\t$result = $this->createQuery()->execute();\n\t\t\treturn $result;\n\t\t}", "public function admins()\n {\n return $this->members()->wherePivot('role', '=', Member::ROLE_ADMIN)->get();\n }", "static function getAllAdmin()\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin a, partners p WHERE a.idPart=p._idPart');\n $req->execute(array());\n return $req->fetchAll();\n }", "public function getAdmins()\n {\n $admins = Admin::all();\n return view('view_admins', compact('admins'));\n }", "public function getAdmins()\n {\n $role = Role::where('name', 'admin')->first();\n return $role->users;\n }", "public function getAdmins()\n\t{\n\t\t$query = <<<QUERY\nSELECT\n\t*\nFROM\n\tplayer\nWHERE\n\trole LIKE '%admin%'\nQUERY;\n\n\t\treturn $this->database->query( $query, 'Get admins from player table' );\n\t}", "function find_all_admins() {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$query = \"SELECT * \";\r\n\t\t$query .= \"FROM admins \";\r\n\t\t$query .= \"ORDER BY username ASC\";\r\n\t\t$admins_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($db);\r\n\t\treturn $admins_set;\r\n\t}", "public function admins()\n {\n return $this->belongsToMany(Config::get('guardian.admin_user'), Config::get('guardian.role_admin_user_table'), Config::get('guardian.role_foreign_key'), Config::get('guardian.admin_user_foreign_key'));\n }", "function find_all_admins() {\n\t\tglobal $connection;\n\n\t\t$query = \"SELECT * FROM admins ORDER BY username ASC\";\n\t\t$admin_list = mysqli_query($connection, $query);\n\t\tconfirm_query($admin_list);\n\t\treturn $admin_list;\n\t}", "public function index()\n {\n return Admins::all();\n }", "public static function getAdminsList()\n {\n $data_to_load = [];\n if(DatabaseManager::fetchInto(\"main\", $data_to_load, \"SELECT * FROM `admin_users`\") === false)\n Status::message(Status::ERROR, \"Couldn't retrieve `admin_users` from DB\");\n \n Status::message(Status::SUCCESS, $data_to_load);\n }", "function getAdminList() {\n $dbConnect = getDbConnection();\n\n $query = 'SELECT * FROM admins';\n $statement = $dbConnect->prepare($query);\n\n $statement->execute();\n $resultSet = $statement->get_result();\n\n $statement->close();\n $dbConnect->close();\n\n return $resultSet;\n }", "public function indexAdmin ()\n {\n $listOfUsers = $this->userRequest->usersIndexForAdmin();\n return $listOfUsers;\n }", "public function &getListaAdmins() {\n $admins = array();\n $query = \"select * from admins\";\n \n $mysqli = Db::getInstance()->connectDb();\n if (!isset($mysqli)) {\n error_log(\"[getListaAdmins] impossibile inizializzare il database\");\n $mysqli->close();\n return $admins;\n }\n $result = $mysqli->query($query);\n if ($mysqli->errno > 0) {\n error_log(\"[getListaAdmins] impossibile eseguire la query\");\n $mysqli->close();\n return $admins;\n }\n\n while ($row = $result->fetch_array()) {\n $admins[] = self::creaAdminDaArray($row);\n }\n\n $mysqli->close();\n return $admins;\n }", "public function admins() {\n $data = array();\n // verify user has priviledges\n if($this->User->isLoggedIn() && $this->User->isAdmin()) {\n $flash = null;\n \n if (isset($_POST['delete_admin'])) {\n if ($this->User->removeAdminRights($_POST['user_id'])) {\n $flash = \"Admin user removed\";\n }\n }\n \n if (isset($_POST['email'])) {\n $user_id = $this->User->getByEmail($_POST['email']);\n if(isset($user_id['id'])) {\n if($this->User->bestowAdminRights($user_id['id'])) {\n $flash = \"{$_POST['email']} added as an admin.\";\n }\n }\n }\n \n // fetch admin users\n $users = $this->User->getAdmins();\n \n //set the title\n $data = array(\n 'users' => $users,\n 'flash' => $flash,\n 'title' => 'Manage Admin Users'\n );\n \n } else {\n header(\"Location: \".app::site_url(array('users','login')));\n exit(0);\n }\n return $data;\n }", "public function getWebsitesAdmin()\n {\n $res = $this->searchAdmin();\n if ($res) {\n array_push($this->site_ids, array('access' => 'admin', 'ids' => array()));\n if ($res['count'] > 0) {\n foreach ($res as $r) {\n if (is_array($r)) {\n array_push($site_ids[1]['ids'], $this->getSiteId($r[strtolower($this->to_get_admin)][0]));\n }\n }\n }\n }\n }", "private function get_siteadmins() {\n global $DB;\n $sql = \"SELECT rgt.userid, rgt.gmail\n FROM mdl_repository_gdrive_tokens rgt\n JOIN mdl_config cfg\n ON cfg.name = 'siteadmins'\n WHERE find_in_set(rgt.userid, cfg.value) > 0;\";\n $siteadmins = $DB->get_records_sql($sql);\n return $siteadmins;\n }", "private function get_admins_info() {\n $stm=$this->uSup->get_com_admins_to_notify_about_requests(\"user_id\",$this->company_id);\n\n $q_user_id=\"(1=0 \";\n /** @noinspection PhpUndefinedMethodInspection */\n while($admin=$stm->fetch(PDO::FETCH_OBJ)) {\n $q_user_id.=\" OR u235_users.user_id='\".$admin->user_id.\"' \";\n }\n $q_user_id.=\")\";\n try {\n /** @noinspection PhpUndefinedMethodInspection */\n $stm=$this->uFunc->pdo(\"uAuth\")->prepare(\"SELECT DISTINCT\n firstname,\n secondname,\n email\n FROM\n u235_users\n JOIN \n u235_usersinfo\n ON\n u235_users.user_id=u235_usersinfo.user_id AND\n u235_usersinfo.status=u235_users.status\n WHERE\n \" .$q_user_id. \" AND \n u235_users.status='active' AND\n u235_usersinfo.site_id=:site_id\n \");\n $site_id=site_id;\n /** @noinspection PhpUndefinedMethodInspection */$stm->bindParam(':site_id', $site_id,PDO::PARAM_INT);\n /** @noinspection PhpUndefinedMethodInspection */$stm->execute();\n }\n catch(PDOException $e) {$this->uFunc->error('120'/*.$e->getMessage()*/);}\n\n return $stm;\n }", "function adminUserList()\n {\n $arrClms = array(\n 'pkAdminID',\n 'AdminUserName',\n 'AdminCountry',\n 'AdminRegion'\n );\n $varWhr = \"AdminType = 'user-admin'\";\n $varOrderBy = 'AdminUserName ASC ';\n $arrRes = $this->select(TABLE_ADMIN, $arrClms, $varWhr);\n //pre($arrRes);\n return $arrRes;\n }", "function get_super_admins()\n {\n }", "public function getProjectAdminList() {\n\t\treturn $this->getProjectDao()->getProjectAdminList();\n\t}", "public function admins()\n {\n return $this->hasMany(\\App\\User::class, 'partner_user', 'partner_id', 'user_id');\n }", "public function getPlatformAdmins()\n {\n return $this->repository->createQueryBuilder('u')\n ->where('u.roles LIKE :role_super_admin')\n ->orWhere('u.roles LIKE :role_admin')\n ->setParameters(['role_super_admin' => '%ROLE_SUPER_ADMIN%', 'role_admin' => '%ROLE_ADMIN%'])\n ->getQuery()\n ->getResult();\n }", "public static function get_admin_users(){\n \n global $db;\n \n $query = \"SELECT * FROM users \";\n $query .= \"WHERE user_role = 'admin'\";\n \n $result = User::makeQuery($query);\n \n return $result;\n }", "public function all()\n {\n if (!$this->isLogged())\n {\n header('Location: ' . ROOT_URL);\n exit; \n }\n else{\n\n $this->oUtil->oAdd_Admins = $this->oModel->getAll();\n\n $this->oUtil->getView('admin');\n }\n }", "public function getAdmins() {\n $sql = 'SELECT id, mail, firstname, role FROM user WHERE isAdmin=1 ORDER BY role DESC';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }", "public function getProgramAdmins()\n {\n return $this->repository->createQueryBuilder('u')\n ->select('u.id')\n ->addSelect('u.uuid')\n ->addSelect('CONCAT(u.firstName, \\' \\', u.lastName) AS fullName')\n ->addSelect('u.jobTitle')\n ->addSelect('u.modified')\n ->where('u.roles LIKE :roles')\n ->setParameter('roles', '%ROLE_PROGRAMME_ADMIN%')\n ->andWhere('u.enabled = true')\n ->getQuery()\n ->getResult();\n }", "public function getAdministrator() {\n\n return database::getInstance()->select('staff',\"*\");\n\n\n }", "function getAdministrators() {\n\t\tif (is_null($this->admin_users)) {\n\t\t\t$this->admin_users = array();\n\t\t\t$sql = 'SELECT * FROM '.prefix('administrators').' ORDER BY `rights` DESC, `id`';\n\t\t\t$admins = query_full_array($sql, true);\n\t\t\tif ($admins !== false) {\n\t\t\t\tforeach($admins as $user) {\n\t\t\t\t\tif (array_key_exists('password', $user)) { // transition code!\n\t\t\t\t\t\t$user['pass'] = $user['password'];\n\t\t\t\t\t\tunset($user['password']);\n\t\t\t\t\t}\n\t\t\t\t\tif (!array_key_exists('valid', $user)) { // transition code!\n\t\t\t\t\t\t$user['valid'] = 1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->admin_users[$user['id']] = $user;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->admin_users;\n\t}", "public function getAdminListForCustomers()\r\n {\r\n return $this->getAdminList(\"customer-lookup\");\r\n }", "public function showAdmins() { \n\t\n return View('admin.admins');\n\t\t\t\n }", "public function all()\n {\n $admins = User::all();\n return view('admin.index')->with('admins', $admins);\n }", "function getAllAdmins(){\n $sql = self::$connection->prepare(\"SELECT * FROM `user` WHERE role_id = 1\");\n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n return $items; //return an array\n }", "public function existingAdminList()\n {\n $groceries = $this->getList();\n return $this->renderExistingAdminList($groceries);\n }", "public function getUsers()\n\t{\n\t\t$sql = 'SELECT * FROM admins WHERE deleted = 0';\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute();\n\t\treturn $query->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function index()\n {\n return view('admins', ['admins' => User::all()]);\n }", "public function allAdminList(){\n $result = $this->adminModel->getAllAdmin();\n foreach ($result as $row){\n $data[] = array('AdminID'=>$row->adminID,'Email'=>$row->email,'role'=>$row->type,\n );\n }\n $this->view('admins/allAdminList',$data);\n\n }", "public function admin_list()\n {\n //Display Admin Login Form\n $all_admin_lists = DB::table('admins')\n ->get();\n return view('admin.customer.admin_list',compact('all_admin_lists'));\n }", "public function adminAll(){\n $orders = order::with('user')->withTrashed()->get();\n return view('Admin.Orders.all',compact('orders'));\n }", "function getAllAdmins(){\n $sql = \"SELECT * FROM admin\";\n return getALl($sql);\n}", "public function admins()\n {\n return $this->belongsToMany(User::class, 'port_user', 'port_id', 'user_id');\n }", "public function getAdmins($options = [])\n {\n return $this->client->get(\"admins\", $options);\n }", "public static function getAdminList()\n {\n \t$type = \"text/html\";\n \t$terms = array(\n \t\t\t'isapproved' => 1\n \t);\n \t$data = self::getListByFilter($terms);\n \n \treturn response()->view('adminlist', [ 'data' => $data, 'isadmin' => self::isAdmin()])->header('Content-Type', $type);\n }", "public function selectAllAdmin(){\n return $this->connect->getData(\"SELECT * FROM `tbl_admin`\");\n }", "public function get_list_admin()\n {\n $this->db->where('type', 1);\n $query = $this->db->get('user');\n return $query->result();\n }", "public function index() {\n\n\t\t$admins = Merchant::with(['type', 'governorate'])->where('market_id', Session::get('market_id'))->latest()->paginate(10);\n\t\treturn view('merchants.admins.index', compact('admins'));\n\n\t}", "public function get_mail_administrators(){\n $query = $this->db->select('n_mail_user')\n ->from('user')\n ->where('n_role_user', 'administrador')\n ->where('n_mail_user !=', null) \n ->get();\n\n return $query->result();\n }", "public function getAdminLinks()\n {\n return $this->adminLinks;\n }", "function get_admin_list()\r\n {\r\n $result = array();\r\n $this->db->select('login');\r\n $this->db->distinct();\r\n $this->db->order_by('login');\r\n $query = $this->db->get(db_prefix.'Admins');\r\n $result[] = 'UNDEFINED';\r\n foreach ($query->result_array() as $row)\r\n {\r\n $result[] = $row['login'];\r\n }\r\n return $result;\r\n }", "public static function getAdmin() {\n\t\t$conn = Connection::get ();\n\t\t\n\t\t$select = $conn->query ( \"SELECT id_admin, identifiant_admin, mdp_admin, nom_admin, prenom_admin FROM admin\" );\n\t\t$result = array ();\n\t\t\n\t\twhile ( $row = $select->fetch () ) {\n\t\t\t$result [] = $row;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function managementAdminAll(){\n $Admins = new \\Project\\Models\\ManagementAdminManager();\n $allAdmin = $Admins->allManagementAdmin();\n\n require 'app/views/back/managementAdmin.php';\n }", "public static function getAdmins($where = null, $order = null, $limit = null){\n return (new Database('admin'))->select($where, $order, $limit)\n ->fetchAll(PDO::FETCH_CLASS,\\App\\Models\\AdminModel::class);\n }", "public function getCompanyWithUsers();", "public function listarAdmin()\n {\n $sql = \"SELECT US.nombre,CO.problema,CO.tipo_problema,CO.solucion, CO.modo_contacto, CO.tipo_estado \n FROM usuarios US JOIN consulta CO\n ON US.idusuarios = CO.idusuario\n WHERE CO.tipo_estado = 'Ejecutado'\";\n return ejecutarConsulta($sql);\n\n }", "public function getAdministrator() {}", "public function index()\n {\n $admins = Admin::get();\n return view('admin.admins.list',compact('admins'));\n }", "public function readAdmins(){\r\n $results = array();\r\n\r\n if ( null !== $this->getDB() ) {\r\n $dbs = $this->getDB()->prepare('select * from admin');\r\n\r\n if ( $dbs->execute() && $dbs->rowCount() > 0 ) {\r\n $results = $dbs->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n } \r\n return $results;\r\n }", "function afficherAdmins(){\n\t\t$sql=\"SElECT * From administrateur\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\n\t}", "public function ObtenerRolesSupeAdmin()\r\n {\r\n return Rol::all();\r\n }", "public function index()\n {\n $this->allowedAdminAction();\n\n return $this->showAll(Organizador::all());\n }", "public function getAllRobotsAdmin(){\n\t\t$url = WEBSERVICE. \"robots/getAllRobotsAdmin\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"GET\");\n\t\t$arrayResponse = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $arrayResponse;\n\t}", "public static function getAdministrators()\n\t{\n\t\t$users = [];\n\t\tif (Main\\Loader::includeModule('bitrix24'))\n\t\t{\n\t\t\t$users = \\CBitrix24::getAllAdminId();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$res = \\CAllGroup::GetGroupUserEx(1);\n\t\t\twhile ($row = $res->fetch())\n\t\t\t{\n\t\t\t\t$users[] = (int)$row[\"USER_ID\"];\n\t\t\t}\n\t\t}\n\n\t\treturn $users;\n\t}", "public function getAdmin() {\n $sql = \"SELECT *\n FROM {$this->tablename} p\n WHERE p.status='admin'\";\n return $this->db->query($sql)->single($this->entity);\n }", "function getAdminList() {\n $sql = \"SELECT a.*,\n IFNULL(c.building_name,'-') AS building_name,\n IFNULL(b.building_id,'0') AS building_id\n FROM admin a\n LEFT JOIN admin_building b ON a.id = b.admin_id \n LEFT JOIN building c ON c.id = b.building_id\n WHERE a.id != 1\";\n return getAll($sql);\n}", "public static function getOfficesWithAdmin(){\n $offices = self::all();\n if(count($offices) > 0 ){\n foreach($offices as $office){\n $where = ['unit_id'=>$office->id,'role'=>3];\n $office->head = TermRelation::findMyAdmin($where);\n $office->office_name = $office->unit_name;\n }\n }\n return $offices;\n }", "public function adminUsers()\n {\n $adminSettings = DB::table('settings')->get();\n $adminUsers = DB::table('users');\n $adminAdmins = DB::table('admins');\n\n return view('admin.users')->with([\n 'settings' => $adminSettings,\n 'adminUsers' => $adminUsers,\n 'adminAdmins' => $adminAdmins,\n ]);\n }", "public function getAll()\n {\n return Admin::paginate($this->pagination);\n }", "public function fetchAllAdmin()\n {\n $stmt = $this->connection->pdo\n ->prepare(Finder::getSql(\"SELECT * FROM app_rooms\"));\n $stmt->execute();\n\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n yield Rooms::arrayToEntity($row, new Rooms());\n }\n }", "function get_administrators(EntityManager $em)\n{\n // to perform DB queries\n return $em->createQueryBuilder()\n ->select('u')\n ->from('User', 'u')\n ->where('u.admin = 1')\n ->getQuery()->getArrayResult();\n}", "public function allAdmin()\n {\n $user = auth()->user();\n\n $productos = Venta::where('estado', 1)->get();\n\n $arrProductos = array();\n foreach ($productos as $producto) {\n $arrProductos[] = array(\n $producto->nombre,\n ($producto->estado) ? 'Activo' : 'Inactivo',\n $producto->id,\n );\n }\n\n $response = array('draw' => 1, 'recordsTotal' => count($arrProductos), 'recordsFiltered' => count($arrProductos), 'data' => $arrProductos);\n\n return response()->json($response, 200);\n }", "public function activeConfirmedAdmins()\n {\n return $this->newQuery('getUsers', ['type' => 'ActiveConfirmedAdmins']);\n }", "public function index()\n {\n if (is_null($this->user) || !$this->user->can('admin.view')) {\n abort(403, 'You are Unauthorized !');\n }\n $admins = Admin::all();\n return view('backend.pages.admins.index', compact('admins'));\n }", "public function getRelationshipAdmins()\n {\n return $this->repository->createQueryBuilder('u')\n ->select('u.id')\n ->addSelect('u.uuid')\n ->addSelect('CONCAT(u.firstName, \\' \\', u.lastName) AS fullName')\n ->addSelect('u.jobTitle')\n ->addSelect('u.modified')\n ->where('u.roles LIKE :roles')\n ->setParameter('roles', '%ROLE_RELATIONSHIP_MANAGER%')\n ->andWhere('u.enabled = true')\n ->getQuery()\n ->getResult();\n }", "public function mainAction() {\n return array(\n 'admins' => $this->get('snowcap_admin')->getAdmins(),\n );\n }", "public function admin() {\n return $this->teachers()->where('role', '=', User::SCHOOL_ADMIN)->first();\n }", "public static function list_of_admins($showUnselectedOption = false)\n {\n //start array\n $array = [];\n if ($showUnselectedOption) {\n $array[0] = _t('Member.SELECT_ECOMMERCE_ADMIN', ' --- SELECT ADMIN ---');\n }\n //get customer group\n $group = self::get_admin_group();\n //fill array\n if ($group) {\n $members = $group->Members();\n $membersCount = $members->count();\n if ($membersCount > 0) {\n foreach ($members as $member) {\n if ($member->Email) {\n $array[$member->ID] = $member->Email . ' (' . $member->getTitle() . ')';\n }\n }\n }\n }\n $group = DataObject::get_one(\n Group::class,\n ['Code' => 'administrators']\n );\n //fill array\n if ($group) {\n $members = $group->Members();\n $membersCount = $members->count();\n if ($membersCount > 0) {\n foreach ($members as $member) {\n if ($member->Email) {\n $array[$member->ID] = $member->Email . ' (' . $member->getTitle() . ')';\n }\n }\n }\n }\n //sort in a natural order\n natcasesort($array);\n\n return $array;\n }", "public function cargarAdministradores()\n\t{\n\t\t$usuarios = $this->usuarioRepo->buscarAdministradores();\n\t\t\n\t\treturn \\View::make('modulos.administracion.listaadmins', \n\t\t\t\t\t\t\tcompact('usuarios')\n\t\t\t\t);\n\t}", "public function getAllCurationModerators()\n {\n // get all users that are admin\n $userModel = MidasLoader::loadModel('User');\n $adminDaos = $userModel->findBy('admin', '1');\n\n $moderators = array();\n foreach ($adminDaos as $admin) {\n $moderators[$admin->getUserId()] = $admin;\n }\n\n // combine with all admins with those that are moderators\n $curationModeratorDaos = $this->getAll();\n foreach ($curationModeratorDaos as $curationModerator) {\n $moderatorUser = $curationModerator->getUser();\n $moderators[$moderatorUser->getUserId()] = $moderatorUser;\n }\n\n return $moderators;\n }", "public function action_index()\n\t{\n\t\tif ( ! Auth::instance()->logged_in('admin'))\n\t\t\tthrow new HTTP_Exception_403();\n\t\t\n\t\t// show admin page\n\t\t$companies = ORM::factory('company')->find_all();\n\t\t$this->template->content = View::factory('admin/admin')->bind('companies', $companies);\n\t\t\n\t}", "public static function getAdministateurs()\r\n {\r\n // Connexion à la base\r\n self::connexionBD();\r\n \r\n // Prépare la requête\r\n $requete = self::getBaseDeDonnees()->getCnxBD()->prepare(self::RQT_UTIL_TYPE);\r\n \r\n // Ajout des variables\r\n $requete->bindParam(':type', self::$TYPE_ADMIN, \\PDO::PARAM_STR);\r\n \r\n // Exécute la requête\r\n $requete->execute();\r\n \r\n // Sauvegarde les lignes retournées.\r\n $adminBD = $requete->fetchAll();\r\n \r\n // Créé la liste des départements.\r\n for ($i = 0; $i < count($adminBD); $i ++) {\r\n $admins[$i] = new Utilisateur($adminBD[$i]->login, $adminBD[$i]->mdp, $adminBD[$i]->email, $adminBD[$i]->type, $adminBD[$i]->idAvatar, $adminBD[$i]->idLangue);\r\n }\r\n \r\n // Retourne la listes des départements.\r\n return isset($admins) ? $admins : null;\r\n }", "public function getAdminLevels(): AdminLevelCollection;", "public function meList( )\n\t{\n\t\t$userId = $this->getCurrentUserId();\n\t\treturn $this->adminListByUser($userId);\n\t}", "public function admin()\n {\n $users = User::all();\n return view('admin.users.list')->with('users', $users);\n }", "public function index() {\n $data['admins'] = Admin::get();\n return view('admin.admins.index')->with($data);\n }", "public function index()\n {\n $admins = Admin::paginate(5);\n return AdminResourceCollection::collection($admins);\n }", "public function ApproverMembers() {\n\t\tif ($this->owner->CanApproveType == 'OnlyTheseUsers') {\n\t\t\t$groups = $this->owner->ApproverGroups();\n\t\t\t$members = new DataObjectSet();\n\t\t\tif($groups) foreach($groups as $group) {\n\t\t\t\t$members->merge($group->Members());\n\t\t\t}\n\t\t\t\n\t\t\t// Default to ADMINs, if something goes wrong\n\t\t\tif(!$members->Count()) {\n\t\t\t\t$group = Permission::get_groups_by_permission('ADMIN')->first();\n\t\t\t\t$members = $group->Members();\n\t\t\t}\n\t\t\t\n\t\t\treturn $members;\n\t\t} elseif($this->owner->CanApproveType == 'LoggedInUsers') {\n\t\t\treturn Permission::get_members_by_permission('CMS_ACCESS_CMSMain');\n\t\t} else {\n\t\t\t$group = Permission::get_groups_by_permission('ADMIN')->first();\n\t\t\treturn $group->Members();\n\t\t}\n\t}", "function get_all_faculty_admins()\n {\n return $this->db->get('faculty_admins')->result_array();\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public function list()\n {\n $admins = Admin::all();\n $html = view('partials.table-tbody.table-admin', compact('admins'))->render();\n\n return response()->json(['html' => $html], 200);\n }", "public function index()\n {\n //\n $admins = Admin::all();\n return view ('theme.admin.admin_manager')->with(['admins'=>$admins]);\n }", "public function getAllTeamsAdmin() {\n\t\t$url = WEBSERVICE. \"teams/getAllTeamsAdmin\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"GET\");\n\t\t$arrayResponse = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $arrayResponse;\n\t}", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public function admin() {\n\t\tif (!isset($this->sets['admin'])) {\n\t\t\t$this->sets['admin'] = new CMS_Navigation3_LinkSet();\n\t\t}\n\t\tCMS_Admin::build_embedded_admin_menu($this->sets['admin']);\n\t\treturn $this->sets['admin'];\n\t}", "public static function getAll() {\n global $lC_Database, $lC_Language, $_module;\n\n $lC_Language->loadIniFile('administrators.php');\n \n $media = $_GET['media'];\n \n /* Filtering */\n $aWhere = \"\";\n if ($_GET['aSearch'] != \"\") {\n $aWhere = \"where id = '\" . (int)$_GET['aSearch'] . \"'\";\n } \n\n $Qadmins = $lC_Database->query('select * from :table_administrators ' . $aWhere . ' order by user_name');\n $Qadmins->bindTable(':table_administrators', TABLE_ADMINISTRATORS);\n $Qadmins->execute();\n\n $result = array('entries' => array());\n $result = array('aaData' => array());\n $cnt = 0;\n while ( $Qadmins->next() ) {\n $group = self::getGroupName($Qadmins->valueInt('access_group_id')) ;\n $color = ($odd == $cnt%2) ? 'purple-bg' : 'green-bg';\n if ($Qadmins->valueInt('access_group_id') == 1) $color = 'red-bg';\n\n $last = '<td>' . $Qadmins->valueProtected('last_name') . '</td>';\n $first = '<td>' . $Qadmins->valueProtected('first_name') . '</td>';\n $user = '<td>' . $Qadmins->valueProtected('user_name') . '</td>';\n $group = '<td><small class=\"tag ' . $color . '\">' . self::getGroupName($Qadmins->valueInt('access_group_id')) . '</small></td>';\n $action = '<td class=\"align-right vertical-center\"><span class=\"button-group compact\">\n <a href=\"' . ((int)($_SESSION['admin']['access'][$_module] < 3) ? '#' : 'javascript://\" onclick=\"editAdmin(\\'' . $Qadmins->valueInt('id') . '\\')') . '\" class=\"button icon-pencil ' . ((int)($_SESSION['admin']['access'][$_module] < 3) ? 'disabled' : NULL) . '\">' . (($media === 'mobile-portrait' || $media === 'mobile-landscape') ? NULL : $lC_Language->get('icon_edit')) . '</a>\n <a href=\"' . ((int)($_SESSION['admin']['access'][$_module] < 4) ? '#' : 'javascript://\" onclick=\"deleteAdmin(\\'' . $Qadmins->valueInt('id') . '\\', \\'' . urlencode($Qadmins->valueProtected('user_name')) . '\\')') . '\" class=\"button icon-trash with-tooltip ' . ((int)($_SESSION['admin']['access'][$_module] < 4) ? 'disabled' : NULL) . '\" title=\"' . $lC_Language->get('icon_delete') . '\"></a></span></td>';\n\n $result['aaData'][] = array(\"$last\", \"$first\", \"$user\", \"$group\", \"$action\");\n $result['entries'][] = $Qadmins->toArray();\n $cnt++;\n }\n $Qadmins->freeResult();\n\n return $result;\n }" ]
[ "0.77995116", "0.771568", "0.76979196", "0.76258594", "0.7536488", "0.74002284", "0.7244273", "0.72357184", "0.7123914", "0.70668447", "0.70222193", "0.70147294", "0.7008521", "0.6975748", "0.69615585", "0.69482386", "0.69318366", "0.69177365", "0.6878754", "0.68160784", "0.6813556", "0.67553765", "0.668204", "0.66749626", "0.6667275", "0.666597", "0.66650504", "0.6645494", "0.6643664", "0.66328865", "0.6603078", "0.65783834", "0.65700406", "0.65520275", "0.6549507", "0.6534125", "0.6527757", "0.6512838", "0.6457562", "0.6445285", "0.64427924", "0.6415335", "0.6412065", "0.63803476", "0.6369018", "0.6353841", "0.63113457", "0.6309884", "0.6305356", "0.6282473", "0.6236338", "0.6229139", "0.6225111", "0.6214534", "0.61887956", "0.6180128", "0.61799026", "0.6160615", "0.61602145", "0.6157936", "0.61523473", "0.61444235", "0.6143699", "0.6138663", "0.6124778", "0.61072963", "0.6073367", "0.6066808", "0.6061137", "0.60533124", "0.60513324", "0.6043167", "0.6038451", "0.601823", "0.6012904", "0.60128474", "0.60070556", "0.59962696", "0.5987728", "0.598702", "0.5984612", "0.59739417", "0.5964502", "0.5960835", "0.5954559", "0.5937134", "0.5930434", "0.5917017", "0.5916729", "0.591294", "0.59125483", "0.5908119", "0.5889417", "0.58887357", "0.5878164", "0.58722", "0.58704823", "0.586608", "0.58545256", "0.58432686" ]
0.7827995
0
returns all addresses of this company as RowSet
возвращает все адреса этой компании в виде RowSet
public function getAddresses() { $table = new Yourdelivery_Model_DbTable_Locations(); return $table->fetchAll('companyId = ' . $this->getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAll()\n {\n return $this->em->getRepository(Address::class)->findAll();\n }", "public function getCompanyAddresses(Company $company)\n {\n $builder = $company->addresses()->getQuery();\n\n $resource = $this->datatable->setQueryBuilder($builder);\n\n return $resource->getResponse();\n }", "public function addresses()\n {\n return $this->morphMany(config('contactable.models.address', Address::class), 'addressable')\n ->orderBy('position', 'asc');\n }", "public function getAddresses()\n {\n return $this->addresses;\n }", "public function getAddresses()\n {\n return $this->addresses;\n }", "public function get_addresses() {\n\t\treturn $this->addresses;\n\t}", "private function getAddresses()\n\t{\n\t\t\n\t\t$userID = $this->session->userID;\n\t\t$addresses = $this->dbConnection->prepareRecordSet(\"SELECT * FROM b_user_address WHERE user_id = ? AND record_status = 'A'\", $userID);\n\n\t\treturn $addresses;\n\t\t\n\t}", "private function getAddresses()\n {\n $doctrine = $this->getDoctrine();\n\n /** @var \\Doctrine\\ORM\\QueryBuilder $qb */\n $qb = $doctrine\n ->getRepository('BadcowAddressBundle:BaseAddress')\n ->createQueryBuilder('a');\n\n $qb->add('where', $qb->expr()->orX(\n $qb->expr()->isNull('a.latitude'),\n $qb->expr()->isNull('a.longitude')\n ));\n\n return $qb->getQuery()->getResult();\n }", "public function addresses()\n {\n return $this->hasMany('App\\Address')->where('is_editable', '=', true);\n }", "public function addresses() {\n return $this->hasMany(Models\\Address::class);\n }", "public function addresses()\n {\n return $this->hasMany(Address::class);\n }", "public function addresses()\n {\n return $this->hasMany(Address::class);\n }", "public function addresses()\n {\n return $this->hasMany(Address::class);\n }", "public function addresses()\n {\n return $this->hasMany(\"FJR\\models\\AddressModel\", \"customer_id\");\n }", "private function _getAddresses()\n\t {\n\t\t$hashes = [];\n\t\t$rows = $this->_db->exec(\"SELECT `city`, `address` FROM `addresses` WHERE `phone` = '\" . $this->phone . \"'\");\n\t\twhile($row = $rows->getRow())\n\t\t {\n\t\t\t$address = $row[\"city\"] . \", \" . $row[\"address\"];\n\t\t\t$sliced = new AddressSlicer($address);\n\n\t\t\tif ($sliced->valid() === true && isset($hashes[$sliced->hash]) === false)\n\t\t\t {\n\t\t\t\t$hashes[$sliced->hash] = $address;\n\t\t\t } //end if\n\n\t\t } //end while\n\n\t\treturn count($hashes);\n\t }", "public function addresses()\n {\n return $this->hasMany('App\\Models\\Address', 'organization_id');\n }", "public function getContactAddresses()\n {\n return clone $this->contactAddresses;\n }", "public function getAddress() {\n\t\t//return $this->findParentRow(new Model_DbTable_Address());\n\t\tif ($this->_address) { } else {\n\t\t\tforeach ($this->_rowset->getLoadRows(new Model_DbTable_Address(), 'address') as $row) {\n\t\t\t\tif ($row->id == $this->idAddress) {\n\t\t\t\t\t$this->_address = $row;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t }\n\t return $this->_address;\n\t}", "public function getAddresses() {\n\n\t\t$query = \"SELECT id, cap, street, name, city FROM agrishop__addresses WHERE profile_id = ? ;\";\n\n\t\t$options = [ 'types' => ['i'], 'params' => [Session::get('id')] ];\n\n\t\treturn $this->db->directQuery($query, $options) ?: [];\n\n\t}", "function &getAll( )\n {\n $db =& eZDB::globalDatabase();\n $address_array = 0;\n \n $db->array_query( $address_array, \"SELECT * FROM eZAddress_Address\" );\n \n return $address_array;\n }", "public function ShipmentFrom_AddressList() {\n\t\treturn $this->db->get_results(\n\t\t\t\"SELECT * FROM wp_azlabs_address\", \n\t\t\tARRAY_A\n\t\t);\n\t}", "public function getAddresses(){\n\t\t/* DIRECCIONES */\n\t\tglobal $dbh;\n\t\t$data = $dbh->query(\"SELECT * FROM direccion WHERE idCliente=?;\",array($this->id));\n\t\tif( $data!==false ){\n\t\t\tforeach( $data as $k=>$v ){\n\t\t\t\t$zona = $v['idZona'];\n\t\t\t\t$tmp = $dbh->query(\"SELECT c.nombre as comuna, p.nombre as ciudad, r.nombre as region FROM zona c LEFT JOIN zona p ON c.padre=p.id LEFT JOIN zona r ON p.padre=r.id WHERE c.id=?;\",array($zona));\n\t\t\t\t$data[$k] = array_merge($data[$k],$tmp[0]);\n\t\t\t}\n\t\t\t$this->data['direcciones'] = $data;\n\t\t\treturn $data;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getAllRecipientAddresses()\n {\n }", "public function index()\n {\n $result = parent::index();\n $customer = $this->simiObjectManager->get('Magento\\Customer\\Model\\Session')->getCustomer();\n $addresses = $result['addresses'];\n foreach ($addresses as $index => $address) {\n $addressModel = $this->loadAddressWithId($address['entity_id']);\n $addresses[$index] = array_merge($address, $this->simiObjectManager\n ->get('Simi\\Simiconnector\\Helper\\Address')->getAddressDetail($addressModel, $customer));\n }\n $result['addresses'] = $addresses;\n return $result;\n }", "function getAddresses()\r\n\t{\r\n\t\t// connect to the database\r\n\t\t//$this->dbsetup();\r\n\t\t\r\n\t\t$query = \"SELECT address FROM \" . $this->table . \" WHERE latitude = '0' AND longitude = '0'\";\r\n\t\t\r\n\t\t$result = mysql_query($query);\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "public function getAddressBooks();", "public function addresses()\n {\n return $this->hasMany('App\\Address');\n }", "public function addresses()\n {\n return $this->hasMany(UserAddress::class);\n }", "public function getBillingAddresses()\n {\n return $this->morphMany(Address::class, 'addressable', ['type' => Address::TYPE_BILLING]);\n }", "public function fetchAll(){\n $addresses = $this->addressMapper->fetchAll();\n\n $response = array('data' =>array());\n foreach($addresses as $address){\n $response['data'][] = array(\n $line[] = $address->getNom(),\n $line[] = $address->getDescription(),\n $line[] = $address->getAdresse(),\n $line[] = $address->getUrl(),\n $line[] = '<a href=\"#\" data-id=\"' . $address->getId() . '\" data-action=\"edit\"><i class=\"glyphicon glyphicon-pencil\"></i></a>' .\n ' <a href=\"#\" data-id=\"' . $address->getId() . '\" data-action=\"delete\"><i class=\"glyphicon glyphicon-remove-circle\"></i></a>'\n );\n }\n return json_encode($response); \n }", "public function getFiltersAddresses()\n {\n return $this->hasMany(FilterAddress::className(), ['address_id' => 'id']);\n }", "public function address()\n {\n return $this->hasMany(Address::class, 'u_id', 'u_id')->orderBy('id');\n }", "public function addresses(){\n return $this->entity->shippingAddresses;\n }", "public function findAddresses() : Support\n {\n return $this->model->addresses;\n }", "public function findAddresses() : Support\n {\n return $this->model->addresses;\n }", "public function getAddressesByAccount($account);", "public function index()\n {\n return Address::all();\n }", "public function getToAddresses()\n {\n }", "public function index()\n {\n $query=Address::select()->get();\n return $query;\n }", "public function getAddressCollection(){\n $collection = array();\n $cache_id = 'jeproshop_cart_get_address_collection'.(int)$this->cart_id;\n if (!JeproshopCache::isStored($cache_id)){\n $db = JFactory::getDBO();\n $query = \"SELECT DISTINCT \" . $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart_product');\n $query .= \" WHERE cart_id = \" . (int)$this->cart_id;\n\n $db->setQuery($query);\n $result = $db->loadObjectList();\n JeproshopCache::store($cache_id, $result);\n }\n $result = JeproshopCache::retrieve($cache_id);\n\n //$result[] = array('address_delivery_id' => (int)$this->address_delivery_id);\n\n foreach ($result as $row)\n if ((int)$row->address_delivery_id != 0)\n $collection[(int)$row->address_delivery_id] = new JeproshopAddressModelAddress((int)$row->address_delivery_id);\n return $collection;\n }", "public function getContacts() {\n $sforce = $this->getDataSource();\n $SOQL = $sforce->getConfigSOQL();\n $resultSet = $this->queryBatch($SOQL);\n \n return $resultSet;\n }", "public function actionAddressListAll() \r\n {\r\n return $this->listing(0, true, Yii::$app->request->get('area_id'));\r\n }", "public function getAll()\r\n {\r\n // Query the database and return an array of contacts\r\n return $this->getEntityManager()\r\n ->createQuery(\r\n 'SELECT c FROM AppBundle:Contact c ORDER BY c.firstName, c.lastName ASC'\r\n )\r\n ->getResult();\r\n }", "public static function all() {\n\n $db = Zend_Registry::get('dbAdapter');\n $result = $db->query('select id from companys')->fetchAll();\n $companys = new SplObjectStorage();\n foreach ($result as $c) {\n try {\n $company = new Yourdelivery_Model_Company($c['id']);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $companys->attach($company);\n }\n return $companys;\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public function getAllRecipientAddresses()\n {\n return $this->all_recipients;\n }", "public function getAll($person_id){\n $SQL = 'SELECT * FROM address_information JOIN country ON address_information.country_code = country.country_code WHERE person_id=:person_id';\n $STMT = self::$_connection->prepare($SQL);\n $STMT->execute(['person_id'=>$person_id]);\n $STMT->setFetchMode(\\PDO::FETCH_CLASS,'app\\\\models\\\\Address');\n return $STMT->fetchAll();//returns an array of all the records\n }", "public function readAddressBook()\n {\n $addresses = [];\n // read each line of CSV and add rows to addresses array\n // todo\n $handle = fopen($this->filename, \"r\");\n while (!feof($handle)) \n {\n \t$row = fgetcsv($handle);\n \tif (is_array($row)) \n {\n \t\t$addresses[] = $row; // array_push($addresses, $row);\n \t}\n }\n fclose($handle);\n return $addresses;\n }", "public function all_contact_address_info(){\r\n $query = \"SELECT * FROM tbl_contact_us_address\";\r\n if(mysqli_query($this->db_connect, $query)){\r\n $query_result = mysqli_query($this->db_connect, $query);\r\n return $query_result;\r\n }else{\r\n die(\"Query Problem! \".mysqli_error($this->db_connect));\r\n }\r\n }", "public function getAllStores()\n {\n $sql = \"SELECT s.id, s.name, s.phone_number, s.address_id, a.province, a.city, a.district, a.address1, a.address2, \";\n $sql.= \"a.lat, a.lng FROM store as s, address as a \";\n $sql.= \"WHERE s.address_id=a.id\";\n $query = $this->db->prepare($sql);\n $query->execute();\n\n return $query->fetchAll();\n }", "public function getAll()\r\n {\r\n return $this->contactManager->fetchAll(true, null, null);\r\n }", "public function collectAddressData()\n {\n try {\n $components = collect($this->response->address_components);\n\n $this->address_data = $components->filter(function ($element) {\n $types = collect($element->types);\n\n return $types->search('street_number') !== false ||\n $types->search('route') !== false ||\n $types->search('locality') !== false ||\n $types->search('administrative_area_level_1') !== false || // province, normalement, short et long form\n $types->search('country') !== false ||\n $types->search('postal_code') !== false;\n })->mapWithKeys(function ($item) {\n return [$item->types[0] => $item->long_name];\n });\n } catch (\\Exception $e) {\n $this->address_data = null;\n }\n\n return $this;\n }", "public function getDepositAddresses() {\n return $this->trading([\n 'command' => 'returnDepositAddresses',\n ]);\n }", "public static function data_addresses() {\n\n\t\t$data = array(\n\t\t\tarray(\n\t\t\t\t'address' => '1175 Stony Park Witch Hazel, Nebraska 69258-4226',\n\t\t\t\t'phone' => '(308) 588-6126',\n\t\t\t\t'lat' => '41.4925374',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2854 Burning Pine Route Dog Corner, New Mexico 87313-2329',\n\t\t\t\t'phone' => '(505) 665-5353',\n\t\t\t\t'lat' => '35.76488',\n\t\t\t\t'lng' => '-108.1903059',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4644 Broad Pond Edge Brown Shanty, Colorado 81686-3084',\n\t\t\t\t'phone' => '(303) 410-6031',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8711 Fallen By-pass Free, Arkansas 72968-5919',\n\t\t\t\t'phone' => '(479) 272-1089',\n\t\t\t\t'lat' => '35.20105',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4987 Merry Fox Falls Speedsville, New Mexico 87609-9834',\n\t\t\t\t'phone' => '(505) 523-5318',\n\t\t\t\t'lat' => '34.5199402',\n\t\t\t\t'lng' => '-105.8700901',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4338 Easy Lagoon Mews Finland, North Dakota 58905-5049',\n\t\t\t\t'phone' => '(701) 474-6073',\n\t\t\t\t'lat' => '47.5514926',\n\t\t\t\t'lng' => '-101.0020119',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9041 Cinder View Trace Deloraine, Michigan 48363-3520',\n\t\t\t\t'phone' => '(313) 089-6913',\n\t\t\t\t'lat' => '42.7664746',\n\t\t\t\t'lng' => '-83.1541796',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6613 Golden Corner Polecat Bay, South Carolina 29248-0849',\n\t\t\t\t'phone' => '(843) 922-1045',\n\t\t\t\t'lat' => '33.836081',\n\t\t\t\t'lng' => '-81.1637245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '305 Jagged Grounds Estiffanulga, Minnesota 55180-3195',\n\t\t\t\t'phone' => '(320) 498-0046',\n\t\t\t\t'lat' => '46.729553',\n\t\t\t\t'lng' => '-94.6858998',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6860 Crystal Ridge Possum Trot, Tennessee 37454-4951',\n\t\t\t\t'phone' => '(931) 573-5387',\n\t\t\t\t'lat' => '35.5174913',\n\t\t\t\t'lng' => '-86.5804473',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3551 Pleasant Point Glen Raven, District of Columbia 20054-8428',\n\t\t\t\t'phone' => '(202) 389-4349',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7199 Sunny Nook Paydown, Maine 04353-6633',\n\t\t\t\t'phone' => '(207) 674-4096',\n\t\t\t\t'lat' => '44.2238966',\n\t\t\t\t'lng' => '-69.6199357',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2743 Thunder Port Chestermere, Missouri 63937-5966',\n\t\t\t\t'phone' => '(417) 123-9433',\n\t\t\t\t'lat' => '36.9301095',\n\t\t\t\t'lng' => '-90.7722974',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3760 Silver Prairie Townline Tiger Tail, Utah 84609-2369',\n\t\t\t\t'phone' => '(435) 290-2684',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2546 Clear Bear Range Tunnel Hill, Wyoming 83067-1217',\n\t\t\t\t'phone' => '(307) 236-9552',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2758 Cotton Campus Swindleville, Oklahoma 73758-8899',\n\t\t\t\t'phone' => '(580) 622-1215',\n\t\t\t\t'lat' => '36.9587896',\n\t\t\t\t'lng' => '-98.068343',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9000 Indian Embers Trail Little Water, North Dakota 58269-0906',\n\t\t\t\t'phone' => '(701) 719-4564',\n\t\t\t\t'lat' => '48.6914843',\n\t\t\t\t'lng' => '-98.165204',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '544 Noble Mountain Dell Ste. Rose du Lac, Nevada 88962-4758',\n\t\t\t\t'phone' => '(775) 731-8736',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6074 Emerald Gate Passage Waggy, Louisiana 70677-4881',\n\t\t\t\t'phone' => '(225) 476-0583',\n\t\t\t\t'lat' => '31.2448234',\n\t\t\t\t'lng' => '-92.1450245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9159 Hazy Zephyr Moor Gravesend, Vermont 05333-5210',\n\t\t\t\t'phone' => '(802) 410-3565',\n\t\t\t\t'lat' => '44.5588028',\n\t\t\t\t'lng' => '-72.5778415',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9919 Green Wagon Impasse Manifest, Hawaii 96717-8463',\n\t\t\t\t'phone' => '(808) 083-9986',\n\t\t\t\t'lat' => '21.5707975',\n\t\t\t\t'lng' => '-157.8927472',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1355 Blue Cove Scooba, Maine 04243-6502',\n\t\t\t\t'phone' => '(207) 298-7328',\n\t\t\t\t'lat' => '44.1',\n\t\t\t\t'lng' => '-70.22',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6356 Sleepy Chase Zipperlandville, Illinois 61835-9234',\n\t\t\t\t'phone' => '(815) 108-7735',\n\t\t\t\t'lat' => '40.6331249',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2531 Rustic Anchor Acres Hungry Hill, Maryland 20768-4906',\n\t\t\t\t'phone' => '(240) 370-9692',\n\t\t\t\t'lat' => '39',\n\t\t\t\t'lng' => '-76.88',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9957 Gentle Arbor Irricana, Delaware 19897-5853',\n\t\t\t\t'phone' => '(302) 440-8338',\n\t\t\t\t'lat' => '39.7856696',\n\t\t\t\t'lng' => '-75.5461494',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3187 High Promenade Fairdealing, Nebraska 69508-1675',\n\t\t\t\t'phone' => '(531) 725-6138',\n\t\t\t\t'lat' => '41.4925374',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6337 Amber Bend Funny River, Illinois 62817-4327',\n\t\t\t\t'phone' => '(217) 557-9408',\n\t\t\t\t'lat' => '37.9788798',\n\t\t\t\t'lng' => '-88.4500789',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9266 Shady Willow Cape Antlers, Alaska 99623-7664',\n\t\t\t\t'phone' => '(907) 409-4067',\n\t\t\t\t'lat' => '64.2008413',\n\t\t\t\t'lng' => '-149.4936733',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1352 Bright Goose Pike Big Black, Arkansas 71766-8350',\n\t\t\t\t'phone' => '(870) 377-6554',\n\t\t\t\t'lat' => '33.7046265',\n\t\t\t\t'lng' => '-92.4801989',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4111 Dewy Oak Manor Tennis, Massachusetts 02575-2415',\n\t\t\t\t'phone' => '(774) 709-4623',\n\t\t\t\t'lat' => '41.3854488',\n\t\t\t\t'lng' => '-70.6828437',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '847 Rocky Cider Mountain Smoke Tree, North Carolina 28828-1331',\n\t\t\t\t'phone' => '(910) 433-1420',\n\t\t\t\t'lat' => '35.7595731',\n\t\t\t\t'lng' => '-79.0192997',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7617 Wishing Brook Close Red Scaffold, Indiana 46881-1212',\n\t\t\t\t'phone' => '(574) 444-1553',\n\t\t\t\t'lat' => '40.5512165',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2480 Foggy Common Ragged Top, Washington 98961-5250',\n\t\t\t\t'phone' => '(360) 421-1646',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3492 Grand Forest Khwunrghunme, Michigan 49756-9037',\n\t\t\t\t'phone' => '(734) 937-3419',\n\t\t\t\t'lat' => '44.8212897',\n\t\t\t\t'lng' => '-84.3121264',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7416 Little Sky Freeway Rockglen, District of Columbia 20019-1929',\n\t\t\t\t'phone' => '(202) 237-8148',\n\t\t\t\t'lat' => '38.8910932',\n\t\t\t\t'lng' => '-76.947022',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9615 Iron Gate Four Locks, Nevada 89913-4822',\n\t\t\t\t'phone' => '(775) 426-4311',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6148 Old Diversion Tuggleville, Massachusetts 02337-2879',\n\t\t\t\t'phone' => '(857) 963-7280',\n\t\t\t\t'lat' => '42.0135823',\n\t\t\t\t'lng' => '-70.9618707',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6296 Quiet Limits Fort Nonsense, Alabama 35677-0818',\n\t\t\t\t'phone' => '(334) 098-7277',\n\t\t\t\t'lat' => '34.9568241',\n\t\t\t\t'lng' => '-88.0314174',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8939 Hidden Shadow Farms Granum, Connecticut 06587-8468',\n\t\t\t\t'phone' => '(475) 803-0416',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9165 Umber Horse Lane Pukwana, Utah 84914-5320',\n\t\t\t\t'phone' => '(801) 644-3244',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8216 Dusty Meadow India, Idaho 83960-6689',\n\t\t\t\t'phone' => '(208) 435-1588',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2405 Velvet Place Rob Roy, Oklahoma 74463-5905',\n\t\t\t\t'phone' => '(580) 100-1857',\n\t\t\t\t'lat' => '35.7558792',\n\t\t\t\t'lng' => '-95.5551652',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2739 Tawny Hills Harbour Kansas City, Minnesota 55068-2994',\n\t\t\t\t'phone' => '(763) 680-7609',\n\t\t\t\t'lat' => '44.7530325',\n\t\t\t\t'lng' => '-93.0776568',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3633 Round Elk Street Lick Fork, Colorado 80247-7628',\n\t\t\t\t'phone' => '(303) 519-5784',\n\t\t\t\t'lat' => '39.6974551',\n\t\t\t\t'lng' => '-104.8746508',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5392 Harvest Log Villas Beantown, Virginia 24261-9429',\n\t\t\t\t'phone' => '(757) 666-1162',\n\t\t\t\t'lat' => '37.4315734',\n\t\t\t\t'lng' => '-78.6568942',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3766 Red Quail Expressway Sopchoppy, Missouri 65567-6848',\n\t\t\t\t'phone' => '(660) 947-1822',\n\t\t\t\t'lat' => '37.8343507',\n\t\t\t\t'lng' => '-92.5495112',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5648 Honey Hill Fair Play, Nevada 89530-3031',\n\t\t\t\t'phone' => '(775) 838-1520',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6422 Fallen Fox Dell Uchi, Rhode Island 02952-2526',\n\t\t\t\t'phone' => '(401) 087-8528',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2316 Cinder Sky Moor Morning View, New Mexico 87980-3617',\n\t\t\t\t'phone' => '(505) 298-8521',\n\t\t\t\t'lat' => '34.5199402',\n\t\t\t\t'lng' => '-105.8700901',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2219 Quiet Embers Thicket Seven Oaks, Louisiana 70773-8954',\n\t\t\t\t'phone' => '(318) 793-9794',\n\t\t\t\t'lat' => '30.6070469',\n\t\t\t\t'lng' => '-91.3710402',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9442 Rustic Concession Kidtown, Illinois 61570-6195',\n\t\t\t\t'phone' => '(217) 402-8450',\n\t\t\t\t'lat' => '40.6331249',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1909 Cozy Via Hooker Corner, Utah 84719-1105',\n\t\t\t\t'phone' => '(385) 721-9721',\n\t\t\t\t'lat' => '37.6775836',\n\t\t\t\t'lng' => '-112.8343844',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2904 Heather Quail View Ernfold, Florida 34857-4872',\n\t\t\t\t'phone' => '(305) 192-2293',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9839 Harvest Terrace Ohiopyle, Wyoming 82363-8477',\n\t\t\t\t'phone' => '(307) 786-6676',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5298 Gentle Harbour Swamp Fox, Arizona 85258-7476',\n\t\t\t\t'phone' => '(480) 945-9607',\n\t\t\t\t'lat' => '33.5669912',\n\t\t\t\t'lng' => '-111.8985922',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9469 Thunder Port Forget, West Virginia 25796-2759',\n\t\t\t\t'phone' => '(304) 930-4028',\n\t\t\t\t'lat' => '38.5976262',\n\t\t\t\t'lng' => '-80.4549026',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7187 Hazy Private Birtle, Alabama 35219-5488',\n\t\t\t\t'phone' => '(256) 624-0268',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1033 Bright Forest Shin Hollow, New York 12454-5275',\n\t\t\t\t'phone' => '(718) 871-5723',\n\t\t\t\t'lat' => '42.2910991',\n\t\t\t\t'lng' => '-74.1592278',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4634 Old Branch Heath Crumrod, Washington 99353-4257',\n\t\t\t\t'phone' => '(360) 093-9697',\n\t\t\t\t'lat' => '46.4132585',\n\t\t\t\t'lng' => '-119.4197414',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '428 Wishing Park Frostproof, Oregon 97948-9195',\n\t\t\t\t'phone' => '(458) 093-6584',\n\t\t\t\t'lat' => '43.8041334',\n\t\t\t\t'lng' => '-120.5542012',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8095 Silent Autumn Mews Summertime, Oklahoma 73173-9098',\n\t\t\t\t'phone' => '(580) 064-3854',\n\t\t\t\t'lat' => '35.3364517',\n\t\t\t\t'lng' => '-97.6222665',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3838 Cotton Bend Rapture, District of Columbia 20092-1246',\n\t\t\t\t'phone' => '(202) 408-8807',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '136 Green Prairie By-pass Chappaquiddick, Alabama 35143-8644',\n\t\t\t\t'phone' => '(334) 878-7089',\n\t\t\t\t'lat' => '33.0991185',\n\t\t\t\t'lng' => '-86.5602614',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6744 Foggy Panda Hollow Four Bears Village, Massachusetts 01836-1710',\n\t\t\t\t'phone' => '(339) 877-5101',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6657 Pleasant Cloud Corners Bucklesberry, Texas 79634-2471',\n\t\t\t\t'phone' => '(430) 045-9307',\n\t\t\t\t'lat' => '31.9685988',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7739 Golden Leaf Highway Sixes, California 94802-8145',\n\t\t\t\t'phone' => '(408) 759-3038',\n\t\t\t\t'lat' => '37.94',\n\t\t\t\t'lng' => '-122.36',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7761 Quaking Cove Waldheim, Alabama 36811-9935',\n\t\t\t\t'phone' => '(256) 439-3656',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2016 Honey Downs Lunenburg, Alabama 36444-4744',\n\t\t\t\t'phone' => '(334) 539-9475',\n\t\t\t\t'lat' => '31.6711853',\n\t\t\t\t'lng' => '-87.4405786',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4862 Jagged Goose Woods Hog Eye, Idaho 83723-2986',\n\t\t\t\t'phone' => '(208) 870-7519',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3085 Blue Hickory Quay Bell Buckle, Massachusetts 01800-4101',\n\t\t\t\t'phone' => '(508) 992-6644',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1970 Round Freeway Frog Town, Washington 98616-3325',\n\t\t\t\t'phone' => '(253) 244-8709',\n\t\t\t\t'lat' => '46.1794789',\n\t\t\t\t'lng' => '-122.1561155',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3350 Emerald Expressway Hardup, Rhode Island 02983-8455',\n\t\t\t\t'phone' => '(401) 829-1654',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4668 Dusty Spring Link Lampadocia, Florida 33678-2548',\n\t\t\t\t'phone' => '(850) 277-3318',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5044 Rocky Falls Scratch Ankle, Massachusetts 02233-6502',\n\t\t\t\t'phone' => '(339) 608-9455',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4990 Indian Run Jumbo Landing, Kansas 66264-6247',\n\t\t\t\t'phone' => '(913) 450-8901',\n\t\t\t\t'lat' => '39.011902',\n\t\t\t\t'lng' => '-98.4842465',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5366 Iron Round Hardmoney, Mississippi 38651-2412',\n\t\t\t\t'phone' => '(228) 415-6114',\n\t\t\t\t'lat' => '34.8955106',\n\t\t\t\t'lng' => '-90.0466559',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9587 Noble Fawn Wood Silton, Utah 84515-3673',\n\t\t\t\t'phone' => '(435) 680-2014',\n\t\t\t\t'lat' => '38.911433',\n\t\t\t\t'lng' => '-109.140438',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7947 Tawny Bank Glen Campbell, New Jersey 08965-3916',\n\t\t\t\t'phone' => '(908) 243-5474',\n\t\t\t\t'lat' => '40.0583238',\n\t\t\t\t'lng' => '-74.4056612',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4086 Shady Swale Symbol, Connecticut 06452-9480',\n\t\t\t\t'phone' => '(860) 816-1261',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5450 Red Point Thankful, District of Columbia 20085-4124',\n\t\t\t\t'phone' => '(202) 097-4695',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8648 Sunny Abbey Poysippi, Arkansas 71807-9239',\n\t\t\t\t'phone' => '(479) 685-9599',\n\t\t\t\t'lat' => '35.20105',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9671 Amber Meadow Bullhead City, Connecticut 06195-6843',\n\t\t\t\t'phone' => '(475) 181-4842',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1003 Velvet Passage Swamproot, Florida 32977-8675',\n\t\t\t\t'phone' => '(305) 352-4895',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1822 Clear Rabbit Heights Hardscrabble Corner, Maryland 21902-5168',\n\t\t\t\t'phone' => '(240) 459-3194',\n\t\t\t\t'lat' => '39.5519225',\n\t\t\t\t'lng' => '-76.0667488',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6657 Red Cape Jumbotown, South Dakota 57009-7025',\n\t\t\t\t'phone' => '(605) 051-3665',\n\t\t\t\t'lat' => '43.9695148',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1736 Lost Lake Private Apponagansett, Colorado 81664-5410',\n\t\t\t\t'phone' => '(719) 056-7029',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3840 Easy Bend Village Thirteen, North Carolina 28961-7505',\n\t\t\t\t'phone' => '(828) 335-6063',\n\t\t\t\t'lat' => '33.9790349',\n\t\t\t\t'lng' => '-81.0094511',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4449 Emerald Goose Corner White Swan, Delaware 19914-5031',\n\t\t\t\t'phone' => '(302) 768-7121',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1726 Iron Pond Key Farewell, Utah 84430-5042',\n\t\t\t\t'phone' => '(801) 997-1471',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7984 Hidden Hills Route Radical, Maryland 21826-2709',\n\t\t\t\t'phone' => '(301) 118-3207',\n\t\t\t\t'lat' => '38.319091',\n\t\t\t\t'lng' => '-75.6237184',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '254 Jagged Grove Towers Skokomish, Michigan 49764-5965',\n\t\t\t\t'phone' => '(810) 808-1222',\n\t\t\t\t'lat' => '45.4227613',\n\t\t\t\t'lng' => '-84.8275195',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7013 Amber Butterfly Carrefour White Iron, Alabama 36391-7622',\n\t\t\t\t'phone' => '(251) 184-2094',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2152 Foggy Brook Turnabout Hangman Crossing, Connecticut 06556-8181',\n\t\t\t\t'phone' => '(203) 471-8901',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3522 Stony Timber Swale Little Black, Nebraska 68531-8030',\n\t\t\t\t'phone' => '(531) 896-6498',\n\t\t\t\t'lat' => '40.8991047',\n\t\t\t\t'lng' => '-96.722641',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5903 Velvet Log Square Tingle, Nevada 89258-0703',\n\t\t\t\t'phone' => '(775) 480-4956',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1666 Tawny Hickory Bay Quoddy, South Carolina 29810-1362',\n\t\t\t\t'phone' => '(864) 760-6510',\n\t\t\t\t'lat' => '32.98209',\n\t\t\t\t'lng' => '-81.3619402',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '549 Golden Cider Moor Changewater, Idaho 83736-4490',\n\t\t\t\t'phone' => '(208) 757-6906',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6342 Sunny Embers Trail Nickajack, Louisiana 71225-2282',\n\t\t\t\t'phone' => '(337) 704-5874',\n\t\t\t\t'lat' => '32.5040767',\n\t\t\t\t'lng' => '-92.3517526',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '870 Round Circuit Crumrod, North Dakota 58569-6155',\n\t\t\t\t'phone' => '(701) 752-7907',\n\t\t\t\t'lat' => '46.2326345',\n\t\t\t\t'lng' => '-101.2387062',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3571 Gentle Run Mudtavern, South Dakota 57420-4755',\n\t\t\t\t'phone' => '(605) 329-6911',\n\t\t\t\t'lat' => '45.2565588',\n\t\t\t\t'lng' => '-100.162177',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7000 Honey Fox Ridge Asphaltum, Oklahoma 74163-8162',\n\t\t\t\t'phone' => '(918) 254-3808',\n\t\t\t\t'lat' => '35.0077519',\n\t\t\t\t'lng' => '-97.092877',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5404 Thunder Vale Paydown, Utah 84529-9748',\n\t\t\t\t'phone' => '(801) 496-4369',\n\t\t\t\t'lat' => '39.7235022',\n\t\t\t\t'lng' => '-110.7956878',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5715 Harvest Gate Vista Perennial, Massachusetts 01775-4618',\n\t\t\t\t'phone' => '(351) 819-4468',\n\t\t\t\t'lat' => '42.4195323',\n\t\t\t\t'lng' => '-71.5130445',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3792 Misty Forest Loop Nanatlugunyi, Florida 34626-6008',\n\t\t\t\t'phone' => '(561) 250-4253',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8967 Wishing Robin Abbey Delightful, California 91223-0883',\n\t\t\t\t'phone' => '(858) 369-2837',\n\t\t\t\t'lat' => '36.778261',\n\t\t\t\t'lng' => '-119.4179324',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7881 Clear Deer Orchard Earth City, North Carolina 28790-1923',\n\t\t\t\t'phone' => '(334) 742-0656',\n\t\t\t\t'lat' => '35.2122099',\n\t\t\t\t'lng' => '-82.4861053',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1424 Blue Freeway Calypso, Oregon 97366-8616',\n\t\t\t\t'phone' => '(541) 518-7818',\n\t\t\t\t'lat' => '44.5772172',\n\t\t\t\t'lng' => '-124.053674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6984 Green Crest Comet, Colorado 80879-7122',\n\t\t\t\t'phone' => '(303) 805-7076',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3444 Merry Zephyr Bank St. Anthony, Maryland 21537-8641',\n\t\t\t\t'phone' => '(240) 544-8665',\n\t\t\t\t'lat' => '39.0457549',\n\t\t\t\t'lng' => '-76.6412712',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2369 Noble Link Pilchuck, Mississippi 38792-0814',\n\t\t\t\t'phone' => '(769) 452-9691',\n\t\t\t\t'lat' => '32.3546679',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1272 Colonial Woods California, District of Columbia 20026-2848',\n\t\t\t\t'phone' => '(202) 663-3795',\n\t\t\t\t'lat' => '38.88546',\n\t\t\t\t'lng' => '-77.02612',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2483 Cinder Blossom Townline Smittle, Michigan 48648-1860',\n\t\t\t\t'phone' => '(586) 711-0904',\n\t\t\t\t'lat' => '44.3148443',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4352 Sleepy Acres Turkey Foot Corner, Arizona 85149-8474',\n\t\t\t\t'phone' => '(480) 488-6822',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2334 Broad Centre Quebec, Arkansas 72840-9638',\n\t\t\t\t'phone' => '(870) 138-9435',\n\t\t\t\t'lat' => '35.4784895',\n\t\t\t\t'lng' => '-93.6319131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '926 Silver Rabbit Heath Biggar, Wyoming 82485-7427',\n\t\t\t\t'phone' => '(307) 598-8660',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2095 Dewy Valley Poland, North Carolina 28675-0245',\n\t\t\t\t'phone' => '(828) 268-1449',\n\t\t\t\t'lat' => '36.517185',\n\t\t\t\t'lng' => '-81.1416691',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9664 Heather Apple Lane Rock Run, Ohio 44631-4798',\n\t\t\t\t'phone' => '(567) 477-8961',\n\t\t\t\t'lat' => '40.4172871',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4413 Cotton Passage Money Creek, South Dakota 57464-6212',\n\t\t\t\t'phone' => '(605) 769-3389',\n\t\t\t\t'lat' => '43.9695148',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '498 Grand Autumn Manor Sinks, Maryland 21080-2555',\n\t\t\t\t'phone' => '(240) 883-6381',\n\t\t\t\t'lat' => '39.0457549',\n\t\t\t\t'lng' => '-76.6412712',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4880 Cozy Bluff Wynd Dime, Wyoming 82623-0557',\n\t\t\t\t'phone' => '(307) 789-9254',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1631 Bright Pointe Atlantic, Montana 59633-0116',\n\t\t\t\t'phone' => '(406) 254-9193',\n\t\t\t\t'lat' => '46.8567824',\n\t\t\t\t'lng' => '-112.3514774',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1882 Amber Quay Stamping Ground, Nevada 89168-3744',\n\t\t\t\t'phone' => '(702) 523-2993',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1184 Honey Rabbit Byway Security, Rhode Island 02976-3161',\n\t\t\t\t'phone' => '(401) 196-3344',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7312 Rustic Shadow Crescent Quispamsis, Missouri 64437-0634',\n\t\t\t\t'phone' => '(573) 055-5313',\n\t\t\t\t'lat' => '40.1640348',\n\t\t\t\t'lng' => '-95.3730176',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4235 Easy Hollow Terramuggus, Massachusetts 01190-1126',\n\t\t\t\t'phone' => '(339) 768-8087',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3275 Bright Rise Tobin Lake, Missouri 63434-6747',\n\t\t\t\t'phone' => '(636) 770-5547',\n\t\t\t\t'lat' => '39.9029582',\n\t\t\t\t'lng' => '-91.9685826',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6974 Lazy Hickory Lookout Bingo Creek Landing, Ohio 43915-4308',\n\t\t\t\t'phone' => '(330) 540-7539',\n\t\t\t\t'lat' => '39.7283144',\n\t\t\t\t'lng' => '-80.9207737',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9571 Iron Impasse Speedway, Kentucky 41048-7538',\n\t\t\t\t'phone' => '(270) 173-4041',\n\t\t\t\t'lat' => '39.0871388',\n\t\t\t\t'lng' => '-84.7211074',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3955 Silent Autumn Port Fairbanks, North Carolina 28288-9288',\n\t\t\t\t'phone' => '(704) 022-2545',\n\t\t\t\t'lat' => '35.2299999',\n\t\t\t\t'lng' => '-80.84',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6612 Rocky Square Wink, New Mexico 88011-7952',\n\t\t\t\t'phone' => '(575) 508-3628',\n\t\t\t\t'lat' => '32.3035838',\n\t\t\t\t'lng' => '-106.6055534',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7468 Merry Glade Wynyard, Oklahoma 74155-6173',\n\t\t\t\t'phone' => '(918) 189-7319',\n\t\t\t\t'lat' => '36.1',\n\t\t\t\t'lng' => '-95.88',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8814 Blue Bank Chickahominy, Rhode Island 02870-2801',\n\t\t\t\t'phone' => '(401) 398-9638',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7805 Misty Estates Orderville, Arizona 85006-4165',\n\t\t\t\t'phone' => '(480) 709-9395',\n\t\t\t\t'lat' => '33.4636012',\n\t\t\t\t'lng' => '-112.0535987',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8128 Colonial View Jetty Ruff, Alaska 99974-7657',\n\t\t\t\t'phone' => '(907) 844-0966',\n\t\t\t\t'lat' => '64.2008413',\n\t\t\t\t'lng' => '-149.4936733',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2915 Quiet Log Run Conquest Beach, Pennsylvania 19688-3627',\n\t\t\t\t'phone' => '(570) 679-4418',\n\t\t\t\t'lat' => '41.2033216',\n\t\t\t\t'lng' => '-77.1945247',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8984 Crystal Village Box Ankle, Arizona 86462-7020',\n\t\t\t\t'phone' => '(602) 319-0178',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6651 Jagged Quail Parade Kaihon Kug, Minnesota 56043-3914',\n\t\t\t\t'phone' => '(320) 120-3165',\n\t\t\t\t'lat' => '43.6400477',\n\t\t\t\t'lng' => '-93.2281983',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2721 Umber Goose Inlet Whipup, California 90450-4108',\n\t\t\t\t'phone' => '(310) 337-3085',\n\t\t\t\t'lat' => '36.778261',\n\t\t\t\t'lng' => '-119.4179324',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2346 Grand Embers Autoroute Pee Dee, Delaware 19827-5252',\n\t\t\t\t'phone' => '(302) 130-8743',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1014 Tawny Barn Campus Moab, Wisconsin 54395-8609',\n\t\t\t\t'phone' => '(715) 451-7568',\n\t\t\t\t'lat' => '43.7844397',\n\t\t\t\t'lng' => '-88.7878678',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4766 Middle Apple Walk Mctaggart, Georgia 39974-6914',\n\t\t\t\t'phone' => '(770) 180-8724',\n\t\t\t\t'lat' => '32.1574351',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1357 Stony Spring Falls Pyro, Minnesota 56430-2366',\n\t\t\t\t'phone' => '(651) 112-8227',\n\t\t\t\t'lat' => '46.24',\n\t\t\t\t'lng' => '-93.27',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '741 Little Road Hotchkissville, South Carolina 29980-2982',\n\t\t\t\t'phone' => '(803) 271-1505',\n\t\t\t\t'lat' => '33.836081',\n\t\t\t\t'lng' => '-81.1637245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4800 Indian Abbey Blowing Rocks, Indiana 46110-0404',\n\t\t\t\t'phone' => '(317) 118-3274',\n\t\t\t\t'lat' => '39.5487322',\n\t\t\t\t'lng' => '-85.899783',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7564 Hazy End Quonochontaug, Iowa 50994-1984',\n\t\t\t\t'phone' => '(641) 188-5763',\n\t\t\t\t'lat' => '41.8780025',\n\t\t\t\t'lng' => '-93.097702',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8297 Green Fox Boulevard Oskaloosa, Delaware 19768-0727',\n\t\t\t\t'phone' => '(302) 991-2140',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3485 High Elk Highlands Alabama, Illinois 60056-5509',\n\t\t\t\t'phone' => '(630) 741-5152',\n\t\t\t\t'lat' => '42.0646736',\n\t\t\t\t'lng' => '-87.9383822',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1086 Sleepy River Highway Deep Tunnel, Nebraska 69944-7258',\n\t\t\t\t'phone' => '(402) 487-2266',\n\t\t\t\t'lat' => '41.4925374',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4287 Hidden Pathway Dogs Corners, Texas 77703-3455',\n\t\t\t\t'phone' => '(214) 064-5285',\n\t\t\t\t'lat' => '30.1123243',\n\t\t\t\t'lng' => '-94.1053307',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9353 Broad Lake Green Magic City, Connecticut 06944-8343',\n\t\t\t\t'phone' => '(860) 742-6128',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '837 Pleasant Leaf Mountain Badwater, Michigan 49485-3681',\n\t\t\t\t'phone' => '(989) 918-6526',\n\t\t\t\t'lat' => '44.3148443',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '39 Heather Deer Terrace Thumpertown Beach, South Carolina 29522-8274',\n\t\t\t\t'phone' => '(864) 481-1621',\n\t\t\t\t'lat' => '33.836081',\n\t\t\t\t'lng' => '-81.1637245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3339 Old Bear Pike Pierceland, South Dakota 57415-3788',\n\t\t\t\t'phone' => '(605) 629-5218',\n\t\t\t\t'lat' => '43.9695148',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8761 Red Pines Rice City, Washington 99321-1500',\n\t\t\t\t'phone' => '(206) 943-5709',\n\t\t\t\t'lat' => '46.8302172',\n\t\t\t\t'lng' => '-119.9753806',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7767 Silver Alley Noordeloos, Iowa 51745-0727',\n\t\t\t\t'phone' => '(641) 192-2090',\n\t\t\t\t'lat' => '41.8780025',\n\t\t\t\t'lng' => '-93.097702',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1435 Fallen Mountain Vale Fond du Lac, Virginia 22856-9291',\n\t\t\t\t'phone' => '(757) 141-8626',\n\t\t\t\t'lat' => '37.4315734',\n\t\t\t\t'lng' => '-78.6568942',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2933 Sunny Lagoon Carrefour Tok, Alabama 36623-1322',\n\t\t\t\t'phone' => '(251) 692-9694',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2269 Green Estates Lancer, Virginia 23433-5801',\n\t\t\t\t'phone' => '(276) 386-1910',\n\t\t\t\t'lat' => '36.9096727',\n\t\t\t\t'lng' => '-76.4736602',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5102 Crystal Campus Africa, Arkansas 72941-1369',\n\t\t\t\t'phone' => '(501) 425-6290',\n\t\t\t\t'lat' => '35.3406757',\n\t\t\t\t'lng' => '-94.1718542',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6263 Dusty Via Westlock, North Carolina 27880-2868',\n\t\t\t\t'phone' => '(252) 729-9770',\n\t\t\t\t'lat' => '35.7274657',\n\t\t\t\t'lng' => '-78.1222336',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '901 Emerald Dale Trail Tropic, Alabama 36195-8065',\n\t\t\t\t'phone' => '(256) 750-0498',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9909 Stony Treasure Run Bowlegs, New York 14280-7238',\n\t\t\t\t'phone' => '(718) 645-5353',\n\t\t\t\t'lat' => '42.88',\n\t\t\t\t'lng' => '-78.83',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '375 Grand Circuit Big Lick, North Dakota 58673-0849',\n\t\t\t\t'phone' => '(701) 249-6415',\n\t\t\t\t'lat' => '47.5514926',\n\t\t\t\t'lng' => '-101.0020119',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6622 Shady Willow Extension Singing Brook, Florida 34850-0832',\n\t\t\t\t'phone' => '(904) 520-9731',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3788 Golden Path Ouzinkie, Nevada 89414-0520',\n\t\t\t\t'phone' => '(702) 834-3786',\n\t\t\t\t'lat' => '41.0357702',\n\t\t\t\t'lng' => '-117.1264753',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2770 Hidden Leaf Autoroute Skin Corner, Wisconsin 53103-7447',\n\t\t\t\t'phone' => '(414) 483-1760',\n\t\t\t\t'lat' => '42.8791805',\n\t\t\t\t'lng' => '-88.2169027',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4453 Cinder Island Stead Oblong, Washington 98115-4132',\n\t\t\t\t'phone' => '(509) 550-3940',\n\t\t\t\t'lat' => '47.6849444',\n\t\t\t\t'lng' => '-122.2982224',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3154 Easy Beacon Grounds Queonemysing, Rhode Island 02899-2050',\n\t\t\t\t'phone' => '(401) 107-0559',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5753 Umber Blossom Close Broomtown, Nebraska 68105-7145',\n\t\t\t\t'phone' => '(531) 625-0429',\n\t\t\t\t'lat' => '41.2418116',\n\t\t\t\t'lng' => '-95.9673967',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5314 Colonial Shadow Green Okahta Talaia, West Virginia 26565-0046',\n\t\t\t\t'phone' => '(304) 871-6111',\n\t\t\t\t'lat' => '38.5976262',\n\t\t\t\t'lng' => '-80.4549026',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7366 Gentle Gate Pines Anaconda, Pennsylvania 17700-1378',\n\t\t\t\t'phone' => '(878) 984-2742',\n\t\t\t\t'lat' => '41.2033216',\n\t\t\t\t'lng' => '-77.1945247',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6390 Amber Hills Range Chiawuli Tak, Alaska 99585-0460',\n\t\t\t\t'phone' => '(907) 482-1567',\n\t\t\t\t'lat' => '61.9319969',\n\t\t\t\t'lng' => '-162.2708169',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9656 Blue Goose Passage Bootjack, District of Columbia 20050-2319',\n\t\t\t\t'phone' => '(202) 047-2431',\n\t\t\t\t'lat' => '38.9',\n\t\t\t\t'lng' => '-77.04',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3292 Dewy Fox Square Gassaway, Mississippi 38750-3303',\n\t\t\t\t'phone' => '(662) 414-3997',\n\t\t\t\t'lat' => '32.3546679',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3621 Lost Barn Key Turkey Scratch, Nebraska 68376-3092',\n\t\t\t\t'phone' => '(308) 123-0375',\n\t\t\t\t'lat' => '40.1975037',\n\t\t\t\t'lng' => '-95.940971',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '779 Quaking Bend Pink Arrow, Maine 04229-9316',\n\t\t\t\t'phone' => '(207) 751-1259',\n\t\t\t\t'lat' => '45.253783',\n\t\t\t\t'lng' => '-69.4454689',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '859 Little Place Prairie Queen, South Carolina 29009-4151',\n\t\t\t\t'phone' => '(864) 042-0986',\n\t\t\t\t'lat' => '34.4614628',\n\t\t\t\t'lng' => '-80.3881333',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5454 Burning Apple Plaza Montmartre, Indiana 47837-8211',\n\t\t\t\t'phone' => '(317) 656-5951',\n\t\t\t\t'lat' => '40.5512165',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3019 Tawny Nectar Canyon Twentysix, Rhode Island 02953-3262',\n\t\t\t\t'phone' => '(401) 205-0347',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1693 Heather Park Choccolocco, Nevada 89121-6915',\n\t\t\t\t'phone' => '(702) 497-5280',\n\t\t\t\t'lat' => '36.1165487',\n\t\t\t\t'lng' => '-115.0881146',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4694 Harvest Grove Cape Farmlife, Delaware 19851-7155',\n\t\t\t\t'phone' => '(302) 677-0905',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6793 Noble Prairie Farm Cheesequake, South Carolina 29321-0502',\n\t\t\t\t'phone' => '(843) 039-9935',\n\t\t\t\t'lat' => '34.7346757',\n\t\t\t\t'lng' => '-81.7130522',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7422 Lazy Ridge Possum Bluff, North Dakota 58730-0556',\n\t\t\t\t'phone' => '(701) 951-9221',\n\t\t\t\t'lat' => '48.8755921',\n\t\t\t\t'lng' => '-103.3383503',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9342 Round Rabbit Gate Latexo, Ohio 44353-0469',\n\t\t\t\t'phone' => '(740) 126-5652',\n\t\t\t\t'lat' => '40.4172871',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9030 Red Abbey Pointblank, Oregon 97693-1636',\n\t\t\t\t'phone' => '(458) 273-1218',\n\t\t\t\t'lat' => '43.8041334',\n\t\t\t\t'lng' => '-120.5542012',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7 High Mountain Glade Pontiac, Arizona 86330-0582',\n\t\t\t\t'phone' => '(928) 447-4570',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5726 Fallen Embers Thicket Port Protection, Ohio 44035-5738',\n\t\t\t\t'phone' => '(740) 066-8548',\n\t\t\t\t'lat' => '41.3534148',\n\t\t\t\t'lng' => '-82.1496049',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5589 Thunder Point Wawota, Louisiana 71490-1808',\n\t\t\t\t'phone' => '(985) 711-3587',\n\t\t\t\t'lat' => '31.2448234',\n\t\t\t\t'lng' => '-92.1450245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8346 Silver Limits Battle Mountain, New York 12016-4484',\n\t\t\t\t'phone' => '(347) 919-0371',\n\t\t\t\t'lat' => '42.93',\n\t\t\t\t'lng' => '-74.3199999',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5933 Quiet Valley Ko Ko, Colorado 81549-9872',\n\t\t\t\t'phone' => '(719) 129-0748',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5148 Clear Vale Poor Town, Massachusetts 02575-2791',\n\t\t\t\t'phone' => '(339) 153-3036',\n\t\t\t\t'lat' => '41.3854488',\n\t\t\t\t'lng' => '-70.6828437',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6704 Hazy Lookout Weed, Iowa 50719-6158',\n\t\t\t\t'phone' => '(712) 771-7469',\n\t\t\t\t'lat' => '41.8780025',\n\t\t\t\t'lng' => '-93.097702',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3575 Middle Drive Koggiung, Maryland 21558-6166',\n\t\t\t\t'phone' => '(443) 915-6824',\n\t\t\t\t'lat' => '39.0457549',\n\t\t\t\t'lng' => '-76.6412712',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9365 Grand Pointe Nanton, New Jersey 07685-8905',\n\t\t\t\t'phone' => '(973) 220-5840',\n\t\t\t\t'lat' => '40.0583238',\n\t\t\t\t'lng' => '-74.4056612',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9796 Cozy Cider Boulevard Weirdale, Rhode Island 02968-5568',\n\t\t\t\t'phone' => '(401) 569-3091',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5297 Merry Woods Mexican Hat, Arizona 86615-1139',\n\t\t\t\t'phone' => '(623) 535-6319',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7427 Jagged Brook Bank Ah Fong Village, South Dakota 57890-7849',\n\t\t\t\t'phone' => '(605) 276-0864',\n\t\t\t\t'lat' => '43.9695148',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '754 Tawny Pony Alley Ak-Chin Village, Pennsylvania 17528-2354',\n\t\t\t\t'phone' => '(878) 610-1011',\n\t\t\t\t'lat' => '40.1281362',\n\t\t\t\t'lng' => '-75.998932',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4504 Lost Pine Jetty Ashepoo, Indiana 46332-6909',\n\t\t\t\t'phone' => '(765) 658-9671',\n\t\t\t\t'lat' => '40.5512165',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7349 Wishing Pioneer Carrefour Fearnowville, Nebraska 69992-2859',\n\t\t\t\t'phone' => '(531) 755-7518',\n\t\t\t\t'lat' => '41.4925374',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8125 Sleepy Wagon Walk Quails Nest, Washington 98914-0393',\n\t\t\t\t'phone' => '(360) 759-8355',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4848 Rustic Creek Field Extra, Florida 32134-3480',\n\t\t\t\t'phone' => '(772) 410-4020',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9972 Red Island Parade Quinhagak, Arkansas 72321-2240',\n\t\t\t\t'phone' => '(870) 781-2491',\n\t\t\t\t'lat' => '35.8197959',\n\t\t\t\t'lng' => '-89.9323304',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6636 Crystal Chase Skidaway Island, Connecticut 06780-4384',\n\t\t\t\t'phone' => '(475) 727-7385',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6444 Pleasant Bluff Gate Axehandle, Arkansas 72928-3456',\n\t\t\t\t'phone' => '(479) 819-5947',\n\t\t\t\t'lat' => '35.2937406',\n\t\t\t\t'lng' => '-93.9368439',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9235 Blue Villas Half Hell, Washington 98641-6518',\n\t\t\t\t'phone' => '(206) 611-7946',\n\t\t\t\t'lat' => '46.5782535',\n\t\t\t\t'lng' => '-124.0028498',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6226 Cinder Quail Townline Ohoopee, Florida 32498-0673',\n\t\t\t\t'phone' => '(386) 072-5373',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4445 Harvest Timber Autoroute Sugar House, Tennessee 38360-7057',\n\t\t\t\t'phone' => '(931) 262-1016',\n\t\t\t\t'lat' => '35.5174913',\n\t\t\t\t'lng' => '-86.5804473',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1977 Stony Fawn Stead Mervin, Virginia 22113-0967',\n\t\t\t\t'phone' => '(757) 167-5136',\n\t\t\t\t'lat' => '37.4315734',\n\t\t\t\t'lng' => '-78.6568942',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1394 Noble Downs Flickersville, Idaho 83613-3584',\n\t\t\t\t'phone' => '(208) 823-5774',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5874 Hidden Common Ugashik, Delaware 19881-6924',\n\t\t\t\t'phone' => '(302) 305-4954',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9383 Gentle Grove Meadow Normalville, West Virginia 25919-8033',\n\t\t\t\t'phone' => '(681) 917-8401',\n\t\t\t\t'lat' => '37.8131224',\n\t\t\t\t'lng' => '-81.1835839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7371 Honey Sky Link Fort Spunky, Alabama 35100-5594',\n\t\t\t\t'phone' => '(334) 624-5222',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6632 High Lane Twisp, Louisiana 71003-4067',\n\t\t\t\t'phone' => '(985) 211-3060',\n\t\t\t\t'lat' => '31.2448234',\n\t\t\t\t'lng' => '-92.1450245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2365 Foggy Rise Swale Tribune, District of Columbia 20032-3585',\n\t\t\t\t'phone' => '(202) 865-0334',\n\t\t\t\t'lat' => '38.8372336',\n\t\t\t\t'lng' => '-77.0161436',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '293 Quiet Canyon Pondlick, Oklahoma 74029-6738',\n\t\t\t\t'phone' => '(405) 584-2135',\n\t\t\t\t'lat' => '36.832666',\n\t\t\t\t'lng' => '-95.8353837',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1074 Emerald Mall Archerwill, Maine 04935-6012',\n\t\t\t\t'phone' => '(207) 343-0489',\n\t\t\t\t'lat' => '44.4486337',\n\t\t\t\t'lng' => '-69.6062394',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6450 Little Robin Glade Pothook, Tennessee 38145-7689',\n\t\t\t\t'phone' => '(931) 676-3145',\n\t\t\t\t'lat' => '35.15',\n\t\t\t\t'lng' => '-90.05',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3990 Velvet Shadow Landing Crumpecker, Georgia 39823-3094',\n\t\t\t\t'phone' => '(762) 086-4610',\n\t\t\t\t'lat' => '31.3021309',\n\t\t\t\t'lng' => '-84.981754',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5560 Amber Highway Osoyoos, Colorado 81022-7656',\n\t\t\t\t'phone' => '(719) 296-9040',\n\t\t\t\t'lat' => '38.1345872',\n\t\t\t\t'lng' => '-104.4257533',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4068 Golden Moor High Lonesome Wells, Nevada 89929-1910',\n\t\t\t\t'phone' => '(775) 336-5382',\n\t\t\t\t'lat' => '41.1115888',\n\t\t\t\t'lng' => '-114.96449',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5720 Dewy Valley Tropic, Ohio 45591-1583',\n\t\t\t\t'phone' => '(216) 223-1805',\n\t\t\t\t'lat' => '40.4172871',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4649 Indian Oak Trace Cincinnati, Arkansas 72188-8555',\n\t\t\t\t'phone' => '(501) 108-3473',\n\t\t\t\t'lat' => '35.20105',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4571 Dusty Crest Torquay, South Carolina 29071-4011',\n\t\t\t\t'phone' => '(843) 590-3879',\n\t\t\t\t'lat' => '33.9799999',\n\t\t\t\t'lng' => '-81.24',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '338 Rocky Nectar By-pass Slapneck, Idaho 83647-7054',\n\t\t\t\t'phone' => '(208) 458-6847',\n\t\t\t\t'lat' => '43.4969131',\n\t\t\t\t'lng' => '-115.5314511',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9878 Thunder Arbor Kalifornsky, Arizona 86631-5352',\n\t\t\t\t'phone' => '(623) 658-2751',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5226 Shady Goose Impasse Alberton, Colorado 81299-4296',\n\t\t\t\t'phone' => '(970) 381-4534',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9048 Sleepy Dale Maze Lucky, Tennessee 37271-0904',\n\t\t\t\t'phone' => '(865) 587-0661',\n\t\t\t\t'lat' => '35.5174913',\n\t\t\t\t'lng' => '-86.5804473',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8484 Foggy Canyon Delaware, Washington 98893-5880',\n\t\t\t\t'phone' => '(425) 905-3571',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7644 Dusty Lake Lookout Legal, Nevada 89531-1567',\n\t\t\t\t'phone' => '(702) 991-0236',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2965 Colonial Pond Byway Kabetogama, Oklahoma 73592-8085',\n\t\t\t\t'phone' => '(580) 099-9725',\n\t\t\t\t'lat' => '35.0077519',\n\t\t\t\t'lng' => '-97.092877',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7035 Amber Bank Big Timber, Montana 59099-3359',\n\t\t\t\t'phone' => '(406) 046-1326',\n\t\t\t\t'lat' => '45.8343543',\n\t\t\t\t'lng' => '-109.9540644',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4491 Quiet Port Indialantic, Maryland 21062-4405',\n\t\t\t\t'phone' => '(240) 553-5943',\n\t\t\t\t'lat' => '39.1599999',\n\t\t\t\t'lng' => '-76.63',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2907 Middle Anchor Row Scarce Grease, Delaware 19991-0100',\n\t\t\t\t'phone' => '(302) 649-3078',\n\t\t\t\t'lat' => '38.9108325',\n\t\t\t\t'lng' => '-75.5276699',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3924 Gentle Inlet Suquamish, Arizona 86166-6269',\n\t\t\t\t'phone' => '(623) 883-2017',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9823 Umber Prairie Crossing Teaticket, Montana 59309-4514',\n\t\t\t\t'phone' => '(406) 118-8472',\n\t\t\t\t'lat' => '46.8796822',\n\t\t\t\t'lng' => '-110.3625658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '265 Noble Apple Forest Vermont, Georgia 39813-3675',\n\t\t\t\t'phone' => '(229) 050-5836',\n\t\t\t\t'lat' => '31.4035879',\n\t\t\t\t'lng' => '-84.6688348',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8866 Rocky Trace Four Bears Village, Illinois 60491-6196',\n\t\t\t\t'phone' => '(815) 414-5669',\n\t\t\t\t'lat' => '41.6131315',\n\t\t\t\t'lng' => '-87.962884',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1412 Cotton Bay Star, Oklahoma 74194-3598',\n\t\t\t\t'phone' => '(918) 954-0869',\n\t\t\t\t'lat' => '35.0077519',\n\t\t\t\t'lng' => '-97.092877',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9766 Clear Pony Hill Handsome Eddy, Arizona 86422-7832',\n\t\t\t\t'phone' => '(623) 376-5382',\n\t\t\t\t'lat' => '34.0489281',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2824 Quaking Cloud Ridge Sun Valley, Virginia 24342-7446',\n\t\t\t\t'phone' => '(804) 394-6011',\n\t\t\t\t'lat' => '33.6496426',\n\t\t\t\t'lng' => '-92.7743809',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6841 Indian Cider Path Welfare, New York 14291-2909',\n\t\t\t\t'phone' => '(646) 281-2945',\n\t\t\t\t'lat' => '40.7143528',\n\t\t\t\t'lng' => '-74.0059731',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5451 Broad Shadow Range Zewapeta, Alabama 36223-8635',\n\t\t\t\t'phone' => '(256) 964-1223',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6326 Little Pines Lake of the Woods, Wyoming 82150-2725',\n\t\t\t\t'phone' => '(307) 203-4687',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5711 Blue Deer Private Bullet Hole, Missouri 65105-1282',\n\t\t\t\t'phone' => '(660) 895-5372',\n\t\t\t\t'lat' => '38.5',\n\t\t\t\t'lng' => '-92.15',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '283 Hidden Spring Wood Boot Jack, District of Columbia 20021-8192',\n\t\t\t\t'phone' => '(202) 730-6835',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2005 Old Towers Ahwatukee, North Dakota 58517-9863',\n\t\t\t\t'phone' => '(701) 623-1368',\n\t\t\t\t'lat' => '47.5514926',\n\t\t\t\t'lng' => '-101.0020119',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '97 Easy Chase Thunder Hawk, Nevada 89426-3672',\n\t\t\t\t'phone' => '(775) 120-7206',\n\t\t\t\t'lat' => '41.5598843',\n\t\t\t\t'lng' => '-117.4086488',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '751 Round Heath Bingo, Wyoming 82547-6473',\n\t\t\t\t'phone' => '(307) 934-0757',\n\t\t\t\t'lat' => '43.0759678',\n\t\t\t\t'lng' => '-107.2902839',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1352 Pleasant Avenue Tinkertown, California 92022-5662',\n\t\t\t\t'phone' => '(562) 143-2770',\n\t\t\t\t'lat' => '36.778261',\n\t\t\t\t'lng' => '-119.4179324',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1681 Silent Corners Ben Arnold, Massachusetts 01528-4491',\n\t\t\t\t'phone' => '(508) 951-3124',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4399 Cinder Key Minnehaha, Oregon 97070-3784',\n\t\t\t\t'phone' => '(971) 108-8608',\n\t\t\t\t'lat' => '45.3018169',\n\t\t\t\t'lng' => '-122.7751561',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4644 Cozy Creek By-pass Telbasta, Iowa 50183-6396',\n\t\t\t\t'phone' => '(563) 119-5041',\n\t\t\t\t'lat' => '41.8780025',\n\t\t\t\t'lng' => '-93.097702',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8328 Jagged Abbey Turkeyfoot, South Dakota 57773-5048',\n\t\t\t\t'phone' => '(605) 557-3188',\n\t\t\t\t'lat' => '43.6076792',\n\t\t\t\t'lng' => '-103.5935897',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2335 Heather Grove Michigan Bar, Minnesota 56333-9494',\n\t\t\t\t'phone' => '(952) 500-4492',\n\t\t\t\t'lat' => '42.2663981',\n\t\t\t\t'lng' => '-83.7081315',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3991 Fallen Brook Cove Chi Chil Tah, Utah 84075-6499',\n\t\t\t\t'phone' => '(801) 958-0611',\n\t\t\t\t'lat' => '41.0541918',\n\t\t\t\t'lng' => '-112.1191757',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1105 Merry Barn Road Yaphank, Mississippi 39434-7368',\n\t\t\t\t'phone' => '(228) 295-0195',\n\t\t\t\t'lat' => '32.3546679',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8420 Stony Wagon Crest Runnymeade, Washington 98237-6997',\n\t\t\t\t'phone' => '(206) 831-6478',\n\t\t\t\t'lat' => '48.57163',\n\t\t\t\t'lng' => '-121.6648381',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9921 Grand Court Piddleville, Louisiana 70297-1882',\n\t\t\t\t'phone' => '(985) 897-9654',\n\t\t\t\t'lat' => '31.2448234',\n\t\t\t\t'lng' => '-92.1450245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2870 Iron Extension Bermuda, Colorado 80910-6158',\n\t\t\t\t'phone' => '(720) 166-0253',\n\t\t\t\t'lat' => '38.8064287',\n\t\t\t\t'lng' => '-104.7695962',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6803 Wishing View Arbor Cat Square, West Virginia 25027-6576',\n\t\t\t\t'phone' => '(304) 952-4973',\n\t\t\t\t'lat' => '38.5976262',\n\t\t\t\t'lng' => '-80.4549026',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '950 Red Thicket Wickatunk, Washington 99133-1072',\n\t\t\t\t'phone' => '(509) 283-9110',\n\t\t\t\t'lat' => '48.0361158',\n\t\t\t\t'lng' => '-119.0618141',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5401 Misty Robin Crescent Kill Buck, Rhode Island 02808-3785',\n\t\t\t\t'phone' => '(401) 473-6664',\n\t\t\t\t'lat' => '41.4026135',\n\t\t\t\t'lng' => '-71.7503855',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6237 Sleepy Lane Frisbie, Idaho 83214-5294',\n\t\t\t\t'phone' => '(208) 804-9330',\n\t\t\t\t'lat' => '42.5407152',\n\t\t\t\t'lng' => '-112.262246',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4801 Misty Passage Castor, Georgia 39917-9448',\n\t\t\t\t'phone' => '(223) 387-9176',\n\t\t\t\t'lat' => '32.1574351',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4539 Shady Robin Autoroute Albertville, Maryland 21561-3867',\n\t\t\t\t'phone' => '(240) 077-3317',\n\t\t\t\t'lat' => '39.4962475',\n\t\t\t\t'lng' => '-79.1774268',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5696 Clear Anchor Heath Sedgewick, Maine 04746-1418',\n\t\t\t\t'phone' => '(207) 790-0462',\n\t\t\t\t'lat' => '47.2192967',\n\t\t\t\t'lng' => '-68.1272872',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5953 Fallen Gardens Diagonal, Kentucky 40141-1739',\n\t\t\t\t'phone' => '(606) 649-9284',\n\t\t\t\t'lat' => '37.8393332',\n\t\t\t\t'lng' => '-84.2700179',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5039 Sunny Vale Hells Half Acre, Illinois 61429-4296',\n\t\t\t\t'phone' => '(630) 322-6634',\n\t\t\t\t'lat' => '40.6331249',\n\t\t\t\t'lng' => '-89.3985283',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6708 Dewy Boulevard Aylsham, West Virginia 26949-2429',\n\t\t\t\t'phone' => '(681) 442-9535',\n\t\t\t\t'lat' => '38.5976262',\n\t\t\t\t'lng' => '-80.4549026',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1696 Rocky Lagoon Glade Saltcoats, Kansas 66020-4409',\n\t\t\t\t'phone' => '(620) 939-6715',\n\t\t\t\t'lat' => '39.3532738',\n\t\t\t\t'lng' => '-95.1223608',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '351 Quaking Lake Bank Lone Star, Arkansas 72198-3208',\n\t\t\t\t'phone' => '(870) 320-2825',\n\t\t\t\t'lat' => '35.20105',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1194 Emerald Mall Sparkle, South Carolina 29968-2223',\n\t\t\t\t'phone' => '(864) 030-8670',\n\t\t\t\t'lat' => '33.836081',\n\t\t\t\t'lng' => '-81.1637245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4540 Lazy Canyon Texico, Nevada 89065-4845',\n\t\t\t\t'phone' => '(775) 281-6892',\n\t\t\t\t'lat' => '38.8026097',\n\t\t\t\t'lng' => '-116.419389',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '928 Broad Pointe St. Paul, South Dakota 57151-9943',\n\t\t\t\t'phone' => '(605) 506-3672',\n\t\t\t\t'lat' => '43.9695148',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9319 High Hickory Way Whitchurch-Stouffville, Idaho 83396-2356',\n\t\t\t\t'phone' => '(208) 092-9832',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3571 Cotton Pond View Cloudcroft, Washington 99318-3295',\n\t\t\t\t'phone' => '(206) 319-5326',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4832 Velvet Ledge Lick Creek, North Dakota 58132-3790',\n\t\t\t\t'phone' => '(701) 089-2211',\n\t\t\t\t'lat' => '47.5514926',\n\t\t\t\t'lng' => '-101.0020119',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6205 Gentle Pioneer Orchard Nebraska, Utah 84873-7158',\n\t\t\t\t'phone' => '(801) 379-8953',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1507 Dusty Horse Key Stenen, Connecticut 06463-8750',\n\t\t\t\t'phone' => '(475) 436-2630',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7582 Blue Pathway Peoples, District of Columbia 20097-5618',\n\t\t\t\t'phone' => '(202) 414-2722',\n\t\t\t\t'lat' => '38.8951118',\n\t\t\t\t'lng' => '-77.0363658',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9041 Old Parade Swift Current, Wyoming 82321-7674',\n\t\t\t\t'phone' => '(307) 310-9791',\n\t\t\t\t'lat' => '41.2694332',\n\t\t\t\t'lng' => '-107.811',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7006 Cozy Mountain Range Treherne, Ohio 44000-7746',\n\t\t\t\t'phone' => '(937) 218-0393',\n\t\t\t\t'lat' => '40.4172871',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2108 Hidden Inlet Blackduck, Michigan 49830-1870',\n\t\t\t\t'phone' => '(517) 014-1990',\n\t\t\t\t'lat' => '44.3148443',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4810 Round Berry Ramp Fannie, Michigan 49584-3163',\n\t\t\t\t'phone' => '(616) 917-3110',\n\t\t\t\t'lat' => '44.3148443',\n\t\t\t\t'lng' => '-85.6023643',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1648 Easy Pine Impasse Humboldt, Alaska 99632-0756',\n\t\t\t\t'phone' => '(907) 398-7468',\n\t\t\t\t'lat' => '62.1075171',\n\t\t\t\t'lng' => '-163.6530901',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4535 Foggy Rabbit End Houston, Maryland 21707-7837',\n\t\t\t\t'phone' => '(301) 637-4559',\n\t\t\t\t'lat' => '39.0457549',\n\t\t\t\t'lng' => '-76.6412712',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7673 Pleasant Field Truly, Texas 77079-1885',\n\t\t\t\t'phone' => '(936) 494-0756',\n\t\t\t\t'lat' => '29.7801889',\n\t\t\t\t'lng' => '-95.6090009',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3474 Thunder Dell Owl Hoot, South Carolina 29164-3631',\n\t\t\t\t'phone' => '(843) 611-3991',\n\t\t\t\t'lat' => '33.6536164',\n\t\t\t\t'lng' => '-81.4059186',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9142 Amber Bend Egorkovskoi, New Jersey 08747-9332',\n\t\t\t\t'phone' => '(908) 187-4092',\n\t\t\t\t'lat' => '40.0583238',\n\t\t\t\t'lng' => '-74.4056612',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6565 Cinder View Villas Cathlapotle, Maine 04459-1231',\n\t\t\t\t'phone' => '(207) 831-9138',\n\t\t\t\t'lat' => '45.5738851',\n\t\t\t\t'lng' => '-68.3533229',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '518 Red Mews Zero, New York 10921-2823',\n\t\t\t\t'phone' => '(914) 172-6342',\n\t\t\t\t'lat' => '41.1333442',\n\t\t\t\t'lng' => '-74.0022524',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9170 Honey Quay Smalltown, Idaho 83491-3357',\n\t\t\t\t'phone' => '(208) 768-3359',\n\t\t\t\t'lat' => '44.0682019',\n\t\t\t\t'lng' => '-114.7420408',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2063 Indian Prairie Landing Blackhawk, Missouri 64773-8741',\n\t\t\t\t'phone' => '(573) 448-2155',\n\t\t\t\t'lat' => '37.9642529',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1177 Silent Wynd Prelate, Michigan 49755-2114',\n\t\t\t\t'phone' => '(906) 346-4118',\n\t\t\t\t'lat' => '45.6521002',\n\t\t\t\t'lng' => '-84.7814432',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5550 Harvest Street Yreka, Alabama 35589-7414',\n\t\t\t\t'phone' => '(256) 126-4821',\n\t\t\t\t'lat' => '32.3182314',\n\t\t\t\t'lng' => '-86.902298',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6650 Wishing Rise Ketchikan, Colorado 81727-6300',\n\t\t\t\t'phone' => '(303) 649-9421',\n\t\t\t\t'lat' => '39.5500507',\n\t\t\t\t'lng' => '-105.7820674',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '896 Quiet Shadow Grove Okeewemee, Maine 04888-5600',\n\t\t\t\t'phone' => '(207) 887-6714',\n\t\t\t\t'lat' => '45.253783',\n\t\t\t\t'lng' => '-69.4454689',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5221 Hazy Cove Pigeon Run, Rhode Island 02844-5518',\n\t\t\t\t'phone' => '(401) 397-0342',\n\t\t\t\t'lat' => '41.5800945',\n\t\t\t\t'lng' => '-71.4774291',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4009 Misty Log Mews Potato Patch, Texas 79949-7016',\n\t\t\t\t'phone' => '(432) 694-5133',\n\t\t\t\t'lat' => '31.76',\n\t\t\t\t'lng' => '-106.49',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '3121 Blue Road Cheektowasa, Ohio 44178-5872',\n\t\t\t\t'phone' => '(614) 541-7135',\n\t\t\t\t'lat' => '40.4172871',\n\t\t\t\t'lng' => '-82.907123',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7745 Quaking Island Private Vamoosa, Florida 33726-8437',\n\t\t\t\t'phone' => '(352) 417-7732',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2964 Round Bend Three V Crossing, New York 12895-6061',\n\t\t\t\t'phone' => '(516) 933-1701',\n\t\t\t\t'lat' => '40.7143528',\n\t\t\t\t'lng' => '-74.0059731',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8929 Wishing Brook Close Mudtown, Arkansas 72307-8524',\n\t\t\t\t'phone' => '(870) 040-5761',\n\t\t\t\t'lat' => '35.20105',\n\t\t\t\t'lng' => '-91.8318334',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9857 Shady Barn Corners Boiling Point, Illinois 62370-8259',\n\t\t\t\t'phone' => '(618) 865-5959',\n\t\t\t\t'lat' => '39.5028435',\n\t\t\t\t'lng' => '-91.0011902',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8122 Foggy By-pass Refuge, Georgia 39825-9760',\n\t\t\t\t'phone' => '(404) 653-2379',\n\t\t\t\t'lat' => '30.9942599',\n\t\t\t\t'lng' => '-84.7106567',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9352 Sleepy Creek Mall Lorida, Connecticut 06685-5331',\n\t\t\t\t'phone' => '(860) 074-9188',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1740 Silent Goose Promenade Gothic, Virginia 23080-3616',\n\t\t\t\t'phone' => '(703) 804-6802',\n\t\t\t\t'lat' => '37.4315734',\n\t\t\t\t'lng' => '-78.6568942',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9748 Gentle Rabbit Canyon Laird, New York 11444-2032',\n\t\t\t\t'phone' => '(518) 987-5742',\n\t\t\t\t'lat' => '40.7143528',\n\t\t\t\t'lng' => '-74.0059731',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '14 Burning Butterfly Impasse Frugality, Utah 84659-3929',\n\t\t\t\t'phone' => '(385) 531-1381',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1002 Red Gate Cape Big Cut, Vermont 05637-0939',\n\t\t\t\t'phone' => '(802) 022-4379',\n\t\t\t\t'lat' => '44.5588028',\n\t\t\t\t'lng' => '-72.5778415',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2826 Velvet Blossom Hill Pearl City, West Virginia 25995-8728',\n\t\t\t\t'phone' => '(681) 707-4520',\n\t\t\t\t'lat' => '38.5976262',\n\t\t\t\t'lng' => '-80.4549026',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6397 Colonial Via Lonesome Prairie, Vermont 05009-4463',\n\t\t\t\t'phone' => '(802) 938-7061',\n\t\t\t\t'lat' => '43.6474348',\n\t\t\t\t'lng' => '-72.342588',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '7824 Umber Fox Parkway Roche Percee, Nebraska 69310-7287',\n\t\t\t\t'phone' => '(308) 868-7311',\n\t\t\t\t'lat' => '41.4925374',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '8786 Iron Grove Ah Fong Village, Colorado 80951-9857',\n\t\t\t\t'phone' => '(720) 743-9084',\n\t\t\t\t'lat' => '38.8622755',\n\t\t\t\t'lng' => '-104.6733584',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1582 Sunny Inlet Mctaggart, New Hampshire 03648-2975',\n\t\t\t\t'phone' => '(603) 770-8206',\n\t\t\t\t'lat' => '43.1938516',\n\t\t\t\t'lng' => '-71.5723953',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4191 Rustic Dale Common Rainbow City, West Virginia 26463-4803',\n\t\t\t\t'phone' => '(304) 618-7564',\n\t\t\t\t'lat' => '39.4349029',\n\t\t\t\t'lng' => '-80.3534899',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6761 Merry Parade Rainbow Bend, Pennsylvania 15102-8551',\n\t\t\t\t'phone' => '(484) 597-9344',\n\t\t\t\t'lat' => '40.3167073',\n\t\t\t\t'lng' => '-80.0423151',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '9422 Middle Berry Street Humboldt, Alaska 99574-3449',\n\t\t\t\t'phone' => '(907) 657-0496',\n\t\t\t\t'lat' => '60.7356503',\n\t\t\t\t'lng' => '-145.5826187',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2415 Silver Lagoon Highlands Saltcoats, Louisiana 70086-3885',\n\t\t\t\t'phone' => '(337) 079-1229',\n\t\t\t\t'lat' => '31.2448234',\n\t\t\t\t'lng' => '-92.1450245',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5293 Honey View Crossing Radical, Connecticut 06000-2541',\n\t\t\t\t'phone' => '(860) 898-9772',\n\t\t\t\t'lat' => '41.6032207',\n\t\t\t\t'lng' => '-73.087749',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2018 Hidden Limits Cockeysville, New Jersey 08526-2387',\n\t\t\t\t'phone' => '(551) 133-0241',\n\t\t\t\t'lat' => '40.17',\n\t\t\t\t'lng' => '-74.51',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1187 Noble River Thicket Tat Momoli, Texas 78085-3232',\n\t\t\t\t'phone' => '(903) 016-0722',\n\t\t\t\t'lat' => '31.9685988',\n\t\t\t\t'lng' => '-99.9018131',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4799 Jagged Robin Beach Weirdale, Minnesota 56231-9007',\n\t\t\t\t'phone' => '(507) 950-8070',\n\t\t\t\t'lat' => '45.2842156',\n\t\t\t\t'lng' => '-95.7948769',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6967 Golden Line Parrots, Alaska 99990-7560',\n\t\t\t\t'phone' => '(907) 102-7536',\n\t\t\t\t'lat' => '64.2008413',\n\t\t\t\t'lng' => '-149.4936733',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5766 Tawny Green Valley of Enchantment, Maryland 20850-1890',\n\t\t\t\t'phone' => '(410) 816-6230',\n\t\t\t\t'lat' => '39.0839994',\n\t\t\t\t'lng' => '-77.1527813',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2690 Lazy Jetty Saxman, Massachusetts 02411-2917',\n\t\t\t\t'phone' => '(339) 206-8396',\n\t\t\t\t'lat' => '42.4072107',\n\t\t\t\t'lng' => '-71.3824374',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '1858 Heather Lake Abbey Enough, Alaska 99700-6940',\n\t\t\t\t'phone' => '(907) 915-5318',\n\t\t\t\t'lat' => '64.2008413',\n\t\t\t\t'lng' => '-149.4936733',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2284 Harvest Sky Edge Bungy, Oklahoma 74224-8696',\n\t\t\t\t'phone' => '(580) 287-3530',\n\t\t\t\t'lat' => '35.0077519',\n\t\t\t\t'lng' => '-97.092877',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2875 Dusty Cloud Centre Happy Valley-Goose Bay, Maine 04130-1318',\n\t\t\t\t'phone' => '(207) 707-6131',\n\t\t\t\t'lat' => '45.253783',\n\t\t\t\t'lng' => '-69.4454689',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '2442 Cotton Campus Arabia, Florida 32543-2413',\n\t\t\t\t'phone' => '(813) 412-6448',\n\t\t\t\t'lat' => '27.6648274',\n\t\t\t\t'lng' => '-81.5157535',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '6054 Thunder Rise Subdivision Buzzards Roost, North Carolina 27577-9290',\n\t\t\t\t'phone' => '(828) 877-4968',\n\t\t\t\t'lat' => '35.7595731',\n\t\t\t\t'lng' => '-79.0192997',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '4442 Old Cider Lookout Alabama Village, Utah 84844-5606',\n\t\t\t\t'phone' => '(435) 733-2606',\n\t\t\t\t'lat' => '39.3209801',\n\t\t\t\t'lng' => '-111.0937311',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'address' => '5484 Bright Willow Pike Sunizona, New Mexico 87149-6244',\n\t\t\t\t'phone' => '(505) 333-5135',\n\t\t\t\t'lat' => '34.5199402',\n\t\t\t\t'lng' => '-105.8700901',\n\t\t\t),\n\t\t);\n\n\t\treturn $data;\n\t}", "public function getObjects()\n {\n return $this->hasMany(Object::className(), ['address_id' => 'id']);\n }", "public function emailAddresses()\n {\n return $this->hasMany(OfficeEmailAddress::class);\n }", "public function emailAddresses()\n {\n return $this->hasMany(OfficeEmailAddress::class);\n }", "public function getAll() {\n\t\t$search = $this->Supplier()->search()\n\t\t\t->setTable($this->_table)\n\t\t\t->setColumns(array(Supplier::SUPPLIER_ID, Supplier::SUPPLIER_NAME, Supplier::SUPPLIER_ADDRESS, Supplier::SUPPLIER_TEL_NO))\n\t\t\t->sortBySupplierCreated('ASC');\n\t\treturn $search->getRows();\n\t}", "public function getCcAddresses()\n {\n }", "public function removeAllContactAddresses()\n {\n $this->contactAddresses = new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n return $this;\n }", "public function toArray()\n {\n $data = [];\n\n foreach ($this->addresses as $address) {\n $data[] = $address->toArray();\n }\n\n return $data;\n }", "function select_all_company() {\n\t\t$qury=\"SELECT * FROM company\";\n\t\t$requet=mysqli_query($link,$qury);\n\t\t\n\t\twhile($res=mysqli_fetch_assoc($requet)) {\n\t\t\t$data[]=$res;\n\t\t}\n\t\treturn $data;\n\t}", "public function getAddress()\n {\n //Read it as select * from address, person where address.relatedmodel_id = person.id AND person.id = customer.person_id\n //Thus when via is used second param in the link correspond to via column in the relation.\n return $this->hasOne(Address::className(), ['relatedmodel_id' => 'id'])\n ->where('relatedmodel = :rm AND type = :type', [':rm' => 'Person', ':type' => Address::TYPE_DEFAULT])\n ->via('person');\n }", "public static function fetch_all_in_a_list()\n\t{\n\t return Company::orderBy( 'name' )->lists( 'name' , 'id' );\n\n\t}", "public function getActiveAddressBooks();", "public function getPersonAddresses(Person $person)\n {\n $builder = $person->addresses()->getQuery();\n\n $resource = $this->datatable->setQueryBuilder($builder);\n\n return $resource->getResponse();\n }", "function get_all(){\r\n\t\t$rows = array();\r\n\t\twhile($row = $this->get_row()){\r\n\t\t\t$rows[] = $row;\r\n\t\t}\r\n\t\treturn $rows;\r\n\t}", "public function listAddresses($cid = null) {\r\n\r\n $addresses = array ();\r\n\r\n if( $this->cid > 0 && (!isset($cid)) ) {\r\n\r\n $sql = Connection::getHandle()->prepare(\r\n \"SELECT * FROM bs_customer_addresses WHERE cid = ? ORDER BY default_billing DESC, default_shipping DESC\"\r\n );\r\n\r\n $sql->execute(array ($this->cid));\r\n\r\n while ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\r\n $addresses[] = $row;\r\n }\r\n\r\n return $addresses;\r\n\r\n } else if(isset($cid)) {\r\n\r\n $sql = Connection::getHandle()->prepare(\r\n \"SELECT * FROM bs_customer_addresses WHERE cid = ? ORDER BY default_billing DESC, default_shipping DESC\"\r\n );\r\n\r\n $sql->execute(array ($cid));\r\n\r\n while ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\r\n $addresses[] = $row;\r\n }\r\n\r\n return $addresses;\r\n\r\n }else{\r\n\r\n return FALSE;\r\n }\r\n\r\n\t\t}", "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 }", "public function all(): ResultSetContract;", "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 getStreetList() {\n return $this->_get(1);\n }", "public function fetchAll($idCompany=null) {\n $sqlSelect = $this->tableGateway->getSql()->select();\n $sqlSelect->columns(array('idWebsite', 'company_id', 'name', 'status'));\n $sqlSelect->join('company', 'company.idCompany = company_website.company_id', array(\"company\"=>\"name\"), 'left');\n if($idCompany){\n $sqlSelect->where(array(\"company_id\"=>$idCompany));\n }\n $resultSet = $this->tableGateway->selectWith($sqlSelect);\n return $resultSet;\n }", "public function getBccAddresses()\n {\n }", "public function all_social_address_info(){\r\n $query = \"SELECT * FROM tbl_contact_us_social_address\";\r\n if(mysqli_query($this->db_connect, $query)){\r\n $query_result = mysqli_query($this->db_connect, $query);\r\n return $query_result;\r\n }else{\r\n die(\"Query Problem! \".mysqli_error($this->db_connect));\r\n }\r\n }", "public function fetchContacts()\n {\n return $this->contacts;\n }", "public function getAnswerAddresses()\n {\n return clone $this->answerAddresses;\n }", "public static function getAll()\n {\n $database = DatabaseFactory::getFactory()->getConnection();\n\n $sql = \"SELECT region_id, region_name FROM region\";\n $query = $database->prepare($sql);\n $query->execute();\n\n // fetchAll() is the PDO method that gets all result rows\n return $query->fetchAll();\n }", "public function fetchRowset()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "public function get_rows()\n\t{\n//\t\t$rows = new object_list($this->connections_from(array(\"type\" => \"RELTYPE_CHILD\", \"to.class_id\" => crm_bill_row_obj::CLID)));\n\t\t$rows = new object_list(array(\n\t\t\t\"class_id\" => crm_bill_row_obj::CLID,\n\t\t\t\"CL_CRM_BILL_ROW.RELTYPE_CHILD(CL_CRM_BILL_ROW_GROUP).oid\" => $this->id(),\n\t\t\tnew obj_predicate_sort(array(\"jrk\" => \"asc\")),\n\t\t));\n\t\treturn $rows;\n\t}", "public function wp_varejoecom_get_all_shipping_company() : ?array\n {\n global $wpdb;\n $tableName = $wpdb->prefix . $this->table_name;\n\n $result = $wpdb->get_results(\"SELECT * FROM {$tableName}\", ARRAY_A);\n\n return sizeof($result) > 0 ? $result : null;\n }", "public function getAddresses( $id )\n {\n return $this->customerService->getCustomerAddresses( $id );\n }", "public function listaddressgroupings(){\n return $this->bitcoin->listaddressgroupings();\n }", "public function getEmployees() {\n if ( is_null($this->_employees) ){\n $customers = $this->getTable()->getEmployees();\n $objects = new splObjectStorage();\n\n foreach ($customers AS $customer) {\n try {\n $ccust = new Yourdelivery_Model_Customer_Company($customer->customerId, $this->getId());\n if ($ccust->isDeleted()) {\n continue;\n }\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $objects->attach($ccust);\n }\n $this->_employees = $objects;\n }\n return $this->_employees;\n }", "public function sitemapCompanies(){\n $links = array();\n $models = ORM::factory('CatalogCompany')->where('enable','=','1')->find_all();\n foreach($models as $model)\n $links[] = $model->getUri();\n return $links;\n }", "function read_address_book()\n {\n return $this->read();\n }", "public function getAddresses(string $name): array;", "public function get_contacts()\n {\n \t$query=$this->db->query(\"SELECT A.*,B.Client_Company_Name FROM ibt_client_contacts A INNER JOIN ibt_client B on A.Contact_Client_Icode = B.Client_Icode \"); \n return $query->result_array();\n }", "public function getAll() {\n\t\treturn $this->rows;\n\t}", "public function getCompanyEmployees();", "public function selectAll() {\n\t\t$employees = $this->employee->all();\n\n\t\t$data = array();\n\t\tforeach ($employees as $employee) {\n\t\t\t$data[] = array(\n\t\t\t\t'name' => $employee->name . ' (' . $employee->contact_number . ')',\n\t\t\t\t'id' => $employee->id,\n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\t}", "public function companies(): Collection\n {\n return Company::all();\n }", "public function getAddressData()\n {\n return $this->address_data;\n }", "protected function initAddresses()\n {\n /** @var $customer \\Magento\\Customer\\Model\\Customer */\n foreach ($this->customerCollection->create() as $customer) {\n $email = $customer->getEmail();\n if (!isset($this->addresses[$customer->getWebsiteId()][$email])) {\n $this->addresses[$customer->getWebsiteId()][$email] = $customer->getData('default_billing');\n }\n\n }\n return $this;\n }", "public function getAddressToLocationRelationships()\n {\n return $this->AddressToLocationRelationships;\n }", "public function getAddress()\n {\n $res = $this->getEntity()->getAddress();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getAddress();\n\t\t}\n return $res;\n }", "function getAddresses($userId, $addressType = 0) {\n\t\t$select = 'tx_commerce_fe_user_id=' . intval($userId) . t3lib_Befunc::BEenableFields('tt_address');\n\n\t\tif ($addressType > 0) {\n\t\t\t$select.= ' AND tx_commerce_address_type_id=' . intval($addressType);\n\t\t} elseif (isset($this->conf['selectAddressTypes'])) {\n\t\t\t$select.= ' AND tx_commerce_address_type_id IN (' . $this->conf['selectAddressTypes'] . ')';\n\t\t} else {\n\t\t\t$this->addresses = array();\n\t\t\treturn;\n\t\t}\n\n\t\t$select.= ' AND deleted=0 AND pid=' . $this->conf['addressPid'];\n\n\t\t/** * Hook for adding select statement\n\t\t*/\n\t\t$hookObjectsArr = array();\n\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi4/class.tx_commerce_pi4.php']['getAddresses'])) {\n\t\t\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi4/class.tx_commerce_pi4.php']['getAddresses'] as $classRef) {\n \t \t\t\t$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);\n \t \t\t}\n \t \t}\n \t \tforeach($hookObjectsArr as $hookObj) {\n \t \t\tif (method_exists($hookObj, 'editSelectStatement')) {\n \t \t\t\t$select = $hookObj->editSelectStatement($select, $userId, $addressType, $this);\n \t \t\t}\n \t \t}\n\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t'*',\n\t\t\t'tt_address',\n\t\t\t$select,\n\t\t\t'',\n\t\t\t'tx_commerce_is_main_address desc'\n\t\t);\n\n\t\t$result = array();\n\t\twhile ($address = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t$result[$address['uid']] = tx_commerce_div::removeXSSStripTagsArray($address);\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getaddressesbyaccount($account = ''){\n return $this->bitcoin->getaddressesbyaccount($account);\n }", "public function getContactsList() {\n return $this->_get(7);\n }", "public function address()\n {\n return $this->belongsToMany(Address::class, 'address_user', 'user_id', 'address_id');\n }" ]
[ "0.6976132", "0.69164824", "0.6807836", "0.67456234", "0.67456234", "0.67003393", "0.6654495", "0.6609099", "0.65740657", "0.6525917", "0.65118945", "0.65118945", "0.65118945", "0.64756763", "0.64585054", "0.6455332", "0.639679", "0.6394862", "0.63578767", "0.6319674", "0.62877107", "0.6210491", "0.6150103", "0.6107063", "0.6086482", "0.6047504", "0.60057473", "0.5958789", "0.59173495", "0.59019166", "0.5878361", "0.58598465", "0.585243", "0.5841572", "0.5841572", "0.5811745", "0.5801829", "0.5792812", "0.5779048", "0.575885", "0.574994", "0.57373434", "0.5737191", "0.56818765", "0.5675642", "0.5671002", "0.5656197", "0.5641839", "0.5637508", "0.5636246", "0.5628139", "0.5619163", "0.56140393", "0.56131357", "0.5609199", "0.55731225", "0.55731225", "0.55444825", "0.5542188", "0.55416685", "0.5526742", "0.5525442", "0.5522028", "0.5509114", "0.5506567", "0.549672", "0.5496687", "0.54866767", "0.54843026", "0.5459547", "0.5457205", "0.5445059", "0.54303074", "0.5424365", "0.541925", "0.5394474", "0.53609025", "0.53603816", "0.5360216", "0.53592074", "0.5357033", "0.53524035", "0.53455985", "0.5344431", "0.53384316", "0.5334706", "0.5334172", "0.533111", "0.532903", "0.5313684", "0.5313254", "0.5310982", "0.5309684", "0.5304946", "0.5302891", "0.53027844", "0.52806", "0.5278907", "0.52762246", "0.5269486" ]
0.7773257
0
get locations associated to this company
получить расположения, связанные с этой компанией
public function getLocations(){ $table = new Yourdelivery_Model_DbTable_Locations(); $locationRows = $table->fetchAll(sprintf('companyId = %d AND deleted = 0' , $this->getId())); $locations = new SplObjectStorage(); foreach($locationRows as $locationRow){ try{ $loc = new Yourdelivery_Model_Location($locationRow['id']); $locations->attach($loc); }catch(Yourdelivery_Exception_Database_Inconsistency $e){ $this->logger->err(sprintf('Could not create location #', $locationRow['id'])); continue; } } return $locations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddresses() {\n $table = new Yourdelivery_Model_DbTable_Locations();\n return $table->fetchAll('companyId = ' . $this->getId());\n }", "function erp_company_get_locations() {\n global $wpdb;\n\n $cache_key = 'erp_company-location';\n $locations = wp_cache_get( $cache_key, 'wp-erp' );\n\n if ( false === $locations ) {\n $locations = $wpdb->get_results( \"SELECT * FROM {$wpdb->prefix}erp_company_locations\" );\n wp_cache_set( $cache_key, $locations, 'wp-erp' );\n }\n\n return $locations;\n}", "function findAllLocations() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM locations;'));\r\n\r\n\t}", "public function getLocations()\n {\n return $this->locations;\n }", "public function getLocations()\n {\n return isset($this->Locations) ? $this->Locations : null;\n }", "public function getHotelLocation()\n {\n return $this->select('city')->groupBy('city')->orderBy('city', 'ASC')->findAll();\n }", "public function getAllLocations()\n\t{\n\t\t$sCacheId = $this->cache()->set('gmap.locations');\n\t\n\t\tif (!($aRows = $this->cache()->get($sCacheId)))\n\t\t{\n\t\t\t$aRows = $this->database()->select('f.*, u.full_name, u.user_name, u.country_iso')\n\t\t\t\t->from(Phpfox::getT('gmap'), 'f')\t\t\n\t\t\t\t->join(Phpfox::getT('user'), 'u', 'u.user_id = f.user_id')\t\n\t\t\t\t->where('f.not_found = \\'0\\'')\n\t\t\t\t->execute('getSlaveRows');\n\t\t\t\t\n\t\t\t$this->cache()->save($sCacheId, $aRows);\n\t\t}\n\t\t\n\t\t$aOutput = array();\n\t\t\n\t\tif($aRows != null && is_array($aRows))\n\t\tforeach($aRows as $aRow)\n\t\t{\n\t\t\t$aOutput[$aRow['country_iso']][] = $aRow;\n\t\t}\n\t\treturn $aOutput;\n\t}", "public function companyOfUser(){\n\n $company = Auth::user()->companies;\n $location = Location::where('id', Auth::user()->company_location)->get();\n \n foreach($company as $c){\n $c['locations'] = $location;\n }\n\n return $company;\n }", "public function getLocations(): array\n {\n $arrLocations = array();\n $objLocations = ContaoEstateManager\\ProviderModel::findAll();\n\n if ($objLocations === null)\n {\n return $arrLocations;\n }\n\n while ($objLocations->next())\n {\n $arrLocations[ $objLocations->id ] = $objLocations->postleitzahl . ' ' . $objLocations->ort . ' (' . $objLocations->firma . ')';\n }\n\n return $arrLocations;\n }", "public function get_locations() {\n $this->db->select('*');\n $this->db->from('locations');\n $query = $this->db->get();\n $query_result = $query->result();\n\n return $query_result;\n }", "public function getLocations(){\n\n return response()->json( $this->locations );\n\n }", "public function getAll()\n {\n return $this->apiRequest('application/locations');\n }", "public function getLocations()\n {\n return $this->tpLocations;\n }", "public static function getCampaignLocations()\n {\n return self::$db->fetchAll(\n 'SELECT banner_location_id AS value, description AS text FROM website.banner_location'\n );\n }", "public static function getLocations(): array\n {\n return static::$locations;\n }", "public function locations()\n {\n $data = $this->request('POST', 'api/v1/date/locations');\n return $data;\n }", "private function get_cities_origin() {\n $t_location = get_transient('wcis_location');\n return $t_location['cities'];\n }", "public function get_location()\r\n\t\t{\r\n\t\t\t$retArr = $this->obj->getBasics();\r\n\r\n\t\t\treturn $retArr;\r\n\t\t}", "public function findAllWithLocations()\n {\n $query = $this->createQuery();\n $fieldName = ((bool)ConfigurationUtility::getExtensionConfiguration()['enableFilterCategories']) ? 'filter_categories' : 'categories';\n $query->statement('\n SELECT DISTINCT\n sys_category.*\n FROM\n sys_category\n JOIN\n sys_category_record_mm\n ON sys_category_record_mm.uid_local = sys_category.uid\n WHERE\n sys_category_record_mm.tablenames = \"tx_locationmanager_domain_model_location\" AND\n sys_category_record_mm.fieldname = \"' . $fieldName . '\"\n GROUP BY\n sys_category.uid\n ');\n return $query->execute();\n }", "public function getPlaces();", "public static function get( ) {\n\t\t$StaffLocations = Client::request('staff/location');\n\t\t$StaffLocations = $StaffLocations['resultList'];\n\n\t\treturn array_map( function($StaffLocation){\n\n\t\t\treturn new StaffLocation($StaffLocation);\n\n\t\t}, $StaffLocations);\n\t}", "public function all_locations() {\n\t\t// Globals\n\t\tglobal $wpdb;\n\t\t\n\t\t// Load the location from the db\n\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_locations` ORDER BY `location` ASC;\";\n\t\t$sqlret = $wpdb->get_results( $sql, ARRAY_A );\n\t\t\n\t\t// Set the return array\n\t\t$return = new StdClass();\n\t\t\n\t\t// Loop through each result and process\n\t\tforeach( $sqlret as $location ) {\n\t\t\t// Group IDs are stored as an array. Make sure it is actually an array.\n\t\t\t$location['groups'] = rpids_unserialize( $location['groups'] );\n\t\t\t\n\t\t\t// Add location info to an array\n\t\t\t$return->$location['id'] = new StdClass();\n\t\t\t$return->$location['id']->id = $location['id'];\n\t\t\t$return->$location['id']->name = $location['location'];\n\t\t\t$return->$location['id']->groups = (object) $location['groups'];\n\t\t\t$return->$location['id']->weather_id = $location['weather_id'];\n\t\t\t$return->$location['id']->layout_id = $location['layout_id'];\n\t\t}\n\t\t\n\t\t// Return everything as an object\n\t\treturn $return;\n\t}", "public function getAllLocations() {\n\t\t$query = $this->db->select(\"\n\t\t\tRoom.RoomID,\n\t\t\tRoomAbbr,\n\t\t\tRoomName,\n\t\t\tBuildingAbbr,\n\t\t\tRoom.IsApproved,\n\t\t\tBuilding.MapURL,\n\t\t\tOperators\")->\n\t\tfrom('Room')->\n\t\tjoin('Building', 'Building.BuildingID = Room.BuildingID')->\n\t\tjoin(\"\n\t\t\t(SELECT r.RoomID, GROUP_CONCAT(CONCAT(UserFname, ' ', UserLname)) AS Operators\n\t\t\tFROM User u\n\t\t\t\tJOIN UserRole ur ON u.UserID = ur.UserID\n\t\t\t\tJOIN UserRoom urm ON ur.UserRoleID = urm.UserRoleID\n\t\t\t\tJOIN Room r ON r.RoomID = urm.RoomID\n\t\t\tGROUP BY r.RoomID) AS other\", 'other.RoomID = Room.RoomID', 'left')->\n\t\tget();\n\n\t\treturn $query->result_array();\n\t}", "public function locations($params)\r\n {\r\n \t$_query = array('page' => isset($params['page']) ? $params['page'] : 1);\r\n\r\n return $this->curl_execute($method = 'locations', $_query);\r\n }", "public function getAllLocation($admin = false)\n {\n if ($admin) {\n return $this->deliveryLocation->all();\n }\n return $this->deliveryLocation->where('status', 1)->get();\n\n }", "public function getAllCountriesLocations()\n\t{\n\t\t$sCacheId = $this->cache()->set('gmap.countries');\n\t\n\t\tif (!($aRows = $this->cache()->get($sCacheId)))\n\t\t{\n\t\t\t$aRows = $this->database()->select('fc.country_iso, c.name, c.phrase_var_name, fc.*, COUNT(u.user_id) as total_people')\n\t\t\t\t->from(Phpfox::getT('gmap_countries'), 'fc')\t\t\n\t\t\t\t->join(Phpfox::getT('country'), 'c', 'fc.country_iso = c.country_iso')\t\n\t\t\t\t->join(Phpfox::getT('user'), 'u', 'u.country_iso = fc.country_iso')\n\t\t\t\t->join(Phpfox::getT('gmap'), 'f', 'u.user_id = f.user_id')\n\t\t\t\t->group('u.country_iso')\n\t\t\t\t->where('f.not_found = \\'0\\'')\n\t\t\t\t->execute('getSlaveRows');\n\t\t\t\t\n\t\t\t$this->cache()->save($sCacheId, $aRows);\n\t\t}\n\t\t\n\t\tif($aRows != null && is_array($aRows))\n\t\t{\n\t\t\tforeach($aRows as $key => $aRow)\n\t\t\t{\n\t\t\t\tif(isset($aRow['phrase_var_name']) && $aRow['phrase_var_name'] != '')\n\t\t\t\t{\n\t\t\t\t\t$aRows[$key]['name'] = Phpfox::getPhrase($aRow['phrase_var_name']);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$aRows = $this->sortByProperty($aRows, 'name');\n\t\t}\n\t\t\n\t\treturn $aRows;\n\t}", "public function getall()\r\n {\r\n $locations = array();\r\n $count = 0;\r\n \r\n foreach($this->all() as $location)\r\n {\r\n $location = (array)$location;\r\n \r\n $locations[] = array('id' => $location['id'], 'name' => $location['name'],\r\n 'caption' => $location['caption'], 'description' => $location['description'],\r\n 'address' => $location['address'],\r\n 'contact' => $location['contact'],\r\n 'image1' => $location['image1'], 'image2' => $location['image2'],\r\n 'image3' => $location['image3'], 'image4' => $location['image4']);\r\n $count++;\r\n \r\n }\r\n \r\n if ($count > 0)\r\n {\r\n return $locations;\r\n }\r\n else\r\n {\r\n return null;\r\n } \r\n }", "public function locations()\n {\n return $this->hasMany(Location::class, 'project_id');\n }", "public function location(): array\n {\n return $this->location;\n }", "public function locations()\n {\n return $this->hasMany(Location::class);\n }", "public function findAll()\n {\n return $this->em\n ->getRepository('App:Location')\n ->findAll()\n ;\n }", "public function locations() {\n return $this->hasMany(Location::class);\n }", "public function get()\r\n {\r\n return $this->location->with('services')->get();\r\n }", "private function get_locations_repositry() {\n\t\t\t$this->wpseo_local_locations_repository = new WPSEO_Local_Locations_Repository();\n\t\t}", "public function category_locations(){\n $categories = Category::withCount(['ads', 'adds'])->get();\n $locations = Location::withCount(['ads', 'adds'])->get();\n return response()->json([\n 'categories' => $categories,\n 'locations' => $locations,\n ]);\n }", "public function locations()\n {\n return $this->hasMany(Location::class, 'data_source_id');\n }", "public function getCityList() {\n\t\treturn $this->getByKey(Config::get('constants.KEY_CITY'));\n\t}", "public function getLocations()\n {\n $conds = new CondsList();\n $conds->subjoin(new Param('post_type', '==', 'post'));\n $conds->subjoin(new Param('post_type', '==', 'page'));\n\n return $conds->toArray();\n }", "public function getLocations($countryCode = null, $onlyConnected = false)\n {\n /** @var Oggetto_GeoDetection_Model_Directory_Fetcher $directoryFetcher */\n $directoryFetcher = Mage::getModel('oggetto_geodetection/directory_fetcher');\n\n $locations = $directoryFetcher->getRegionsAndCities($countryCode, $onlyConnected);\n\n if (!$locations) {\n /** @var Oggetto_GeoDetection_Model_Directory_Converter $converterModel */\n $converterModel = Mage::getModel('oggetto_geodetection/directory_converter');\n\n /** @var Oggetto_GeoDetection_Model_Location_Fetcher $locationModel */\n $locationModel = Mage::getModel('oggetto_geodetection/location_fetcher');\n\n $locations = $locationModel->getRegionsAndCities($countryCode, $onlyConnected);\n $locations = $converterModel->convertLocationsToDirectoryRegions($locations);\n }\n\n return $locations;\n }", "public function getLocations()\n\t\t{\n\t\t\t$this->layout = \"index\";\n\t\t\t$this->set('title', 'Location (Linnworks API)');\n\t\t}", "public function listLocations(): ApiResponse\n {\n $_reqBuilder = $this->requestBuilder(RequestMethod::GET, '/v2/locations')->auth('global');\n\n $_resHandler = $this->responseHandler()->type(ListLocationsResponse::class)->returnApiResponse();\n\n return $this->execute($_reqBuilder, $_resHandler);\n }", "private function get_location () {\n try {\n // MaxMind GeoIP lookup\n // See: http://maxmind.github.io/GeoIP2-php/\n $reader = new Reader('assets/GeoLite2-City.mmdb');\n $record = $reader->city($_SERVER['REMOTE_ADDR']);\n return [\n 'lat' => $record->location->latitude,\n 'lng' => $record->location->longitude\n ];\n } catch (Exception $e) {\n return false;\n }\n }", "public function getLocation()\n {\n return $this->getLocationData();\n }", "public function getSitesWithGeoInfo() {\n //Note - we remove any site with 0,0 as it's location, as we have no\n //sites in the middle of the pacific ocean. We also remove sites with\n //invaid (too large) longs and lats (these are legacy values, new values\n // entered through the webportal have to be within expected range,\n // historical values may not)\n $dql = \"SELECT s\n FROM Site s\n JOIN s.certificationStatus c\n WHERE s.latitude IS NOT NULL\n AND s.longitude IS NOT NULL\n AND c.name != 'Closed'\n AND (s.latitude != 0 OR s.longitude != 0)\n AND s.latitude <= 90\n AND s.latitude >= -90\n AND s.longitude <= 180\n AND s.longitude >= -180\";\n\n $sites = $this->em\n ->createQuery($dql)\n ->getResult();\n\n return $sites;\n }", "public function the_locations() {\n\n // Verify if locations exists\n if ( self::$the_locations ) {\n\n // Set all locations\n return self::$the_locations;\n\n } else {\n\n return false;\n\n }\n\n }", "public function pickupLocations(): array\n {\n $pickupLocations = PickupLocation::all();\n\n return [\n 'status' => 1,\n 'pickup_locations' => $pickupLocations,\n ];\n }", "public function listLocations()\n {\n $response = $this->_performRequest(self::OP_LOCATIONS);\n\n \tif ($response->isSuccessful()) {\n\t\t\t$result = $this->_parseResponse($response);\n\n \t\tif (!$result->Location) {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t if (count($result->Location) > 1) {\n \t\t $xmlServices = $result->Location;\n \t\t} else {\n \t\t $xmlServices = [$result->Location];\n \t\t}\n\n\t\t\t$services = [];\n\t\t\tif (!is_null($xmlServices)) {\n\n\t\t\t\tfor ($i = 0; $i < count($xmlServices); $i++) {\n\t\t\t\t\t$services[] = new Zend_Service_WindowsAzure_Management_LocationInstance(\n\t\t\t\t\t (string)$xmlServices[$i]->Name\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $services;\n\t\t} else {\n\t\t\trequire_once 'Zend/Service/WindowsAzure/Management/Exception.php';\n\t\t\tthrow new Zend_Service_WindowsAzure_Management_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));\n\t\t}\n }", "protected function _get_locations($org_id)\n {\n\t\t\t$request = Request::factory('http://'.Servers::$api_server.\"/locations?org_id=$org_id\")\n\t\t\t\t->method(Request::GET)\n\t\t\t\t->headers('Content-Type', 'application/json');\n\t\t\t$markets = json_decode($request->execute(),true);\n\t\t\t\n\t\t\treturn json_decode($request->execute(),true);\n\t\t\t\n\n }", "public function getSalesCenterLocations(Request $request)\n {\n $client_id = $request->client_id;\n $salescenter_id = $request->salescenter_id;\n if(Auth::user()->access_level == 'sales_center') {\n $salescenter_id = Auth::user()->salescenter_id;\n }\n\n $locations = Salescenterslocations::where('status','active')->orderBy('name');\n if(!empty($client_id)) {\n $locations->where('client_id',$client_id);\n }\n if(!empty($salescenter_id)) {\n $locations->where('salescenter_id',$salescenter_id);\n }\n /* check user has multiple locations */\n if (auth()->user()->hasMultiLocations()) {\n $locationIds = auth()->user()->locations->pluck('id');\n $locations->whereIn('id', $locationIds);\n }\n /* check location level restriction */\n if(Auth::user()->isLocationRestriction()) {\n $locationId = Auth::user()->location_id;\n $locations->where('id',$locationId);\n }\n $locations =$locations->get();\n $res_options = \"\";\n if(!empty($locations)){\n foreach($locations as $location){\n $res_options.=\"<option value=\\\"{$location->id}\\\" >\".$location->name.\"</option>\";\n }\n }\n $response = array(\n 'status' => 'success',\n 'options' => $res_options,\n );\n return \\Response::json($response);\n }", "public function get_locations_officers()\n {\n $items = array();\n $scope = get_post('scope');\n \n if ($scope) {\n\n if ((int)$scope !== 1 && !get_post('location_code')) {\n\n $return_data = array(\n 'status' => false,\n 'message' => 'Location is required.'\n );\n\n } else {\n \n $departments = $this->getDepartment(get_post('keyword'));\n foreach ($departments as $department) {\n\n // get main department locations if has any\n // main has no sub department id\n $locationWhere = array(\n 'deletedAt IS NULL',\n 'DepartmentID' => $department['id'],\n 'SubDepartmentID' => 0, \n 'LocationScope' => $scope\n );\n // not national\n if ((int)$scope !== 1) {\n $locationWhere['LocationCode'] = get_post('location_code');\n }\n\n $location = $this->mgovdb->getRecords('Dept_ScopeLocations', $locationWhere, 'id', array(1));\n if (count($location)) {\n $location = $location[0];\n $location['officers'] = $this->departmentdb->getDepartmentOfficer($location['id'], 'DepartmentLocationID');\n } else {\n $location = false;\n }\n $department['location'] = $location;\n\n $subDepartments = array();\n foreach ($department['subDepartment'] as $subDepartment) {\n // get sub department locations if has any\n $locationWhere = array(\n 'deletedAt IS NULL',\n 'DepartmentID' => $department['id'],\n 'SubDepartmentID' => $subDepartment['id'], \n 'LocationScope' => $scope\n );\n\n // not national\n if ((int)$scope !== 1) {\n $locationWhere['LocationCode'] = get_post('location_code');\n }\n\n $location = $this->mgovdb->getRecords('Dept_ScopeLocations', $locationWhere, 'id', array(1));\n if (count($location)) {\n $location = $location[0];\n $location['officers'] = $this->departmentdb->getDepartmentOfficer($location['id'], 'DepartmentLocationID');\n } else {\n $location = false;\n }\n\n $subDepartment['location'] = $location;\n\n if (get_post('result_filter') == 1) {\n // all active\n if ($subDepartment['location'] != false && $subDepartment['location']['Status']) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 2) {\n // active with officer\n if ($subDepartment['location'] != false && $subDepartment['location']['Status'] && $subDepartment['location']['officers'] != false) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 3) {\n // active without officer\n if ($subDepartment['location'] != false && $subDepartment['location']['Status'] && $subDepartment['location']['officers'] == false) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 4) {\n // inactive\n if ($subDepartment['location'] == false || ($subDepartment['location'] != false && $subDepartment['location']['Status'] == 0)) {\n $subDepartments[] = $subDepartment;\n }\n } else {\n // show all\n $subDepartments[] = $subDepartment;\n }\n }\n\n $department['subDepartment'] = $subDepartments;\n\n $exclude = true;\n // if no sub department. also filter main department result\n if (get_post('result_filter') == 1) {\n // all active\n if ($department['location'] != false && $department['location']['Status']) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 2) {\n // active with officer\n if ($department['location'] != false && $department['location']['Status'] && $department['location']['officers'] != false) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 3) {\n // active without officer\n if ($department['location'] != false && $department['location']['Status'] && $department['location']['officers'] == false) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 4) {\n // inactive\n if ($department['location'] == false || ($department['location'] != false && $department['location']['Status'] == 0)) {\n $items[] = $department;\n $exclude = false;\n }\n } else {\n // show all\n $items[] = $department;\n $exclude = false;\n }\n\n if (count($subDepartments) && $exclude) {\n $department['hideParent'] = true;\n $items[] = $department;\n }\n\n }\n\n if (count($items)) {\n $return_data = array(\n 'status' => true,\n 'data' => $items\n );\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'No record found.'\n );\n }\n\n }\n\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'Scope is required.'\n );\n }\n\n response_json($return_data);\n }", "public function locations()\n {\n return $this->hasMany('App\\Location');\n }", "public function get_scope_locations()\n { \n response_json(lookup_scope_locations(get_post('scope')));\n }", "public function sitemapCompanies(){\n $links = array();\n $models = ORM::factory('CatalogCompany')->where('enable','=','1')->find_all();\n foreach($models as $model)\n $links[] = $model->getUri();\n return $links;\n }", "protected function _get_locations_by_creative($creative_id)\n {\n\t\t\t$request = Request::factory('http://'.Servers::$api_server.\"/creatives/$creative_id/locations\")\n\t\t\t\t->method(Request::GET)\n\t\t\t\t->headers('Content-Type', 'application/json');\n\t\t\n\t\t\treturn json_decode($request->execute(),true);\n\n }", "public function getLocation()\n {\n return $this->get('location');\n }", "public function main_locations(){\n $locations = Location::whereNull('parent_id')->get();\n }", "abstract function getBaseLocations();", "public function actionLocation() {\n $term = trim($_GET['term']);\n $bGeonames = (isset($_GET['geonames'])) ? true : false;\n $results = array();\n $geonamesUrl = \"http://api.geonames.org/searchJSON?maxRows=10&lang=de&username=wkoller&style=medium\";\n\n if ($bGeonames) {\n // Construct service URL\n $geonamesUrl = $geonamesUrl . \"&q=\" . urlencode($term);\n // Fetch service response\n $service_response = file_get_contents($geonamesUrl);\n if ($service_response) {\n // Decode data\n $service_data = json_decode($service_response, true);\n\n // Save response data in location table\n foreach ($service_data['geonames'] as $geoname) {\n // Check if we already have any entry\n $model_location = null;\n $model_locationGeonames = LocationGeonames::model()->find('geonameId=:geonameId', array(':geonameId' => $geoname['geonameId']));\n if ($model_locationGeonames != null) {\n $model_location = Location::model()->findByPk($model_locationGeonames->id);\n\n // update model with new location description\n $model_location->location = $geoname['name'] . ' (' . $geoname['adminName1'] . ', ' . $geoname['countryName'] . ')';\n $model_location->save();\n } else {\n // Create location model & save it\n $model_location = new Location;\n $model_location->location = $geoname['name'] . ' (' . $geoname['adminName1'] . ', ' . $geoname['countryName'] . ')';\n $model_location->save();\n // Create according geonames model & save it as well\n $model_locationGeonames = new LocationGeonames;\n $model_locationGeonames->id = $model_location->id;\n $model_locationGeonames->service_data = serialize($geoname);\n $model_locationGeonames->geonameId = $geoname['geonameId'];\n $model_locationGeonames->countryCode = $geoname['countryCode'];\n $model_locationGeonames->save();\n }\n\n // Add response to results\n $results[] = array(\n \"label\" => $model_location->location,\n \"value\" => $model_location->location,\n \"id\" => $model_location->id,\n \"countryCode\" => $model_locationGeonames->countryCode\n );\n }\n }\n } else {\n // Find all fitting entries in location table\n $models_location = Location::model()->findAll('location LIKE :location', array(':location' => $term . '%'));\n if ($models_location != NULL) {\n foreach ($models_location as $model_location) {\n $results[] = array(\n \"label\" => $model_location->location,\n \"value\" => $model_location->location,\n \"id\" => $model_location->id,\n );\n }\n }\n }\n\n // Output results as service response\n $this->serviceOutput($results);\n }", "public function get_locations()\n {\n $this->db->select('location_id,area');\n $query = $this->db->get($this->location);\n if ($query->num_rows() > 0) \n {\n return $query->result_array();\n }\n else\n {\n return FALSE;\n } \n \n }", "public function get_loc()\n {\n\n return $this->db->get('LOCATION_TYP')->result();\n\n }", "public function getLocationList($return_active_only = TRUE);", "public function get_locations($nodes);", "public function getLocation()\n {\n return $this->apiLocation === 'Yahoo' ? $this->getLocationYahoo() : $this->getLocationGoogle();\n }", "public function locais()\n {\n return $this->em->createQuery('\n SELECT\n e.id, e.nome\n FROM\n Novosga\\Model\\Local e\n ORDER BY\n e.nome ASC\n ')->getResult();\n }", "public function locations(){\n\t\treturn $this->hasMany('App\\Location');\n\t}", "public function getLocation();", "public function getLocation();", "public static function getSimple( ) {\n\t\t$staffLocations = Client::request('staff/location');\n\n\t\t$staffLocations = array_map(function($location){\n\t\t\treturn $location['name'];\n\t\t}, $staffLocations);\n\n\t\treturn $staffLocations;\n\t}", "public function index()\n {\n $lat = Input::get('lat');\n $lon = Input::get('lon');\n\n $locations = Location::getNearbyLocations($lat, $lon);\n\n return response()->json($locations);\n }", "public function getCityList() {\n return $this->_get(2);\n }", "static function getLocation(LocationResult $p_data): Array\n {\n $l_id_parent = null;\n $l_location = null;\n $l_locations = [];\n foreach ($p_data->getLocationData() as $l_type => $l_name) {\n $l_location = self::getLocationModel($l_id_parent, $l_type, $l_name);\n $l_locations[] = $l_location;\n $l_id_parent = $l_location->id;\n }\n return $l_locations;\n }", "public function locations()\n {\n $locations = Locations::with('Countries:name')->get();\n // dd($locations);\n\n foreach ($locations as $location) {\n $sublocation = Locations::where('location_id', $location->sublocation_id)->get();\n $location['sublocations'] = $sublocation;\n }\n return view('setup.location.locations', compact('locations', 'sublocation'));\n }", "public static function getProductLocations($productID,$cityID) {\n //echo \"product_id == \".$productID.\" , city = \".$cityID; die;\n $queryResult = DB::table('product_vendor_locations as pvl')\n ->leftJoin(DB::raw('vendor_location_address as vla'),'vla.vendor_location_id','=','pvl.vendor_location_id')\n ->leftJoin('locations as l1', 'l1.id','=','vla.area_id')\n ->leftJoin('locations as l2', 'l2.id','=','vla.city_id')\n ->leftJoin('locations as l3', 'l3.id','=','vla.state_id')\n ->select('pvl.id as vendor_location_id','l1.name as area','l2.name as city','l3.name as state_name','vla.address','vla.pin_code','vla.latitude','vla.longitude')\n ->where('pvl.product_id',$productID)\n ->where('vla.city_id',$cityID)\n ->get();\n \n //array to hold location details\n $arrLocation = array();\n if($queryResult) {\n foreach($queryResult as $row) {\n\n $arrLocation[] = array(\n \"vendor_location_id\" => $row->vendor_location_id,\n \"address_line\" => $row->address,\n \"area\" => $row->area,\n \"city\" => $row->city,\n \"pincode\" => $row->pin_code,\n \"state\" => $row->state_name, \n //\"country\" => $row->country,\n \"latitude\" => $row->latitude,\n \"longitude\" => $row->longitude \n\n );\n }\n } \n return $arrLocation;\n }", "public function index()\n {\n $owner_id = auth()->user()->id;\n $company_id = CarCompany::where('owner_id', '=', $owner_id)->first()->id;\n $locations = Location::where('company_id', '=', $company_id)->get();\n\n return view('/company/location', ['displays' => $locations]);\n }", "private function getWorkAddressesBaseOnCurrentWorkLocation()\n {\n $chosen_work_location = session('current_work_location');\n\n $work_address_list = null;\n\n if ($chosen_work_location == \"all\") {\n\n $work_address_list = Auth::user()->company->workAddresses()->workLocationEnable();\n\n } elseif (is_array($chosen_work_location)) {\n\n $work_address_list = Auth::user()->company->workAddresses()->workLocationEnable()->whereIn('work_location_id', $chosen_work_location);\n\n } else {\n\n $work_address_list = Auth::user()->company->workAddresses()->where('work_location_id', $chosen_work_location);\n }\n\n return $work_address_list;\n }", "public function location()\n { \n return $this->attributes['type'] == 'country' \n ? $this->hasOne(Country::class, 'id', 'location_id') \n : $this->hasOne(City::class, 'id', 'location_id');\n }", "function LocationDropdownList()\n\t{\t$loc_list = array();\n\t\t\n\t\tif ($locations = $this->GetLocations())\n\t\t{\tforeach ($locations as $location)\n\t\t\t{\t$loc_list[$location->id] = $location->details[\"loctitle\"];\n\t\t\t}\n\t\t}\n\t\t//print_r($this);\n\t\treturn $loc_list;\n\t}", "public function ddl_location()\r\n\t\t{\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$query = \"SELECT loc_name, \r\n\t\t\t\t\t\t\tloc_id,\r\n\t\t\t\t\t\t\taddress \r\n\t\t\t\t\t\tFROM location\";\r\n\t\t\t\t$result = mysqli_query($link, $query) or die(mysqli_error($link));\r\n\t\t\t\t$loc = array();\r\n\t\t\t\t$arr_loc = array();\r\n\t\t\t\twhile ($row = mysqli_fetch_row($result)) {\r\n\t\t\t\t\t\t$loc['loc_name'] = $row[0];\r\n\t\t\t\t\t\t$loc['loc_id'] = $row[1];\r\n\t\t\t\t\t\t$loc['address'] = $row[2];\r\n\t\t\t\t\t\t$arr_loc[] = $loc;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn $arr_loc;\r\n\t\t}", "public function getLocations($city_id)\n\t{\n\t\ttry\n {\n\t\t $select = $this->getDbTable()->select()\n\t\t\t ->where('city_id=?',$city_id)\n\t\t\t ->where('status = ?', true)\n\t\t\t ->order('description ASC');\n\t\t\t$records = $this->getDbTable()->fetchAll($select);\n\t\t\t$locaationdata=Array();\t\n\t\t\t$locationdata[0]= array('value'=>'','key'=>'Select Location');\t\t\n\t\t\tforeach($records as $record)\n\t\t\t{\n\t\t\t\t$locationdata[] = array('key'=>$record['description'],'value'=>$record['id']);\t\n\t\t\t}\t\n\t\t\treturn $locationdata;\n\t\t}\n\t\tcatch (Exception $ex){\n\t\t\tthrow new Exception($ex->getMessage()) ;\n\t\t}\n\t}", "public function locations()\n {\n return $this->morphMany(Location::class,'trackable','trackable_type','trackable_id','uuid');\n }", "private function getLocation(){\n \n $location = [];\n $node = $this->getNode();\n $locationreference = $node->field_location_reference->entity;\n \n if($locationreference){\n $location = $locationreference->field_location->view(array('type' => 'LocationAddressFormatter', 'label' => 'hidden'));\n $location[0]['#prefix'] = '<i class=\"icon icon-home icon-smaller\"></i>';\n }\n \n return $location;\n \t\n }", "public function getMapSites()\n {\n return $this->map_sites;\n }", "public function index()\n {\n $invlocations = InvLocation::getAllInvLocation();\n return InvLocationResource::collection($invlocations);\n }", "private function mapping()\n {\n return Cache::remember('everflow-city-mapping', 30, function () {\n return (new EverflowMetadata)->cities()->cities;\n });\n }", "public function getLocation() { return $this->location; }", "public function getCities()\n {\n \treturn $this->citiesRepository->getCities();\n }", "public function getCompanyAddresses(Company $company)\n {\n $builder = $company->addresses()->getQuery();\n\n $resource = $this->datatable->setQueryBuilder($builder);\n\n return $resource->getResponse();\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public static function getProductLocations($productID,$product_vendor_location_id,$cityID) {\n //echo \"product_id == \".$productID.\" , city = \".$cityID; die;\n $queryResult = DB::table('product_vendor_locations as pvl')\n ->leftJoin(DB::raw('vendor_location_address as vla'),'vla.vendor_location_id','=','pvl.vendor_location_id')\n ->leftJoin('locations as l1', 'l1.id','=','vla.area_id')\n ->leftJoin('locations as l2', 'l2.id','=','vla.city_id')\n ->leftJoin('locations as l3', 'l3.id','=','vla.state_id')\n ->select('pvl.id as vendor_location_id','l1.name as area','l2.name as city','l3.name as state_name','vla.address','vla.pin_code','vla.latitude','vla.longitude')\n ->where('pvl.product_id',$productID)\n ->where('vla.city_id',$cityID)\n //->whereIn('pvl.status',array('Active','Hidden'))\n ->where('pvl.status','Active')\n //->orWhere('pvl.status','Hidden')\n ->get();\n \n //array to hold location details\n $arrLocation = array();\n if($queryResult) {\n foreach($queryResult as $row) {\n\n $arrLocation[] = array(\n \"vendor_location_id\" => $row->vendor_location_id,\n \"address_line\" => $row->address,\n \"area\" => $row->area,\n \"city\" => $row->city,\n \"pincode\" => $row->pin_code,\n \"state\" => $row->state_name, \n //\"country\" => $row->country,\n \"latitude\" => $row->latitude,\n \"longitude\" => $row->longitude \n\n );\n }\n } \n return $arrLocation;\n }", "function GetLocations(){\n\t// Preparing query\n\t$query = GetDatabaseConnection()->prepare(\"SELECT location_id, name FROM location\");\n\t$query->execute();\n\t$result = $query->fetchAll(); //Fetching it\n\treturn $result;\n}", "public function getClientLocations($clid){\r\r\n\t\t\t$location = false;\r\r\n\t\t\t$dbhandle = $this->dbhandle();\r\r\n\t\t\tif ($dbhandle){\r\r\n\t\t\t\t$dbfound = $this->dbfound();\r\r\n\t\t\t\tif ($dbfound){\r\r\n\t\t\t\t\t$tablename = \"clientloc\";\r\r\n\t\t\t\t\t$tableExists = $this->tableExists($tablename);\r\r\n\t\t\t\t\tif ($tableExists){\r\r\n\t\t\t\t\t\t$active = \"active\";\r\r\n\t\t\t\t\t\t$eactive = $this->encode($active);\r\r\n\t\t\t\t\t\t$sql = \"SELECT `$tablename`.`id`, `$tablename`.`locid` FROM `$this->db`.`$tablename` WHERE `$tablename`.`clid` = '$clid' AND `$tablename`.`status` = '$eactive'\";\r\r\n\t\t\t\t\t\t$result = mysql_query($sql, $dbhandle);\r\r\n\t\t\t\t\t\tif ($result){\r\r\n\t\t\t\t\t\t\tif (mysql_num_rows($result) > 0){\r\r\n\t\t\t\t\t\t\t\t$i = 0;\r\r\n\t\t\t\t\t\t\t\twhile ($resarr = mysql_fetch_assoc($result)){\r\r\n\t\t\t\t\t\t\t\t\t$location[$i]['id'] = $resarr['id'];\r\r\n\t\t\t\t\t\t\t\t\t$location[$i]['locid'] = $this->decode($resarr['locid']);\r\r\n\t\t\t\t\t\t\t\t\t$i++;\r\r\n\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\treturn $location;\r\r\n\t\t}", "function Companies(){\n\t\t\t\treturn $this->companies;\n\t\t\t}", "public function locations()\n {\n return $this->belongsToMany('App\\Location', 'admin_location');\n }", "public function getAutoprovisioningLocations()\n {\n return $this->autoprovisioning_locations;\n }", "public function GetLocations(GetLocations $parameters)\n {\n return $this->__soapCall('GetLocations', array($parameters));\n }", "public function set_locations() {\n\t\t\t$this->locations = $this->wpseo_local_locations_repository->get( [], false );\n\t\t}", "public function locations()\n {\n return $this->belongsToMany(\n Locations::class,\n TripLocations::class,\n 'trip_id',\n 'location_id',\n 'id',\n 'id',\n );\n }", "public function getLocation()\r\n {\r\n return $this->location;\r\n }", "public function getAddressToLocationRelationships()\n {\n return $this->AddressToLocationRelationships;\n }", "public function location()\n {\n return $this->hasMany('App\\Location');\n }" ]
[ "0.73204905", "0.7269763", "0.715325", "0.7091369", "0.69753784", "0.68884516", "0.6781724", "0.6735656", "0.6646941", "0.6572236", "0.64921284", "0.64795774", "0.6343667", "0.63180554", "0.6298667", "0.6285085", "0.6283854", "0.62782335", "0.62691855", "0.62336695", "0.6228775", "0.6209962", "0.6169471", "0.6168867", "0.6111737", "0.61095774", "0.6107768", "0.61034596", "0.6078168", "0.6076685", "0.6059309", "0.6051516", "0.60502684", "0.59827816", "0.59738606", "0.5953469", "0.59357333", "0.59111685", "0.5899639", "0.58974624", "0.5880955", "0.5875733", "0.5858756", "0.5851801", "0.5848742", "0.58486027", "0.58474046", "0.5827842", "0.5813072", "0.5801344", "0.57986194", "0.5785727", "0.5780927", "0.57327545", "0.57305145", "0.57084715", "0.5687326", "0.5683905", "0.56662434", "0.56592906", "0.56405973", "0.56405175", "0.56328994", "0.56316066", "0.5631546", "0.56246674", "0.56246674", "0.56186646", "0.56068146", "0.5592698", "0.5588809", "0.5578595", "0.5572787", "0.5562594", "0.55461144", "0.5529964", "0.55246896", "0.55230206", "0.5518808", "0.5507502", "0.5507022", "0.55065084", "0.5481229", "0.547262", "0.54580843", "0.544965", "0.54491055", "0.5447309", "0.5441244", "0.54398346", "0.54271907", "0.54220057", "0.5420207", "0.5419739", "0.5411731", "0.54103196", "0.540592", "0.54052764", "0.5399864", "0.53961986" ]
0.7332577
0
gets all Billings of the Company filtered by $filter
получает все Billings компании, отфильтрованные по $filter
public function getBillings($filter = null) { $billingTable = new Yourdelivery_Model_DbTable_Billing(); $all = $billingTable->fetchAll('mode="company" AND refId="' . $this->getId() . '"'); $storage = new splObjectStorage(); foreach ($all AS $bill) { try { $bill = new Yourdelivery_Model_Billing($bill->id); } catch (Yourdelivery_Exception_Database_Inconsistency $e) { continue; } $storage->attach($bill); } return $storage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function companyBillings($request)\n {\n if (Auth::user()->type != 'company') {\n throw new \\Exception('Unauthorized viewing of billing accounts.');\n }\n\n $data = [\n 'company_id' => Auth::user()->company->id,\n ]; \n\n $with = ['billable' => function($sub_query) { \n $sub_query->select('id', 'title', 'reference_id', 'price', 'incentive_per_share');\n \n }];\n \n $billings = $this->jobChoiceRepository->billing()->whereWhereMonthAndYear(\n $data, \n 'created_at', \n $request->month,\n $request->year,\n $with \n );\n \n // Fixed tax percentage\n $tax_percentage = Billing::VARIABLES['tax_percentage'];\n // Sub total amount of bills\n $sub_total_amount = $billings->sum('billable.incentive_per_share');\n // Result to be returned\n $result['billings'] = $billings; \n $result['sub_total_amount'] = $sub_total_amount;\n $result['consumption_tax_fee'] = $sub_total_amount * $tax_percentage;\n $result['total_amount_fee'] = $sub_total_amount + ($sub_total_amount * $tax_percentage);\n \n return $result;\n }", "public function getBorrowings();", "public function index(Request $request, BillCollectionFilter $filter)\n {\n// $bill_collection = BillCollection::filter($filter)\n// ->join('customer')\n// ->paginate($request->per_page);\n// return response()->json($bill_collection);\n\n $bill_collection = BillCollection::filter($filter)\n ->join('customers', 'customers.id', '=', 'bill_collections.customer_id')\n ->join('areas', 'areas.id', '=', 'customers.area_id')\n ->join('users', 'users.id', '=', 'bill_collections.user_id')\n ->select(\n 'bill_collections.id',\n 'bill_collections.customer_id',\n 'customers.code',\n 'customers.name',\n 'customers.phone',\n 'areas.name as area',\n 'customers.shared',\n 'customers.ppoe',\n 'customers.bandwidth',\n 'bill_collections.no_of_months',\n 'bill_collections.created_at',\n 'users.name as collector',\n 'bill_collections.total',\n 'bill_collections.discount',\n 'bill_collections.due_on',\n 'bill_collections.latest',\n 'bill_collections.lat',\n 'bill_collections.lon',\n DB::raw('(bill_collections.total - bill_collections.discount) as grand_total')\n )\n ->orderBy('created_at', 'desc')\n ->paginate($request->per_page);\n return response()->json($bill_collection);\n }", "public function index(Request $request)\n {\n $input = $request->all();\n $bills = Bill::with(['booking'])->get();\n $billStatus = Bill::status();\n $billType = Bill::type();\n $billPaymentType = Bill::paymentType();\n\n if (count($input) > 0) {\n $billQuery = Bill::where('id', '>', 0);\n\n if (!empty($input['unique_number_filter'])) {\n $billQuery = $billQuery->where('unique_number', 'like', '%' . $input['unique_number_filter'] . '%');\n }\n\n if (!empty($input['booking_number_filter'])) {\n $billQuery = $billQuery->whereHas('booking', function ($q) use ($input) {\n $q->where('booking_number', 'like', '%' . $input['booking_number_filter'] . '%');\n });\n }\n\n if (!empty($input['type_filter'])) {\n $billQuery = $billQuery->where('type', $input['type_filter']);\n }\n\n if (!empty($input['amount_filter'])) {\n $billQuery = $billQuery->where('amount', 'like', '%' . $input['amount_filter'] . '%');\n }\n\n if (!empty($input['payment_type_filter'])) {\n $billQuery = $billQuery->where('payment_type', $input['payment_type_filter']);\n }\n\n if (!empty($input['status_filter'])) {\n $billQuery = $billQuery->where('status', $input['status_filter']);\n }\n\n if (!empty($input['start_date_filter'])) {\n $startDateFormatted = \\DateTime::createFromFormat('d/m/Y', $input['start_date_filter'])->format('Y-m-d');\n $billQuery = $billQuery->where('start_date', '>=', $startDateFormatted);\n }\n if (!empty($input['end_date_filter'])) {\n $endDateFormatted = \\DateTime::createFromFormat('d/m/Y', $input['end_date_filter'])->format('Y-m-d');\n $billQuery = $billQuery->where('start_date', '<=', $endDateFormatted);\n }\n\n if (!empty($input['author_id_filter'])) {\n $billQuery = $billQuery->whereHas('author', function ($q) use ($input) {\n $q->where('name', 'like', '%' . $input['author_id_filter'] . '%');\n });\n }\n\n $bills = $billQuery->get();\n\n $exportedFile = Excel::create(trans('bill::bills.title.export'), function ($excel) use (\n $bills,\n $billStatus,\n $billType,\n $billPaymentType\n ) {\n $excel->sheet(trans('bill::bills.title.export'), function ($sheet) use (\n $bills,\n $billStatus,\n $billType,\n $billPaymentType\n ) {\n $sheet->loadView('bill::admin.bills.export', array('bills' => $bills,\n 'status' => $billStatus,\n 'type' => $billType,\n 'paymentType' => $billPaymentType));\n });\n })->export('xls');\n\n return $exportedFile;\n }\n\n return view('bill::admin.bills.index', compact('bills', 'billStatus', 'billType', 'billPaymentType'));\n }", "public function display_pending_bills()\n {\n // Check for an active session else redirect\n $this->app->check_active_session(2);\n\n // Load library\n $this->load->library('datatables');\n\n $columns = [\n 'bill_id' => function($value, $row, $num)\n {\n return $num++;\n },\n 'hospital_number' => null,\n 'patient_name' => function($value)\n {\n return ucwords($value);\n },\n 'patient_phone' => null,\n 'patient_type' => null,\n 'bill_debit' => function($value)\n {\n return number_format($value, 2);\n },\n 'receipt_number' => null,\n 'bill_date' => function($value)\n {\n return time_format($value, 'DD MMM. YYYY');\n },\n null => function($value)\n {\n $actions = '<a href=\"' . site_url('cashier/billing/') . $this->security->encrypt_id($value['bill_id']) . '\" class=\"btn btn-default btn-xs\">Pay Bill</a> ';\n\n return $actions;\n }\n ];\n\n $this->datatables->render_advance(\n $columns,\n 'SELECT {TOTAL_ROWS} *\n FROM bills\n WHERE {SEARCH_COLUMN} AND bill_status = 0\n ORDER BY {ORDER_COLUMN} {ORDER_DIR} {LIMIT_ROWS}'\n );\n }", "public function getBills()\n {\n return $this->hasMany(Bill::className(), ['cust_id' => 'id']);\n }", "public function bills()\n {\n return $this->hasMany(Bill::class, 'bil_booking');\n }", "public function getBudgets() {\n $table = new Yourdelivery_Model_DbTable_Company_Budgets();\n $all = $table->fetchAll('companyId = ' . $this->getId());\n $obj = new splObjectStorage();\n foreach ($all AS $budget) {\n try {\n $budget = new Yourdelivery_Model_Budget($budget->id);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $obj->attach($budget);\n }\n return $obj;\n }", "protected function billed()\n {\n return $this->builder->where('billed', true);\n }", "public function filterMyBookingsAction()\n {\n $request = Request::createFromGlobals();\n $data = array();\n $data2 = array();\n $fromDate = $request->request->get('fromDay', '');\n $toDate = $request->request->get('toDay', '');\n $accountId = $request->request->get('accountId', '');\n $userId = $request->request->get('userId', '');\n $currencyCode = $request->request->get('currencyCode', '');\n $types = $request->request->get('types', '');\n $pg_start_page = $request->request->get('start', '');\n \n if(!$pg_start_page)\n $pg_start_page = 1;\n \n $commonCode = $this->commonCode();\n $countItem = $commonCode['countItem'];\n \n if($fromDate){\n $fromDate = new \\DateTime($fromDate);\n $fromDate = $fromDate->format('Y-m-d');\n }\n if($toDate){\n $toDate = new \\DateTime($toDate);\n $toDate = $toDate->format('Y-m-d');\n }\n $class = $commonCode['class'];\n $pg_limit_records = $commonCode['pg_limit_records'];\n $page = $pg_start_page;\n $count = $commonCode['count'];\n $pagination = '';\n $pg_start_page = ( $pg_start_page * $pg_limit_records ) - $pg_limit_records;\n $modules = $commonCode['modules'];\n $accountId = $commonCode['accountId'];\n if(!$userId){\n $userId = $commonCode['userId'];\n }\n $parameters['accountId'] = $accountId;\n $parameters['userId'] = $userId;\n $status = $commonCode['status'];\n $data2['preferredAccountCurrency'] = $commonCode['preferredAccountCurrency'];\n $data2['hotelModuleId'] = $commonCode['hotelModuleId'];\n $data2['flightModuleId'] = $commonCode['flightModuleId'];\n $data2['dealModuleId'] = $commonCode['dealModuleId'];\n $data2['approvedStatus'] = $commonCode['approvedStatus'];\n $data2['accountId'] = $accountId;\n $data2['modules'] = $modules;\n $params = array(\n 'accountId' => $accountId,\n 'userId' => $userId,\n 'currencyCode' => $currencyCode,\n 'fromDate' => $fromDate,\n 'toDate' => $toDate,\n 'types' => $types,\n 'status' => $status,\n 'start' => $pg_start_page,\n 'limit' => $pg_limit_records\n );\n $approvalFlow = $this->get('CorpoApprovalFlowServices')->getAllApprovalFlowList($params);\n \n $params['count']= 1;\n $countApprovalFlowList = $this->get('CorpoApprovalFlowServices')->getAllApprovalFlowList($params);\n if($countApprovalFlowList){\n $countItem = $countApprovalFlowList;\n $pagination = $this->getRelatedDiscoverPagination($countItem, $pg_limit_records, $page,$count ,$class );\n }\n \n $data2['allApprovalFlowList'] = $approvalFlow;\n $data['allApprovalFlow'] = $this->render('@Corporate/corporate/corporate-my-bookingsInfo.twig', $data2)->getContent();\n \n if($pagination){\n $data['pagination'] = $pagination;\n }\n\n $res = new Response(json_encode($data));\n $res->headers->set('Content-Type', 'application/json');\n\n return $res;\n }", "public function searchCostBill() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n $criteria = new CDbCriteria;\n $criteria->order = 'id DESC';\n $criteria->compare('id', $this->id);\n $criteria->compare('bill_no', $this->bill_no, true);\n // $criteria->compare('bill_date', $this->bill_date, true);\n $criteria->compare('bill_from_date', $this->bill_from_date, true);\n $criteria->compare('bill_to_date', $this->bill_to_date, true);\n $criteria->compare('customer_id', $this->customer_id);\n // $criteria->compare('purchase_order_id', $this->purchase_order_id);\n $criteria->compare('item_id', $this->item_id);\n $criteria->compare('bill_type', $this->bill_type, true);\n $criteria->compare('print_type', $this->print_type, true);\n $criteria->compare('added_on', $this->added_on, true);\n $criteria->compare('particulars', $this->particulars, true);\n $criteria->condition=\"bill_type='cost_bill'\";\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function get_blasts() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/blasts.json\");\n }", "function get_customerbookings($custID, $shipID, $filter = false, $filterable = false, $interval = '', $loginID = '', $debug = false) {\n\t\t$loginID = (!empty($loginID)) ? $loginID : DplusWire::wire('user')->loginid;\n\t\t$user = LogmUser::load($loginID);\n\t\t$q = (new QueryBuilder())->table('bookingc');\n\t\t$q->where('custid', $custID);\n\n\t\tif (!empty($shipID)) {\n\t\t\t$q->where('shiptoid', $shipID);\n\t\t}\n\n\t\tif ($user->get_dplusrole() == DplusWire::wire('config')->roles['sales-rep']) {\n\t\t\t$q->where('salesrep', DplusWire::wire('user')->salespersonid);\n\t\t}\n\t\t$q->generate_filters($filter, $filterable);\n\n\t\tswitch ($interval) {\n\t\t\tcase 'month':\n\t\t\t\t$q->field($q->expr(\"CAST(CONCAT(YEAR(bookdate), LPAD(MONTH(bookdate), 2, '0'), '01') AS UNSIGNED) as bookdate\"));\n\t\t\t\t$q->field('SUM(amount) as amount');\n\t\t\t\t$q->group('YEAR(bookdate), MONTH(bookdate)');\n\t\t\t\tbreak;\n\t\t\tcase 'day':\n\t\t\t\t$q->field('bookingc.*');\n\t\t\t\t$q->field('SUM(amount) as amount');\n\t\t\t\t$q->group('bookdate');\n\t\t\t\tbreak;\n\t\t}\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery($q->params);\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\treturn $sql->fetchAll(PDO::FETCH_ASSOC);\n\t\t}\n\t}", "function wpbs_get_bookings($args = array(), $count = false)\n{\n\n $bookings = wp_booking_system()->db['bookings']->get_bookings($args, $count);\n\n /**\n * Add a filter hook just before returning\n *\n * @param array $bookings\n * @param array $args\n * @param bool $count\n *\n */\n return apply_filters('wpbs_get_bookings', $bookings, $args, $count);\n\n}", "public function allCompanies()\n {\n return Company::all();\n }", "public function room_bill_item()\n {\n return $this->hasManyThrough(BillItem::class, 'App\\Bill', 'bil_booking', 'bili_bill', 'book_id', 'bil_id')->whereHas('resource', function($query) {\n $query->where('rs_type', '=', 1);\n });\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $form = $this->createForm(BillingclassFilterType::class);\n if (!is_null($response = $this->saveFilter($form, 'billingclass', 'admin_billingclass'))) {\n return $response;\n }\n $qb = $em->getRepository('AppBundle:Billingclass')->createQueryBuilder('b');\n $paginator = $this->filter($form, $qb, 'billingclass');\n \n return array(\n 'form' => $form->createView(),\n 'paginator' => $paginator,\n );\n }", "function get_billed_job() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_jobs';\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\tsearch_params();\n\t\t$rows = $this->job_card_model->find_all($where);\n\t\t$total = count($rows);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t\t$rows[$key]->cost = $rows[$key]->price;\n\t\t}\n\t\t\n\t\t$this->job_card_model->_table = 'view_service_billing_outsideworks';\n\t\t$ow_rows = $this->job_card_model->findAll($where);\n\n\t\tforeach ($ow_rows as $key => $value) {\n\t\t\t$k = $total+$key;\n\t\t\t$rows[$k]['id'] = $value->id;\n\t\t\t$rows[$k]['job_id'] = $value->job_id;\n\t\t\t$rows[$k]['job'] = $value->job;\n\t\t\t$rows[$k]['job_description'] = $value->job_description;\n\t\t\t// $rows[$k]['min_price'] = $value->id;\n\t\t\t// $rows[$k]['customer_price'] = $value->amount + $value->taxes;\n\t\t\t$rows[$k]['cost'] = $value->price;\n\t\t\t$rows[$k]['discount_amount'] = $value->discount_amount;\n\t\t\t$rows[$k]['discount_percentage'] = $value->discount_percentage;\n\t\t\t$rows[$k]['margin_percentage'] = $value->margin_percentage;\n\t\t\t$rows[$k]['final_amount'] = $value->final_amount;\n\t\t\t// $rows[$k]['status'] = '';\n\t\t\t$rows[$k]['ow'] = true;\n\t\t\t$rows[$k]['has_billed'] = 1;\n\t\t}\n\t\t$total += count($ow_rows);\n\n\n\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "public function showbill(Request $request) {\n try {\n $param = $request->all();\n if (!isset($param[\"RentalOID\"]) || !$param[\"RentalOID\"]) {\n $rtn = array(\n \"total\" => 0,\n \"data\" => [],\n );\n return response()->json(compact('rtn'));\n }\n $search = $request->get(\"search\");\n $order = $request->get(\"order\");\n $limit = $request->get(\"limit\");\n if ($search && isset($search[\"value\"]) && $search[\"value\"]) {\n $search = $search[\"value\"];\n } else {\n $search = \"\";\n }\n if ($order && isset($order[\"0\"]) && $order[\"0\"]) {\n $column = $order[\"0\"][\"column\"];\n $dir = $order[\"0\"][\"dir\"];\n }\n\n $rentalBill = Rental::showbill($param[\"RentalOID\"], $search, $order, $dir, $limit);\n\n $rtn = array(\n \"total\" => $rentalBill->total(),\n \"data\" => $rentalBill->items(),\n );\n return response()->json(compact('rtn'));\n\n return response()->json(compact('rentalBill'));\n } catch (Exception $ex) {\n Log::error($ex);\n return response()->json(['error' => trans('messages.systemError')], 411);\n }\n }", "public function allBoons() {\n\n // retrieve all Boons\n $boonModel = new Boon();\n $boonList = $boonModel->findAllBoons(); // array of objects\n\n // Send the datas to the view\n $this->show('boons', [\n 'boonList' => $boonList\n ]);\n }", "public function getBillingItem($id)\n {\n// foreach ($table_order as $order) {\n// $arr = Order::where(['OID' => $order->OID, 'is_cancelled' => 0])->get();\n $sql = 'select * from order_descriptions where OID in (select oid from tbl_order where tbl_id=\"' . $id . '\" and is_cancelled=0 and IsBill=0)';\n $bills = DB::select($sql);\n return view('bill.partial_bill_item')->with(['bills' => $bills]);\n }", "protected function billable()\n {\n return $this->builder->where('billable', true);\n }", "public function getAllCompanyByPage($filter, $page = 1, $page_size = 20, $orderby = '') {\n $regulatorToCompanyModel = new Model_Jiafuyun_RegulatorToCustomer();\n// $companyModel = new Model_Zhianbao_Company();\n $companyModel = new Model_Jiafuyun_Company();\n $rs = $regulatorToCompanyModel->getAll ( '*', $filter, $page, $page_size, $orderby );\n foreach ( $rs as $key => $value){\n $rs[$key]['create_time'] = strtotime($value['create_time']) == 0 ? '-': $value['create_time'];\n $rs[$key]['last_modify'] = strtotime($value['last_modify']) == 0 ? '-': $value['last_modify'];\n $companyInfo = $companyModel->get($value['company_id']);\n $rs[$key]['company_info'] = $companyInfo;\n }\n return $rs;\n }", "function getBillsByUser($userID, $filterDest=\"any\") {\n\t$db = connectDB();\n $sql = <<<SQL\n \tSELECT billID, startDate, destination, description, cost, isPaid, userID\n \tFROM bills\n\t\tWHERE userID = ?\nSQL;\n\n\tif ($filterDest != \"any\") {\n\t\t$sql .= \" AND destination = ?\";\n\t\t$stmt = $db->prepare($sql);\n\t\t$stmt->bind_param(\"ss\", $userID, $filterDest);\n\n\t} else {\n\t\t$stmt = $db->prepare($sql);\n\t\t$stmt->bind_param(\"s\", $userID);\n\t}\n\n\n\t$stmt->execute();\n\n\t$res = $stmt->get_result()->fetch_all(MYSQLI_ASSOC);\n\n\t$stmt->close();\n\t$db->close();\n\treturn $res;\n}", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $agency = $this->getUser()->getAgency();\n $maincompany = $this->getUser()->getMaincompany();\n $type = $agency->getType();\n // $all = $em->getRepository('NvCargaBundle:Bill')->findBy(['canceled'=>FALSE, 'maincompany'=> $maincompany])\n $all = $em->getRepository('NvCargaBundle:Bill')->createQueryBuilder('b')\n ->where('b.status != :status')\n ->andwhere('b.maincompany = :maincompany')\n ->setParameters(array('maincompany' => $maincompany, 'status' => 'ANULADA'))\n ->orderBy('b.number', 'DESC')\n ->setMaxResults(500)\n ->getQuery()\n ->getResult();\n if ($type == \"MASTER\") {\n $entities = $all;\n } else {\n $entities = [];\n foreach ($all as $entity) {\n $guide = $entity->getGuides()->last();\n if ($guide->getAgency() === $agency()) {\n $entities[] = $entity;\n }\n }\n }\n return array(\n 'entities' => $entities,\n );\n\n }", "public function getAllBusinesses() {\n\t\t$em = $this->getEntityManager();\n\t\t$businesses = $em->createQueryBuilder()\n\t\t\t->select('b.businessID,b.costCenter,b.name')\n\t\t\t->from('Business', 'b')\n\t\t\t->orderBy('b.name')\n\t\t\t->getQuery()\n\t\t\t->getResult();\n\t\t\n\t\t$response = array(\n\t\t\t\"businesses\" => $businesses\n\t\t);\n\t\t\n\t\treturn $this->respond($response);\n\t}", "public static function getReportBillSalesByCustomer($company_id, $branch_id = null, $time_start, $time_end) {\n $bills = self::selectRaw('customer_id, sum(total) as sum, sum(base_price_total) as base_total')\n ->where('company_id', $company_id)\n ->where('customer_id','!=', 0);\n if(!empty($branch_id)) {\n $bills = $bills->where('branch_id', $branch_id);\n }\n $bills = $bills->where('status', '=', self::ACTIVE)->whereNull('deleted_at')\n ->whereBetween('sale_date', array($time_start, $time_end))\n ->groupBy(DB::raw('customer_id'))\n ->orderBy('sum','DESC')\n ->limit(10)\n ->get();\n return $bills;\n }", "public function searchIncrementalBill() {\n // should not be searched.\n $criteria = new CDbCriteria;\n $criteria->order = 'id DESC';\n $criteria->compare('id', $this->id);\n $criteria->compare('bill_no', $this->bill_no, true);\n // $criteria->compare('bill_date', $this->bill_date, true);\n $criteria->compare('bill_from_date', $this->bill_from_date, true);\n $criteria->compare('bill_to_date', $this->bill_to_date, true);\n $criteria->compare('customer_id', $this->customer_id);\n // $criteria->compare('purchase_order_id', $this->purchase_order_id);\n $criteria->compare('item_id', $this->item_id);\n $criteria->compare('bill_type', $this->bill_type, true);\n $criteria->compare('print_type', $this->print_type, true);\n $criteria->compare('added_on', $this->added_on, true);\n $criteria->compare('particulars', $this->particulars, true);\n $criteria->condition=\"bill_type='incremental_bill'\";\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function getBans(User_Model_Row_Account $account, $filter = null) {\n\t\t\n\t}", "function get_pending_bookings(){\n\t\tif( get_option('dbem_bookings_approval') == 0 ){\n\t\t\treturn new EM_Bookings();\n\t\t}\n\t\t$pending = array();\n\t\tforeach ( $this->load() as $EM_Booking ){\n\t\t\tif($EM_Booking->booking_status == 0){\n\t\t\t\t$pending[] = $EM_Booking;\n\t\t\t}\n\t\t}\n\t\t$EM_Bookings = new EM_Bookings($pending);\n\t\treturn $EM_Bookings;\t\n\t}", "public function companies(): Collection\n {\n return Company::all();\n }", "public function getCompaniesToSuspend() {\n return $this->createQuery('c')\n ->select('c.*')\n ->from('Companies_Model_Company c')\n ->where('c.status = ?', Companies_Model_Company::STATUS_EXPIRED)\n ->addWhere('c.payment_date IS NOT NULL AND ADDDATE(c.payment_date, 8) < NOW()')\n ->execute();\n }", "public function getBuildingsWithBudgets()\n {\n $buildings_budgets = $this->find('all', [\n 'contain' => ['Budgets' =>\n function ($q) {\n return $q\n ->select(['id', 'building_id']);\n }],\n 'conditions' => ['Buildings.softland_id IS NOT NULL', 'Buildings.omit' => false]\n ]);\n $buildingsWithBudget = array();\n foreach ($buildings_budgets as $buildings_budget) {\n if (!empty($buildings_budget['budget'])) {\n $buildingsWithBudget[$buildings_budget['softland_id']]['budget_id'] = $buildings_budget['budget']['id'];\n $buildingsWithBudget[$buildings_budget['softland_id']]['active'] = $buildings_budget['active'];\n }\n }\n return $buildingsWithBudget;\n }", "function getBankLists() {\r\n\t\t$idealPlugin = os_payments::loadPaymentMethod('os_ideal');\t\t\r\n\t\t$params = new JRegistry($idealPlugin->params) ;\t\t\r\n\t\t$partnerId = $params->get('partner_id');\r\n\t\t$ideal = new iDEAL_Payment($partnerId) ;\r\n\t\t$bankLists = $ideal->getBanks();\r\n\t\treturn $bankLists ;\r\n\t}", "public function get_all_data_bonifications_company($id)\n {\n $datos = $this->db->query('select * from money_usuario left join money_back on usuariosMoneyBackId = moneyBackId where usuarioMoneyId = ' . $id);\n return $datos->row();\n }", "public static function getReportBillSales($company_id, $branch_id = null, $time_start, $time_end) {\n $bills = self::selectRaw('DATE(sale_date) AS sale_date, sum(total) as sum, sum(base_price_total) as base_total')\n ->where('company_id', $company_id);\n if(!empty($branch_id)) {\n $bills = $bills->where('branch_id', $branch_id);\n }\n $bills = $bills->where('status', '=', self::ACTIVE)->whereNull('deleted_at')\n ->groupBy(DB::raw('DAY(sale_date)'))\n ->orderBy('sale_date','DESC')\n ->get();\n return $bills;\n }", "function get_billed_parts() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_parts';\n\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\t$rows = $this->job_card_model->find_all($where);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t}\n\n\t\t$total = count($rows);\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "public function banks()\n {\n return Cache::remember('banks', $this->cacheTime, function () {\n return collect(Paymentmethods::getBanks(10))->pluck('name', 'id');\n });\n }", "public function actionIndex()\n {\n $bill_id = Yii::$app->request->get('bill_id');\n $tab = Yii::$app->request->get('tab',2);\n $returnUrl = Yii::$app->request->get('returnUrl',Url::to(['bill-b/index', 'bill_id'=>$bill_id]));\n $searchModel = new SearchModel([\n 'model' => $this->modelClass,\n 'scenario' => 'default',\n 'partialMatchAttributes' => [], // 模糊查询\n 'defaultOrder' => [\n 'id' => SORT_DESC\n ],\n 'pageSize' => $this->pageSize,\n 'relations' => [\n\n ]\n ]);\n\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $dataProvider->query->andWhere(['=', 'bill_id', $bill_id]);\n $dataProvider->query->andWhere(['>',WarehousebillGoods::tableName().'.status',-1]);\n\n $bill = WarehouseBill::find()->where(['id'=>$bill_id])->one();\n return $this->render($this->action->id, [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n 'bill' => $bill,\n 'tab' => $tab,\n 'tabList'=>\\Yii::$app->warehouseService->bill->menuTabList($bill_id, $this->billType, $returnUrl),\n ]);\n }", "public function bills() {\n return $this->hasMany('App\\Bill');\n }", "public function getBookings()\n {\n return $this->hasMany(Booking::className(), ['id_complaints' => 'id_complaint']);\n }", "public function getData(Request $request, $companyId)\n\t{\n\t\t//Authentication\n\t\t$tokenAuthentication = new TokenAuthentication();\n\t\t$authenticationResult = $tokenAuthentication->authenticate($request->header());\n\n\t\t// get constant array\n\t\t$constantClass = new ConstantClass();\n\t\t$constantArray = $constantClass->constantVariable();\n\t\tif (strcmp($constantArray['success'], $authenticationResult) == 0) {\n\t\t\tif (array_key_exists('fromdate', $request->header()) && array_key_exists('todate', $request->header())) {\n\t\t\t\t$processor = new BillProcessor();\n\t\t\t\t$billPersistable = new BillPersistable();\n\t\t\t\t$billPersistable = $processor->getPersistableData($request->header());\n\t\t\t\tif (!is_object($billPersistable)) {\n\t\t\t\t\treturn $billPersistable;\n\t\t\t\t}\n\t\t\t\t$data = $billPersistable;\n\t\t\t} else if (array_key_exists('invoicenumber', $request->header())) {\n\t\t\t\t$data = $request->header();\n\t\t\t}\n\n\t\t\t$billService = new BillService();\n\t\t\t$status = $billService->getData($data, $companyId);\n\t\t\treturn $status;\n\t\t} else {\n\t\t\treturn $authenticationResult;\n\t\t}\n\t}", "public function index()\n {\n $query = Company::query();\n\n $parameters = $parameters = request()->query->all();\n\n $this->sortBy(Company::class, $query, $parameters);\n\n $this->filterBy(Company::class, $query, $parameters);\n \n return CompanyResource::collection($query->paginate(10));\n }", "public function getListing(){\n $BusInfo = $this->BusinessOwnerModel->getBusinessID();\n \n foreach($BusInfo as $row1){\n $busID = $row1->bid;\n }\n \n $query = $this->db->get_where('BusinessListing', array('bid' => $busID));\n \n if($query->num_rows() > 0){\n foreach($query->result() as $row){\n $data[] = $row;\n }\n return $data;\n }\n return false;\n }", "public function getBanners($perPage = 20, array $filter = array(), array $sort = array(), $paginate = true);", "public function getPendingApproval(Filter $filter): Collection;", "public function getBankList()\n {\n $url = Moota::BASE_URL . Moota::ENDPOINT_BANK_INDEX;\n\n return (new ParseResponse(\n Zttp::withHeaders([\n 'User-Agent' => 'Moota/2.0',\n 'Accept' => 'application/json',\n 'Authorization' => 'Bearer ' . Moota::$ACCESS_TOKEN\n ])->get($url), $url\n ))\n ->getResponse()\n ->getBankData();\n }", "public function getAll(Filter $filter): Builder;", "public function index() {\n $month = Input::get('month', \\Carbon\\Carbon::now()->format('m/Y'));\n $start = \\Carbon\\Carbon::createFromFormat('m/Y', $month)->startOfMonth();\n $end = \\Carbon\\Carbon::createFromFormat('m/Y', $month)->endOfMonth();\n $bills = \\Bill::with('creator', 'buyer')\n ->whereBetween('created_at', array($start, $end))\n //->condition(\\Input::all())\n ->orderBy('created_at', 'desc')\n ->paginate(25);\n $months = \\Member::getMonthsLog();\n $this->layout->content = View::make('admin.bills.index', array(\n 'bills' => $bills,\n 'months' => $months,\n 'month' => $month,\n ));\n }", "public function index() {\n return view('bills', [\n 'bills' => Bill::with('who','whoId','bsn')\n ->where('BillStatus', '!=', '0')\n ->get()\n ]\n );\n }", "public function ContractsGetAll($filter)\n {\n $query = Contracts::with('Customers')->whereRaw(\"1 = 1\");\n $sSearchInput = isset($filter['searchInput']) ? trim($filter['searchInput']) : '';\n $sSortCol = isset($filter['sSortCol']) ? $filter['sSortCol'] : 'code';\n $sSortDir = isset($filter['sSortDir']) ? $filter['sSortDir'] : 'desc';\n\n $limit = isset($filter['limit']) ? $filter['limit'] : config('const.LIMIT_PER_PAGE');\n if ($sSearchInput != '') {\n $query->where('content', 'LIKE', '%' . $sSearchInput . '%');\n $query->orWhere('code', 'LIKE', '%' . $sSearchInput . '%');\n $query->orWhere('value', 'LIKE', '%' . $sSearchInput . '%');\n }\n\n if ($sSortCol) {\n $query->orderBy($sSortCol, $sSortDir);\n }\n\n $rResult = $query->paginate($limit)->toArray();\n $arrData = $rResult['data'];\n foreach ($arrData as $key => $value) {\n $signdate = date('d/m/Y', strtotime($value['signdate']));\n $arrData[$key]['signdate'] = $signdate;\n }\n $rResult['data'] = $arrData;\n return $rResult;\n }", "public function findAll() {\n $sql = \"SELECT * FROM budget\";\n $result = $this->db->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $budget = array();\n foreach ($result as $row) {\n $budgetID = $row['id'];\n $budget[$budgetID] = $this->buildBudget($row);\n }\n return $budget;\n }", "public function index(Request $request)\n\t{\n\t $input = $request->all();\n\n\t\t$result = $this->billingRepository->search($input);\n\n\t\t$billings = $result[0];\n\n\t\t$attributes = $result[1];\n\n\t\treturn view('billings.index')\n\t\t ->with('billings', $billings)\n\t\t ->with('attributes', $attributes);;\n\t}", "public function listMyBills()\n {\n $invoices = Invoice::all();\n $clubs = Club::all();\n $products = Product::all();\n\n return view('client/listmybills', ['products' => $products, 'invoices' => $invoices, 'clubs' => $clubs]);\n }", "public static function getAllBank()\n {\n return DB::table('banks')->select('id', 'name')->get();\n }", "public function getAll()\n {\n return $this->banque->paginate(10);\n }", "public function getBanks()\n {\n return $this->hasMany(Bank::className(), ['currency_id' => 'currency_id']);\n }", "public function getCreditRequests()\n {\n $search['q'] = request('q');\n\n $partner = auth()->user()->companies->first();\n\n $creditRequests = CreditRequest::search($search['q'])->with('quotation.user','user','credits')->paginate(10);\n\n return $creditRequests;\n /*$creditRequestsPublic = CreditRequest::search($search['q'])->where('public',1)->with('quotation.user','user','shippings')->get()->all();\n \n $creditRequestsPrivate = CreditRequest::search($search['q'])->where('public', 0)->whereHas('suppliers', function($q) use($partner){\n $q->where('shipping_request_supplier.supplier_id', $partner->id);\n })->get()->all();\n\n $creditRequests = array_collapse([$creditRequestsPublic, $creditRequestsPrivate]);\n\n // dd($creditRequests);\n \n \n $paginator = paginate($creditRequests, 10);\n \n return $paginator; */\n \n \n\n \n \n }", "public function corporateMyBookingsAction() {\n $commonCode = $this->commonCode();\n $countItem = $commonCode['countItem'];\n $pg_start_page = 0;\n $page = 1;\n $pg_limit_records = $commonCode['pg_limit_records'];\n $count = $commonCode['count'];\n $class=$commonCode['class'];\n $pagination= '';\n $modules = $commonCode['modules'];\n $accountId = $commonCode['accountId'];\n $userId = $commonCode['userId'];\n $parameters['accountId'] = $accountId;\n $parameters['userId'] = $userId;\n $status = $commonCode['status'];\n $this->data['preferredAccountCurrency'] = $commonCode['preferredAccountCurrency'];\n $this->data['hotelModuleId'] = $commonCode['hotelModuleId'];\n $this->data['flightModuleId'] = $commonCode['flightModuleId'];\n $this->data['dealModuleId'] = $commonCode['dealModuleId'];\n $this->data['approvedStatus'] = $commonCode['approvedStatus'];\n $this->data['accountId'] = $commonCode['accountId'];\n $this->data['modules'] = $modules;\n $params = array(\n 'accountId' => $accountId,\n 'userId' => $userId,\n 'status' => $status,\n 'start' => $pg_start_page,\n 'limit' => $pg_limit_records\n );\n $userObj = $this->get('UserServices')->getUserDetails(array('id' => $userId));\n if($userObj[0]['cu_cmsUserGroupId'] == $this->container->getParameter('ROLE_SYSTEM')){\n $this->data['role'] = $this->container->getParameter('ROLE_SYSTEM');\n }\n $allApprovalFlowList = $this->get('CorpoApprovalFlowServices')->getAllApprovalFlowList($params);\n\n $params['count']= 1;\n $countApprovalFlowList = $this->get('CorpoApprovalFlowServices')->getAllApprovalFlowList($params);\n if($countApprovalFlowList){\n $countItem = $countApprovalFlowList;\n $pagination = $this->getRelatedDiscoverPagination($countItem, $pg_limit_records, $page,$count ,$class );\n } \n $this->data['pagination'] = $pagination;\n $this->data['allApprovalFlowList'] = $allApprovalFlowList;\n \n return $this->render('@Corporate/corporate/corporate-my-bookings.twig', $this->data);\n }", "public static function getReportBillSalesMonth($company_id, $branch_id = null) {\n $bills = self::selectRaw('MONTH(sale_date) AS month, sum(total) as sum, sum(base_price_total) as base_total')\n ->where('company_id', $company_id);\n if(!empty($branch_id)) {\n $bills = $bills->where('branch_id', $branch_id);\n }\n $time_start = date('Y-01-01');\n $time_end = date('Y-12-31');\n $bills = $bills->where('status', '=', self::ACTIVE)->whereNull('deleted_at')\n ->whereBetween('sale_date', array($time_start, $time_end))\n ->groupBy(DB::raw('MONTH(sale_date)'))\n ->orderBy('sale_date','ASC')\n ->get();\n return $bills;\n }", "public function actionGetFilteredEmptyCompaniesList()\n {\n if (Yii::app()->request->isAjaxRequest && isset($_POST['companyName'])) {\n $companyName = $_POST['companyName'];\n\n $companies = Companies::getEmptyCompanies($companyName);\n\n $this->renderPartial('empty_companies_list' , array(\n 'companies' => $companies,\n ));\n }\n }", "public static function getReportBillSalesByStaff($company_id, $branch_id = null, $time_start, $time_end) {\n $bills = self::selectRaw('user_id, sum(total) as sum, sum(base_price_total) as base_total')\n ->where('company_id', $company_id);\n if(!empty($branch_id)) {\n $bills = $bills->where('branch_id', $branch_id);\n }\n $bills = $bills->where('status', '=', self::ACTIVE)->whereNull('deleted_at')\n ->whereBetween('sale_date', array($time_start, $time_end))\n ->groupBy(DB::raw('user_id'))\n ->orderBy('sum','DESC')\n ->limit(10)\n ->get();\n return $bills;\n }", "public function findAll() {\n $sql = \"select * from billets order by billet_id desc\";\n $result = $this->getDb()->fetchAll($sql);\n \n // Convert query result to an array of domain objects\n $billets = array();\n foreach ($result as $row) {\n $billetId = $row['billet_id'];\n $nbComment = $this->commentDAO->countAllByBillet($billetId);\n $billets[$billetId] = $this->buildDomainObject($row);\n $billets[$billetId]->setNbComment($nbComment);\n }\n return $billets;\n }", "function getBookingsByCustomerId($customerid) {\n $query = \"SELECT * FROM `bookings` WHERE CustomerId='\" . $customerid . \"'\";\n \n $result = Database::selectQuery($query);\n \n if($result == null) {\n return null;\n } else {\n return $result;\n }\n }", "public function bills()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = spsd_id, localKey = spsd_id)\n return $this->hasMany('App\\Bill','spsd_id','spsd_id');\n }", "public function getApproved(Filter $filter): Collection;", "public function getAllInvoicesList(InvoiceListingFilter $filter): Builder;", "public function getAvailableCompanies()\n {\n return $this->createQuery('c')\n ->select('c.*')\n ->addSelect(\n \"(SELECT ROUND(AVG(r.rating), 2)\n FROM Companies_Model_Review r\n WHERE r.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND r.company_id = c.id) as rating\"\n )\n ->addSelect(\"(SELECT COUNT(rc.id)\n FROM Companies_Model_Review rc\n WHERE rc.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND rc.company_id = c.id) as review_count\")\n ->whereIn('c.status', Companies_Model_Company::getActiveStatuses())\n ->orderBy('rating DESC')\n ->execute();\n }", "public static function getUnpaidBills(Project $project)\n {\n return BillWaterSourceDetail::selectRaw(DB::raw(\"sum(bills_water_source_details.bill) - sum(bills_water_source_details.payment) as amount, properties.name as property, CONCAT(buyers.first_name,' ',buyers.middle_name,' ',buyers.last_name) as buyer\")) \n ->leftJoin('bills_water_source','bills_water_source_details.bills_water_source_id','=','bills_water_source.id')\n ->leftJoin('projects','projects.id','=','bills_water_source.project_id')\n ->leftJoin('properties','properties.id','=','bills_water_source_details.property_id')\n ->leftJoin('buyers','buyers.id','=','properties.buyer_id')\n ->groupBy('bills_water_source_details.property_id')\n ->havingRaw('amount > 0')\n ->get(); \n }", "public function filterByBill($bill, $comparison = null)\n {\n if ($bill instanceof \\Bill) {\n return $this\n ->addUsingAlias(EmployeeTableMap::COL_ID, $bill->getEmployeeId(), $comparison);\n } elseif ($bill instanceof ObjectCollection) {\n return $this\n ->useBillQuery()\n ->filterByPrimaryKeys($bill->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByBill() only accepts arguments of type \\Bill or Collection');\n }\n }", "public function getBilling();", "public function index(Request $request)\n {\n\n $from=$request->searchFrom;\n $to=$request->searchTo;\n\n // dd($to);\n\n $distributorIDs = User::where('name', 'like', '%' . request('search') . '%')\n ->where('set_as', 0)->pluck('id')->toArray();\n \n\n $billings = Billing::with('user')->whereIn('distributor_id', $distributorIDs)\n ->when($from, function($query) use ($from) {\n $query->where('date', '>=', $from);\n })\n ->when($to, function($query) use ($to) {\n $query->where('date', '<=', $to);\n })\n ->paginate(5);\n return view('users.admin-billing', ['data' => $billings]);\n }", "public function getBankListByStatus($status){\n return $this->where('is_deleted', $status)->orderBy('created_at','desc')->get();\n }", "public function listCompanyBank(Request $request){\n $this->setPageHeader(\"List of Companie's Banks\");\n if (!$this->user->hasAccessRoute('admin.company.bank')) return view('404');\n return view('admin.company.list_bank');\n }", "public function index($bill_id)\n\t{\n\t\treturn $this->payments->get_bill_payments($bill_id);\n\t}", "private function getList()\n\t{\n\t\t// Get the correct billboards collection to display from the parameters\n\t\t$collection = (int) $this->params->get('collection', 1);\n\n\t\t// Grab all the buildboards associated with the selected collection\n\t\t// Make sure we only grab published billboards\n\t\t$rows = Billboard::whereEquals('published', 1)\n\t\t ->whereEquals('collection_id', $collection)\n\t\t ->order('ordering', 'asc')\n\t\t ->rows();\n\n\t\treturn $rows;\n\t}", "public function setBillingCompany($value)\n {\n return $this->setParameter('billingCompany', $value);\n }", "public static function getReportBillSalesByYear($company_id, $branch_id = null) {\n $bills = self::selectRaw('Year(sale_date) AS year, sum(total) as sum, sum(base_price_total) as base_total')\n ->where('company_id', $company_id);\n if(!empty($branch_id)) {\n $bills = $bills->where('branch_id', $branch_id);\n }\n $bills = $bills->where('status', '=', self::ACTIVE)->whereNull('deleted_at')\n ->groupBy(DB::raw('Year(sale_date)'))\n ->orderBy('sale_date','DESC')\n ->get();\n return $bills;\n }", "public function allCompanies()\n {\n\n $companies = $this->core_companies;\n\n $items = [];\n foreach ($companies as $company) {\n\n $companyItem = new CompanyCardItem();\n $companyItem->id = $company->id;\n $companyItem->name = $company->name;\n //$companyItem->amount = $catalog->amount;\n $companyItem->title = $company->title;\n if (\\Dash\\count($company->photo))\n $companyItem->image = '/uploaz/eyuf/UserCompany/photo/' . $company->id . '/' . $company->photo[0];\n $companyItem->url = ZUrl::to([\n 'customer/markets/show',\n 'id' => $company->id\n ]);\n $companyItem->distence = \"12km\";\n //$companyItem->image = $catalog->price;\n //$companyItem->price = $catalog->price_old;\n //$companyItem->currency = \"$\";\n //$companyItem->cart_amount = 0;\n\n $items[] = $companyItem;\n }\n return $items;\n }", "public function index()\n {\n return Company::paginate(10);\n }", "function get_bookings( $all_bookings = false ){\n\t\t$confirmed = array();\n\t\tforeach ( $this->load() as $EM_Booking ){\n\t\t\tif( $EM_Booking->booking_status == 1 || (get_option('dbem_bookings_approval') == 0 && $EM_Booking->booking_status == 0) || $all_bookings ){\n\t\t\t\t$confirmed[] = $EM_Booking;\n\t\t\t}\n\t\t}\n\t\t$EM_Bookings = new EM_Bookings($confirmed);\n\t\treturn $EM_Bookings;\t\t\n\t}", "public static function fetch_all_in_a_list()\n\t{\n\t return Company::orderBy( 'name' )->lists( 'name' , 'id' );\n\n\t}", "function get_all_brands() {\n $this->db->order_by('name', 'asc');\n return $this->db->get('brands')->result_array();\n }", "public function all(): array\n {\n return Billingo::get('bank_accounts');\n }", "public function getBookingsByDate(Request $request)\n {\n $booking_obj = new Booking();\n return $booking_obj->getFutureBookingsByServiceAndDate($request->sv_id, $request->start, $request->end);\n }", "public function pay_bill_get(){\r\n if (!$this->pronet_model->pay_bill(1, '882332411098', '4999999999999999', '4521','12','2022')) {\r\n $response = $this->pronet_model->get_response();\r\n $this->response([\r\n 'status' => FALSE,\r\n 'message' => $response['ResponseMessage'],\r\n 'response_code' => $response['ResponseCode']\r\n ], REST_Controller::HTTP_BAD_REQUEST);\r\n } else {\r\n $response = $this->pronet_model->get_response();\r\n $this->response([\r\n 'status' => TRUE,\r\n 'message' => $response['ResponseMessage'],\r\n 'response_code' => $response['ResponseCode']\r\n ], REST_Controller::HTTP_OK);\r\n }\r\n }", "public function index(Request $request)\n {\n $payment = Payment::with('user','billType');\n if ($request->account_number) {\n $payment->where('bill_account_number', 'like', '%'.$request->account_number.'%');\n }\n if ($request->bill_type) {\n $payment->whereHas('billType', function ($query) use ($request){\n $query->where('name', 'like', '%'.$request->bill_type.'%');\n });\n }\n if ($request->merchant_name) {\n $payment->whereHas('user', function ($query) use ($request){\n $query->where('firstname', 'like', '%'.$request->merchant_name.'%');\n });\n }\n if ($request->customer_name) {\n $payment->where('customer_name', 'like', '%'.$request->customer_name.'%');\n }\n $payments = $payment->paginate(5);\n return view('bill.index', ['payments' => $payments, \n 'account_number' => $request->account_number, \n 'bill_type' => $request->bill_type, \n 'merchant_name' => $request->merchant_name, \n 'customer_name' => $request->customer_name]);\n }", "function getCompanyFilter() {\n return $this->getAdditionalProperty('company_filter', self::CLIENT_FILTER_ANYBODY);\n }", "public function filter(BrochureFilterRequest $request)\n {\n $input = $request->all();\n $sort_type = 'DESC';\n if ($request->has('sort_type') && $input['sort_type'] === 'a') {\n $sort_type = 'ASC';\n }\n\n $brochures = Brochure::active();\n if ($request->has('user_id')) {\n $brochures->where('provider_id', $input['user_id']);\n }\n\n return new BrochureCollection(\n $brochures->orderBy(\"created_at\", $sort_type)\n ->paginate(10)\n );\n\n }", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n return Company::all();\n }", "public static function getUnpaidBills(Project $project)\n {\n return BillElectricitySourceDetail::selectRaw(DB::raw(\"sum(bills_electricity_source_details.bill) - sum(bills_electricity_source_details.payment) as amount, properties.name as property, CONCAT(buyers.first_name,' ',buyers.middle_name,' ',buyers.last_name) as buyer\")) \n ->leftJoin('bills_electricity_source','bills_electricity_source_details.bills_electricity_source_id','=','bills_electricity_source.id')\n ->leftJoin('projects','projects.id','=','bills_electricity_source.project_id')\n ->leftJoin('properties','properties.id','=','bills_electricity_source_details.property_id')\n ->leftJoin('buyers','buyers.id','=','properties.buyer_id')\n ->groupBy('bills_electricity_source_details.property_id')\n ->havingRaw('amount > 0')\n ->get(); \n }", "public function index(Request $request)\n {\n if($request->seller_id && $request->customer_id){\n $bills=DB::table('bills')->join('inks','bills.ink_id','=','inks.ink_id')\n ->join('customers','bills.customer_id','=','customers.customer_id')\n ->join('sellers','bills.seller_id','=','sellers.seller_id')\n ->where('bills.seller_id','=',$request->seller_id)\n ->where('bills.customer_id','=',$request->customer_id)\n ->get();\n }\n else if($request->seller_id){\n $bills=DB::table('bills')->join('inks','bills.ink_id','=','inks.ink_id')\n ->join('customers','bills.customer_id','=','customers.customer_id')\n ->join('sellers','bills.seller_id','=','sellers.seller_id')\n ->where('bills.seller_id','=',$request->seller_id)\n ->get();\n }else if($request->customer_id){\n $bills=DB::table('bills')->join('inks','bills.ink_id','=','inks.ink_id')\n ->join('customers','bills.customer_id','=','customers.customer_id')\n ->join('sellers','bills.seller_id','=','sellers.seller_id')\n ->where('bills.customer_id','=',$request->customer_id)\n ->get();\n }else{\n $bills=DB::table('bills')->join('inks','bills.ink_id','=','inks.ink_id')\n ->join('customers','bills.customer_id','=','customers.customer_id')\n ->join('sellers','bills.seller_id','=','sellers.seller_id')\n ->get();\n }\n\n\n\n return new BillResource($bills);\n }", "public function getBudgetHeads($conditions='') {\n \n $query = \"SELECT \n * \n FROM \n budget_heads\n $conditions\";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "public function UserBilling(){\n\n $billings = Billing::with('user')\n ->where('distributor_id', Auth::user()->id)\n ->paginate(4);\n return view('users.billing', ['data' => $billings]);\n\n }", "function listBillets(){ \n\t\t$billets = array();\n\n\t\t$bdd = new PDO('mysql:host=localhost;dbname=test;charset=utf8','root','',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n\t\t$req = $bdd->query('SELECT * FROM billets ORDER BY date_creation DESC LIMIT 5');\n\t\t\n\t\twhile($billet = $req->fetch(PDO::FETCH_ASSOC)){\n\t\t\t$billets[] = $billet;\n\t\t}\n\t\t\n\t\treturn $billets ;\n\t}", "public function index()\n {\n if (! Gate::allows('bill_access')) {\n return abort(401);\n }\n\n $user = Auth::user();\n if ($user->isAdmin()){\n $bills = Bill::all();\n }\n\n if ($user->isLandlord()){\n $house = House::where('landlord_id', $user->id)->pluck('id');\n $bills = Bill::whereIn('house_id', $house)->get();\n }\n\n if ($user->isTenant()){\n $house = House::where('tenant_id', $user->id)->pluck('id');\n\n $bills = Bill::where('house_id', $house)->get();\n }\n\n\n return view('admin.bills.index', compact('bills'));\n }", "public function getConsultantBookings($consultantId)\n {\n $this->logger->info(\"get all active consultant bookings\");\n\n return $this->em->getRepository(\"SkedAppCoreBundle:Booking\")\n ->getAllConsultantBookings($consultantId);\n }", "public function getBanks()\n {\n return $this->hasMany(Bank::className(), ['gl_account_id' => 'account_id']);\n }", "function supplier_get_all_bookings_limit($myitems, $perpage = null, $page = null, $orderby = null)\n {\n $offset = null;\n if ($page != null) {\n $offset = ($page == 1) ? 0 : ($page * $perpage) - $perpage;\n }\n\n $this->db->select('pt_bookings.booking_user,pt_bookings.booking_cancellation_request,pt_bookings.booking_id,pt_bookings.booking_type,pt_bookings.booking_expiry,pt_bookings.booking_ref_no,\n pt_bookings.booking_status,pt_bookings.booking_item,pt_bookings.booking_item_title,\n booking_total,pt_bookings.booking_deposit,pt_bookings.booking_date,pt_accounts.ai_first_name,pt_accounts.ai_last_name,pt_accounts.accounts_email');\n if (!empty ($myitems)) {\n $this->db->where_in('pt_bookings.booking_item', $myitems);\n } else {\n $this->db->where('pt_bookings.booking_item', 0);\n }\n $this->db->join('pt_accounts', 'pt_bookings.booking_user = pt_accounts.accounts_id', 'left');\n $this->db->order_by('pt_bookings.booking_id', 'desc');\n $query = $this->db->get('pt_bookings', $perpage, $offset);\n $data['all'] = $query->result();\n $data['nums'] = $query->num_rows();\n return $data;\n }" ]
[ "0.71305776", "0.65136105", "0.61629456", "0.61071646", "0.6101719", "0.5972914", "0.5969841", "0.5923577", "0.58913356", "0.5872776", "0.58487344", "0.58283657", "0.57602173", "0.57503307", "0.55982226", "0.55793315", "0.5564691", "0.5559925", "0.5559049", "0.55503607", "0.5545811", "0.55343145", "0.551965", "0.55139786", "0.5494404", "0.54846394", "0.548233", "0.54522175", "0.54407287", "0.5437619", "0.5430164", "0.542843", "0.5419407", "0.5412148", "0.53976107", "0.53955436", "0.5389312", "0.5376912", "0.53680366", "0.5366814", "0.53655237", "0.5362289", "0.5361866", "0.53595775", "0.53506523", "0.53469664", "0.534469", "0.53428", "0.53302854", "0.53218925", "0.53212667", "0.5299375", "0.528666", "0.5278779", "0.5266793", "0.5261371", "0.52604866", "0.5257519", "0.52356714", "0.5231868", "0.5230435", "0.5227273", "0.5217131", "0.5215268", "0.5198404", "0.51964265", "0.5182737", "0.51740885", "0.51698536", "0.5167407", "0.51657456", "0.51622593", "0.5159588", "0.5151807", "0.5149098", "0.5140836", "0.51369065", "0.5134282", "0.5132744", "0.512839", "0.51268005", "0.5125421", "0.5117095", "0.5114098", "0.5112557", "0.5101779", "0.5093446", "0.5091157", "0.5085582", "0.50817096", "0.50817096", "0.5081658", "0.5080882", "0.5080517", "0.507635", "0.5071399", "0.5067578", "0.50662076", "0.5061304", "0.5041767" ]
0.7499952
0
get all costcenters assigned to company
получить все costcenters, назначенные компании
public function getCostcenters() { return $this->getDepartments(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allCompanies()\n {\n\n $companies = $this->core_companies;\n\n $items = [];\n foreach ($companies as $company) {\n\n $companyItem = new CompanyCardItem();\n $companyItem->id = $company->id;\n $companyItem->name = $company->name;\n //$companyItem->amount = $catalog->amount;\n $companyItem->title = $company->title;\n if (\\Dash\\count($company->photo))\n $companyItem->image = '/uploaz/eyuf/UserCompany/photo/' . $company->id . '/' . $company->photo[0];\n $companyItem->url = ZUrl::to([\n 'customer/markets/show',\n 'id' => $company->id\n ]);\n $companyItem->distence = \"12km\";\n //$companyItem->image = $catalog->price;\n //$companyItem->price = $catalog->price_old;\n //$companyItem->currency = \"$\";\n //$companyItem->cart_amount = 0;\n\n $items[] = $companyItem;\n }\n return $items;\n }", "public function getAllForCustonObj() {\n $query = $this->db->query(\"SELECT * FROM $this->table ORDER BY shortname;\");\n $this->allcpny = $query->custom_result_object('entity\\Company');\n // print \"<pre>\";\n // print_r($this->cpny);\n // print \"</pre>\";\n // exit();\n return $this->allcpny;\n }", "function Companies(){\n\t\t\t\treturn $this->companies;\n\t\t\t}", "public function costCenterAllocated($years)\n {\n $entityManager = $this->getEntityManager();\n\n // Get the current open year\n $year = $years->findOneBy(['is_open' => true, 'is_current' => true]);\n\n $dql = 'SELECT c \n FROM App\\Entity\\CostCenter c, App\\Entity\\ParamCostCenter p \n WHERE c.id = p.costcenter AND p.year = ' . $year;\n $query = $entityManager->createQuery($dql);\n var_dump($query->execute());\n die;\n return $query->execute();\n }", "public function allCompanies()\n {\n return Company::all();\n }", "public function companies(): Collection\n {\n return Company::all();\n }", "public function listarCentro()\r\n {\r\n $sql = \"SELECT * FROM Centro\";\r\n $resultado = $this-> conex-> consultaRetorno($sql);\r\n return $resultado;\r\n }", "public function get_centroCosto(){\n\t\t\t\n\t\t\ttry { \n\t\t\t\tglobal $conn;\n\t\t\t\t$sql=\"SELECT distinct AREA.COD_CC2, AREA.NOM_CC2 \n\t\t\t\t\t\tFROM CENTROCOSTO2 AREA, EMPLEADOS_BASIC EPL, EMPLEADOS_GRAL GRAL\n\t\t\t\t\t\tWHERE EPL.COD_EPL = GRAL.COD_EPL\n\t\t\t\t\t\tAND EPL.COD_CC2=AREA.COD_CC2\n\t\t\t\t\t\tand AREA.estado='A'\n\t\t\t\t\t\tand EPL.estado='A'\n\t\t\t\t\t\torder by nom_cc2 asc\n\t\t\t\t\t\t\";\n\t\t\t\t\t\t\n\t\t\t\t$rs=$conn->Execute($sql);\n\t\t\t\twhile($fila=$rs->FetchRow()){\n\t\t\t\t\t$this->lista[]=array(\"codigo\" => $fila[\"COD_CC2\"],\n\t\t\t\t\t\t\t\t\t\t \"area\"\t => utf8_encode($fila[\"NOM_CC2\"]));\n\t\t\t\t}\n\t\t\t\n\t\t\t\treturn $this->lista;\n\t\t\t\t\n\t\t\t}catch (exception $e) { \n\n\t\t\t var_dump($e); \n\n\t\t\t adodb_backtrace($e->gettrace());\n\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t}", "public function scopeCostCenters($query)\n\t{\n\t\treturn $query->where('cost_center', 1);\n\t}", "public function getSalesCenterAndCommodity(Request $request) {\n $client = Client::find($request->client_id);\n if (!empty($client)) {\n /* check user access level */\n if(Auth::check() && Auth::user()->hasAccessLevels('salescenter')) {\n $salesCenters = getAllSalesCenter();\n } else {\n $salesCenters = $client->salesCenters()->orderBy('name')->get();\n }\n $commodity = $client->commodity()->orderBy('name')->get();\n\n return response()->json([\n \"status\" => true,\n \"data\" => [\n 'sales_centers' => $salesCenters,\n 'commodity' => $commodity\n ]\n ]);\n } else {\n $salesCenters = getAllSalesCenter();\n $commodity = Commodity::orderBy('name')->get();\n return response()->json([\n\n \"status\" => true,\n \"data\" => [\n 'sales_centers' => $salesCenters,\n 'commodity' => $commodity\n ]\n ]);\n }\n }", "public function get_cargosCentroCosto($centro_costo,$cargos){\n\t\t\t\n\t\t\t\n\t\t\ttry { \n\t\t\t\tglobal $conn;\n\t\t\t\t$sql=\"select cod_epl, rtrim(nom_epl)+' '+rtrim(ape_epl) as nombres from empleados_basic where cod_car='\".$cargos.\"' and cod_cc2 ='\".$centro_costo.\"' and estado='A'\";\n\n\t\t\t\t\n\t\t\t\t$rs=$conn->Execute($sql);\n\t\t\t\twhile($fila=$rs->FetchRow()){\n\t\t\t\t\t$this->lista[]=array(\"codigo\" => $fila[\"cod_epl\"],\n\t\t\t\t\t\t\t\t\t\t \"nombres\"=> utf8_encode($fila[\"nombres\"]));\n\t\t\t\t}\n\t\t\t\n\t\t\t\treturn $this->lista;\n\t\t\t\t\n\t\t\t}catch (exception $e) { \n\n\t\t\t var_dump($e); \n\n\t\t\t adodb_backtrace($e->gettrace());\n\n\t\t\t} \n\t\t}", "public function getAvailableCompanies()\n {\n return $this->createQuery('c')\n ->select('c.*')\n ->addSelect(\n \"(SELECT ROUND(AVG(r.rating), 2)\n FROM Companies_Model_Review r\n WHERE r.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND r.company_id = c.id) as rating\"\n )\n ->addSelect(\"(SELECT COUNT(rc.id)\n FROM Companies_Model_Review rc\n WHERE rc.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND rc.company_id = c.id) as review_count\")\n ->whereIn('c.status', Companies_Model_Company::getActiveStatuses())\n ->orderBy('rating DESC')\n ->execute();\n }", "public function getOriginCompanies () {\n $corp = $this->perteneceCorporacion();\n\n if ($corp) {\n return new ArrayObjectList([$corp, $this]);\n }\n\n return new ArrayObjectList([$this]);\n }", "public function getCompany();", "public function getCompanyWithUsers();", "public function getContracts()\n {\n return $this->hasMany(Contracts::className(), ['company_id' => 'id']);\n }", "public static function all() {\n\n $db = Zend_Registry::get('dbAdapter');\n $result = $db->query('select id from companys')->fetchAll();\n $companys = new SplObjectStorage();\n foreach ($result as $c) {\n try {\n $company = new Yourdelivery_Model_Company($c['id']);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $companys->attach($company);\n }\n return $companys;\n }", "public function testGetCentersList()\n {\n if ($this->only_priority_tests) {\n $this->markTestSkipped(\"Running only priority tests.\");\n }\n\n $this->load('/centers?city_id=1');\n $data = json_decode($this->response->getContent());\n\n $this->assertEquals($data->status, 'success');\n $search_for = 'Ashadeep';\n $found = false;\n foreach ($data->data->centers as $key => $info) {\n if ($info->name == $search_for) {\n $found = true;\n break;\n }\n }\n $this->assertTrue($found);\n $this->assertEquals(count($data->data->centers), 8);\n $this->response->assertStatus(200);\n }", "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "public function sitemapCompanies(){\n $links = array();\n $models = ORM::factory('CatalogCompany')->where('enable','=','1')->find_all();\n foreach($models as $model)\n $links[] = $model->getUri();\n return $links;\n }", "public function getFreeCompanies() { return $this->FreeCompanies; }", "public function getCompany() {}", "public function getEmployeesByCostCenter($costCenter) {\n\t\t$em = $this->getEntityManager();\n\t\t$employees = $em->getRepository('Employee')->findByCostCenter($costCenter);\n\t\t\n\t\tforeach ($employees as &$employee) {\n\t\t\t$metaData = $em->getRepository('MetaData')->findBy(array(\n\t\t\t\t'type' => 'employee',\n\t\t\t\t'typeID' => $employee->getEmployeeID()\n\t\t\t), array(\n\t\t\t\t'valueOrder' => 'ASC'\n\t\t\t));\n\t\t\t$employee->meta_data = $metaData;\n\t\t}\n\t\t\n\t\treturn $this->respond($employees);\n\t}", "public function getCompanyEmployees();", "public static function getEnterpriseCompanies(){\n $result = db::get(\"SELECT uid_empresa FROM \". TABLE_EMPRESA .\" WHERE is_enterprise = 1 ORDER BY nombre\", \"*\", 0, \"empresa\");\n return new ArrayObjectList($result);\n }", "public function getCompaniesCrmSearchUrl()\n {\n $type = 'company' ;\n return $this->getEntitiesCrmSearchUrl( $type ) ;\n }", "public function getCompanies($document)\n {\n $docs = $this->clienteRepository->getCompanies($document);\n\n return $this->ok($docs);\n }", "public function obtenerCentroCotizacions($count = false){\n if( $count ){\n $sql = \"SELECT count(uid_elemento) FROM \". TABLE_CENTRO_COTIZACION .\" WHERE uid_elemento = {$this->getUID()} AND uid_modulo = {$this->getModuleId()}\";\n return $this->db->query($sql, 0, 0);\n } else {\n $sql = \"SELECT uid_centrocotizacion FROM \". TABLE_CENTRO_COTIZACION .\" WHERE uid_elemento = {$this->getUID()} AND uid_modulo = {$this->getModuleId()}\";\n $items = $this->db->query($sql, \"*\", 0, \"centrocotizacion\");\n return new ArrayObjectList($items);\n }\n }", "function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}", "function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}", "public function getAllCompanies(){\n\t\t$path=\"../db/data.json\";\n\t\t$file=$this->getData($path);\n\t\n\t\t$arrayFile = json_decode($file, true);\n\t\n\t\treturn $arrayFile['companies'];\n\t}", "public function getCompaniesReport() : CompaniesReport\n\t{\n\t\t$response = $this->execute('Empresa');\n\t\t\n\t\t$companiesByArea = [];\n\t\tforeach($response['e'] as $areaPool){\n\t\t\t$i = $areaPool['a'];\n\t\t\tforeach($areaPool['e'] as $company){\n\t\t\t\t$companiesByArea[$i][]=new Company(\n\t\t\t\t\t$company['a'],\n\t\t\t\t\t$company['c'],\n\t\t\t\t\t$company['n']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn new CompaniesReport($response['hr'],$companiesByArea);\n\t}", "public function getCoCentroDato()\n\t{\n\t\treturn $this->co_centro_dato;\n\t}", "public function getOwnerCompanies () {\n\t\t\tif (count($this) === 0) return new ArrayObjectList;\n\n\t\t\t$db \t\t= db::singleton();\n\t\t\t$table \t\t= TABLE_DOCUMENTOS_ELEMENTOS . \" INNER JOIN \". TABLE_DOCUMENTO_ATRIBUTO . \" USING (uid_documento_atributo)\";\n\t\t\t$set \t\t= $this->toComaList();\n\t\t\t$SQL \t\t= \"SELECT uid_empresa_propietaria FROM {$table} WHERE uid_documento_elemento IN ({$set}) GROUP BY uid_empresa_propietaria\";\n\t\t\t$collection\t= $db->query($SQL, '*', 0, \"empresa\");\n\n\n\t\t\treturn new ArrayObjectList($collection);\n\t\t}", "public function return_islamic_centers_for_Rating(){\n return IslamicCenter::return_islamic_centers_for_Rating();\n }", "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 function initGearCompanyInfos()\n\t{\n\t\t$this->collGearCompanyInfos = array();\n\t}", "public function get_cargos($centro_costo){\n\t\t\t\n\t\t\t\n\t\t\ttry { \n\t\t\t\tglobal $conn;\n\t\t\t\t$sql=\"SELECT distinct c.cod_car, C.NOM_CAR \n\t\t\t\t\t FROM CARGOS C, CENTROCOSTO2 AREA, EMPLEADOS_BASIC EPL\n\t\t\t\t\t\tWHERE \n\t\t\t\t\t EPL.COD_CC2='\".$centro_costo.\"'\n\t\t\t\t\t\tAND EPL.COD_CAR=C.COD_CAR\n\t\t\t\t\t\torder by nom_car asc\n\t\t\t\t\t\t\";\n\t\t\t\t\t\t\n\t\t\t\t$rs=$conn->Execute($sql);\n\t\t\t\twhile($fila=$rs->FetchRow()){\n\t\t\t\t\t$this->lista[]=array(\"codigo\" => $fila[\"cod_car\"],\n\t\t\t\t\t\t\t\t\t\t \"cargos\"=> utf8_encode($fila[\"NOM_CAR\"]));\n\t\t\t\t}\n\t\t\t\n\t\t\t\treturn $this->lista;\n\t\t\t\t\n\t\t\t}catch (exception $e) { \n\n\t\t\t var_dump($e); \n\n\t\t\t adodb_backtrace($e->gettrace());\n\n\t\t\t} \n\t\t\n\t\t}", "function GetCompanies()\n{\n\t$CompArr=array();\n\t$Query = \"SELECT * FROM \".PFX.\"_tracker_client ORDER BY NAME ASC\";\n\t$Sql = new Query($Query);\n\twhile ($Row=$Sql->Row()) {\n\t\t$CompArr[$Sql->Position]['Name']=htmlspecialchars(stripslashes($Row->NAME));\n\t\t$CompArr[$Sql->Position]['Value']=$Row->ID;\n\t}\n\treturn $CompArr;\n}", "public function centres()\n {\n return $this->hasMany(Centre::class);\n }", "public function findCompanies(){\n $data = SCompany::select('id_company', 'name')\n ->get();\n return response()->json($data);\n }", "public static function getAvailableContractors(): array\n {\n $contractorsQuery = ContractorOccupation::find()->select('DISTINCT(contractor_id)');\n\n return self::find()\n ->select('*')\n ->addSelect([\n 'COUNT(task.contractor_id) AS doneTaskCount',\n 'COUNT(review.task_id) AS reviewCount',\n 'AVG(review.rating) AS rating'\n ])\n ->rightJoin(['occupation' => $contractorsQuery], 'user.id = occupation.contractor_id')\n ->leftJoin('task', 'task.contractor_id = user.id')\n ->leftJoin('review', 'task.id = review.task_id')\n\n ->andWhere(['task.state_id' => Task::STATE_DONE])\n ->andWhere(['user.hide_profile' => false])\n ->groupBy('user.id')\n ->orderBy('user.datetime_created ASC')\n ->all();\n }", "public function company()\n {\n return $this->business();\n }", "public function getCentros($provincia_id = 19, $departamento = false, $localidad = false) {\n\t //si departamento o localidad tienen valores, traigo los centros usando esos filtros\n\t $new_centros = array();\n $centros = $this->Centro->getCentrosLocation($provincia_id = 19, $departamento, $localidad);\n\t\tif (!empty($centros)) {\n\t \t foreach ($centros as $centro) {\n\t \t \t$new_centros[$centro[\"Centro\"][\"id\"]] = $centro[\"Centro\"][\"nombre\"];\n\t \t}\t\n \t $centros = $new_centros;\n\t\t};\n\t\t\n\t\t$this->set(compact(\"centros\"));\t\n\t\t\n }", "public function getAllCompanyAccounts()\n { \n // select all fields and columns form the 'companies' table and return is as an array of objects\n $companies = Company::all();\n\n // if the length of array of company objects is greater than 0 (contains elements)\n if (count($companies) > 0) {\n // loop through each company, get the token from the 'company_activation_codes' table and update the object\n foreach ($companies as $key => $value) {\n $token = CompanyActivationCode::where('company_id', $value['id'])->first()->activation_code;\n $value['token'] = $token;\n $companies[$key] = $value;\n }\n }\n \n // send a response to the requester of the data\n $response_message = array('success' => true, 'message' => 'Data fetched', 'data' => $companies);\n return response()->json($response_message);\n }", "public static function getAllGroupCompanies($ccgr_id) {\n $sql = \"\n SELECT \n ccmp_id,\n ccmp_name \n FROM\n ccxg_company_x_group \n INNER JOIN ccmp_company \n ON ccxg_ccmp_id = ccmp_id \n WHERE ccxg_ccgr_id = :ccgr_id\n ORDER BY ccmp_name\n \";\n return Yii::app()->db\n ->createCommand($sql)\n ->bindParam(\":ccgr_id\", $ccgr_id, PDO::PARAM_INT)\n ->queryAll();\n }", "public function companylist() {\r\n $companies = $this->model->getCompanies();\r\n return $this->view('company/companylist', $companies);\r\n }", "public function scopeFindByCostCenter($query, $c)\n {\n $struct = SAP\\StructDisp::selfStruct()\n ->costCenterOf($c)\n ->get();\n\n $struct->each(function ($item, $key) {\n\n // mencari di Employee\n $employee = Employee::where('personnel_no', $item->empnik)\n ->first();\n\n // jika tidak ditemukan di Employee buat baru\n if (is_null($employee)) {\n $employee = new Employee();\n $employee->personnel_no = $item->empnik;\n }\n\n // buat baru / update perubahan employee\n $employee->name = $item->empname;\n $employee->esgrp = $item->emppersk;\n $employee->cost_ctr = $item->empkostl;\n $employee->position_name = $item->emppostx;\n $employee->org_unit_name = $item->emportx;\n $employee->save();\n });\n\n // kembalikan data Employee berdasarkan pencarian (terbaru)\n return $query->where('cost_ctr', $c);\n }", "function getConveyancingCompanies(){\n \n $conveyancingCompanies = array();\n \n $conveyancingLeadTypeCatIds = unserialize(CONVEYANCING_LEAD_TYPE_CATEGORY_IDS);\n foreach($conveyancingLeadTypeCatIds as $id){\n \n $leadTypeCat = new Models_LeadTypeCategory($id);\n $companies = $leadTypeCat->getCompanies();\n \n foreach($companies as $company){\n $conveyancingCompanies[$company[\"id\"]] = trim($company[\"companyName\"]);\n }\n }\n \n natcasesort($conveyancingCompanies);\n \n return $conveyancingCompanies;\n}", "public function getContractorOccupations()\n {\n return $this->hasMany(ContractorOccupation::className(), ['contractor_id' => 'id']);\n }", "function get_companies_list() {\n return get_view_data('org_list');\n}", "public function companies()\n {\n return $this->belongsToMany('Villato\\Company', 'company_region_product', 'product_id', 'company_id');\n }", "public function index()\n {\n $centers = Center::query()->with('city')->get();\n return view('cms.center.index', compact('centers'));\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 fn_GetInsuranceCalculationCompanies(){\n\t\t\t$params = $this->params;\n\t\t\t$wsdl \t= $this->wsdl;\n\t\t\t$responce = \"\";\n\t\t\ttry{\n\t\t\t\t$soap = new SoapClient($wsdl, $params);\n\t\t\t\t$responce = $soap->GetInsuranceCalculationCompanies();\n\t\t\t} \n\t\t\tcatch (SoapFault $e) {\n\t\t\t\t//$responce = \"\";\n\t\t\t \t//$responce = 'Caught exception:'.$e->getMessage().\"\\n\";\n\t\t\t \t\n\t\t\t \t$responce['faultcode'] \t\t= $e->faultcode;\n\t\t\t $responce['faultstring'] \t= $e->faultstring;\n\t\t\t $responce['faultactor'] \t= $e->faultactor;\n\t\t\t $responce['faultname'] \t\t= $e->faultname;\n\t\t\t $responce['headerfault'] \t= $e->headerfault;\n\t\t\t}\n\t\t\treturn $responce;\n\t\t}", "public function clients() {\n\t\treturn $this->clients_model->getClients($this->compID);\n\t}", "public function getAddresses() {\n $table = new Yourdelivery_Model_DbTable_Locations();\n return $table->fetchAll('companyId = ' . $this->getId());\n }", "public function testGetAllCompanies()\n {\n $response = $this->get('/api/v1/company');\n\n $response->assertStatus(200);\n }", "public function getallCreditCustomers() \n\t{ \n\t $cid = $this->gasolinereceived_model->getCompanyId();\n\t\t $cid1 = $cid['0']->c_id;\n\t\t \n\t\t $this->db->where('c_id',$cid1);\n\t\t \n\t\t $this->db->order_by('date_created','DESC');\n\t\t $query = $this->db->get('credit_customer')->result();\n\t $q=$this->db->last_query($query );\n\t\t// print_r($q); die('err');\n\t return $query;\n\t \n\t}", "public function testCanGetDatacenters(): void\n {\n $client = new CatalogClient(ConsulManager::testConfig());\n\n [$dcs, $err] = $client->Datacenters();\n\n try {\n self::assertNull($err, 'CatalogClient::datacenters returned error: ' . $err);\n self::assertIsArray($dcs);\n self::assertCount(1, $dcs);\n self::assertSame('dc1', $dcs[0]);\n } catch (AssertionFailedError $e) {\n \\var_dump($dcs);\n throw $e;\n }\n }", "public function getCoCNES()\n {\n return isset($this->coCNES) ? $this->coCNES : null;\n }", "function select_all_company() {\n\t\t$qury=\"SELECT * FROM company\";\n\t\t$requet=mysqli_query($link,$qury);\n\t\t\n\t\twhile($res=mysqli_fetch_assoc($requet)) {\n\t\t\t$data[]=$res;\n\t\t}\n\t\treturn $data;\n\t}", "public function company(Request $request)\n {\n $company_customer = Company::find($request->id);\n return response()->json($company_customer);\n }", "public function listAllCustomers();", "public static function getAllCentre_id() {\n try {\n $database = Model::getInstance();\n $query = \"select centre_id from stock\";\n $statement = $database->prepare($query);\n $statement->execute();\n $results = $statement->fetchAll(PDO::FETCH_COLUMN, 0);\n return $results;\n } catch (PDOException $e) {\n printf(\"%s - %s<p/>\\n\", $e->getCode(), $e->getMessage());\n return NULL;\n }\n }", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n return Company::all();\n }", "public function exam_centers() {\n $center = Exam_centers::all();\n $data['center'] = $center;\n return view('admin.exam_centres', $data);\n }", "public function getAllClient() {\n $qb = $this ->createQueryBuilder('p')\n ->select('p')\n ->where('p.estEmploye = 0')\n ->orderBy('p.nom');\n return $qb->getQuery()->getResult();\n }", "public function getCentresCount()\n {\n return $this->manager->createQuery('SELECT COUNT(c) FROM App\\Entity\\CentreEtatCivil c')\n ->getSingleScalarResult();\n }", "public function all()\n\t{\t\n\t\t$counts = $this->contact_model->get_conatct_counts();\n\t\t$this->load->library('pagination');\n\t\t$config['base_url'] = base_url().'/Company/index';\n\t\t$config['total_rows'] = $counts;\n\t\t$this->pagination->initialize($config);\n\t\t\n\t\t$contacts = $this->contact_model->get_all_conatct();\n\t\t\n\t\t$response = array('total' => $counts,\n\t\t\t\t\t\t'contacts' => $contacts);\n\t\techo json_encode($response);\n\t}", "public function getCreditmemoWarehouseList();", "public function buildDefaultCostTables() {\n\t\t// Get services table data\n\t\t$service_list = new ServicesInfo;\n\t\t$service_list = $service_list->getServicesTableData($id_list = NULL); // Note that the sizeof($service_data) == 8\n\t\t$cost_table_array = array();\n\t\tforeach ($service_list as $value) {\n\t\t\t$cost_table_array[$value['svc_name']][] = array('svc_id' => $value['svc_id'], 'svc_name' => '', 'cost_desc' => '', 'cost_code' => '', 'cost_ro_count' => '', 'cost_parts_sale' => '', 'cost_parts_cost' => '', 'cost_labor_sale' => '');\n\t\t}\n\t\treturn $cost_table_array;\n\t}", "public function get_customers_for_dropdown($company){\r\n\t\theader(\"Access-Control-Allow-Origin: \". base_url());\r\n\t\terror_log(\"get_customers_for_dropdown($company)\");\r\n\r\n\t\t$cid = intval($company);\r\n\t\tif($cid>0){\r\n\t\t\t$cs = $this->customer_model->get_companys_customers($cid);\r\n\t\t}\r\n\t\telse if($cid == 0){\r\n\t\t\t$cs = $this->customer_model->get_customers();\r\n\t\t}\r\n\t\telse{\r\n\t\t\techo \"0\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$data = array();\r\n\t\tforeach($cs as $c){\r\n\t\t\t$id = $c[\"id\"];\r\n\t\t\t$name = $c[\"namn\"];\r\n\t\t\t$data[] = array($id => $name);\r\n\t\t}\r\n\t\terror_log(print_r($data, true));\r\n\t\techo json_encode($data);\r\n\t}", "public function companyOfUser(){\n\n $company = Auth::user()->companies;\n $location = Location::where('id', Auth::user()->company_location)->get();\n \n foreach($company as $c){\n $c['locations'] = $location;\n }\n\n return $company;\n }", "public function getCompany() : \\App\\Domain\\Model\\Company\n {\n return $this->getRef('from__company_id__to__table__companies__columns__id', 'products');\n }", "public function getContractors()\n {\n return $this->hasMany(User::className(), ['id' => 'contractor_id'])->viaTable('favorite_contractor', ['customer_id' => 'id']);\n }", "public function company()\n {\n return $this->hasMany('\\App\\Company', 'id_plan');\n }", "public function getlatestCompanies()\n {\n $AdminDashboardModel = $this->model('AdminDashboardModel');\n $this->latestCompanies = $AdminDashboardModel->getLatestCompanies();\n }", "public function getCustomers()\n {\n return $this->hasMany(Customer::className(), ['currency_id' => 'currency_id']);\n }", "public function listallAction(Request $request)\n {\n if (! $request->isXmlHttpRequest()) {\n throw new NotFoundHttpException();\n }\n\t\n $em = $this->getDoctrine()->getManager();\n $maincompany = $this->getUser()->getMaincompany();\n $entities = $em->getRepository('NvCargaBundle:Customer')->findBy(['maincompany'=>$maincompany,'active'=>true]);\n \n $result=array();\n $counter = 0;\n foreach ($entities as $entity) {\n foreach ($entity->getBaddress() as $dir ) {\n $city = $dir->getCity();\n if ($city) { \n $result[$counter]['name'] = $dir->getName();\n $result[$counter]['lastname'] = $dir->getLastname();\n if ($dir->getCustomer()->getPobox()) {\n $result[$counter]['pobox'] = $dir->getCustomer()->getPobox()->getNumber();\n } else {\n $result[$counter]['pobox'] = '';\n }\n $result[$counter]['email'] = $dir->getCustomer()->getEmail();\n\n $result[$counter]['docid'] = $dir->getDocid();\n $result[$counter]['address'] = $dir->getAddress();\n $result[$counter]['customerid'] = $entity->getId();\n \n $result[$counter]['cityid'] = $city->getId();\n $result[$counter]['cityname'] = $city->getName();\n $result[$counter]['state'] = $city->getState()->getName();\n $result[$counter]['country'] = $city->getState()->getCountry()->getName();\n $result[$counter]['phone'] = $dir->getPhone();\n $result[$counter]['mobile'] = $dir->getMobile();\n \n $result[$counter]['barrio'] = $dir->getBarrio();\n $result[$counter]['zip'] = $dir->getZip();\n if ($dir->getCustomer()->getType()) {\n $result[$counter]['type'] = $dir->getCustomer()->getType()->getName();\n } else {\n $result[$counter]['type'] = 'Persona';\n }\n $counter++;\n }\n }\n }\n// foreach ($entities as $entity) {\n// $result[$counter]['customerid'] = $entity->getId();\n// $result[$counter]['name'] = $entity->getName();\n// $result[$counter]['lastname'] = $entity->getLastname();\n// if ($entity->getPobox()) {\n// $result[$counter]['pobox'] = $entity->getPobox()->getNumber();\n// } else {\n// $result[$counter]['pobox'] = '';\n// }\n// $result[$counter]['email'] = $entity->getEmail();\n// \n// $result[$counter]['docid'] = $entity->getAdrdefault()->getDocid();\n// $result[$counter]['address'] = $entity->getAdrdefault()->getAddress();\n// $city = $entity->getAdrdefault()->getCity();\n// $result[$counter]['cityid'] = $city->getId();\n// $result[$counter]['cityname'] = $city->getName();\n// $result[$counter]['state'] = $city->getState()->getName();\n// $result[$counter]['country'] = $city->getState()->getCountry()->getName();\n// $result[$counter]['phone'] = $entity->getAdrdefault()->getPhone();\n// $result[$counter]['mobile'] = $entity->getAdrdefault()->getMobile();\n// \n// $result[$counter]['barrio'] = $entity->getAdrdefault()->getBarrio();\n// $result[$counter]['zip'] = $entity->getAdrdefault()->getZip();\n// $result[$counter]['type'] = $entity->getType()->getName();\n// $counter++;\n// }\n return new JsonResponse($result); \n }", "public function getGearCompanyInfos($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->collGearCompanyInfos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collGearCompanyInfos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::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(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastGearCompanyInfoCriteria) || !$this->lastGearCompanyInfoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastGearCompanyInfoCriteria = $criteria;\n\t\treturn $this->collGearCompanyInfos;\n\t}", "public function companies()\n {\n return $this->hasMany('App\\Company');\n }", "public function getFkAlmoxarifadoCentroCustoEntidades()\n {\n return $this->fkAlmoxarifadoCentroCustoEntidades;\n }", "function getListaCentros($sCondicion = '', $orden = '')\n {\n $oDbl = $this->getoDbl_Select();\n $nom_tabla = $this->getNomTabla();\n if (empty($orden)) {\n $orden = 'nombre_ubi';\n }\n if (empty($sCondicion)) $sCondicion = \"WHERE status = 't'\";\n $sQuery = \"SELECT id_ubi, nombre_ubi\n\t\t\t\tFROM $nom_tabla\n\t\t\t\t$sCondicion\n\t\t\t\tORDER BY $orden\";\n if (($oDblSt = $oDbl->query($sQuery)) === false) {\n $sClauError = 'GestorCentro.lista';\n $_SESSION['oGestorErrores']->addErrorAppLastError($oDbl, $sClauError, __LINE__, __FILE__);\n return false;\n }\n return new web\\Desplegable('', $oDblSt, '', true);\n }", "public function getEmployees() {\n if ( is_null($this->_employees) ){\n $customers = $this->getTable()->getEmployees();\n $objects = new splObjectStorage();\n\n foreach ($customers AS $customer) {\n try {\n $ccust = new Yourdelivery_Model_Customer_Company($customer->customerId, $this->getId());\n if ($ccust->isDeleted()) {\n continue;\n }\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $objects->attach($ccust);\n }\n $this->_employees = $objects;\n }\n return $this->_employees;\n }", "public function getAdmins() {\n $a = new SplObjectStorage();\n $admins = $this->getTable()->getAdmins();\n foreach ($admins as $admin) {\n try {\n $customer = new Yourdelivery_Model_Customer_Company($admin['id'], $this->getId());\n $a->attach($customer);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n }\n return $a;\n }", "private function loadDistributors() {\n\t\t\n\t\t\t$sql = \"SELECT dst_id FROM dst_cmp WHERE cmp_id='$companyID'\";\n\t\t\t\n\t\t\t$rawResult = $gremlin->query($sql);\n\t\t\t\n\t\t\tforeach($rawResult as $newCont) {\n\t\t\t\n\t\t\t\t$newDist = new Company($newCont);\n\t\t\t\n\t\t\t\t$this->distributors[] = $newDist;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}", "public function get_company() \n {\n return $this->company;\n }", "public function competenceCenter() {\n return $this->belongsTo('App\\CompetenceCenter', 'competence_center_id', 'id');\n }", "protected function _getCieloCompanyInfo()\n {\n $xml =\n '<dados-ec>' .\n '<numero>' . $this->_getCompanyId() . '</numero>' .\n '<chave>' . $this->_getAccessKey() . '</chave>' .\n '</dados-ec>';\n return $xml;\n }", "public function getOperatingCentre()\n {\n return $this->operatingCentre;\n }", "public function index()\n {\n $allData = DispatchCenter::all();\n return view('dispatch_centers.index', compact('allData'));\n }", "public function getCustomerGroups();", "public function getClientCompanies(Iusuario $user, $requesting = null) {\n return $this->obtenerEmpresasCliente(null, $user);\n }", "public function cities_get()\n {\n $em = $this->doctrine->em;\n $citiesRepo = $em->getRepository('Entities\\City');\n $cities = $citiesRepo->findAll();\n foreach ($cities as $city) {\n $city->servicesCount = $city->getServices()->count();\n }\n $response[\"data\"] = $cities;\n $response[\"count\"] = count($cities);\n $this->set_response($response, REST_Controller::HTTP_OK);\n\n }", "public function getCpnyToTable() {\n return $this->db->selectObjList('SELECT company_id, longname, shortname, status, date_create FROM company ORDER BY company_id DESC;', $array = array(), \"Company\");\n }", "public function getCompany()\n {\n return $this->company;\n }", "public function index()\n {\n $company = $this->repository->all();\n return $company;\n }", "public function companies()\n {\n return $this->belongsToMany(Company::class);\n }" ]
[ "0.6078663", "0.60649323", "0.6006163", "0.5973317", "0.597003", "0.5969973", "0.57983834", "0.5781345", "0.57776815", "0.57615197", "0.5721366", "0.56990105", "0.5654105", "0.56503934", "0.56401664", "0.5624275", "0.55778736", "0.55733246", "0.5542282", "0.5516759", "0.5501126", "0.5492277", "0.5448659", "0.5444308", "0.54324055", "0.5383851", "0.5377069", "0.5367695", "0.5360515", "0.5360515", "0.53531456", "0.5331773", "0.5331148", "0.5290292", "0.5284834", "0.52654135", "0.5255532", "0.52534795", "0.5237333", "0.52366996", "0.5217261", "0.5210814", "0.5209416", "0.5206215", "0.51887923", "0.5188436", "0.51797783", "0.51767296", "0.516592", "0.51604354", "0.5155379", "0.5153827", "0.514564", "0.5132289", "0.5132212", "0.512904", "0.51231205", "0.5118971", "0.51118404", "0.5108254", "0.50834984", "0.5067242", "0.5066761", "0.5064695", "0.50621325", "0.50609", "0.50609", "0.5050363", "0.504612", "0.5045628", "0.50377756", "0.5031876", "0.5020782", "0.5018248", "0.50180197", "0.5013585", "0.5012318", "0.5008266", "0.49853247", "0.49817118", "0.49760452", "0.49748054", "0.49743617", "0.49584928", "0.49568492", "0.49545556", "0.49535224", "0.49529195", "0.4946464", "0.49455553", "0.49403527", "0.4937368", "0.4926821", "0.4922416", "0.49190053", "0.491811", "0.49123114", "0.49116486", "0.49101698", "0.49087247" ]
0.73927546
0
check wether this company has a department or not
проверить, есть ли в этой компании отдел или нет
public function hasDepartments() { $deps = $this->getDepartments(); if ($deps->count() > 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDepartment() {\n return $this->_has(2);\n }", "public static function isDepartment( $did ) {\n\t\t$db = JFactory::getDbo();\n\t\t$query = \"SELECT COUNT(*) FROM `#__obhelpdesk3_departments` WHERE id=\" . $did . \" AND published = 1\";\n\t\t$db->setQuery( $query );\n\t\tif ( $db->loadResult() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function hasDepartment($department) {\n\t\t$hasDepartment = ConstructionDepartmentQuery::create()->filterByConstruction($this)->filterByDepartment($department)->count();\n\t\tif ($hasDepartment > 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function getDepartment() { \n if(!$this->department || !$this->department->department)\n return false;\n\n return $this->department->department;\n }", "function verify_dept($dept) {\n if ($dept != \"Techie\" || $dept != \"IT\" || $dept != \"NOC\" || $dept != \"Marketing\") {\n return \"<span>*Invalid Department</span>\";\n } else {\n return $dept;\n }\n }", "private function verify_department(){\n $active_department_id = $request->session()->get('active_dept_id',1) ; \n $department = Department::find($active_department_id);\n }", "private function check_item_department_required($field, $value) {\n if( $field ) {\n if( $value == \"\" || empty($value) ) {\n return false;\n }\n }\n return true;\n }", "public function checkPersonnelDepartment($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkPersonnelDepartment($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "function get_department(){\n $this->_db2->where(\"DeleteFlag\",\"A\");\n return $this->_db2->get($this->_tblorg);\n }", "public function checkDesignDepartment($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkDesignDepartment($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function checkManageDepartment($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkManageDepartment($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function testGetDepartmentWithRestrictionCheck()\n\t{\n\t\t// manually set phonelistRestrict on if its off;\n\t\t/** @var SystemConfigRepository $systemConfigRepo */\n\t\t$systemConfigRepo = self::$em->getRepository(SystemConfig::class);\n\t\t$currentPhonelistRestrictState = self::$originalPhonelistRestrictState;\n\t\tif (!$currentPhonelistRestrictState) {\n\t\t\t/** @var SystemConfig $dorEmployeeRestrict */\n\t\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t\t$dorEmployeeRestrict->setValue('yes');\n\t\t\tself::$em->flush();\n\t\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t}\n\n\t\t//The office to get departments from\n\t\t$officeId = 55;\n\n\t\t//The department to get details from\n\t\t$departmentId = 56;\n\n\t\t$headers = array(\n\t\t\t 'HTTP_AUTHORIZATION' => HttpHeader::BEARER.' '.self::$token,\n\t\t);\n\n\t\t// HTTP client\n\t\t$client = static::createClient();\n\t\t$client->request(\n\t\t\t Request::METHOD_GET,\n\t\t\t '/api/v1/offices/'.$officeId.'/departments'.'/'.$departmentId,\n\t\t\t array(),\n\t\t\t array(),\n\t\t\t $headers\n\t\t);\n\n\t\t/** @var Response $response */\n\t\t$response = $client->getResponse();\n\n\t\t// Test if response is OK\n\t\t$this->assertSame(Response::HTTP_OK, $response->getStatusCode());\n\n\t\t// Test that response is not empty\n\t\t$this->assertNotEmpty($response->getContent());\n\n\t\t// Test if Content-Type is valid application/json\n\t\t$this->assertSame(HttpHeader::APPLICATION_JSON, $response->headers->get(HttpHeader::CONTENT_TYPE));\n\n\t\t//Deserialize response\n\t\t$department = json_decode($response->getContent(), true);\n\t\t$department = $department['data'];\n\n\t\t//Test that a office has at minimum the below values\n\t\t$this->assertArrayHasKey('id', $department);\n\t\t$this->assertArrayHasKey('name', $department);\n\t\t$this->assertArrayHasKey('children', $department);\n\n\t\t//Test that a child has at minimum the below values\n\t\t$children = $department['children'];\n\t\t$this->assertTrue(sizeof($children) > 0);\n\n\t\t//Test if exactly x departments are returned\n\t\t$this->assertTrue(2 === count($children));\n\n\t\tforeach ($children as $child) {\n\t\t\t$this->assertArrayHasKey('id', $child);\n\t\t\t$this->assertArrayHasKey('name', $child);\n\t\t\t$this->assertArrayHasKey('children', $child);\n\t\t}\n\n\t\t// manually set phonelistRestrict off if its on;\n\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t$dorEmployeeRestrict->setValue('no');\n\t\tself::$em->flush();\n\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t$currentPhonelistRestrictState = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT)->getNormalizedValue();\n\n\t\t// HTTP client\n\t\t$client = static::createClient();\n\t\t$client->request(\n\t\t\tRequest::METHOD_GET,\n\t\t\t'/api/v1/offices/'.$officeId.'/departments'.'/'.$departmentId,\n\t\t\tarray(),\n\t\t\tarray(),\n\t\t\t$headers\n\t\t);\n\n\t\t/** @var Response $response */\n\t\t$response = $client->getResponse();\n\n\t\t// Test if response is OK\n\t\t$this->assertSame(Response::HTTP_OK, $response->getStatusCode());\n\n\t\t// Test that response is not empty\n\t\t$this->assertNotEmpty($response->getContent());\n\n\t\t// Test if Content-Type is valid application/json\n\t\t$this->assertSame(HttpHeader::APPLICATION_JSON, $response->headers->get(HttpHeader::CONTENT_TYPE));\n\n\t\t//Deserialize response\n\t\t$department = json_decode($response->getContent(), true);\n\t\t$department = $department['data'];\n\n\t\t//Test that a office has at minimum the below values\n\t\t$this->assertArrayHasKey('id', $department);\n\t\t$this->assertArrayHasKey('name', $department);\n\t\t$this->assertArrayHasKey('children', $department);\n\n\t\t//Test that a child has at minimum the below values\n\t\t$children = $department['children'];\n\t\t$this->assertTrue(sizeof($children) > 0);\n\n\t\t//Test if exactly x departments are returned\n\t\t$this->assertTrue(3 === count($children));\n\n\t\tforeach ($children as $child) {\n\t\t\t$this->assertArrayHasKey('id', $child);\n\t\t\t$this->assertArrayHasKey('name', $child);\n\t\t\t$this->assertArrayHasKey('children', $child);\n\t\t}\n\n\t\t// return phonelist restrict to original state\n\t\tif ($currentPhonelistRestrictState !== self::$originalPhonelistRestrictState) {\n\t\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t\t$dorEmployeeRestrict->setValue('yes');\n\t\t\tself::$em->flush();\n\t\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t}\n\t}", "function fndepartmentCount() {\n\t\t$this->db->select(\"count(*) as selectCount\");\n\t\t$vResult = $this->db->get(t_department)->result();\n\t\tif($vResult) {\n\t\t\treturn $vResult[0];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCompany() {\n if(!$this->department || !$this->department->department || !$this->department->department->division || !$this->department->department->division->company)\n return false;\n\n return $this->department->department->division->company;\n }", "public function getDepartment(){\r\n\t return $this->_department;\r\n\t}", "public function existeDepartamento($dep) {\n $c=\"select * from departamentos where nom_dep=:n\";\n $stmt=parent::$conexion->prepare($c);\n try{\n $stmt->execute([\n ':n'=>$dep\n ]);\n }catch(PDOException $ex){\n die(\"Error al comprobar existencia del departamento: \". $ex->getMessage());\n }\n $fila=$stmt->fetch(PDO::FETCH_OBJ);\n return ($fila==null) ? false : true;\n }", "public function get_department() \n {\n return $this->department;\n }", "function getDepartment($code){\n\n\tglobal $DB;\n\t\n\tif($DB->query(\"SELECT code FROM department WHERE code = :code\", array(\n\t':code' => $code))){\n\t\treturn true;\n\t}\n\t\n\telse{\n\t\treturn false;\n\t}\n}", "private function isCompanyRequired()\n {\n return $this->eavConfig->getAttribute('customer_address', 'company')->getIsRequired();\n }", "public function dept_add_person_for_department(){\n $outputs = array();\n $empl_id = isset($_REQUEST['empl_id'])?$_REQUEST['empl_id']:null;\n $dept_id = isset($_REQUEST['dept_id'])?$_REQUEST['dept_id']:null;\n if(empty($empl_id) or empty($dept_id)){\n $outputs['code'] = 500;\n $outputs['msg'] = 'empty info';\n return $outputs;\n }\n //check exists\n $d_empl = D('TbHrCard')->findOneByEmplId($empl_id);\n $d_dept = D($this->name_dept)->gainSimpleOneDept($dept_id);\n if(empty($d_empl) or empty($d_dept)){\n $outputs['code'] = 500;\n $outputs['msg'] = 'not exists';\n return $outputs;\n }\n\n $status = D($this->name_dept)->addEmployeeToDepartment($empl_id,$dept_id);\n return $outputs;\n }", "public function getDepartment()\n {\n return $this->department;\n }", "public function hasCompanyInfo()\n {\n $result = false;\n if ($this->getField('company') != '' && $this->getField('companyzipcode') != '') {\n $result = true;\n }\n return $result;\n }", "private function dataHasDeposit()\n {\n return array_key_exists('deposit', $this->data);\n }", "public function checkIfDepartmentHODExist(Request $request)\n {\n\t\t$data = $request->post();\n\t\treturn new Response(User::where([['department','=',$data['department']],['designation','=',$data['designation']],['id','!=',$data['id']]])->count());\n }", "public function checkBusinessDepartment($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkBusinessDepartment($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public static function isExternalDepartment( $did ) {\n\t\t$db = JFactory::getDbo();\n\t\t$query = \"SELECT `external_link` FROM `#__obhelpdesk3_departments` WHERE id=\" . $did . \"\";\n\t\t$db->setQuery( $query );\n\t\tif ( $external_link = $db->loadResult() ) {\n\t\t\treturn $external_link;\n\t\t}\n\n\t\treturn false;\n\t}", "private function check_department_user(int $department_id, int $user_id): bool\n {\n // Dus in dit geval gebruik je straks ['count'] in PHP (in plaats van ['COUNT(*)'])\n $sql = 'SELECT COUNT(*) AS count\n FROM department_user\n WHERE department_id = :department_id\n AND user_id = :user_id';\n\n $statement = $this->statement_execute($sql, [\n 'department_id' => $department_id,\n 'user_id' => $user_id\n ]);\n\n $result = $statement->fetch(PDO::FETCH_ASSOC);\n\n // Als de count meer dan 0 is (1 of meer, dus) komt de combinatie voor; dan moet hij true zijn!\n return $result['count'] > 0;\n }", "public function validateHasAppartements() {\n return $this->cart->items()->where( 'class', Appartement::class )->count() > 0;\n }", "public function getDepartmentId()\n {\n $id = $this->getData('department_id');\n $department = $this->departmentFactory->create()->load($id);\n if (!$department) {\n return false;\n }\n\n return $id;\n }", "private function hasValidDepartment($memberof)\n {\n foreach ($memberof as $group) {\n $matches = [];\n preg_match(\"/CN=([\\w\\s]+),/\", $group, $matches);\n if (array_key_exists(1, $matches) && array_key_exists($matches[1], $this->ldap_groups)) {\n return true;\n }\n }\n return false;\n }", "public function is_needed() {\n\t\treturn $this->context->site_represents === 'company';\n\t}", "public function department() {\n\t\treturn $this->has_many_and_belongs_to('Department', 'department_members');\n\t}", "public function getOrganizationDepartment()\n {\n return $this->organizationDepartment;\n }", "public function getDepartment()\n {\n return $this->hasOne(Departments::className(), ['ID' => 'DepartmentID']);\n }", "public function getIdDepartment()\n {\n return $this->id_department;\n }", "public function insertHospitalDepartment($globalUtil,$data){\n\t\t\t\n\t\t\t$data_dept_details=$data;\n\t\t\tif($globalUtil->sqlinsert($data_dept_details,TABLE_HOSPITAL_DEPARTMENT_INFORMATION)){\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function isEmployee(){\n if(isset($this->staffId)){\n return TRUE;\n }\n else{\n return FALSE;\n }\n }", "private function isDepartmentLimitExceeded($mix) {\n\t\tif ($this->recalc) {\n\t\t\t$equipment = $mix->getEquipment();\n\t\t\tif ($equipment && $equipment->isTrackedTowardsDepartment()) {\n\t\t\t\tif ($mix->getDepartment()->getMonthlyLimit() == 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t//\tveeeeeeeeery slow =(\n\t\t\t\t//\t$totalDepartmentUsage = $mix->getDepartment()->getCurrentUsage();\n\n\t\t\t\t//\toptimized\n\t\t\t\t//\tget mix creation month\n\t\t\t\t//$mixDetails = $mix->getMixDetails($mix->getMixID());\n\t\t\t\t//$mixCreationMonth = substr($mixDetails['creationTime'],0,2);\n\t\t\t\t//$mixCreationYear = substr($mixDetails['creationTime'],-4);\n\t\t\t\t$mixCreationMonth = substr($mix->getCreationTime(),0,2);\n\t\t\t\t$mixCreationYear = substr($mix->getCreationTime(),-4);\n\n\t\t\t\t//$totalDepartmentUsage = $mix->getDepartment()->getCurrentUsageOptimized((int)$mixCreationMonth, (int)$mixCreationYear);\n\t\t\t\t$totalDepartmentUsage = $mix->getDepartment()->getAnnualUsage((int)$mixCreationYear, (int)$mixCreationMonth);\n\n\t\t\t\tif (!$mix->isAlreadyExist()) {\n\t\t\t\t\t$totalDepartmentUsage += $mix->getCurrentUsage();\n\t\t\t\t}\n\n\t\t\t\tif ((float)$totalDepartmentUsage > (float)$mix->getDepartment()->getMonthlyLimit()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn $mix->isDepartmentLimitExceeded();\n\t\t}\n\t}", "public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['id' => 'department_id']);\n }", "public function getDepartment(): string;", "public function getDepartment(): ?string\n {\n return $this->Department;\n }", "private function isEdu() {\n return Config::get('dx.is_edu_modules', false);\n }", "public static function can_access(DepartmentInterface $department) {\n\n // check the role based permissions\n switch (Auth::user()->role) {\n\n \tcase User::PIVOT_ADMIN:\n \t // can do anything\n \t return true;\n\n \tcase User::SCHOOL_ADMIN;\n \t// can access anything in their school\n \treturn (Auth::user()->school_id == $department->school_id);\n\n \tcase User::DEPARTMENT_HEAD:\n \t // can access anything in their department\n \t return (Auth::user()->department_id == $department->id);\n\n \tcase User::TEACHER:\n \t // can access their own departments\n \t return $department->classes->filter(function($class) {\n \t return (Auth::user()->id == $class->teacher_id);\n \t })->count();\n }\n\n return false;\n }", "public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['id' => 'departmentID']);\n }", "public function exists_in_database()\n {\n \t$value = $this->input->post('department_Name');\n $query = $this->db->get_where($this->table, array('department_Name'=> $value,'department_active !='=>'E' )); \n\n if ($query->num_rows() > 0 )\n {\n $this->form_validation->set_message('exists_in_database', 'Department Already Exist....');\n return FALSE;\n }\n else\n {\n return TRUE;\n }\n\n\n }", "function domain_exists($domain) {\n\tglobal $DB;\n\n\tif(!isset($domain) || empty($domain) || is_null($domain)) {\n\t\tif(ADMIN_DEBUG_MODE === true) {\n\t\t\techo \"domain not set or empty\\n\";\n\t\t}\n\t\treturn true;\n\t}\n\t$domain = $DB->EscapeQueryStmt(strtolower($domain));\n\t$DB->Query(\"SELECT COUNT(*) AS TOT FROM Account WHERE Domain = '{$domain}' AND Del = 0\");\n\t$tot = $DB->GetRow();\n\treturn (isset($tot[\"TOT\"]) && intval($tot[\"TOT\"]) > 0);\n}", "public function isEmployee()\n {\n $roles = $this->roles->toArray();\n return !empty($roles);\n }", "public function getHospitalDepartment($globalUtil,$condition){\n\t\t$sql = \"SELECT * FROM \".TABLE_HOSPITAL_DEPARTMENT_INFORMATION.\" \".$condition;\n\t\t$HospitalDeptDetails = $globalUtil->sqlFetchRowsAssoc($sql,2);\t\n\t\treturn $HospitalDeptDetails;\n\t\t}", "public function isDefDomain(){\n return (boolean) $this->isActive() && ($this->getDomainName() == Yii::$app->params['domain_name']) && ($this->getDomainTopName() == 'ru');\n }", "public function getDepartment(): ?OrganizationInterface;", "public function delete(Administrator $user, Department $department): bool\n {\n return $user->can('delete-all-departments')\n || ($user->can('delete-departments')\n && $department->isAvailableForAdmin($user));\n }", "public function getDepartmentId()\n\t{\n\t\treturn $this->departmentId;\n\t}", "public function hasPaymentPlan()\n {\n $data = $this->getData();\n\n return isset($data->hire_purchase) && isset($data->hire_purchase[0]->instl_plan);\n }", "public function department()\n\t{\n\t\treturn $this->belongsTo('PanicHD\\PanicHD\\Models\\Department');\n\t}", "public function isDoctor() {\n return Roles::isDoctorRole($this->role_id);\n }", "public function testGetDepartmentsWithRestrictionCheck()\n\t{\n\t\t// manually set phonelistRestrict on if its off;\n\t\t/** @var SystemConfigRepository $systemConfigRepo */\n\t\t$systemConfigRepo = self::$em->getRepository(SystemConfig::class);\n\t\t$currentPhonelistRestrictState = self::$originalPhonelistRestrictState;\n\t\tif (!$currentPhonelistRestrictState) {\n\t\t\t/** @var SystemConfig $dorEmployeeRestrict */\n\t\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t\t$dorEmployeeRestrict->setValue('yes');\n\t\t\tself::$em->flush();\n\t\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t}\n\n\t\t//The office to get departments from\n\t\t$officeId = 55;\n\n\t\t$headers = array(\n\t\t\t 'HTTP_AUTHORIZATION' => HttpHeader::BEARER.' '.self::$token,\n\t\t);\n\n\t\t// HTTP client\n\t\t$client = static::createClient();\n\t\t$client->request(\n\t\t\t Request::METHOD_GET,\n\t\t\t '/api/v1/offices/'.$officeId.'/departments',\n\t\t\t array(),\n\t\t\t array(),\n\t\t\t $headers\n\t\t);\n\n\t\t/** @var Response $response */\n\t\t$response = $client->getResponse();\n\n\t\t// Test if response is OK\n\t\t$this->assertSame(Response::HTTP_OK, $response->getStatusCode());\n\n\t\t// Test that response is not empty\n\t\t$this->assertNotEmpty($response->getContent());\n\n\t\t// Test if Content-Type is valid application/json\n\t\t$this->assertSame(HttpHeader::APPLICATION_JSON, $response->headers->get(HttpHeader::CONTENT_TYPE));\n\n\t\t//Deserialize response\n\t\t$departments = json_decode($response->getContent(), true);\n\n\t\t//Test that the association array is not empty\n\t\t$this->assertTrue(sizeof($departments) > 0);\n\n\t\t//Test if exactly x departments are returned\n\t\t$this->assertTrue(2 === count($departments['data']));\n\n\t\t//Test that a department has at minimum the below values\n\t\tforeach ($departments['data'] as $department) {\n\t\t\t$this->assertArrayHasKey('id', $department);\n\t\t\t$this->assertArrayHasKey('name', $department);\n\t\t\t$this->assertArrayHasKey('children', $department);\n\n\t\t\t//Test that a child has at minimum the below values\n\t\t\t$children = $department['children'];\n\t\t\t$this->assertTrue(sizeof($children) > 0);\n\t\t\tforeach ($children as $child) {\n\t\t\t\t$this->assertArrayHasKey('id', $child);\n\t\t\t\t$this->assertArrayHasKey('name', $child);\n\t\t\t\t$this->assertArrayHasKey('children', $child);\n\t\t\t}\n\t\t}\n\n\t\t// manually set phonelistRestrict off if its on;\n\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t$dorEmployeeRestrict->setValue('no');\n\t\tself::$em->flush();\n\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t$currentPhonelistRestrictState = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT)->getNormalizedValue();\n\n\t\t// HTTP client\n\t\t$client = static::createClient();\n\t\t$client->request(\n\t\t\tRequest::METHOD_GET,\n\t\t\t'/api/v1/offices/'.$officeId.'/departments',\n\t\t\tarray(),\n\t\t\tarray(),\n\t\t\t$headers\n\t\t);\n\n\t\t/** @var Response $response */\n\t\t$response = $client->getResponse();\n\n\t\t// Test if response is OK\n\t\t$this->assertSame(Response::HTTP_OK, $response->getStatusCode());\n\n\t\t// Test that response is not empty\n\t\t$this->assertNotEmpty($response->getContent());\n\n\t\t// Test if Content-Type is valid application/json\n\t\t$this->assertSame(HttpHeader::APPLICATION_JSON, $response->headers->get(HttpHeader::CONTENT_TYPE));\n\n\t\t//Deserialize response\n\t\t$departments = json_decode($response->getContent(), true);\n\n\t\t//Test that the association array is not empty\n\t\t$this->assertTrue(sizeof($departments) > 0);\n\n\t\t//Test if exactly x departments are returned\n\t\t$this->assertTrue(3 === count($departments['data']));\n\n\t\t//Test that a department has at minimum the below values\n\t\tforeach ($departments['data'] as $department) {\n\t\t\t$this->assertArrayHasKey('id', $department);\n\t\t\t$this->assertArrayHasKey('name', $department);\n\t\t\t$this->assertArrayHasKey('children', $department);\n\n\t\t\t//Test that a child has at minimum the below values\n\t\t\t$children = $department['children'];\n\t\t\t$this->assertTrue(sizeof($children) > 0);\n\t\t\tforeach ($children as $child) {\n\t\t\t\t$this->assertArrayHasKey('id', $child);\n\t\t\t\t$this->assertArrayHasKey('name', $child);\n\t\t\t\t$this->assertArrayHasKey('children', $child);\n\t\t\t}\n\t\t}\n\n\t\t// return phonelist restrict to original state\n\t\tif ($currentPhonelistRestrictState !== self::$originalPhonelistRestrictState) {\n\t\t\t$dorEmployeeRestrict = $systemConfigRepo->findOneByKey(SystemConfigKey::DOR_PHONELIST_RESTRICT);\n\t\t\t$dorEmployeeRestrict->setValue('yes');\n\t\t\tself::$em->flush();\n\t\t\tself::$em->refresh($dorEmployeeRestrict);\n\t\t}\n\t}", "public function checkCurrentDepartmentDesignOfStaff($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentDesignOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function checkCurrentDepartmentManageOfStaff($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentManageOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "protected function _checkIdDepartmentAuto($arr)\n\t{\n\t\tglobal $classEscape;\n\n\t\t$classCalcEntityDepartmentImport = &$arr['classCalcEntityDepartmentImport'];\n\n\t\tglobal $varsPluginAccountingAccount;\n\n\t\t$arrayNew = array();\n\t\t$arrayLog = $arr['arrayLog'];\n\t\tforeach ($arrayLog as $keyLog => $valueLog) {\n\t\t\t$array = &$arrayLog[$keyLog];\n\t\t\tforeach ($array as $key => $value) {\n\t\t\t\t$arrayStr = array('Debit', 'Credit');\n\t\t\t\tforeach ($arrayStr as $keyStr => $valueStr) {\n\t\t\t\t\tif ($value['idAccountTitle' . $valueStr] == '') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif ($value['idDepartment' . $valueStr] != '') {\n\t\t\t\t\t\t$idDepartment = $arr['vars']['varsCheck']['arrDepartment'][$value['idDepartment' . $valueStr]];\n\t\t\t\t\t\tif (!$idDepartment) {\n\t\t\t\t\t\t\t$temp = $classEscape->toComma(array(\n\t\t\t\t\t\t\t\t'data' => $value['idDepartment' . $valueStr]\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$temp = mb_substr($temp, 0, 100);\n\t\t\t\t\t\t\t$arrayNew[] = $temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($arrayNew) {\n\t\t\t$arrayNew = array_unique($arrayNew);\n\t\t\t$arrayCheck = array();\n\t\t\t$array = $arrayNew;\n\t\t\tforeach ($array as $key => $value) {\n\t\t\t\t$flag = $classCalcEntityDepartmentImport->allot(array(\n\t\t\t\t\t'flagStatus' => 'check',\n\t\t\t\t\t'idEntity' => $varsPluginAccountingAccount['idEntityCurrent'],\n\t\t\t\t\t'strTitle' => $value,\n\t\t\t\t));\n\t\t\t\tif ($flag) {\n\t\t\t\t\t$arrayCheck[] = $value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$arr['flagAuthority']) {\n\t\t\t\t$arrayCheck = '';\n\t\t\t\tunlink($arr['strUrl']);\n\t\t\t\t$this->_sendVars(array(\n\t\t\t\t\t'flagIframe' => 1,\n\t\t\t\t\t'flag' => 'strDepartment',\n\t\t\t\t\t'stamp' => $this->getStamp(),\n\t\t\t\t\t'numNews' => $this->getNumNews(),\n\t\t\t\t\t'vars' => $arrayCheck,\n\t\t\t\t));\n\n\t\t\t} else {\n\t\t\t\tif ($arrayCheck) {\n\t\t\t\t\tunlink($arr['strUrl']);\n\t\t\t\t\t$this->_sendVars(array(\n\t\t\t\t\t\t'flagIframe' => 1,\n\t\t\t\t\t\t'flag' => 'strTitleDepartment',\n\t\t\t\t\t\t'stamp' => $this->getStamp(),\n\t\t\t\t\t\t'numNews' => $this->getNumNews(),\n\t\t\t\t\t\t'vars' => $arrayCheck,\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $arrayNew;\n\t\t}\n\n\t\treturn array();\n\t}", "public function getDepartment()\n\t{\n\t\t$ci =& get_instance();\n\t\t$ci->load->library('department');\n\n\t\t$department = new Department($this->department_id);\t\t\t\t\n\n\t\treturn $department;\n\t}", "function erp_hr_count_departments() {\n\n return \\WeDevs\\ERP\\HRM\\Models\\Department::count();\n}", "public function checkCurrentDepartmentConstructionOfStaff($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentConstructionOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function isEmployee()\n\t{\n\t\t$roles = $this->roles->toArray();\n\t\treturn !empty($roles);\n\t}", "public function testAssignmentDepartmentMethod()\n {\n $assignment = factory(NonCourseAssignment::class)->create();\n $department = factory(Department::class)->create();\n $assignment->department()->associate($department);\n $assignment->save();\n\n $this->assertDatabaseHas('non_course_assignments', [\n 'id' => $assignment->id,\n 'department_id' => $department->id,\n ]);\n }", "public function is_elex_dpd_enabled() {\n\t\treturn class_exists( 'Elex_dp_dynamic_pricing_plugin' );\n\t}", "protected function getIsOrganizationalAttribute()\n {\n return !empty($this->organization_goal_id);\n }", "public function checkCurrentDepartmentPersonnelOfStaff($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentPersonnelOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function isEmployee()\n {\n $roles = $this->roles->toArray();\n return !empty($roles);\n }", "public function getIsDepositSufficient()\n {\n return $this->isDepositSufficient;\n }", "public function validateCompany()\n\t{\n\t\tif ($this->employed) {\n\t\t\t$validator = CValidator::createValidator('required', $this, 'company', array(\n\t\t\t\t'message' => 'This field depends on \"' .\n\t\t\t\t\t\t\t $this->getAttributeLabel('employed') .\n\t\t\t\t\t\t\t '\" and must not be empty.'\n\t\t\t));\n\t\t\t$validator->validate($this);\n\t\t\t$validator = CValidator::createValidator('length', $this, 'company', array('max'=>'25'));\n\t\t\t$validator->validate($this);\n\t\t} else {\n\t\t\t$this->company = null;\n\t\t}\n\t}", "public function getDivision() { \n if(!$this->department || !$this->department->department || !$this->department->department->division)\n return false;\n\n return $this->department->department->division;\n }", "public function ifEmployeeexiste($id_departement){\n\t\t\t\t\t$sql = \"SELECT * FROM employee WHERE id_departement='\".$id_departement.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t {\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t } \n\t\t\t\t\treturn false;\n\t\t\t\t\t }", "public function onDepartment(){\n\t\t\t$sql = \"SELECT * FROM `department` WHERE `status` = 'ON' ORDER BY `id` ASC \";\n\t\t\t$query = $this->execute($sql);\n\t\t\tif($query){\n\t\t\t\treturn $query;\n\t\t\t}\n\t\t}", "public function testGetDepartmentNotFound()\n\t{\n\t\t//The office to get details from\n\t\t$officeId = 1;\n\n\t\t//The non-existing department\n\t\t$departmentId = 99999999;\n\n\t\t$headers = array(\n\t\t\t 'HTTP_AUTHORIZATION' => HttpHeader::BEARER.' '.self::$token,\n\t\t);\n\n\t\t// HTTP client\n\t\t$client = static::createClient();\n\t\t$client->request(\n\t\t\t Request::METHOD_GET,\n\t\t\t '/api/v1/offices/'.$officeId.'/departments/'.$departmentId,\n\t\t\t array(),\n\t\t\t array(),\n\t\t\t $headers\n\t\t);\n\n\t\t/** @var Response $response */\n\t\t$response = $client->getResponse();\n\n\t\t// Test if response is OK\n\t\t$this->assertSame(Response::HTTP_NOT_FOUND, $response->getStatusCode());\n\n\t\t// Test that response is not empty\n\t\t$this->assertNotEmpty($response->getContent());\n\n\t\t// Test if Content-Type is valid application/json\n\t\t$this->assertSame(HttpHeader::APPLICATION_JSON, $response->headers->get(HttpHeader::CONTENT_TYPE));\n\n\t\t//Deserialize response\n\t\t$result = json_decode($response->getContent(), true);\n\n\t\t//Test that the status is error\n\t\t$this->assertEquals('error', $result['status']);\n\t\t//Test that the message is Not found\n\t\t$this->assertEquals('Not found', $result['message']);\n\t}", "function getDepartments(){ // Return department codes and names from database.\n\n\tglobal $DB;\n\t\n\tif($DB->query(\"SELECT code, name FROM department ORDER BY code\")){\n\t\treturn $DB->results();\n\t}\n\t\n\telse{\n\t\treturn false;\n\t}\n}", "public function addDepartment()\n {\n $facultyId = $_SESSION['facultyId'];\n\n $json = file_get_contents('php://input');\n $obj = json_decode($json);\n\n $fct = array();\n if (property_exists($obj, 'name')) $fct['name'] = $obj->name;\n if (property_exists($obj, 'type')) $fct['type'] = $obj->type;\n if (property_exists($obj, 'address')) $fct['address'] = $obj->office;\n if (property_exists($obj, 'phone')) $fct['phone'] = $obj->phone;\n if (property_exists($obj, 'website')) $fct['website'] = $obj->website;\n $department = new Department($fct);\n\n if (!isset($fct['name']) || $fct['name'] == null) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => ucfirst(Constant::columnNames[\"departmentName\"]) . Constant::isRequiredText\n ));\n return;\n } elseif (!isset($fct['type']) || $fct['type'] == null) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => \"Loại \" . Constant::objectNames[\"department\"] . Constant::isRequiredText\n ));\n return;\n } else {\n if($fct['type'] == 4){\n http_response_code(400);\n echo json_encode(array(\n 'message' => ucfirst(Constant::objectNames[\"facultyOfficer\"]) . Constant::isExistedText\n ));\n return;\n }\n\n foreach ($fct as $key => $value) {\n $action = 'check' . ucfirst($key);\n if (!$department->$action()) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => ucfirst(Constant::columnNames[$key]) . Constant::invalidText\n ));\n return;\n }\n }\n }\n\n /* if (isset($fct['deanId'])) {\n $deanFacultyId = OfficerTable::getFacultyIdOf($fct['deanId']);\n\n if ($deanFacultyId == null) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => 'Dean is not existed'\n ));\n return;\n } elseif ($deanFacultyId != $facultyId) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => 'Dean is officer of other faculty'\n ));\n return;\n\n }\n } */\n\n // Valid now, add department\n $department->setFacultyId($facultyId);\n $result = DepartmentTable::addDepartment($department);\n\n if ($result === false) {\n http_response_code(400);\n echo json_encode(array(\n 'message' => \"Tạo mới \" . Constant::objectNames['department'] . Constant::failed\n ));\n return;\n } else {\n http_response_code(201);\n echo json_encode(array(\n 'id' => $result\n ));\n }\n }", "function getDepartmentsByUsername(){\n if(Current_User::isDeity()){\n $db = &new PHPWS_DB('sysinventory_department');\n $db->addColumn('description');\n $db->addColumn('id');\n $list = $db->select();\n\n if (PEAR::isError($list)){\n PHPWS_Error::log($list);\n }\n return $list;\n // otherwise return a list of departments of which they're an admin \n }else if(Current_User::allow('sysinventory','admin')){\n $db = new PHPWS_DB('sysinventory_admin');\n $db->addWhere('username',Current_User::getUsername(),'ILIKE');\n $db->addJoin('left outer','sysinventory_admin','sysinventory_department','department_id','id');\n $db->addColumn('sysinventory_department.description');\n $db->addColumn('sysinventory_department.id');\n $list = $db->select();\n\n if (PEAR::isError($list)){\n PHPWS_Error::log($list);\n }\n \n return $list;\n }else{\n return NULL;\n }\n \n }", "function getDepartmentsByUsername(){\n if(Current_User::isDeity()){\n $db = &new PHPWS_DB('sysinventory_department');\n $db->addColumn('description');\n $db->addColumn('id');\n $list = $db->select();\n\n if (PEAR::isError($list)){\n PHPWS_Error::log($list);\n }\n return $list;\n // otherwise return a list of departments of which they're an admin \n }else if(Current_User::allow('sysinventory','admin')){\n $db = new PHPWS_DB('sysinventory_admin');\n $db->addWhere('username',Current_User::getUsername(),'ILIKE');\n $db->addJoin('left outer','sysinventory_admin','sysinventory_department','department_id','id');\n $db->addColumn('sysinventory_department.description');\n $db->addColumn('sysinventory_department.id');\n $list = $db->select();\n\n if (PEAR::isError($list)){\n PHPWS_Error::log($list);\n }\n \n return $list;\n }else{\n return NULL;\n }\n \n }", "public function department() {\n return $this->belongsTo(Department::class);\n }", "public function checkCurrentDepartmentAccountantOfStaff($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentAccountantOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function getDepartment() {\n return response()->json([\n 'success' => true,\n 'statusCode' => 200,\n 'message' => 'Successfully retrieved clearances departments',\n 'data' => Department::all()]);\n }", "public function testSetDepartment()\n {\n\n // new entity\n $team = new Team();\n\n // dummy entity\n $department = new Department();\n $department->setName('NTNU');\n\n // Use the setDepartment method\n $team->setDepartment($department);\n\n // Assert the result\n $this->assertEquals($department, $team->getDepartment());\n }", "abstract function is_agency();", "public function department()\n {\n return $this->belongsTo(Department::class);\n }", "public function department()\n {\n return $this->belongsTo(Department::class);\n }", "public function department()\n {\n return $this->belongsTo(Department::class);\n }", "public function department()\n {\n return $this->belongsTo('App\\Models\\core\\Department', 'department_id');\n }", "public function checkTreasureDepartment($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkCurrentDepartmentTreasureOfWork($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function hasFunding() {\r\n return $this->funding->hasFunding();\r\n }", "public function getAllDepartmentInfo(){\n $LOG = Logger::getLogger(__CLASS__ . '.' . __FUNCTION__);\n\n $dao = new LabInspectionSummaryReportDAO();\n $min_year = $this->getMinimumReportYear();\n $departments = $dao->getDepartmentDetails(null, $min_year);\n\n return $departments;\n }", "public function checkConstructionDepartmentAndManageRank($staffId)\n {\n $hFunction = new \\Hfunction();\n $modelStaffWorkDepartment = new QcStaffWorkDepartment();\n $result = $this->infoActivityOfStaff($staffId);\n $resultStatus = false;\n if ($hFunction->checkCount($result)) {\n if ($modelStaffWorkDepartment->checkConstructionDepartmentAndManageRank($result->workId())) $resultStatus = true;\n }\n return $resultStatus;\n }", "public function dependencyExist(): bool\n {\n if ($this->dependencyExist !== null) {\n return $this->dependencyExist;\n }\n\n $this->dependencyExist = (bool)$this->getPqrForm()->getRow('sys_dependencia');\n\n return $this->dependencyExist;\n }", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}" ]
[ "0.8229404", "0.71779704", "0.7162054", "0.68531704", "0.6614436", "0.6569807", "0.6490656", "0.622401", "0.619329", "0.61737955", "0.6143337", "0.61390656", "0.6112664", "0.6096192", "0.60876095", "0.6084", "0.60730517", "0.6058022", "0.5984729", "0.5965847", "0.59422064", "0.59324074", "0.5922408", "0.5907738", "0.59016836", "0.5886684", "0.58678424", "0.58608305", "0.58428776", "0.58071315", "0.57910633", "0.57829076", "0.57702875", "0.5760629", "0.57527107", "0.5745438", "0.5717514", "0.5706853", "0.56981045", "0.56919646", "0.5683441", "0.5675309", "0.56747687", "0.56663966", "0.5654018", "0.564078", "0.56352574", "0.56331426", "0.56285655", "0.56093925", "0.5608807", "0.5593213", "0.558253", "0.5573849", "0.5570847", "0.55707896", "0.5563126", "0.5529264", "0.55123794", "0.55095655", "0.5507809", "0.5492411", "0.54878473", "0.54877317", "0.5465932", "0.5453822", "0.5450924", "0.54433435", "0.5442166", "0.5427815", "0.54266167", "0.5423222", "0.5422758", "0.5407278", "0.5400564", "0.5398475", "0.5393941", "0.5393941", "0.5381345", "0.53670347", "0.53662366", "0.53619146", "0.5361329", "0.53548837", "0.53548837", "0.53548837", "0.5343555", "0.5333941", "0.5329426", "0.5319799", "0.5313815", "0.5312743", "0.53045315", "0.53045315", "0.53045315", "0.53045315", "0.53045046", "0.53045046", "0.53045046", "0.53038067" ]
0.74014276
1